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

#include <exportmodule.h>

Inheritance diagram for oofem::ExportModule:
Collaboration diagram for oofem::ExportModule:

Public Member Functions

 ExportModule (int n, EngngModel *e)
 Constructor. Creates empty Output Manager with number n.
virtual ~ExportModule ()
 Destructor.
virtual void initializeFrom (InputRecord &ir)
 Initializes receiver according to object description stored in input record.
virtual void doOutput (TimeStep *tStep, bool forcedOutput=false)=0
void doForcedOutput (TimeStep *tStep)
bool testSubStepOutput ()
virtual void initialize ()
virtual void initializeElementSet ()
virtual void terminate ()
virtual const char * giveClassName () const =0
 Returns class name of the receiver.

Protected Member Functions

int giveNumberOfRegions ()
 Returns number of regions (aka regionSets).
SetgiveRegionSet (int i)
 Returns element set.
std::string giveOutputBaseFileName (TimeStep *tStep)
bool testTimeStepOutput (TimeStep *tStep)
bool testDomainOutput (int n)
std::string errorInfo (const char *func) const
 Returns string for prepending output (used by error reporting macros).

Protected Attributes

int number
 Component number.
EngngModelemodel
 Problem pointer.
bool tstep_all_out_flag
 Indicates all steps selection.
int tstep_step_out
 User timeStep Output step. Indicates every tstep_step_out-th step selected.
std ::list< Rangetsteps_out
 List of user selected step numbers.
bool tstep_substeps_out_flag
bool domain_all_flag
 Indicates all domains.
IntArray domainMask
 Domain selection mask.
IntArray regionSets
 regions represented by sets
double timeScale
 Scaling time in output, e.g. conversion from seconds to hours.
Set defaultElementSet
 Default region set.
bool pythonExport
 Output is carried out as a python list instead of writing files.

Detailed Description

Represents export output module - a base class for all output modules. ExportModule is an abstraction for module performing some specific kind of output. The modules can declare necessary component services using the interface concept. The basic class declares the basic services (the general interface) and implements the services intended to filter output to certain time steps. The output modules are maintained by ExportModuleManager. The output for given time step is done only if this step is selected by one of above described method.

Definition at line 72 of file exportmodule.h.

Constructor & Destructor Documentation

◆ ExportModule()

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

Constructor. Creates empty Output Manager with number n.

Definition at line 44 of file exportmodule.C.

References defaultElementSet, domainMask, emodel, number, pythonExport, regionSets, timeScale, and tsteps_out.

Referenced by oofem::ErrorCheckingExportModule::ErrorCheckingExportModule(), and oofem::VTKBaseExportModule::VTKBaseExportModule().

◆ ~ExportModule()

oofem::ExportModule::~ExportModule ( )
virtual

Destructor.

Definition at line 54 of file exportmodule.C.

Member Function Documentation

◆ doForcedOutput()

void oofem::ExportModule::doForcedOutput ( TimeStep * tStep)
inline

Writes the output. Abstract service.

Parameters
tSteptime step.

Definition at line 135 of file exportmodule.h.

References doOutput().

◆ doOutput()

◆ errorInfo()

std::string oofem::ExportModule::errorInfo ( const char * func) const
protected

Returns string for prepending output (used by error reporting macros).

Definition at line 179 of file exportmodule.C.

References giveClassName().

Referenced by giveClassName().

◆ giveClassName()

◆ giveNumberOfRegions()

◆ giveOutputBaseFileName()

◆ giveRegionSet()

◆ initialize()

◆ initializeElementSet()

void oofem::ExportModule::initializeElementSet ( )
virtual

Fill regionSets with all elements if regionSets is initially empty. Implementation depends on derived classes.

Definition at line 89 of file exportmodule.C.

References defaultElementSet, emodel, and regionSets.

Referenced by initialize(), and oofem::HOMExportModule::initialize().

◆ initializeFrom()

void oofem::ExportModule::initializeFrom ( InputRecord & ir)
virtual

◆ terminate()

◆ testDomainOutput()

bool oofem::ExportModule::testDomainOutput ( int n)
protected

Test if domain output is required.

Returns
True if required.

Definition at line 170 of file exportmodule.C.

References domain_all_flag, and domainMask.

Referenced by giveClassName().

◆ testSubStepOutput()

bool oofem::ExportModule::testSubStepOutput ( )
inline

Initializes receiver. The init file messages should be printed. Returns true if module is configured to export indvidual substep/iterations.

Definition at line 143 of file exportmodule.h.

Referenced by giveOutputBaseFileName(), and oofem::MatlabExportModule::giveOutputStream().

◆ testTimeStepOutput()

Member Data Documentation

◆ defaultElementSet

Set oofem::ExportModule::defaultElementSet
protected

Default region set.

Definition at line 108 of file exportmodule.h.

Referenced by ExportModule(), giveRegionSet(), and initializeElementSet().

◆ domain_all_flag

bool oofem::ExportModule::domain_all_flag
protected

Indicates all domains.

Definition at line 94 of file exportmodule.h.

Referenced by initializeFrom(), and testDomainOutput().

◆ domainMask

IntArray oofem::ExportModule::domainMask
protected

Domain selection mask.

Definition at line 96 of file exportmodule.h.

Referenced by ExportModule(), initializeFrom(), and testDomainOutput().

◆ emodel

EngngModel* oofem::ExportModule::emodel
protected

Problem pointer.

Definition at line 78 of file exportmodule.h.

Referenced by oofem::HOMExportModule::average(), oofem::MatlabExportModule::computeArea(), oofem::CrackExportModule::doOutput(), oofem::DofManExportModule::doOutput(), oofem::ErrorCheckingExportModule::doOutput(), oofem::GnuplotExportModule::doOutput(), oofem::GPExportModule::doOutput(), oofem::MatlabExportModule::doOutput(), oofem::OutputExportModule::doOutput(), oofem::VTKExportModule::doOutput(), oofem::VTKMemoryExportModule::doOutput(), oofem::VTKPFEMXMLExportModule::doOutput(), oofem::VTKXMLExportModule::doOutput(), oofem::VTKXMLXFemExportModule::doOutput(), oofem::MatlabExportModule::doOutputData(), oofem::MatlabExportModule::doOutputHomogenizeDofIDs(), oofem::MatlabExportModule::doOutputIntegrationPointFields(), oofem::MatlabExportModule::doOutputMesh(), oofem::VTKXMLLatticeExportModule::doOutputNormal(), oofem::MatlabExportModule::doOutputReactionForces(), oofem::MatlabExportModule::doOutputSpecials(), oofem::VTKBaseExportModule::exportCellVars(), oofem::VTKExportModule::exportCellVars(), oofem::VTKBaseExportModule::exportExternalForces(), oofem::POIExportModule::exportIntVarAs(), oofem::VTKExportModule::exportIntVarAs(), oofem::VTKBaseExportModule::exportIntVars(), oofem::VTKXMLLatticeExportModule::exportIntVars(), oofem::VTKXMLPeriodicExportModule::exportIntVars(), oofem::VTKXMLXFemExportModule::exportIntVars2(), oofem::VTKXMLExportModule::exportIntVarsInGpAs(), ExportModule(), oofem::POIExportModule::exportPrimaryVars(), oofem::VTKBaseExportModule::exportPrimaryVars(), oofem::VTKXMLLatticeExportModule::exportPrimaryVars(), oofem::VTKXMLPeriodicExportModule::exportPrimaryVars(), oofem::POIExportModule::exportPrimVarAs(), oofem::VTKExportModule::exportPrimVarAs(), oofem::VTKBaseExportModule::exportSetMembership(), oofem::VTKBaseExportModule::getCellVariableFromIS(), oofem::VTKBaseExportModule::getNodalVariableFromIS(), oofem::VTKXMLXFemExportModule::getNodalVariableFromXFEMST(), oofem::VTKBaseExportModule::giveCellType(), oofem::VTKXMLXFemExportModule::giveDataHeaders(), giveOutputBaseFileName(), oofem::MatlabExportModule::giveOutputStream(), oofem::OutputExportModule::giveOutputStream(), oofem::VTKHDF5ExportModule::givePrimVarSmoother(), oofem::VTKXMLExportModule::givePrimVarSmoother(), giveRegionSet(), oofem::VTKExportModule::giveSmoother(), oofem::VTKHDF5ExportModule::giveSmoother(), oofem::VTKXMLExportModule::giveSmoother(), oofem::ErrorCheckingExportModule::initialize(), oofem::HOMExportModule::initialize(), oofem::SolutionStatusExportModule::initialize(), oofem::VTKHDF5ExportModule::initialize(), initializeElementSet(), oofem::ErrorCheckingExportModule::initializeFrom(), oofem::OutputExportModule::initializeFrom(), oofem::GnuplotExportModule::outputBoundaryCondition(), oofem::GnuplotExportModule::outputBoundaryCondition(), oofem::GnuplotExportModule::outputBoundaryCondition(), oofem::GnuplotExportModule::outputInterfaceEl(), oofem::GnuplotExportModule::outputMesh(), oofem::GnuplotExportModule::outputReactionForces(), oofem::GnuplotExportModule::outputXFEM(), oofem::GnuplotExportModule::outputXFEMGeometry(), oofem::QuasicontinuumVTKXMLExportModule::setupVTKPiece(), oofem::VTKBaseExportModule::setupVTKPiece(), oofem::VTKXMLLatticeExportModule::setupVTKPiece(), oofem::VTKXMLPeriodicExportModule::setupVTKPiece(), oofem::VTKXMLLatticeExportModule::setupVTKPieceCross(), oofem::OutputExportModule::terminate(), oofem::SolutionStatusExportModule::terminate(), oofem::VTKXMLExportModule::writeGPVTKCollection(), oofem::VTKXMLExportModule::writeVTKCollection(), and oofem::VTKXMLXFemExportModule::writeXFEMVars().

◆ number

◆ pythonExport

◆ regionSets

IntArray oofem::ExportModule::regionSets
protected

regions represented by sets

Definition at line 99 of file exportmodule.h.

Referenced by ExportModule(), giveNumberOfRegions(), giveRegionSet(), initializeElementSet(), and initializeFrom().

◆ timeScale

◆ tstep_all_out_flag

bool oofem::ExportModule::tstep_all_out_flag
protected

Indicates all steps selection.

Definition at line 80 of file exportmodule.h.

Referenced by initializeFrom(), and testTimeStepOutput().

◆ tstep_step_out

int oofem::ExportModule::tstep_step_out
protected

User timeStep Output step. Indicates every tstep_step_out-th step selected.

Definition at line 82 of file exportmodule.h.

Referenced by initializeFrom(), and testTimeStepOutput().

◆ tstep_substeps_out_flag

bool oofem::ExportModule::tstep_substeps_out_flag
protected

Flag turning output in solution step substeps/itarations. Allows to visualize the varibles during equilibrium iterations, etc. Usefull for debugging. In this case the export module output name will contain timeStep substep number. This tStep substep must be set/managed by corresponding engineering model.

Definition at line 91 of file exportmodule.h.

Referenced by oofem::VTKXMLExportModule::doOutput(), initializeFrom(), oofem::VTKXMLExportModule::writeGPVTKCollection(), and oofem::VTKXMLExportModule::writeVTKCollection().

◆ tsteps_out

std :: list< Range > oofem::ExportModule::tsteps_out
protected

List of user selected step numbers.

Definition at line 84 of file exportmodule.h.

Referenced by ExportModule(), initializeFrom(), and testTimeStepOutput().


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