FluxFunctionBase#
- class fridom.framework.modules.flux_functions.flux_function_base.FluxFunctionBase[source]#
Bases:
ModuleBase class for flux functions.
Description#
This class implements the base interface for flux functions.
- __init__() None#
Methods
__init__()compute(flux_left, flux_right, velocity)Compute the flux function.
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.
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.
required_haloThe required halo points for this module.
- name = 'Flux Function Base'#
- abstract compute(flux_left: ScalarField, flux_right: ScalarField, velocity: ScalarField) ScalarField[source]#
Compute the flux function.
Parameters#
- flux_leftfr.ScalarField
The flux field which is biased to the left.
- flux_rightfr.ScalarField
The flux field which is biased to the right.
- velocityfr.ScalarField
The velocity field.
Returns#
- fr.ScalarField
The computed flux function.