OOFEM 3.0
Loading...
Searching...
No Matches
oofem::MonitorManager Class Reference

#include <monitormanager.h>

Inheritance diagram for oofem::MonitorManager:
Collaboration diagram for oofem::MonitorManager:

Public Member Functions

 MonitorManager (EngngModel *emodel)
virtual ~MonitorManager ()
std::unique_ptr< MonitorCreateModule (const char *name, int num, EngngModel *emodel) override
void update (TimeStep *tStep, Monitor::MonitorEvent event)
const char * giveClassName () const override
Public Member Functions inherited from oofem::ModuleManager< Monitor >
 ModuleManager (EngngModel *emodel)
virtual ~ModuleManager ()
ModuleManageroperator= (const ModuleManager &)=delete
virtual int instanciateYourself (DataReader &dr, const std::shared_ptr< InputRecord > &irPtr, InputFieldType ift, const std::string &name, DataReader::InputRecordType irType)
virtual void registerModule (std::unique_ptr< Monitor > &module)
MonitorgiveModule (int num)
int giveNumberOfModules () const

Additional Inherited Members

Protected Attributes inherited from oofem::ModuleManager< Monitor >
std::vector< std::unique_ptr< Monitor > > moduleList
 Module list.
int numberOfModules
 Number of modules.
EngngModelemodel
 Associated Engineering model.

Detailed Description

Class representing and implementing MonitorManager. It is attribute of EngngModel. It manages individual monitors, which perform monitor - specific output operations. Monitors can be called at user specific events, such as time step termination, etc. The event type is preopagated to each monitor.

Definition at line 50 of file monitormanager.h.

Constructor & Destructor Documentation

◆ MonitorManager()

oofem::MonitorManager::MonitorManager ( EngngModel * emodel)

◆ ~MonitorManager()

oofem::MonitorManager::~MonitorManager ( )
virtual

Definition at line 44 of file monitormanager.C.

Member Function Documentation

◆ CreateModule()

std::unique_ptr< Monitor > oofem::MonitorManager::CreateModule ( const char * name,
int n,
EngngModel * emodel )
overridevirtual

Creates new instance of module.

Parameters
nameName of module.
nNumber associated with module.
emodelEngineering model which receiver belongs to.

Implements oofem::ModuleManager< Monitor >.

Definition at line 48 of file monitormanager.C.

References oofem::classFactory, and oofem::ModuleManager< Monitor >::emodel.

◆ giveClassName()

const char * oofem::MonitorManager::giveClassName ( ) const
inlineoverridevirtual

Initializes output manager. The corresponding initialize module services are called. Terminates the receiver, the corresponding terminate module services are called.

Implements oofem::ModuleManager< Monitor >.

Definition at line 72 of file monitormanager.h.

◆ update()

void oofem::MonitorManager::update ( TimeStep * tStep,
Monitor::MonitorEvent event )

Writes the output. Loops over all modules and calls corresponding doOutput module service.

Parameters
tStepTime step.
substepFlagis set to true, only the modules with substepFlag set to true will be processed.

Definition at line 54 of file monitormanager.C.

References oofem::ModuleManager< Monitor >::moduleList.


The documentation for this class was generated from the following files:

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011