Particle boundaries
The equations of simgeometry.simulation_domain, declared on the code that implements them and checked by the tests.
apply_bc_arrays
functionsourceApply particle boundaries and return markers reinjected this push.
- sides
- reflect
- periodic
- kill
- Assumes
- per axis in order, on alive markers not flagged for reinjection; the side crossed
- kill (code 0), reflect (1), periodic (2), reinject (3): a reinjected marker gets a new position from the injection zone
- a marker on a non-periodic upper side is killed, not reflected; a reflection that still lands outside kills the marker