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

After the end of the laser there are still electric field fluctuations, how to eliminate? #675

Closed feelingxxxxxxx closed 3 months ago

feelingxxxxxxx commented 5 months ago

1

Dear teacher: Hello, in the first picture of ey electric field diagram in my 1D simulation, the horizontal coordinate is X (laser propagation direction), and the vertical coordinate is amplitude. We can see that the laser peak electric field is on the order of 1e14, but after the laser pulse is over, there is still an electric field (red box in the figure), about 1e4-1e10 (close to the X-axis shown in the figure), which has caused great trouble to my simulation. Is there any way to remove this non-laser electric field? The second picture is me writing the laser code.

2

Status-Mirror commented 4 months ago

Hey @feelingxxxxxxx,

In this example, your temporal profile t_profile is a gaussian distribution, which will not drop to 0 at any time. You might want to try using t_end to switch the laser off, which is discussed in the laser block documentation.

Hope this helps, Stuart