Defining laser in multilayer system

2 views
Skip to first unread message

Krishnanjana P J

unread,
Dec 10, 2025, 3:39:29 AM (7 days ago) Dec 10
to Boris Computational Spintronics
Hi all,

I am trying to simulate laser pulses in a multilayer system. I am not sure how to do this efficiently.

I tried:
ns.setstage('Qequation', 'supermesh'). Can I use supermesh here?
ns.editstagevalue(0, 'Q0 * (exp(-sqrt((x/Lx - 0.5)^2 + (y/Ly - 0.5)^2)/((d0/Lx)^2/(4*ln(2)))))*step(z-30e-9) * exp(-(t-2*tau)^2/(tau^2/(4*ln(2))))')
Here I am trying to use a step function in z to control the laser in z. But it doesn't work at all. I am not sure of the coordinate system when we use supermesh. Isn't it the same as the coordinates that we use while defining the meshes?

Best regards,
Krishnanjana
Reply all
Reply to author
Forward
0 new messages