fluidsim.solvers.sphere.sw1l.state
State of the variables (fluidsim.base.sphericalharmo.state
)
Provides:
- class fluidsim.solvers.sphere.sw1l.state.StateSphericalHarmoSW1L(sim, oper=None)[source]
Bases:
StatePseudoSpectral
Contains the state variables and handles the access to fields.
This is the general class for the pseudo-spectral solvers base on the Sperical harmonic transform.
Warning
We assume incompressibility (div = 0) in this base class!
- static _complete_info_solver(info_solver)[source]
Static method to complete the ParamContainer info_solver.
- statephys_from_statespect(state_spect=None, state_phys=None)[source]
Compute the state in physical space.
- return_statephys_from_statespect(state_spect=None)[source]
Return the state in physical space as a new object separate from
self.state_phys
.
- init_from_uxuyeta(ux, uy, eta)[source]
Initialize from
ux
,uy
the velocities andeta
the displacement field.
- init_statespect_from(**kwargs)[source]
Initialize state_spect from arrays.
- Parameters:
- **kwargs{key: array, …}
keys and arrays used for the initialization. The other keys are set to zero.
Examples
kwargs = {'a_fft': Fa_fft} init_statespect_from(**kwargs) ux_fft, uy_fft, eta_fft = oper.uxuyetafft_from_qfft(q_fft) init_statespect_from(ux_fft=ux_fft, uy_fft=uy_fft, eta_fft=eta_fft)
Classes
|
Contains the state variables and handles the access to fields. |