How to start and stop excitation pulse in the simulation?

18 views
Skip to first unread message

Naintara

unread,
Mar 31, 2026, 10:34:15 AM (3 days ago) Mar 31
to mumax2

Hello Mumax3 community,

I want to apply a sine pulse in my simulation starting at 500 ps and keep it active until 1 ns. After that, I would like to excite the system again with another pulse.

Could someone please guide me on how to properly define the start and end time of a pulse in Mumax3? Which command or approach should I use for this?

Thank you in advance for your help!

Josh Lauzier

unread,
Mar 31, 2026, 8:53:25 PM (2 days ago) Mar 31
to mumax2
Hi,

The easiest way to do this is to just do multiple run statements. You can even do them in a loop for multiple pulses. Something like

for i:=0; i<=imax; i+=1{ 
run(0.5e-9)
B_ext=uniform(sin(2*pi*omega(t-t0)),0,0)
run(0.5e-9)
 }

where omega and t0 would be defined based on what frequency you want and where you want the sin to be centered. For a sin specifically, you'll want to be careful on where you cut off the signal.

For the above, the sin will be applied started at 500ps (=0.5ns), lasting for 0.ns, or until t=1ns. It then repeats.

Best,
Josh L.

Naintara .

unread,
Apr 2, 2026, 7:52:01 AM (17 hours ago) Apr 2
to mum...@googlegroups.com
Thank you so much! This approach worked perfectly for my simulation. I really appreciate your help.

Warm Regards,
Naintara   

--
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 visit https://groups.google.com/d/msgid/mumax2/5f5fb647-d39d-4990-a32a-e0e612eb315en%40googlegroups.com.


Confidentiality Notice: This email and any attachments may contain confidential or privileged information. If you are not the intended recipient, please notify the sender by replying to this message, and then delete the email and any attachments permanently. Thank you.
Reply all
Reply to author
Forward
0 new messages