OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::ExportModuleManager Class Reference

Class representing and implementing ExportModuleManager. More...

#include <exportmodulemanager.h>

+ Inheritance diagram for oofem::ExportModuleManager:
+ Collaboration diagram for oofem::ExportModuleManager:

Public Member Functions

 ExportModuleManager (EngngModel *emodel)
 
virtual ~ExportModuleManager ()
 
virtual IRResultType initializeFrom (InputRecord *ir)
 Instanciates the receiver from input record. More...
 
ExportModuleCreateModule (const char *name, int num, EngngModel *emodel)
 Creates new instance of module. More...
 
void doOutput (TimeStep *tStep, bool substepFlag=false)
 Writes the output. More...
 
void initialize ()
 Initializes output manager. More...
 
void terminate ()
 Terminates the receiver, the corresponding terminate module services are called. More...
 
virtual const char * giveClassName () const
 Returns class name of the receiver. More...
 
- Public Member Functions inherited from oofem::ModuleManager< ExportModule >
 ModuleManager (EngngModel *emodel)
 
 ModuleManager (const ModuleManager &)=delete
 
virtual ~ModuleManager ()
 
ModuleManageroperator= (const ModuleManager &)=delete
 
virtual int instanciateYourself (DataReader &dr, InputRecord *ir)
 Reads receiver description from input stream and creates corresponding modules components accordingly. More...
 
ExportModulegiveModule (int num)
 Returns the required module. More...
 
int giveNumberOfModules () const
 

Additional Inherited Members

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

Detailed Description

Class representing and implementing ExportModuleManager.

It is attribute of EngngModel. It manages the export output modules, which perform module - specific output operations.

Definition at line 48 of file exportmodulemanager.h.

Constructor & Destructor Documentation

oofem::ExportModuleManager::ExportModuleManager ( EngngModel emodel)

Definition at line 41 of file exportmodulemanager.C.

oofem::ExportModuleManager::~ExportModuleManager ( )
virtual

Definition at line 44 of file exportmodulemanager.C.

Member Function Documentation

ExportModule * oofem::ExportModuleManager::CreateModule ( const char *  name,
int  n,
EngngModel emodel 
)
virtual

Creates new instance of module.

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

Implements oofem::ModuleManager< ExportModule >.

Definition at line 57 of file exportmodulemanager.C.

References oofem::classFactory, and oofem::ClassFactory::createExportModule().

void oofem::ExportModuleManager::doOutput ( TimeStep tStep,
bool  substepFlag = false 
)

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 63 of file exportmodulemanager.C.

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

Referenced by oofem::EigenValueDynamic::doStepOutput(), oofem::LinearStability::doStepOutput(), oofem::EngngModel::doStepOutput(), oofem::NRSolver::solve(), oofem::CylindricalALM::solve(), and oofem::EngngModel::terminate().

virtual const char* oofem::ExportModuleManager::giveClassName ( ) const
inlinevirtual

Returns class name of the receiver.

Implements oofem::ModuleManager< ExportModule >.

Definition at line 71 of file exportmodulemanager.h.

void oofem::ExportModuleManager::initialize ( )

Initializes output manager.

The corresponding initialize module services are called.

Definition at line 77 of file exportmodulemanager.C.

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

Referenced by oofem::EngngModel::balanceLoad(), oofem::EngngModel::instanciateYourself(), oofem::StokesFlow::solveYourselfAt(), and oofem::EngngModel::updateDomainLinks().

IRResultType oofem::ExportModuleManager::initializeFrom ( InputRecord ir)
virtual

Instanciates the receiver from input record.

Called from instanciateYourself to initialize yourself from corresponding record. Should be called before instanciateYourself.

Implements oofem::ModuleManager< ExportModule >.

Definition at line 48 of file exportmodulemanager.C.

References _IFT_ModuleManager_nmodules, IR_GIVE_OPTIONAL_FIELD, oofem::IRRT_OK, and oofem::ModuleManager< ExportModule >::numberOfModules.

Referenced by oofem::EngngModel::instanciateYourself().

void oofem::ExportModuleManager::terminate ( )

Terminates the receiver, the corresponding terminate module services are called.

Definition at line 86 of file exportmodulemanager.C.

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

Referenced by oofem::EngngModel::terminateAnalysis().


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

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:35 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011