ShiftReflectionOrbitKS¶
Overview¶
Methods¶
Note
See also Orbit
and OrbitKS
.
Initialization¶
|
Initialize self. |
|
Initialize random parameters or state or both. |
|
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. |
|
Return discretization size according to orbithunter conventions for the KSe. |
|
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. |
|
Spectral time derivatives of the current state. |
|
Instance whose state is the Kuramoto-Sivashinsky equation evaluated at the current state |
|
Matrix-vector product of a vector with the Jacobian of the current state. |
|
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. |
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 |
|
Overwrite of parent method |
|
Reconstruct full field from discrete fundamental domain |
|
|
Overwrite of parent method |
|
Overwrite of parent method |
Static¶
Labels of the different bases produced by transforms. |
|
The smallest possible compatible discretization to have full functionality. |
|
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. |
|
Bools indicating whether or not dimension is periodic. |
|
Indicates whether numpy indexing corresponds to increasing or decreasing values configuration space variable |
Other¶
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 |
|
Symmetry selection rules |
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. |