I am trying to peform simulation for an arbitrary shape (SHNO). But from what I can see it is not relaxing properly. Can you suggest where exactly the error is or anything else that may work?
from NetSocks import NSClient
from NetSocks import Shape
ns = NSClient(1542, 'localhost')
ns.configure(True)
#Make a ferromagnetic mesh with given rectangle, cubic cellsize, and set modules
C = ns.Ferromagnet([0, 0, 0, 200e-9, 200e-9, 5e-9], [2e-9, 2e-9, 5e-9])
C.modules(['demag', 'exchange', 'Zeeman', 'aniuni', 'transport'])
ns.loadovf2mag("initial_m.ovf")
C.param.K1 = 5e3
C.param.Ms = 716e3
C.param.A = 13e-12
C.param.ea1 = [0, 1, 0]
ns.cuda(1)
# Set the magnetization 5° off the z-axis
ns.setangle(5, 0)
# Set static LLG ODE
ns.setode('LLG', 'RK4')
# Relax
ns.Relax(['mxh', 1e-5])