fluidsim.base.output.spect_energy_budget

Spectral energy budget

Provides:

class fluidsim.base.output.spect_energy_budget.SpectralEnergyBudgetBase(output)[source]

Bases: SpecificOutput

Handle the saving and plotting of spectral energy budget.

This class uses the particular functions defined by some solvers :func:`` and :func``. If the solver doesn’t has these functions, this class does nothing.

_tag = 'spect_energy_budg'
_name_file = 'spect_energy_budg.h5'
static _complete_params_with_default(params)[source]
compute()[source]

compute the values at one time.

_init_online_plot()[source]
fnonlinfft_from_uxuy_funcfft(ux, uy, f_fft)[source]

Compute a non-linear term.

Notes

Returns an fft-sized nd-array equivalent to the expression:

\[- \widehat{(\vec{u}.\nabla)f}\]
fnonlinfft_from_uruddivfunc(urx, ury, udx, udy, div, func_fft, func)[source]

Compute a non-linear term.

Functions

cumsum_inv(a)

inner_prod(a_fft, b_fft)

Classes

SpectralEnergyBudgetBase(output)

Handle the saving and plotting of spectral energy budget.