Sinc pulse excitation inclined at an angle

21 views
Skip to first unread message

Payal Bhattacharjee

unread,
Nov 20, 2025, 5:25:15 AMNov 20
to mumax2
Hello everyone,

Is it possible to apply a sinc-pulse excitation field in the x–y plane at an arbitrary angle θ? I attempted the implementation shown below, but it is not working correctly. Could you please help me identify and fix the issue? 
Thank you in advance.

########
// parameters for the sinc function
Amp := 0.001
fmax := 100e9
t0 := 1e-12
theta := 30 * pi/180    
c1 := cos(theta)
s1 := sin(theta)
dir := vector(c1, s1, 0)
B_ext = Amp * sinc(2*pi*fmax*(t - t0)) * dir

Felipe Garcia

unread,
Nov 21, 2025, 9:00:12 AMNov 21
to mum...@googlegroups.com
Hi Payal,

In your code you are supposing that the scalar vector multiplication is  implemented in the scripts of mumax. In fact, it is a complex implementation that is not considered. It will work if you multiply the components. Maybe, one has to check but I think that the following lines should work:
theta := 30 * pi/180    
B_ext =  vector(Amp * sinc(2*pi*fmax*(t - t0)) *cos(theta),  Amp * sinc(2*pi*fmax*(t - t0)) *sin(theta) , 0)


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 visit https://groups.google.com/d/msgid/mumax2/1c655a1f-8d51-4ee6-8c1e-c316c509d1cdn%40googlegroups.com.

Payal Bhattacharjee

unread,
Nov 21, 2025, 9:05:03 AMNov 21
to mum...@googlegroups.com
Thank you so much, Felipe. I shall check it out and get back to you as soon as possible. 



Payal Bhattacharjee

unread,
Nov 24, 2025, 1:01:06 AMNov 24
to mumax2
Thank you, Felipe, once again. It worked.
Reply all
Reply to author
Forward
0 new messages