OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
Represents POI (Point Of Interest) export module. More...
#include <poiexportmodule.h>
Classes | |
struct | POI_dataType |
POIs data structure. More... | |
Public Member Functions | |
POIExportModule (int n, EngngModel *e) | |
Constructor. Creates empty Output Manager. By default all components are selected. More... | |
virtual | ~POIExportModule () |
Destructor. More... | |
virtual IRResultType | initializeFrom (InputRecord *ir) |
Initializes receiver according to object description stored in input record. More... | |
virtual void | doOutput (TimeStep *tStep, bool forcedOutput=false) |
Writes the output. More... | |
virtual void | initialize () |
virtual void | terminate () |
Terminates the receiver. More... | |
virtual const char * | giveInputRecordName () const |
virtual const char * | giveClassName () const |
Returns class name of the receiver. More... | |
Public Member Functions inherited from oofem::ExportModule | |
ExportModule (int n, EngngModel *e) | |
Constructor. Creates empty Output Manager with number n. More... | |
virtual | ~ExportModule () |
Destructor. More... | |
void | doForcedOutput (TimeStep *tStep) |
Writes the output. More... | |
bool | testSubStepOutput () |
Initializes receiver. More... | |
virtual void | initializeElementSet () |
Fill regionSets with all elements if regionSets is initially empty. More... | |
Protected Types | |
enum | POIEM_MapperType { POI_CPT, POI_SFT, POI_LST } |
Smoother type. More... | |
Protected Member Functions | |
void | readPOIFile (const std::string &poiFileName) |
FILE * | giveOutputStream (TimeStep *tStep) |
Returns the output stream for given solution step. More... | |
void | exportIntVars (FILE *stream, TimeStep *tStep) |
Export internal variables. More... | |
void | exportPrimaryVars (FILE *stream, TimeStep *tStep) |
Export primary variables. More... | |
void | exportIntVarAs (InternalStateType valID, FILE *stream, TimeStep *tStep) |
Exports single variable. More... | |
void | exportPrimVarAs (UnknownType valID, FILE *stream, TimeStep *tStep) |
Exports single variable. More... | |
MaterialMappingAlgorithm * | giveMapper () |
Protected Member Functions inherited from oofem::ExportModule | |
int | giveNumberOfRegions () |
Returns number of regions (aka regionSets) More... | |
Set * | giveRegionSet (int i) |
Returns element set. More... | |
std::string | giveOutputBaseFileName (TimeStep *tStep) |
Gives the appropriate name (minus specific file extension). More... | |
bool | testTimeStepOutput (TimeStep *tStep) |
Tests if given time step output is required. More... | |
bool | testDomainOutput (int n) |
Test if domain output is required. More... | |
std::string | errorInfo (const char *func) const |
Returns string for prepending output (used by error reporting macros). More... | |
Protected Attributes | |
IntArray | internalVarsToExport |
List of InternalStateType values, identifying the selected vars for export. More... | |
IntArray | primaryVarsToExport |
List of primary unknowns to export. More... | |
std::list< POI_dataType > | POIList |
List of POIs. More... | |
enum oofem::POIExportModule::POIEM_MapperType | mtype |
std::unique_ptr< MaterialMappingAlgorithm > | mapper |
Mapper. More... | |
Protected Attributes inherited from oofem::ExportModule | |
int | number |
Component number. More... | |
EngngModel * | emodel |
Problem pointer. More... | |
bool | tstep_all_out_flag |
Indicates all steps selection. More... | |
int | tstep_step_out |
User timeStep Output step. Indicates every tstep_step_out-th step selected. More... | |
std::list< Range > | tsteps_out |
List of user selected step numbers. More... | |
bool | tstep_substeps_out_flag |
Flag turning output in solution step substeps/itarations. More... | |
bool | domain_all_flag |
Indicates all domains. More... | |
IntArray | domainMask |
Domain selection mask. More... | |
IntArray | regionSets |
regions represented by sets More... | |
double | timeScale |
Scaling time in output, e.g. conversion from seconds to hours. More... | |
Set | defaultElementSet |
Default region set. More... | |
Represents POI (Point Of Interest) export module.
It is able to perform output on given points, which are inside domain but can have arbitrary position.
Definition at line 62 of file poiexportmodule.h.
|
protected |
oofem::POIExportModule::POIExportModule | ( | int | n, |
EngngModel * | e | ||
) |
Constructor. Creates empty Output Manager. By default all components are selected.
|
virtual |
Destructor.
Definition at line 60 of file poiexportmodule.C.
|
virtual |
Writes the output.
Abstract service.
tStep | Time step. |
forcedOutput | If true, no testTimeStepOutput should be done. |
Implements oofem::ExportModule.
Definition at line 105 of file poiexportmodule.C.
References exportIntVars(), exportPrimaryVars(), giveOutputStream(), oofem::TimeStep::giveTargetTime(), and oofem::ExportModule::testTimeStepOutput().
|
protected |
Exports single variable.
Definition at line 176 of file poiexportmodule.C.
References oofem::MaterialMappingAlgorithm::__init(), oofem::MaterialMappingAlgorithm::__mapVariable(), oofem::IntArray::at(), oofem::FloatArray::at(), oofem::FloatArray::clear(), oofem::ExportModule::emodel, oofem::EngngModel::giveDomain(), giveMapper(), oofem::Domain::giveSet(), OOFEM_WARNING, and POIList.
Referenced by exportIntVars(), and giveClassName().
|
protected |
Export internal variables.
Definition at line 148 of file poiexportmodule.C.
References oofem::IntArray::at(), oofem::FloatArray::at(), exportIntVarAs(), oofem::MaterialMappingAlgorithm::finish(), giveMapper(), oofem::IntArray::giveSize(), internalVarsToExport, POIList, oofem::POIExportModule::POI_dataType::x, oofem::POIExportModule::POI_dataType::y, and oofem::POIExportModule::POI_dataType::z.
Referenced by doOutput(), and giveClassName().
|
protected |
Export primary variables.
Definition at line 228 of file poiexportmodule.C.
References oofem::IntArray::at(), oofem::ExportModule::emodel, exportPrimVarAs(), oofem::EngngModel::giveDomain(), oofem::Domain::giveNumberOfDofManagers(), oofem::IntArray::giveSize(), and primaryVarsToExport.
Referenced by doOutput(), and giveClassName().
|
protected |
Exports single variable.
Definition at line 249 of file poiexportmodule.C.
References oofem::Element::computeField(), oofem::ExportModule::emodel, oofem::EngngModel::giveDomain(), oofem::SpatialLocalizer::giveElementClosestToPoint(), oofem::Domain::giveSpatialLocalizer(), oofem::ISVT_SCALAR, oofem::ISVT_UNDEFINED, oofem::ISVT_VECTOR, OOFEM_ERROR, and POIList.
Referenced by exportPrimaryVars(), and giveClassName().
|
inlinevirtual |
Returns class name of the receiver.
Implements oofem::ExportModule.
Definition at line 98 of file poiexportmodule.h.
References exportIntVarAs(), exportIntVars(), exportPrimaryVars(), exportPrimVarAs(), giveMapper(), giveOutputStream(), and readPOIFile().
|
inlinevirtual |
Definition at line 97 of file poiexportmodule.h.
References _IFT_POIExportModule_Name.
|
protected |
Definition at line 209 of file poiexportmodule.C.
References mapper, mtype, OOFEM_ERROR, POI_CPT, POI_LST, and POI_SFT.
Referenced by exportIntVarAs(), exportIntVars(), and giveClassName().
|
protected |
Returns the output stream for given solution step.
Definition at line 135 of file poiexportmodule.C.
References oofem::ExportModule::giveOutputBaseFileName(), and OOFEM_ERROR.
Referenced by doOutput(), and giveClassName().
|
virtual |
Reimplemented from oofem::ExportModule.
Definition at line 123 of file poiexportmodule.C.
References oofem::ExportModule::initialize().
|
virtual |
Initializes receiver according to object description stored in input record.
Reimplemented from oofem::ExportModule.
Definition at line 66 of file poiexportmodule.C.
References _IFT_POIExportModule_mtype, _IFT_POIExportModule_poifilename, _IFT_POIExportModule_primvars, _IFT_POIExportModule_vars, oofem::ExportModule::initializeFrom(), internalVarsToExport, IR_GIVE_OPTIONAL_FIELD, mtype, primaryVarsToExport, and readPOIFile().
|
protected |
Definition at line 86 of file poiexportmodule.C.
References oofem::POIExportModule::POI_dataType::id, OOFEM_ERROR, POIList, oofem::POIExportModule::POI_dataType::region, oofem::POIExportModule::POI_dataType::x, oofem::POIExportModule::POI_dataType::y, and oofem::POIExportModule::POI_dataType::z.
Referenced by giveClassName(), and initializeFrom().
|
virtual |
Terminates the receiver.
The terminating messages should be printed. All the streams should be closed.
Reimplemented from oofem::ExportModule.
Definition at line 130 of file poiexportmodule.C.
|
protected |
List of InternalStateType values, identifying the selected vars for export.
Definition at line 74 of file poiexportmodule.h.
Referenced by exportIntVars(), and initializeFrom().
|
protected |
|
protected |
Referenced by giveMapper(), and initializeFrom().
|
protected |
List of POIs.
Definition at line 78 of file poiexportmodule.h.
Referenced by exportIntVarAs(), exportIntVars(), exportPrimVarAs(), and readPOIFile().
|
protected |
List of primary unknowns to export.
Definition at line 76 of file poiexportmodule.h.
Referenced by exportPrimaryVars(), and initializeFrom().