BiharmonicMixing#
- class fridom.nonhydro.modules.closures.diffusion.BiharmonicMixing(kh: float | FieldVariable, kv: float | FieldVariable)[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.FieldVariable
Horizontal mixing coefficient.
- kvfloat | fr.FieldVariable
Vertical mixing coefficient.
- __init__(kh: float | FieldVariable, kv: float | FieldVariable)[source]#
Methods
__init__(kh, kv)diffuse(z, dz)diffusion_operator(u)Applies the biharmonic diffusion operator on a scalar field \(u\).
disable()Enabling the module means that it will be executed at each time step.
enable()Enabling the module means that it will be executed at each time step.
is_enabled()Return whether the module is enabled or not.
reset()Stop and start the module.
setup(mset)Start the module
start()Start the module
stop()Stop the module
update(mz)Update the module
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.
The horizontal diffusion coefficient.
The vertical diffusion coefficient.
msetThe model settings
required_haloExamples using
fridom.nonhydro.modules.closures.BiharmonicMixing#- name = 'Biharmonic Mixing'#
- property kh: float | FieldVariable#
The horizontal diffusion coefficient.
- property kv: float | FieldVariable#
The vertical diffusion coefficient.