fluidsim.solvers.ns2d.strat.state

State for the NS2D solver (fluidsim.solvers.ns2d.strat.state)

class fluidsim.solvers.ns2d.strat.state.StateNS2DStrat(sim, oper=None)[source]

Bases: fluidsim.solvers.ns2d.state.StateNS2D

State for the solver ns2d.strat.

Contains the variables corresponding to the state and handles the access to other fields.

static _complete_info_solver(info_solver)[source]

Update info_solver container with the stratification terms.

compute(self, key, SAVE_IN_DICT=True, RAISE_ERROR=True)[source]

Compute and return a variable

statephys_from_statespect(self)[source]

Compute state_phys from statespect.

statespect_from_statephys(self)[source]

Compute state_spect from state_phys.

init_from_rotbfft(self, rot_fft, b_fft)[source]

Initialize the state from the variable rot_fft and b_fft.

init_from_apfft(self, ap_fft)[source]

Initialize the state from the linear mode ap_fft.

init_from_amfft(self, am_fft)[source]

Initialize the state from the linear mode am_fft.

compute_rotbfft_from_amfft(self, am_fft)[source]

Computes rot_fft and b_fft from linear mode am_fft.

ap_fft is assumed to be null

compute_rotbfft_from_apfft(self, ap_fft)[source]

Computes rot_fft and b_fft from linear mode ap_fft.

am_fft is assumed to be null

init_from_rotfft(self, rot_fft)[source]

Initialize the state from the variable rot_fft.

init_statespect_from(self, **kwargs)[source]

Initializes state_spect using arrays provided as keyword arguments.

Classes

StateNS2DStrat(sim[, oper])

State for the solver ns2d.strat.