SpectralAdvection#
- class fridom.nonhydro.modules.advection.spectral_advection.SpectralAdvection(padding: FFTPadding = FFTPadding.TRIM)[source]#
Bases:
AdvectionBaseAdvection Scheme for the spectral grid.
Parameters#
- paddingfr.grid.FFTPadding
Padding to use for the FFT operations.
- __init__(padding: FFTPadding = FFTPadding.TRIM) None[source]#
Methods
__init__([padding])advect_state(z, dz)Advect the state vector.
advection(velocity, quantity)Advect a quantity using the given velocity field.
disable()Disable the module.
enable()Enable the module.
is_enabled()Whether the module is enabled or not.
reset()Stop and start the module.
setup(mset[, setup_mode])Set the module up.
start()Start the module.
stop()Stop the module.
update(mz)Update the model state.
Attributes
backgroundThe background state.
diff_moduleThe differentiation module to be used by this module.
disable_nonlinearWhether to disable advection by the state vector itself.
gridThe grid of the model settings.
infoReturn a dictionary with information about the time stepper.
interp_moduleThe interpolation module to be used by this module.
is_setupWhether the module is set up.
msetThe model settings.
Padding to use for the FFT operations.
required_haloThe required halo points for this module.
scalingA scaling factor for the nonlinear terms (default: 1.0).
- name = 'Spectral Advection'#
- property padding: FFTPadding#
Padding to use for the FFT operations.