Plot geometry and m in the same snapshot

125 views
Skip to first unread message

Adrià Calafí Pascual

unread,
Nov 25, 2023, 4:11:35 AM11/25/23
to mumax2
Hi everyone, I'm new using mumax3 and I'd like you to help me with command snapshot. I do a easy calculation, and then I need to get the png files from the field m and the geometry I used. Using "snapshot(m)" I just get the total field and the magnetization, I would also like to get the geometry so I can view the boundary effects. Does anyone know how to plot these two things on mumax at the same time, or I need to do it using matlab, python? Thanks!

Josh Lauzier

unread,
Nov 25, 2023, 8:54:24 PM11/25/23
to mumax2
Hi,

I don't know a way to plot them at the same time, but you can use snapshot(geom) (or regions,if you're using regions) to get the geometry into separate image file. So you can snapshot both m and geom in the same script, but they will be in separate image files.

If what you're concerned are boundary effects and you only care about the magnetization near the edge, you can also use commands like Crop() to save only a specific part of the magnetization near the boundary, if that's what you want.

Best,
Josh L.

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

unread,
Nov 26, 2023, 6:41:45 AM11/26/23
to mumax2
Hi, 

I think you might want to use m_full instead of m. It takes geom into account. 

Hope that helps! 

Adrià Calafí Pascual

unread,
Nov 26, 2023, 7:42:02 AM11/26/23
to mum...@googlegroups.com
Okay, I'll try it! Thank you so much!

--
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 on the web visit https://groups.google.com/d/msgid/mumax2/f80a387f-1334-4876-a5f0-773970ee678an%40googlegroups.com.

Adrià Calafí Pascual

unread,
Nov 26, 2023, 1:21:06 PM11/26/23
to mumax2
I've tried to use m_full instead of m, but it is just the same. I've read that m_full it's the same as m but unnormalized.

El dia diumenge, 26 de novembre de 2023 a les 13:42:02 UTC+1, Adrià Calafí Pascual va escriure:
Reply all
Reply to author
Forward
0 new messages