mufem.MonitorManager
- class mufem.MonitorManager
Bases:
pybind11_object
Class responsible for managing simulation monitors.
Monitors are updated at each iteration or time step and provide runtime evaluation of quantities or conditions.
- __init__(*args, **kwargs)
Methods
__init__
(*args, **kwargs)add_monitor
(self, monitor)Add a monitor to the manager.
get_monitor
(self, name)Retrieve a monitor by name.
- add_monitor(self: mufem.MonitorManager, monitor: mufem.MonitorTrait) None
Add a monitor to the manager.
- Parameters:
monitor (MonitorTrait) – The monitor to add.
- get_monitor(self: mufem.MonitorManager, name: str) mufem.MonitorTrait
Retrieve a monitor by name.
- Parameters:
name (str) – Name of the monitor to retrieve.
- Returns:
The requested monitor.
- Return type:
MonitorTrait