parameters prolems

18 views
Skip to first unread message

Shiwei Meng

unread,
Jan 12, 2026, 10:21:58 PM (4 days ago) Jan 12
to mumax2
dear sir 
   i define a region ,length is 100nm ,wide is 50nm ,thickness is 2nm,but only half of it displayed

03D357D31D22E483FC7E0F801A81187E.pngFAA09D6176452584A4482785B627B7C5.png

Josh Lauzier

unread,
Jan 13, 2026, 1:43:46 AM (4 days ago) Jan 13
to mumax2
Hi,

When defining regions, 0 is determined from the origin. So in the x-direction, your sample goes from -50e-9 to +50e-9. Not 0 to +100e-9. So your region 1 is the right half of the sample, whereas your region 2 starts at the edge of the sample and goes outwards, and therefore isn't in the sample at all. Probably you want something like

defregion(1,xrange(-50e-9,0e-9))
defregion(2,xrange(0e-9,50e-9))

Best,
Josh L.

Shiwei Meng

unread,
Jan 14, 2026, 2:40:33 AM (3 days ago) Jan 14
to mumax2
Hi 
i  modified my code and it displayed right ,thank you for your  answer

Reply all
Reply to author
Forward
0 new messages