RelativeEquilibriumOrbitKS¶
Overview¶
Methods¶
Note
See also Orbit
, OrbitKS
and RelativeOrbitKS
.
Initialization¶
|
Same as OrbitKS except for setting the ‘frame’ attribute. |
Randomly initialize parameters which are currently zero. |
|
Initialize a set of random spatiotemporal Fourier modes |
|
Should only be accessed through |
Special Methods¶
“Special” methods also known as “magic” or “dunder” (double underscore) methods account for most basic Math operations and other operations pertaining to NumPy arrays.
Note
See Orbit
for all definitions.
Properties¶
Current state array’s shape |
|
Current state array’s dimensionality |
|
Current state array’s number of dimensions |
Discretization and Dimensions¶
State array shapes in different bases. |
|
Tile dimensions. |
|
Strategy for combining tile dimensions in gluing; default is arithmetic averaging. |
|
|
Subclassed method for equilibria. |
Dimensions according to plot labels; used in clipping. |
Math Functions¶
Vector representation of Orbit instance; constants all variables required to define the Orbit instance. |
|
Orbit instance with absolute value of state. |
|
Return the L_2 inner product of two orbits |
|
|
Norm of spatiotemporal state via numpy.linalg.norm |
|
Spatial derivative of the current state. |
|
A time derivative of the current state. |
|
Instance whose state is the Kuramoto-Sivashinsky equation evaluated at the current state |
|
Extension of parent class method |
|
Matrix-vector product with the adjoint of the Jacobian |
|
Rescale a vector with the inverse (absolute value) of linear spatial terms |
|
Jacobian matrix evaluated at the current state. |
Calculate the phase difference between the spatial modes at t=0 and t=T |
Visualization¶
|
Plot the velocity field as a 2-d density plot using matplotlib’s imshow |
|
Plot the spatiotemporal Fourier spectrum as a 2-d density plot using matplotlib’s imshow |
State Transformations¶
|
Transform current state to a different basis. |
Rediscretize the current state typically via zero padding or interpolation. |
|
Reflect the velocity field about the spatial midpoint |
|
|
Apply numpy roll along specified axis. |
Rotate by fraction of the period in either axis; nearest discrete approximate is taken. |
|
|
Rotate the velocity field in either space or time. |
Return a OrbitKS with shift-reflected velocity field |
|
Placeholder/signature for possible symmetry subclasses. |
|
For compatibility purposes with plotting and other utilities |
|
Transform to (or from) the co-moving frame depending on the current reference frame |
|
|
Overwrite of parent method |
|
Subclassed method to handle RelativeEquilibriumOrbitKS mode’s shape. |
Static¶
Labels of the different bases produced by transforms. |
|
The smallest possible compatible discretization |
|
The smallest valid increment to change the discretization by. |
|
Strings to use to label dimensions/periods |
|
Labels of all parameters |
|
Strings to use to label dimensions/periods. |
|
Indicates whether numpy indexing corresponds to increasing or decreasing values configuration space variable |
Other¶
RelativeEquilibriumOrbitKS.periodic_dimensions()
is not ‘static’, unlike its parent; this is due to unavoidable
symmetry specific considerations. For this reason, the staticmethod decorator was not used.
Return an instance with copies of copy-able attributes. |
|
|
Return an Orbit instance with a numpy masked array state |
|
Set self constraints based on labels provided. |
Check whether the orbit converged to an equilibrium or close-to-zero solution |
|
Bools indicating whether or not dimension is periodic for persistent homology calculations. |
Defaults¶
Dict of default values for constraints, parameter ranges, sizes, etc. |
|
The default array shape when dimensions are not specified. |
|
Default parameter ranges. |
|
Defaults for whether or not parameters are constrained. |
Reading and Writing Data¶
Method for convenience and consistent/conventional file naming. |
|
|
Export current state information to HDF5 file. |