|
OOFEM 3.0
|
#include <vtkhdf5exportmodule.h>
Public Member Functions | |
| VTKHDF5ExportModule (int n, EngngModel *e) | |
| Constructor. Creates empty Output Manager. By default all components are selected. | |
| virtual | ~VTKHDF5ExportModule () |
| Destructor. | |
| void | initializeFrom (InputRecord &ir) override |
| Initializes receiver according to object description stored in input record. | |
| void | doOutput (TimeStep *tStep, bool forcedOutput=false) override |
| void | initialize () override |
| void | terminate () override |
| const char * | giveClassName () const override |
| Returns class name of the receiver. | |
| NodalRecoveryModel * | giveSmoother () |
| Returns the internal smoother. | |
| NodalRecoveryModel * | givePrimVarSmoother () |
| Returns the smoother for primary variables (nodal averaging). | |
| ExportRegion & | getExportRegions () |
| Public Member Functions inherited from oofem::VTKBaseExportModule | |
| VTKBaseExportModule (int n, EngngModel *e) | |
| Constructor. Creates empty Output Manager. By default all components are selected. | |
| virtual | ~VTKBaseExportModule () |
| Destructor. | |
| int | giveCellType (Element *element) |
| int | giveCellType (int num) |
| Public Member Functions inherited from oofem::ExportModule | |
| ExportModule (int n, EngngModel *e) | |
| Constructor. Creates empty Output Manager with number n. | |
| virtual | ~ExportModule () |
| Destructor. | |
| void | doForcedOutput (TimeStep *tStep) |
| bool | testSubStepOutput () |
| virtual void | initializeElementSet () |
Public Attributes | |
| ExportRegion | defaultVTKPiece |
| std::vector< ExportRegion > | defaultVTKPieces |
Protected Member Functions | |
| void | writeVTKPointData (FloatArray &valueArray) |
| void | writeVTKCellData (FloatArray &valueArray) |
| void | exportCompositeElement (ExportRegion &vtkPiece, Element *el, TimeStep *tStep) |
| void | exportCompositeElement (std::vector< ExportRegion > &vtkPieces, Element *el, TimeStep *tStep) |
| Protected Member Functions inherited from oofem::VTKBaseExportModule | |
| virtual void | setupVTKPiece (ExportRegion &vtkPiece, TimeStep *tStep, Set ®ion) |
| virtual void | exportPrimaryVars (ExportRegion &piece, Set ®ion, IntArray &primaryVarsToExport, NodalRecoveryModel &smoother, TimeStep *tStep) |
| virtual void | exportIntVars (ExportRegion &piece, Set ®ion, IntArray &internalVarsToExport, NodalRecoveryModel &smoother, TimeStep *tStep) |
| void | exportExternalForces (ExportRegion &piece, int region, TimeStep *tStep) |
| void | exportCellVars (ExportRegion &piece, Set ®ion, IntArray &cellVarsToExport, TimeStep *tStep) |
| Exports cell variables (typically internal variables). | |
| void | exportExternalForces (ExportRegion &piece, Set ®ion, IntArray &externalForcesToExport, TimeStep *tStep) |
| void | exportSetMembership (ExportRegion &piece, Set ®ion, TimeStep *tStep) |
| void | getNodalVariableFromPrimaryField (FloatArray &answer, DofManager *dman, TimeStep *tStep, UnknownType type, Set ®ion, NodalRecoveryModel &smoother) |
| void | getNodalVariableFromIS (FloatArray &answer, Node *node, TimeStep *tStep, InternalStateType type, Set ®ion, NodalRecoveryModel &smoother) |
| void | getCellVariableFromIS (FloatArray &answer, Element *el, InternalStateType type, TimeStep *tStep) |
| int | giveNumberOfNodesPerCell (int cellType) |
| void | giveElementCell (IntArray &answer, Element *elem) |
| virtual int | initRegionNodeNumbering (ExportRegion &vtkPiece, Domain *domain, TimeStep *tStep, Set ®ion) |
| bool | isElementComposite (Element *elem) |
| void | exportCompositeElement (ExportRegion &vtkPiece, Element *el, TimeStep *tStep) |
| Returns true if element geometry type is composite (not a single cell). | |
| void | exportCompositeElement (std::vector< ExportRegion > &vtkPieces, Element *el, TimeStep *tStep) |
| Protected Member Functions inherited from oofem::ExportModule | |
| int | giveNumberOfRegions () |
| Returns number of regions (aka regionSets). | |
| Set * | giveRegionSet (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 | |
| IntArray | internalVarsToExport |
| List of InternalStateType values, identifying the selected vars for export. | |
| IntArray | primaryVarsToExport |
| List of primary unknowns to export. | |
| IntArray | externalForcesToExport |
| List of primary unknowns to export. | |
| IntArray | cellVarsToExport |
| List of cell data to export. | |
| IntArray | ipInternalVarsToExport |
| List of internal variables to export directly in Integration Points (no smoothing to nodes). | |
| NodalRecoveryModel::NodalRecoveryModelType | stype |
| Smoother type. | |
| std::unique_ptr< NodalRecoveryModel > | smoother |
| Smoother. | |
| std::unique_ptr< NodalRecoveryModel > | primVarSmoother |
| Smoother for primary variables. | |
| Protected Attributes inherited from oofem::ExportModule | |
| int | number |
| Component number. | |
| EngngModel * | emodel |
| 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< Range > | tsteps_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. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from oofem::VTKBaseExportModule | |
| static void | computeIPAverage (FloatArray &answer, IntegrationRule *iRule, Element *elem, InternalStateType isType, TimeStep *tStep) |
| Static Protected Member Functions inherited from oofem::VTKBaseExportModule | |
| static void | makeFullTensorForm (FloatArray &answer, const FloatArray &reducedForm, InternalStateValueType vtype) |
| Gives the full form of given symmetrically stored tensors, missing components are filled with zeros. | |
| Static Protected Attributes inherited from oofem::VTKBaseExportModule | |
| static IntArray | redToFull |
| Map from Voigt to full tensor. | |
Represents VTK (Visualization Toolkit) export module. It uses VTK hdf5 file format, Unstructured grid dataset. The export of data is done on Region By Region basis, possibly taking care about possible nonsmooth character of some internal variables at region boundaries. Each region is usually exported as a single piece. When region contains composite cells, these are assumed to be exported in individual subsequent pieces after the default one for the particular region.
Note vtkhdf format allows to store data for all partitions. To support multiple regions per partition, we adopt following concept: for a specific partition, all regions are exported within a single partition by duplicating nodes on shared boundaries if needed. This can broke node numbering in VTK (as it will no longer correspond to oofem numbering), but oofem node ids can be exported separately as point data.
Definition at line 95 of file vtkhdf5exportmodule.h.
| oofem::VTKHDF5ExportModule::VTKHDF5ExportModule | ( | int | n, |
| EngngModel * | e ) |
Constructor. Creates empty Output Manager. By default all components are selected.
References doOutput(), initialize(), initializeFrom(), terminate(), and VTKHDF5ExportModule().
Referenced by VTKHDF5ExportModule().
|
virtual |
Destructor.
Definition at line 88 of file vtkhdf5exportmodule.C.
References ~VTKHDF5ExportModule().
Referenced by ~VTKHDF5ExportModule().
|
overridevirtual |
Writes the output. Abstract service.
| tStep | Time step. |
| forcedOutput | If true, no testTimeStepOutput should be done. |
Implements oofem::ExportModule.
Definition at line 243 of file vtkhdf5exportmodule.C.
References defaultVTKPiece, doOutput(), oofem::VTKBaseExportModule::exportIntVars(), oofem::VTKBaseExportModule::exportPrimaryVars(), oofem::ExportModule::giveNumberOfRegions(), givePrimVarSmoother(), oofem::ExportModule::giveRegionSet(), giveSmoother(), oofem::TimeStep::giveTargetTime(), internalVarsToExport, primaryVarsToExport, primVarSmoother, oofem::VTKBaseExportModule::setupVTKPiece(), smoother, and oofem::ExportModule::testTimeStepOutput().
Referenced by doOutput(), and VTKHDF5ExportModule().
|
protected |
|
protected |
|
inline |
Definition at line 160 of file vtkhdf5exportmodule.h.
|
inlineoverridevirtual |
Returns class name of the receiver.
Reimplemented from oofem::VTKBaseExportModule.
Definition at line 129 of file vtkhdf5exportmodule.h.
| NodalRecoveryModel * oofem::VTKHDF5ExportModule::givePrimVarSmoother | ( | ) |
Returns the smoother for primary variables (nodal averaging).
Definition at line 958 of file vtkhdf5exportmodule.C.
References oofem::classFactory, oofem::ExportModule::emodel, givePrimVarSmoother(), oofem::NodalRecoveryModel::NRM_NodalAveraging, and primVarSmoother.
Referenced by doOutput(), and givePrimVarSmoother().
| NodalRecoveryModel * oofem::VTKHDF5ExportModule::giveSmoother | ( | ) |
Returns the internal smoother.
Prints point data header.
Definition at line 945 of file vtkhdf5exportmodule.C.
References oofem::classFactory, oofem::ExportModule::emodel, giveSmoother(), smoother, and stype.
Referenced by doOutput(), and giveSmoother().
|
overridevirtual |
Reimplemented from oofem::VTKBaseExportModule.
Definition at line 111 of file vtkhdf5exportmodule.C.
References oofem::ExportModule::emodel, oofem::VTKBaseExportModule::initialize(), initialize(), oofem::ExportModule::number, primVarSmoother, and smoother.
Referenced by initialize(), and VTKHDF5ExportModule().
|
overridevirtual |
Initializes receiver according to object description stored in input record.
Reimplemented from oofem::ExportModule.
Definition at line 92 of file vtkhdf5exportmodule.C.
References _IFT_VTKHDF5ExportModule_cellvars, _IFT_VTKHDF5ExportModule_externalForces, _IFT_VTKHDF5ExportModule_ipvars, _IFT_VTKHDF5ExportModule_primvars, _IFT_VTKHDF5ExportModule_stype, _IFT_VTKHDF5ExportModule_vars, cellVarsToExport, externalForcesToExport, oofem::ExportModule::initializeFrom(), initializeFrom(), internalVarsToExport, ipInternalVarsToExport, IR_GIVE_OPTIONAL_FIELD, primaryVarsToExport, and stype.
Referenced by initializeFrom(), and VTKHDF5ExportModule().
|
overridevirtual |
Terminates the receiver. The terminating messages should be printed. All the streams should be closed.
Reimplemented from oofem::VTKBaseExportModule.
Definition at line 231 of file vtkhdf5exportmodule.C.
References terminate().
Referenced by terminate(), and VTKHDF5ExportModule().
|
protected |
Referenced by writeVTKPointData().
|
protected |
References writeVTKCellData().
|
protected |
List of cell data to export.
Definition at line 105 of file vtkhdf5exportmodule.h.
Referenced by initializeFrom().
| ExportRegion oofem::VTKHDF5ExportModule::defaultVTKPiece |
Definition at line 156 of file vtkhdf5exportmodule.h.
Referenced by doOutput().
| std::vector< ExportRegion > oofem::VTKHDF5ExportModule::defaultVTKPieces |
Definition at line 158 of file vtkhdf5exportmodule.h.
|
protected |
List of primary unknowns to export.
Definition at line 103 of file vtkhdf5exportmodule.h.
Referenced by initializeFrom().
|
protected |
List of InternalStateType values, identifying the selected vars for export.
Definition at line 99 of file vtkhdf5exportmodule.h.
Referenced by doOutput(), and initializeFrom().
|
protected |
List of internal variables to export directly in Integration Points (no smoothing to nodes).
Definition at line 107 of file vtkhdf5exportmodule.h.
Referenced by initializeFrom().
|
protected |
List of primary unknowns to export.
Definition at line 101 of file vtkhdf5exportmodule.h.
Referenced by doOutput(), and initializeFrom().
|
protected |
Smoother for primary variables.
Definition at line 116 of file vtkhdf5exportmodule.h.
Referenced by doOutput(), givePrimVarSmoother(), and initialize().
|
protected |
Smoother.
Definition at line 114 of file vtkhdf5exportmodule.h.
Referenced by doOutput(), giveSmoother(), and initialize().
|
protected |
Smoother type.
Definition at line 112 of file vtkhdf5exportmodule.h.
Referenced by giveSmoother(), and initializeFrom().