OOFEM 3.0
Loading...
Searching...
No Matches
oofem::InitModule Class Referenceabstract

#include <initmodule.h>

Inheritance diagram for oofem::InitModule:
Collaboration diagram for oofem::InitModule:

Public Member Functions

 InitModule (int n, EngngModel *e)
 Constructor. Creates empty Init Module with number n.
virtual ~InitModule ()
 Destructor.
virtual void initializeFrom (InputRecord &ir)=0
 Initializes receiver according to object description stored in input record.
virtual void doInit ()=0
 Reads the input. Abstract service.
virtual const char * giveClassName () const
 Returns class name of the receiver.
std::string errorInfo (const char *func) const
 Error printing helper.

Protected Attributes

int number
 Number.
EngngModelemodel
 Problem pointer.
FILE * initStream
 Initialization file.

Detailed Description

Represents init module - a base class for all init modules. InitModule is an abstraction for module performing some specific kind of initialization. The modules can declare necessary component services using the interface concept. The basic class declares the basic services (the general interface). The initialization modules are maintained by InitModuleManager. The initialization for is done only once, at simulation startup by one of above described method.

Definition at line 61 of file initmodule.h.

Constructor & Destructor Documentation

◆ InitModule()

oofem::InitModule::InitModule ( int n,
EngngModel * e )

Constructor. Creates empty Init Module with number n.

Definition at line 39 of file initmodule.C.

References emodel, and number.

◆ ~InitModule()

oofem::InitModule::~InitModule ( )
virtual

Destructor.

Definition at line 46 of file initmodule.C.

Member Function Documentation

◆ doInit()

virtual void oofem::InitModule::doInit ( )
pure virtual

Reads the input. Abstract service.

Implemented in oofem::GPInitModule.

◆ errorInfo()

std::string oofem::InitModule::errorInfo ( const char * func) const
inline

Error printing helper.

Definition at line 83 of file initmodule.h.

References giveClassName().

◆ giveClassName()

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

Returns class name of the receiver.

Reimplemented in oofem::GPInitModule.

Definition at line 81 of file initmodule.h.

Referenced by errorInfo().

◆ initializeFrom()

void oofem::InitModule::initializeFrom ( InputRecord & ir)
pure virtual

Initializes receiver according to object description stored in input record.

Implemented in oofem::GPInitModule.

Definition at line 51 of file initmodule.C.

References _IFT_InitModule_initfilename, initStream, IR_GIVE_FIELD, and OOFEM_ERROR.

Member Data Documentation

◆ emodel

EngngModel* oofem::InitModule::emodel
protected

Problem pointer.

Definition at line 67 of file initmodule.h.

Referenced by oofem::GPInitModule::doInit(), and InitModule().

◆ initStream

FILE* oofem::InitModule::initStream
protected

Initialization file.

Definition at line 69 of file initmodule.h.

Referenced by oofem::GPInitModule::doInit(), and initializeFrom().

◆ number

int oofem::InitModule::number
protected

Number.

Definition at line 65 of file initmodule.h.

Referenced by InitModule().


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