XGC1
|
Functions | |
template<class Device > | |
KOKKOS_INLINE_FUNCTION void | bounce (const PushControls &push_controls, const MagneticField< Device > &magnetic_field, SimdParticles &part, const SimdPhase &ph_old) |
KOKKOS_INLINE_FUNCTION void bounce | ( | const PushControls & | push_controls, |
const MagneticField< Device > & | magnetic_field, | ||
SimdParticles & | part, | ||
const SimdPhase & | ph_old | ||
) |
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.
[in,out] | part | The particle |
[in] | ph_old | The most recent phase prior to leaving the domain |