MainTendency#
- class fridom.shallowwater.modules.main_tendency.MainTendency[source]#
Bases:
ModuleContainerContainer for the main tendency modules of the shallow water model.
The main tendency of the shallow water model computes the tendency terms in the following order:
\[\partial_t \boldsymbol{u} = \text{Linear} + \text{Advection} + \text{Additional}\]with the default modules being: - linear_tendency:
LinearTendency- advection:SadournyAdvectionMethods
__init__()add_module(module)Add a module to the end of the module list.
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.
get(name)Get a module by name.
is_enabled()Return whether the module is enabled or not.
reset()Reset all modules.
setup(mset)Setup all modules.
start()Start all modules.
stop()Stop all modules.
update(mz)Update all modules.
Attributes
The advection module (nonlinear + linear by backgound state).
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.
The core linear momentum tendency module.
mpi_availableWhether all modules are available in MPI mode.
msetThe model settings
required_haloThe maximum required halo points of all modules.
- name = 'Main Tendencies: Shallow Water Model'#
- add_module(module)[source]#
Add a module to the end of the module list.
Parameters#
- moduleModule
The module to be added to the list.
- property linear_tendency#
The core linear momentum tendency module.
- property advection#
The advection module (nonlinear + linear by backgound state).