Closed qw4894571 closed 6 years ago
This exmple just can output a table,how can i How can I output the magnetic moment state of each step in the example? Just add a new command "autosave(m)" or others in the end? Thanks for your time. And the code as follows.
SetGridsize(128, 32, 1) SetCellsize(4e-9, 4e-9, 30e-9)
Msat = 800e3 Aex = 13e-12
m = randomMag() relax() // high-energy states best minimized by relax()
Bmax := 100.0e-3 Bstep := 1.0e-3 MinimizerStop = 1e-6 TableAdd(B_ext)
for B:=0.0; B<=Bmax; B+=Bstep{ B_ext = vector(B, 0, 0) minimize() // small changes best minimized by minimize() tablesave() }
for B:=Bmax; B>=-Bmax; B-=Bstep{ B_ext = vector(B, 0, 0) minimize() // small changes best minimized by minimize() tablesave() }
for B:=-Bmax; B<=Bmax; B+=Bstep{ B_ext = vector(B, 0, 0) minimize() // small changes best minimized by minimize() tablesave() }
Please, re-ask this question on the mailing list so that the whole mumax3 community can help you and/or learn from the given answers.
The issue tracker is for issues.
This exmple just can output a table,how can i How can I output the magnetic moment state of each step in the example? Just add a new command "autosave(m)" or others in the end? Thanks for your time. And the code as follows.
SetGridsize(128, 32, 1) SetCellsize(4e-9, 4e-9, 30e-9)
Msat = 800e3 Aex = 13e-12
m = randomMag() relax() // high-energy states best minimized by relax()
Bmax := 100.0e-3 Bstep := 1.0e-3 MinimizerStop = 1e-6 TableAdd(B_ext)
for B:=0.0; B<=Bmax; B+=Bstep{ B_ext = vector(B, 0, 0) minimize() // small changes best minimized by minimize() tablesave() }
for B:=Bmax; B>=-Bmax; B-=Bstep{ B_ext = vector(B, 0, 0) minimize() // small changes best minimized by minimize() tablesave() }
for B:=-Bmax; B<=Bmax; B+=Bstep{ B_ext = vector(B, 0, 0) minimize() // small changes best minimized by minimize() tablesave() }