Dear Dr. Lauzier,
Thank you very much for your previous reply regarding my SOT implementation. Your suggestions were extremely helpful.
Following your recommendation, I updated my code by removing the combined damping-like and field-like torque terms and implementing the spin-orbit torque using Masked() so that each torque is applied only to its respective magnetic layer.
In my model, the magnetic layers are located at layer(2) (top) and layer(0) (bottom), with a non-magnetic spacer at layer(1).
I am varying the saturation magnetization (Ms) of the two magnetic layers to study magnetic compensation. Since the damping-like and field-like SOT coefficients are inversely proportional to Ms, the SOT strength changes as Ms changes. Therefore, I calculate separate SOT coefficients for the top and bottom layers and apply them using Masked().
To ensure that I have implemented everything correctly, I have attached my complete MuMax3 script. I would be very grateful if you could kindly review it and let me know whether the implementation is correct, particularly with respect to:
I am planning to rerun all of my simulations and reanalyze the results based on this updated implementation, so I wanted to verify the code before proceeding. I would greatly appreciate any comments or suggestions.
Thank you very much for your time and assistance.
Kind regards,
Sandhya