Dear Mumax community,
I am doing some demagnetization factor calculations using Mumax for the cylindrical shape. So far, I am getting the results that I didn't expect. My cylinder is very large with the diameter of 5000 nm and the thickness is 20 nm. I would expect that for the large very thin cylinder the demagnetization factor through the shortest dimension would be equal 1 (like for an infinite film). However, my code doesn't give that. Is there something that I missing in my code?
// Geometry and mesh definition
SetGridsize(512, 512, 4)
SetCellsize(5000e-9/512, 5000e-9/512, 20e-9/4)
SetGeom(cylinder(5000e-9, 20e-9))
EdgeSmooth = 8
DemagAccuracy = 8
// Material parameters
Msat = 735e3 // Saturation magnetization in A / m
Aex = 1.0e-11 // Exchange stiffness in J / m
Ku1 = 1.5e3 // First order uniaxial anisotropy in J/m^3
anisU = vector(1, 0, 0) // Easy axis direction
alpha = 0.01 // Gilbert damping
// Initialize magnetization
m = uniform(0.0, 0.0, 1.0)
save(m)
print(m)
print(B_demag)
Thank you a lot for your help!