Warwick-Plasma / epoch

Particle-in-cell code for plasma physics simulations
https://epochpic.github.io
GNU General Public License v3.0
184 stars 58 forks source link

Square temporal profile laser composed of sinusoidal and constant parts #741

Open Aurora-do opened 2 weeks ago

Aurora-do commented 2 weeks ago

How do I simulate a circularly polarized laser in EPOCH2D, having a transverse gaussian profile and a square temporal profile of 60fs duration which in turn, is itself composed of 30fs sinusoidal rising and 30fs constant parts?

I used 2 laser blocks to simulate circularly polarized laser with pi/2 difference phase and polarization b/w the two; and

profile = gauss(y,4 * lambda0,w_bnd)

t_profile = if(abs(time - t_peak) lt 30e-15, sin((time-t_peak)2.0pi/(3.0*t_fwhm)), if(abs(time - t_peak) gt 30e-15 and lt 60e-15,t_peak,0))

On execution, multiple errors pertaining to SRC are encountered.

Status-Mirror commented 1 week ago

Hey @Aurora-do,

Can you provide the full input deck so I can check what the error may be?

Cheers, Stuart