fluidsim.base.preprocess.pseudo_spect
Preprocessing for pseudo-spectral solvers (fluidsim.base.preprocess.pseudo_spect
)
Provides:
- class fluidsim.base.preprocess.pseudo_spect.PreprocessPseudoSpectral(sim)[source]
Bases:
PreprocessBase
- normalize_init_fields()[source]
A non-dimensionalization procedure for the initialized fields.
- Parameters:
- init_field_scalestring (use ‘energy’, ‘unity’)
Set quantity to normalize initialized fields with.
- set_viscosity()[source]
Based on
the initial total enstrophy, Omega_0, or
the initial energy
the forcing rate, epsilon
the viscosity scale or Reynolds number is set.
- Parameters:
- params.preprocess.viscosity_typestring
Type/Order of viscosity desired
- params.preprocess.viscosity_scalestring
Mean quantity to be scaled against
- params.preprocess.viscosity_constfloat
Calibration constant to set dissipative wave number
Notes
Algorithm: Sets viscosity variable nu and reinitializes f_d array for timestepping
- set_forcing_rate()[source]
Based on C, a non-dimensional ratio of forcing rate to one of the following forcing scales
the initial total energy, math:: E_0
the initial total enstrophy, math:: Omega_0
the forcing rate is set.
- Parameters:
- params.preprocess.forcing_constfloat
Non-dimensional ratio of forcing_scale to forcing_rate
- params.preprocess.forcing_scalestring
Mean quantity to be scaled against
Functions
|
Calculates viscosity based on scaling formulae. |
Classes