orbithunter.core.Orbit.reflection
- Orbit.reflection(axis=0, signed=True)[source]
Reflect the velocity field about the spatial midpoint
- Parameters:
- axisint, tuple
The NumPy axes to reflect over; reflection occurs with respect to the ‘middle’ of each dimension.
- signedbool
Multiply by -1 after reflection.
- Returns:
- OrbitKS
OrbitKS has been reflected over axis (may be tuple of axes).
Notes
In certain numerical implementations a call to np.roll may be required when discretization has even number of points.