BiharmonicMixing#
- class fridom.nonhydro.modules.closures.diffusion.BiharmonicMixing(kh: float | ScalarField, kv: float | ScalarField)[source]#
Bases:
BiharmonicDiffusionBiharmonic mixing module.
Description#
Applies the biharmonic diffusion operator \(\mathcal{B}\) (see
fridom.framework.modules.closures.BiharmonicDiffusion) to all fields with the flag “ENABLE_MIXING”.Parameters#
- khfloat | fr.ScalarField
Horizontal mixing coefficient.
- kvfloat | fr.ScalarField
Vertical mixing coefficient.
- __init__(kh: float | ScalarField, kv: float | ScalarField) None[source]#
Methods
__init__(kh, kv)diffuse(z, dz)diffusion_operator(u)Apply the biharmonic diffusion operator on a scalar field \(u\).
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
diff_moduleThe differentiation module to be used by this module.
diffusion_coefficientsA list of diffusion coefficients.
field_flagsA list of field flags that indicate which fields should be diffused.
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.
The horizontal diffusion coefficient.
The vertical diffusion coefficient.
msetThe model settings.
required_haloThe required halo points for this module.
Examples using
fridom.nonhydro.modules.closures.BiharmonicMixing#- name = 'Biharmonic Mixing'#
- property kh: float | ScalarField#
The horizontal diffusion coefficient.
- property kv: float | ScalarField#
The vertical diffusion coefficient.