|
OOFEM 3.0
|
#include <vtkxmlperiodicexportmodule.h>
Public Member Functions | |
| VTKXMLPeriodicExportModule (int n, EngngModel *e) | |
| Constructor. Creates empty Output Manager. By default all components are selected. | |
| virtual | ~VTKXMLPeriodicExportModule () |
| Destructor. | |
| void | initializeFrom (InputRecord &ir) override |
| Initializes receiver according to object description stored in input record. | |
| const char * | giveClassName () const override |
| Returns class name of the receiver. | |
| void | setupVTKPiece (ExportRegion &vtkPiece, TimeStep *tStep, Set ®ion) override |
| int | initRegionNodeNumbering (ExportRegion &piece, Domain *domain, TimeStep *tStep, Set ®ion) override |
| void | exportPrimaryVars (ExportRegion &vtkPiece, Set ®ion, IntArray &primaryVarsToExport, NodalRecoveryModel &smoother, TimeStep *tStep) override |
| void | exportIntVars (ExportRegion &vtkPiece, Set ®ion, IntArray &internalVarsToExport, NodalRecoveryModel &smoother, TimeStep *tStep) override |
| 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 | doOutput (TimeStep *tStep, bool forcedOutput=false) override |
| void | initialize () override |
| void | terminate () override |
| void | exportPointDataHeader (std::ofstream fileStream, TimeStep *tStep) |
| virtual void | giveDataHeaders (std::string &pointHeader, std::string &cellHeader) |
| 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 | |
| void | giveSwitches (IntArray &answer, int location) |
| 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 | |
| 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) |
| 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 | |
| FloatMatrix | uniqueNodeTable |
| IntArray | periodicMap |
| IntArray | regionToUniqueMap |
| IntArray | locationMap |
| IntArray | elementNodePeriodicMap |
| int | elemNodes |
| 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. | |
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. | |
| Static Protected Attributes inherited from oofem::VTKBaseExportModule | |
| static IntArray | redToFull |
| Map from Voigt to full tensor. | |
Represents VTK (Visualization Toolkit) export module for periodic cells. It uses VTK (.vtu) file format It extends vtkxmlexportmodule by introducing methods to deal with boundary elements.
Definition at line 56 of file vtkxmlperiodicexportmodule.h.
| oofem::VTKXMLPeriodicExportModule::VTKXMLPeriodicExportModule | ( | int | n, |
| EngngModel * | e ) |
Constructor. Creates empty Output Manager. By default all components are selected.
References initializeFrom(), and VTKXMLPeriodicExportModule().
Referenced by VTKXMLPeriodicExportModule().
|
virtual |
Destructor.
Definition at line 66 of file vtkxmlperiodicexportmodule.C.
|
overridevirtual |
Export internal variables by smoothing.
Reimplemented from oofem::VTKBaseExportModule.
Definition at line 566 of file vtkxmlperiodicexportmodule.C.
References oofem::IntArray::at(), oofem::ExportModule::emodel, oofem::ExportRegion::getMapL2G(), oofem::VTKBaseExportModule::getNodalVariableFromIS(), oofem::giveInternalStateTypeSize(), oofem::giveInternalStateValueType(), oofem::Domain::giveNode(), oofem::Domain::giveNumberOfDofManagers(), oofem::IntArray::giveSize(), oofem::VTKXMLExportModule::internalVarsToExport, periodicMap, regionToUniqueMap, oofem::FloatArray::resize(), oofem::ExportRegion::setInternalVarInNode(), oofem::ExportRegion::setNumberOfInternalVarsToExport(), oofem::VTKXMLExportModule::smoother, and oofem::FloatArray::zero().
Referenced by setupVTKPiece().
|
overridevirtual |
Export primary variables.
Reimplemented from oofem::VTKBaseExportModule.
Definition at line 443 of file vtkxmlperiodicexportmodule.C.
References oofem::FloatArray::at(), oofem::IntArray::at(), oofem::IntArray::begin(), oofem::ExportModule::emodel, oofem::IntArray::end(), oofem::ExportRegion::getMapL2G(), oofem::VTKBaseExportModule::getNodalVariableFromPrimaryField(), oofem::DofManager::giveCompleteMasterDofIDArray(), oofem::DofManager::giveCoordinate(), oofem::DofManager::giveCoordinates(), oofem::DofManager::giveDofWithID(), oofem::Domain::giveNode(), oofem::Domain::giveNumberOfDofManagers(), oofem::DofManager::giveNumberOfDofs(), oofem::FloatArray::giveSize(), oofem::IntArray::giveSize(), giveSwitches(), oofem::Dof::giveUnknown(), locationMap, OOFEM_ERROR, periodicMap, oofem::VTKXMLExportModule::primaryVarsToExport, regionToUniqueMap, oofem::FloatArray::resize(), oofem::ExportRegion::setNumberOfPrimaryVarsToExport(), oofem::ExportRegion::setPrimaryVarInNode(), and oofem::VTKXMLExportModule::smoother.
Referenced by setupVTKPiece().
|
inlineoverridevirtual |
Returns class name of the receiver.
Reimplemented from oofem::VTKXMLExportModule.
Definition at line 75 of file vtkxmlperiodicexportmodule.h.
|
protected |
Definition at line 78 of file vtkxmlperiodicexportmodule.C.
References oofem::IntArray::resize(), and oofem::IntArray::zero().
Referenced by exportPrimaryVars().
|
overridevirtual |
Initializes receiver according to object description stored in input record.
Reimplemented from oofem::VTKXMLExportModule.
Definition at line 71 of file vtkxmlperiodicexportmodule.C.
Referenced by VTKXMLPeriodicExportModule().
|
overridevirtual |
Assembles the region node map. Also computes the total number of nodes in region. The region are numbered starting from offset+1. If mode == 0 then regionNodalNumbers is array with mapping from global numbering to local region numbering. The i-th value contains the corresponding local region number (or zero, if global number is not in region). If mode == 1 then regionNodalNumbers is array with mapping from local to global numbering. The i-th value contains the corresponding global node number.
Reimplemented from oofem::VTKBaseExportModule.
Definition at line 227 of file vtkxmlperiodicexportmodule.C.
References oofem::FloatArray::at(), oofem::IntArray::at(), oofem::Element_local, elemNodes, oofem::ExportRegion::getMapG2L(), oofem::ExportRegion::getMapL2G(), oofem::Domain::giveElement(), oofem::Set::giveElementList(), oofem::Element::giveLocation(), oofem::Element::giveNode(), oofem::FEMComponent::giveNumber(), oofem::Domain::giveNumberOfDofManagers(), oofem::Element::giveNumberOfNodes(), oofem::Element::giveParallelMode(), oofem::IntArray::giveSize(), oofem::Element::isActivated(), oofem::VTKBaseExportModule::isElementComposite(), locationMap, periodicMap, oofem::Element::recalculateCoordinates(), regionToUniqueMap, oofem::IntArray::resize(), oofem::IntArray::resizeWithValues(), oofem::ExportRegion::setNumberOfCells(), oofem::ExportRegion::setNumberOfNodes(), uniqueNodeTable, and oofem::IntArray::zero().
Referenced by setupVTKPiece().
|
overridevirtual |
Reimplemented from oofem::VTKBaseExportModule.
Definition at line 102 of file vtkxmlperiodicexportmodule.C.
References oofem::FloatArray::at(), oofem::IntArray::at(), oofem::VTKXMLExportModule::cellVarsToExport, oofem::Element_local, oofem::ExportModule::emodel, oofem::VTKBaseExportModule::exportCellVars(), exportIntVars(), exportPrimaryVars(), oofem::ExportRegion::getMapG2L(), oofem::ExportRegion::getMapL2G(), oofem::VTKBaseExportModule::giveCellType(), oofem::DofManager::giveCoordinates(), oofem::Domain::giveElement(), oofem::VTKBaseExportModule::giveElementCell(), oofem::Set::giveElementList(), oofem::Element::giveLocation(), oofem::Domain::giveNode(), oofem::Element::giveNode(), oofem::FEMComponent::giveNumber(), oofem::ExportRegion::giveNumberOfCells(), oofem::Domain::giveNumberOfDofManagers(), oofem::ExportRegion::giveNumberOfNodes(), oofem::Element::giveParallelMode(), oofem::IntArray::giveSize(), oofem::VTKXMLExportModule::giveSmoother(), initRegionNodeNumbering(), oofem::VTKXMLExportModule::internalVarsToExport, oofem::Element::isActivated(), oofem::VTKBaseExportModule::isElementComposite(), oofem::VTKXMLExportModule::primaryVarsToExport, oofem::VTKXMLExportModule::primVarSmoother, regionToUniqueMap, oofem::IntArray::resize(), oofem::ExportRegion::setCellType(), oofem::ExportRegion::setConnectivity(), oofem::ExportRegion::setNodeCoords(), oofem::ExportRegion::setNumberOfCells(), oofem::ExportRegion::setNumberOfNodes(), oofem::ExportRegion::setOffset(), oofem::VTKXMLExportModule::smoother, uniqueNodeTable, and oofem::FloatArray::zero().
|
protected |
Definition at line 62 of file vtkxmlperiodicexportmodule.h.
|
protected |
Definition at line 63 of file vtkxmlperiodicexportmodule.h.
Referenced by initRegionNodeNumbering().
|
protected |
Definition at line 61 of file vtkxmlperiodicexportmodule.h.
Referenced by exportPrimaryVars(), and initRegionNodeNumbering().
|
protected |
Definition at line 60 of file vtkxmlperiodicexportmodule.h.
Referenced by exportIntVars(), exportPrimaryVars(), and initRegionNodeNumbering().
|
protected |
Definition at line 60 of file vtkxmlperiodicexportmodule.h.
Referenced by exportIntVars(), exportPrimaryVars(), initRegionNodeNumbering(), and setupVTKPiece().
|
protected |
Definition at line 59 of file vtkxmlperiodicexportmodule.h.
Referenced by initRegionNodeNumbering(), and setupVTKPiece().