orbithunter.EquilibriumOrbitKS.reflection¶
-
EquilibriumOrbitKS.
reflection
(axis=1, signed=True)¶ Reflect the velocity field about the spatial midpoint
- Returns
- OrbitKS :
OrbitKS whose state is the reflected velocity field -u(L-x,t).
Notes
The correction provided by np.roll is due to the location of the reflection axis in the field array. Numerically it is located at the (self.m//2 + 1)-th element while intuitively it should be “between” self.m//2 + 1 and self.m//2. Simply a consequence of implementation.