Hello,
I am trying to reproduce the dispersion curves of a CoFeB waveguide, shown in Figure 3 of "Confined magnetoelastic waves in thin waveguides" by Vanderkeven et al.
They provided their code in another paper, "Finite difference magnetoelastic simulator", so i am using it essentially verbatim, except tweaking the excitation to be a sinc function- the sample code is for a specific mode. To do the postprocessing, I am following the procedure given in the mumax workshop for the nanowire. However, when i plot the curve, all i see is a large spike at k=0 and f=0.
The excitation is defined as:
B_ext.setregion(2, vector(5e-3,(1e-3)*sinc(2*pi*50e9*t), 0))
where region 2 is a 100 nm strip of the waveguide. So it applies a 5mT field along the waveguide, and a 50 GHz sinc in the y direction
Can anyone give advice? I've tried a few tweaks, like making it a sinc pulse at 50 GHz to ensure it's exciting all of the modes. However, i suspect my issue is with the post processing in python, perhaps how i'm defining the x component of the magnetization as 'mx = m[:,0,0,0,:]' . The relevant bit to generate the 2-D FFT, following the workshop is:
table, fields = run_mumax3(script,"spinwaves")
m = np.stack([fields[key] for key in sorted(fields.keys())])
mx = m[:,0,0,0,:]
mx_fft = np.fft.fft2(mx)
mx_fft = np.fft.fftshift(mx_fft)
plt.figure(figsize=(10,6))
extent = [ -(2*np.pi)/(2*dx), (2*np.pi)/(2*dx), -1/(2*dt), 1/(2*dt)]
plt.imshow(np.abs(mx_fft)**2,extent=extent,aspect='auto',origin='lower',cmap="inferno")
plt.xlim([-2e8,2e8])
plt.ylim([1e9,fmax])
plt.ylabel("$f$ (Hz)")
plt.xlabel("$k$ (1/m)")
plt.show()
If i understand correctly, this should take the 2-D FFT along the x-direction and the time domain. It seems very similar to the nanowire example of the workshop, except the y-dimension is bigger than 1 cell, the bias field is in the x direction, and excitation in y.
I can post the full code below if it is helpful to solve the issue. I can also post the normal mumax3 equivalent, without the magneto-elastic effects, the error is the same. The message board was not allowing attachments/links.
Thanks,
Josh L.