|
OOFEM 3.0
|
#include <vtkxfemexportmodule.h>
Public Member Functions | |
| VTKXMLXFemExportModule (int n, EngngModel *e) | |
| Constructor. Creates empty Output Manager. By default all components are selected. | |
| virtual | ~VTKXMLXFemExportModule () |
| 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 | terminate () override |
| const char * | giveClassName () const override |
| Returns class name of the receiver. | |
| Public Member Functions inherited from oofem::VTKXMLExportModule | |
| VTKXMLExportModule (int n, EngngModel *e) | |
| Constructor. Creates empty Output Manager. By default all components are selected. | |
| virtual | ~VTKXMLExportModule () |
| Destructor. | |
| void | initialize () override |
| void | exportPointDataHeader (std::ofstream fileStream, TimeStep *tStep) |
| 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 () |
Protected Member Functions | |
| std::string | giveOutputFileName (TimeStep *tStep) |
| Returns the filename for the given time step. | |
| std::ofstream | giveOutputStream (TimeStep *tStep) |
| Returns the output stream for given solution step. | |
| bool | writeXFEMVars (ExportRegion &vtkPiece, int field, int enrItIndex) |
| void | getNodalVariableFromXFEMST (FloatArray &answer, Node *node, TimeStep *tStep, XFEMStateType xfemstype, Set ®ion, EnrichmentItem *ei) |
| void | exportIntVars2 (ExportRegion &vtkPiece, Set ®ion, int field, int enrItIndex, IntArray &internalVarsToExport, NodalRecoveryModel &smoother, TimeStep *tStep) |
| void | giveDataHeaders (std::string &pointHeader, std::string &cellHeader) override |
| Protected Member Functions inherited from oofem::VTKXMLExportModule | |
| std::string | giveOutputFileName (TimeStep *tStep) |
| Returns the filename for the given time step. | |
| std::ofstream | giveOutputStream (TimeStep *tStep) |
| Returns the output stream for given solution step. | |
| void | writeIntVars (ExportRegion &vtkPiece) |
| void | writeXFEMVars (ExportRegion &vtkPiece) |
| void | writePrimaryVars (ExportRegion &vtkPiece) |
| void | writeCellVars (ExportRegion &vtkPiece) |
| void | writeExternalForces (ExportRegion &vtkPiece) |
| void | writeVertexSetMembership (ExportRegion &vtkPiece) |
| void | writeCellSetMembership (ExportRegion &vtkPiece) |
| bool | writeVTKPieceEpilog (ExportRegion &vtkPiece, TimeStep *tStep) |
| bool | writeVTKPieceVariables (ExportRegion &vtkPiece, TimeStep *tStep) |
| bool | writeVTKPieceProlog (ExportRegion &vtkPiece, TimeStep *tStep) |
| void | exportIntVarsInGpAs (IntArray valIDs, TimeStep *tStep) |
| void | writeVTKCollection () |
| void | writeGPVTKCollection () |
| Writes a VTK collection file for Gauss points. | |
| 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). | |
Additional Inherited Members | |
| Static Public Member Functions inherited from oofem::VTKBaseExportModule | |
| static void | computeIPAverage (FloatArray &answer, IntegrationRule *iRule, Element *elem, InternalStateType isType, TimeStep *tStep) |
| Public Attributes inherited from oofem::VTKXMLExportModule | |
| std::ofstream | fileStream |
| ExportRegion | defaultVTKPiece |
| std::vector< ExportRegion > | defaultVTKPieces |
| 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. | |
| Protected Attributes inherited from oofem::VTKXMLExportModule | |
| 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). | |
| bool | exportSetMembershipFlag =0 |
| Flag whether to export setMembership (byte encoded array). | |
| NodalRecoveryModel::NodalRecoveryModelType | stype |
| Smoother type. | |
| std::unique_ptr< NodalRecoveryModel > | smoother |
| Smoother. | |
| std::unique_ptr< NodalRecoveryModel > | primVarSmoother |
| Smoother for primary variables. | |
| std::list< std::string > | pvdBuffer |
| Buffer for earlier time steps exported to *.pvd file. | |
| std::list< std::string > | gpPvdBuffer |
| Buffer for earlier time steps with gauss points exported to *.gp.pvd file. | |
| 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. | |
| Static Protected Attributes inherited from oofem::VTKBaseExportModule | |
| static IntArray | redToFull |
| Map from Voigt to full tensor. | |
Represents VTK (Visualization Toolkit) export module for Xfem. It uses VTK (.vtu) 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. The exported variables are dermined by XFemManager (FemMan->vtkExportFields). Each region and each enrichment item is 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.
Definition at line 77 of file vtkxfemexportmodule.h.
| oofem::VTKXMLXFemExportModule::VTKXMLXFemExportModule | ( | int | n, |
| EngngModel * | e ) |
Constructor. Creates empty Output Manager. By default all components are selected.
References doOutput(), initializeFrom(), and VTKXMLXFemExportModule().
Referenced by VTKXMLXFemExportModule().
|
virtual |
Destructor.
Definition at line 80 of file vtkxfemexportmodule.C.
References ~VTKXMLXFemExportModule().
Referenced by ~VTKXMLXFemExportModule().
|
overridevirtual |
Writes the output. Abstract service.
| tStep | Time step. |
| forcedOutput | If true, no testTimeStepOutput should be done. |
Reimplemented from oofem::VTKXMLExportModule.
Definition at line 265 of file vtkxfemexportmodule.C.
References oofem::IntArray::at(), oofem::VTKXMLExportModule::defaultVTKPiece, oofem::VTKXMLExportModule::defaultVTKPieces, doOutput(), oofem::Element_local, oofem::ExportModule::emodel, oofem::VTKXMLExportModule::exportCompositeElement(), exportIntVars2(), oofem::VTKXMLExportModule::fileStream, giveDataHeaders(), oofem::Domain::giveElement(), oofem::TimeStep::giveNumber(), oofem::XfemManager::giveNumberOfEnrichmentItems(), oofem::ExportModule::giveNumberOfRegions(), giveOutputFileName(), giveOutputStream(), oofem::Element::giveParallelMode(), oofem::ExportModule::giveRegionSet(), oofem::IntArray::giveSize(), oofem::TimeStep::giveTargetTime(), oofem::Domain::giveXfemManager(), oofem::Domain::hasXfemManager(), oofem::VTKXMLExportModule::internalVarsToExport, oofem::VTKBaseExportModule::isElementComposite(), oofem::VTKBaseExportModule::setupVTKPiece(), oofem::VTKXMLExportModule::smoother, oofem::ExportModule::testTimeStepOutput(), oofem::ExportModule::timeScale, oofem::XfemManager::vtkExportFields, oofem::VTKXMLExportModule::writeVTKPieceEpilog(), oofem::VTKXMLExportModule::writeVTKPieceProlog(), and writeXFEMVars().
Referenced by doOutput(), and VTKXMLXFemExportModule().
|
protected |
Definition at line 117 of file vtkxfemexportmodule.C.
References oofem::IntArray::at(), oofem::ExportModule::emodel, exportIntVars2(), oofem::ExportRegion::getMapL2G(), getNodalVariableFromXFEMST(), oofem::XfemManager::giveEnrichmentItem(), oofem::Domain::giveNode(), oofem::IntArray::giveSize(), oofem::Domain::giveXfemManager(), oofem::Domain::hasXfemManager(), oofem::VTKXMLExportModule::internalVarsToExport, oofem::ExportRegion::setInternalXFEMVarInNode(), oofem::ExportRegion::setNumberOfInternalVarsToExport(), oofem::VTKXMLExportModule::smoother, and oofem::XfemManager::vtkExportFields.
Referenced by doOutput(), and exportIntVars2().
|
protected |
Definition at line 139 of file vtkxfemexportmodule.C.
References oofem::FloatArray::at(), oofem::ExportModule::emodel, oofem::EnrichmentItem::evalLevelSetNormalInNode(), oofem::EnrichmentItem::evalLevelSetTangInNode(), oofem::EnrichmentItem::evalNodeEnrMarkerInNode(), getNodalVariableFromXFEMST(), oofem::DofManager::giveCoordinates(), oofem::giveInternalStateTypeSize(), oofem::FEMComponent::giveNumber(), oofem::FloatArray::giveSize(), oofem::Domain::giveXfemManager(), oofem::XfemManager::giveXFEMStateValueType(), oofem::ISVT_SCALAR, oofem::ISVT_TENSOR_G, oofem::ISVT_TENSOR_S3, oofem::ISVT_TENSOR_S3E, oofem::ISVT_VECTOR, oofem::VTKBaseExportModule::makeFullTensorForm(), OOFEM_ERROR, oofem::FloatArray::resize(), and oofem::FloatArray::resizeWithValues().
Referenced by exportIntVars2(), and getNodalVariableFromXFEMST().
|
inlineoverridevirtual |
Returns class name of the receiver.
Reimplemented from oofem::VTKXMLExportModule.
Definition at line 90 of file vtkxfemexportmodule.h.
|
overrideprotectedvirtual |
Reimplemented from oofem::VTKXMLExportModule.
Definition at line 237 of file vtkxfemexportmodule.C.
References oofem::__XFEMStateTypeToString(), oofem::IntArray::at(), oofem::ExportModule::emodel, giveDataHeaders(), oofem::XfemManager::giveEnrichmentItem(), oofem::FEMComponent::giveNumber(), oofem::XfemManager::giveNumberOfEnrichmentItems(), oofem::IntArray::giveSize(), oofem::Domain::giveXfemManager(), and oofem::XfemManager::vtkExportFields.
Referenced by doOutput(), and giveDataHeaders().
|
protected |
Returns the filename for the given time step.
Definition at line 90 of file vtkxfemexportmodule.C.
References oofem::ExportModule::giveOutputBaseFileName(), and giveOutputFileName().
Referenced by doOutput(), giveOutputFileName(), and giveOutputStream().
|
protected |
Returns the output stream for given solution step.
Definition at line 97 of file vtkxfemexportmodule.C.
References giveOutputFileName(), giveOutputStream(), NULL_DEVICE, OOFEM_ERROR, and oofem::ExportModule::pythonExport.
Referenced by doOutput(), and giveOutputStream().
|
overridevirtual |
Initializes receiver according to object description stored in input record.
Reimplemented from oofem::VTKXMLExportModule.
Definition at line 83 of file vtkxfemexportmodule.C.
References oofem::ExportModule::initializeFrom(), and initializeFrom().
Referenced by initializeFrom(), and VTKXMLXFemExportModule().
|
inlineoverridevirtual |
Terminates the receiver. The terminating messages should be printed. All the streams should be closed.
Reimplemented from oofem::VTKXMLExportModule.
Definition at line 89 of file vtkxfemexportmodule.h.
|
protected |
Definition at line 190 of file vtkxfemexportmodule.C.
References oofem::__XFEMStateTypeToString(), oofem::FloatArray::at(), oofem::IntArray::at(), oofem::ExportModule::emodel, oofem::VTKXMLExportModule::fileStream, oofem::XfemManager::giveEnrichmentItem(), oofem::giveInternalStateTypeSize(), oofem::ExportRegion::giveInternalXFEMVarInNode(), oofem::FEMComponent::giveNumber(), oofem::ExportRegion::giveNumberOfCells(), oofem::ExportRegion::giveNumberOfNodes(), oofem::Domain::giveXfemManager(), oofem::XfemManager::giveXFEMStateValueType(), oofem::XfemManager::vtkExportFields, oofem::VTKXMLExportModule::writeVTKPointData(), and writeXFEMVars().
Referenced by doOutput(), and writeXFEMVars().