Go to the source code of this file.
Bounce particle away from wall. (Simple approach to particles that leave the domain.) Particle gets its old location, except the z coordinate is made negative. So not so much a true bounce as making the particle reappear on the other side. Also there's an option for setting the particle's W1 weight to 0.
- Parameters
-
[in] | push_controls | Set of options/parameters used in the particle push |
[in] | magnetic_field | Magnetic field object |
[in,out] | part | The particle |
[in] | ph_old | The most recent phase prior to leaving the domain |