Hi-PACE / hipace

Highly efficient Plasma Accelerator Emulation, quasistatic particle-in-cell code
https://hipace.readthedocs.io
Other
54 stars 15 forks source link

Remove particles with negative psi_inv #1142

Closed AlexanderSinn closed 3 months ago

AlexanderSinn commented 3 months ago

With a low zeta resolution and a strong wakefield, it can happen that psi goes below zero. These particles will cause a negative chi which can blow up the simulation pretty quickly.