Diagnostics#

class fridom.nonhydro.modules.diagnostics.Diagnostics(interval=50, energy_info=True, cfl_info=True)[source]#

Bases: Module

__init__(interval=50, energy_info=True, cfl_info=True)[source]#

Methods

__init__([interval, energy_info, cfl_info])

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)

Print diagnostic information.

Attributes

diff_module

The differentiation module to be used by this module.

grid

The grid of the model settings.

info

Return a dictionary with information about the time stepper.

interp_module

The interpolation module to be used by this module.

is_setup

Whether the module is set up.

mset

The model settings.

name

required_halo

The required halo points for this module.

name = 'Diagnostics'#
update(mz: ModelState) ModelState[source]#

Print diagnostic information.