Are the boundary conditions modified for custom effective fields?

218 views
Skip to first unread message

J A. Fernandez-Roldan

unread,
Jun 16, 2022, 5:29:57 AM6/16/22
to mumax2
Dear colleagues,

I am implementing some custom DMI interaction (custom energy and custom field).

I wonder if the micromagnetic boundary conditions at surfaces are modified by the program when custom fields and energy terms are included?

Thanks for any help you can provide.

Felipe Garcia

unread,
Jun 17, 2022, 10:15:36 AM6/17/22
to mumax2
Dear Jose Angel,

As far as I know, the boundary conditions are considered inside the DMI/exchange calculations, but I don't see any modification for custom fields. If you add a custom DMI, or any field that contains derivatives, you will have to modify the boundary. Regarding this, they will for PBC conditions but I am almost sure that for normal boundaries it will not work

Best regards,
Felipe


--
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/2859d521-70ca-4d19-b619-b4606a5039ben%40googlegroups.com.

José A. Fdez.

unread,
Jun 17, 2022, 11:20:26 AM6/17/22
to mum...@googlegroups.com
Dear Felipe, 

thank you very much for your explanation. I expected so. I will try to find a way to modify them or look for some alternative.

Best regards,
José Ángel 

You received this message because you are subscribed to a topic in the Google Groups "mumax2" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mumax2/AdoBMblre8E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mumax2+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mumax2/CAE-O8Rkae7K3sgoNMpdQRpAFWvBs%3DMHhb8qhH5Kr6wF_KppaUg%40mail.gmail.com.

Josh Lauzier

unread,
Jun 18, 2022, 4:13:37 AM6/18/22
to mumax2
As Felipe mentioned, I don't see anything within the custom fields code that modifies boundary conditions.

Probably what you can do is copy the existing DMI .go and .cu files (i think mostly it is the cuda you need to tweak), and then tweak the pieces you need. For the most part it should be nearly identical, and there is some explanation of things in the file comments (DMI.cu in particular has comments on the boundary conditions used/implemented). The boundary terms are only ~6 lines or so (repeated for each dimension), so like 36 lines of code total. Of course, you'll have to recompile after making those edits.

There are also some existing test mx3 files to test things like the DMI energy, so if your custom version can be simplified to normal DMI (say, in a special case), those might be useful as sanity checks once you get the modifications working.

Cheers,
Josh L.

Felipe Garcia

unread,
Jun 19, 2022, 1:14:44 PM6/19/22
to mumax2
Dear Jose Angel and Josh,

One subtle fact to be considered is that one has to derive the proper boundary conditions for the Included DMI field. Actually, one has to derive the conditions from the DMI energy.

Best regards,
Felipe

Reply all
Reply to author
Forward
0 new messages