Skip to content

Commit

Permalink
test/uniaxialanisotropy: remove unstable test case
Browse files Browse the repository at this point in the history
  • Loading branch information
barnex committed Jun 17, 2015
1 parent 7577f16 commit af54056
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 21 deletions.
6 changes: 0 additions & 6 deletions test/uniaxialanisotropy-minimize.mx3
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,3 @@ Ku1 = -1e6
minimize()
expect("mz", m.average()[2], 0, 1e-3)

// Easy, perpendicular
Ku1 = 1e6
minimize()
expect("mx", m.average()[0], 0, 1e-3)
expect("my", m.average()[0], 0, 1e-3)

25 changes: 10 additions & 15 deletions test/uniaxialanisotropy.mx3
Original file line number Diff line number Diff line change
Expand Up @@ -28,54 +28,49 @@ Ku1 = 0.5e6
Msat = 1100e3

B_ext = vector(0, 0.00, 0)
run(1e-9)
relax()
expect("my", m.average()[1], 0.000, 1e-3)

B_ext = vector(0, 0.01, 0)
run(1e-9)
relax()
expect("my", m.average()[1], 0.011, 1e-3)

B_ext = vector(0, 0.03, 0)
run(1e-9)
relax()
expect("my", m.average()[1], 0.033, 1e-3)

B_ext = vector(0, 0.10, 0)
run(1e-9)
relax()
expect("my", m.average()[1], 0.110, 1e-3)

B_ext = vector(0, 0.30, 0)
run(1e-9)
relax()
expect("my", m.average()[1], 0.331, 1e-3)

// Hard, in-plane
Ku1 = -0.5e6
B_ext = vector(0, 0.00, 0)
run(1e-9)
relax()
expect("my", m.average()[1], 1.000, 1e-3)

B_ext = vector(0.01, 0, 0)
run(1e-9)
relax()
expect("mx", m.average()[0], 0.011, 1e-3)

B_ext = vector(0.10, 0, 0)
run(1e-9)
relax()
expect("mx", m.average()[0], 0.110, 1e-3)

AnisU = vector(100, 0, 0) // Test unnormalized U vector
run(1e-9)
relax()
expect("mx", m.average()[0], 0.110, 1e-3) // should not make a difference (normalized internally)

AnisU = vector(0, 0, 1)
B_ext = vector(0, 0, 0)

// Hard, perpendicular
Ku1 = -1e6
run(3e-9)
relax()
expect("mz", m.average()[2], 0, 1e-3)

// Easy, perpendicular
Ku1 = 1e6
run(10e-9)
expect("mx", m.average()[0], 0, 1e-3)
expect("my", m.average()[0], 0, 1e-3)

0 comments on commit af54056

Please sign in to comment.