Hi-PACE / hipace

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

Remove particles with negative psi_inv #1142

Closed AlexanderSinn closed 1 month ago

AlexanderSinn commented 1 month 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.