3D and 2D structure and current direction

137 views
Skip to first unread message

PhysicsJC

unread,
Nov 10, 2023, 3:14:04 AM11/10/23
to mumax2
Hello, I am seeking help for geometry and (arbitrary) current direction.
I am trying to simulate magnetic structure with 2D and 3D shape (e.g., pipes with curvature) - using .png file to create the structure. Is there a way to set current direction following the structure - like current flowing U-shape or spiral?
Looking forward your help ;)

Антон Луценко

unread,
Nov 10, 2023, 4:19:18 AM11/10/23
to mumax2
Hi, 
You might need to create the geometries (regions and current distribution) externally, save them as .ovf and load into Mumax. Also keep in mind that Mumax does not compute Oersted fields, so if you rely on it, you should probably compute it externally as well. 

Josh Lauzier

unread,
Nov 10, 2023, 4:25:13 AM11/10/23
to mumax2
Hi,

For 2D structures, you can use the Imageshape() command. There is no equivalent for 3D. If you can't build the structure out of the built in shapes of mumax, probably you will need to construct an OVF file with something like Python/Matlab, and then load it in.

There is no way to set the current direction to follow the structure automatically, but you should be able to do what you want by loading another OVF with the spatial profile of the current density. Again you will need to construct some sort of OVF with something like Python/Matlab. Depending on how complex the current density/structure is, you might need to compute it with a tool like Comsol, and then convert it to OVF.

Best,
Josh L.

Reply all
Reply to author
Forward
0 new messages