You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where H is my 'spatial' field profile, and 'func' can be my time-dependent field, together making the final expression for the field.
So far, and by checking with the API, my current code looks like this:
system.energy += mm.Zeeman(H=H, func=field_1_sin_time, name='field1', dt=dt_) # first term of [1]
system.energy += mm.Zeeman(H=H, func=field_2_cos_time, name='field2', dt=dt_) # second term of [1]
I am not obtaining what expected: While for a certain point, the coded wave packet shows only two maxima, in the simulation there are more travelling maxima through that point:
Maybe there is an easier way to code this 1-way pulse in ubermag? Thank you so much for your suggestions.
Best regards,
The text was updated successfully, but these errors were encountered:
Dear Team,
Thank you again for the software and your support.
I am struggling to code a 1-way spin wave packet for my simulations.
The pulse should be in the form:
sin(w t - k x) = sin(k x) sin(w t) + cos(k x) cos(w t) [1]
Therefore, it is my understanding that I should end up adding an energy term in the system in the form of:
system.energy += mm.Zeeman(H=H, func=func, dt=dt_)
where H is my 'spatial' field profile, and 'func' can be my time-dependent field, together making the final expression for the field.
So far, and by checking with the API, my current code looks like this:
The time-dependent fields:
So the system should be:
I am not obtaining what expected: While for a certain point, the coded wave packet shows only two maxima, in the simulation there are more travelling maxima through that point:
![image](https://private-user-images.githubusercontent.com/183487873/402537729-28388b32-8df1-4303-8e2c-c0cb05f4b869.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0ODE5ODcsIm5iZiI6MTczOTQ4MTY4NywicGF0aCI6Ii8xODM0ODc4NzMvNDAyNTM3NzI5LTI4Mzg4YjMyLThkZjEtNDMwMy04ZTJjLWMwY2IwNWY0Yjg2OS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QyMTIxMjdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04NDA4MzM1ZDcyNWEwYWU3YjYxNWJiMWY4OTExNWMzZGM4NmQ2ZGY2ZmFjNGYwNjc3NTUxMTZkOTYwODljYjliJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.YineJd55H7tuAJnhKJtzccgVOSzdp1WslIfvQGba-FE)
Maybe there is an easier way to code this 1-way pulse in ubermag? Thank you so much for your suggestions.
Best regards,
The text was updated successfully, but these errors were encountered: