File: runwhile.mx3

package info (click to toggle)
mumax3 3.11.1-1
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid
  • size: 10,668 kB
  • sloc: makefile: 194; ansic: 155; sh: 86; javascript: 16
file content (24 lines) | stat: -rw-r--r-- 363 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
	Test for runwhile().
*/

N := 20
c := 4e-9

SetGridSize(N, N, 1)
SetCellSize(c, c, c)
SetGeom(circle(N*c))

m = uniform(1, 0, 0)

Msat = 800e3
Aex  = 13e-12
alpha= 1

RunWhile(MaxTorque > 1e-3)

B_ext = vector(0, 0.01, 1)

RunWhile(m.comp(1).average() < 0.5)
expect("my", m.comp(1).average(), 0.53, 0.02) // unavoidable overshoot because of large time steps