Not getting proper hysteresis loop

48 views
Skip to first unread message

Rama Krishna rao

unread,
Nov 3, 2025, 3:40:52 AMNov 3
to mumax2
Screenshot 2025-11-03 140521.pngDear community,

I'm trying to produce hysteresis of Iron nanoparticle with varying size as 10nm, 30nm, 50nm. I got the results which I'm unable to correlate. 
When I have viewed the initial moment distribution, I felt the distribution at the surface was not sharp and maybe this can be a reason for the weird hysteresis.
Can someone please help me out if there are mistakes in code, if not in finding the reason for the results obtained?
Please find the attached hysteresis loops and the surface section of the moment distribution for 50nm particle after relaxation. Also I'm attaching the code.
Screenshot 2025-11-03 140831.png
Screenshot 2025-11-03 140250.png

Rama Krishna rao

unread,
Nov 8, 2025, 12:36:12 PMNov 8
to mumax2
Can someone please look into this??

Rama Krishna rao

unread,
Nov 17, 2025, 1:05:56 PMNov 17
to mumax2
Can someone please help me out?

Felipe Garcia

unread,
Nov 21, 2025, 2:37:33 PMNov 21
to mum...@googlegroups.com
Hi,

You did not include the anisotropy axis. Simplifying your script and adding the anisotropy axis, it becomes:

SetGridsize(64, 64, 64)
SetCellsize(1e-9, 1e-9, 1e-9)

setgeom(ellipsoid(10e-9, 10e-9, 10e-9) )

Msat  = 1.7e6
Kc1=4.8e4
Aex   = 21e-12

anisc1=vector(1,0,0)
anisc2=vector(0,1,0)

m = randomMag()
relax()        

saveas(m,"m_initial")


Bmax  := 200.0e-3
Bstep :=  2.0e-3
MinimizerStop = 1e-6
TableAdd(B_ext)

for B:=Bmax; B>=-Bmax; B-=Bstep{
    B_ext = vector(B*cos(pi/180), B*sin(pi/180), 0)
    minimize()  
    tablesave()
}

You don't need the other hysteresis branches, they are only useful for academic purposes or the ascending branch if you have asymmetries. In your case, there is no reason for that. With your parameters Bk=0.0545 T only considering the cubic anisotropy.
In the case of 10 nm, one will have monodomain behaviour. Then the demagnetization factor will be N=(1/3,1/3,1/3). This means that for 10 nm I expect no role of demag. It will be the effect only of cubic anisotropy.
Fe_10nm.jpeg.png
The obtained loop matches that perfectly. I also tried with the case of 45 degrees. For that one needs to add a small angle less than one degree to Pi/4. Otherwise, with one degree the dependence with the angle is strong and one will obtain a different loop.
0 represents 1 degree as you did at the beginning. That explains the small deviation because there is a small dependence on the angle of the coercivity. These results match well with the expected coherent rotation model. I did that during my PhD and you can find it here https://fgarciasanchez.es/thesisfelipe/node59.html , but there is also material in textbooks. You can see that mumax3 matches that behaviour well. I did not try to compare the loops in a single graph with the analytical ones but they seem Ok.

One can also try with 30 nm particle. In that case, the coherent behavior does not happen and the loop changes. It becomes dominated by demag because now it is able to create inhomogeneous structures. This is reflected in your original figure because the role of cubic anisotropy is smaller closer to your script where you forgot to add it.

Fe_10nm_30nm.png

The case of 50 nm requires a larger range of fields as it is evident even in your initial calculations. To summarise, I don't see any problem with the calculations. Maybe, a FEM solver is needed because a sphere in mumax3 looks very lego-like. One can use analytical models for the 10 nm case.


Felipe

--
You received this message because you are subscribed to the Google Groups "mumax2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mumax2+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mumax2/58e559ab-eb56-473a-b6da-87bffc46bc92n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages