OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
#include <quasicontinuumvtkxmlexportmodule.h>
Public Member Functions | |
QuasicontinuumVTKXMLExportModule (int n, EngngModel *e) | |
Constructor. Creates empty Output Manager. By default all components are selected. More... | |
virtual | ~QuasicontinuumVTKXMLExportModule () |
Destructor. More... | |
virtual IRResultType | initializeFrom (InputRecord *ir) |
Initializes receiver according to object description stored in input record. More... | |
Public Member Functions inherited from oofem::VTKXMLExportModule | |
VTKXMLExportModule (int n, EngngModel *e) | |
Constructor. Creates empty Output Manager. By default all components are selected. More... | |
virtual | ~VTKXMLExportModule () |
Destructor. 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 * | giveClassName () const |
Returns class name of the receiver. More... | |
void | exportPointDataHeader (FILE *fileStream, TimeStep *tStep) |
Prints point data header. More... | |
void | giveDataHeaders (std::string &pointHeader, std::string &cellHeader) |
NodalRecoveryModel * | giveSmoother () |
Returns the internal smoother. More... | |
NodalRecoveryModel * | givePrimVarSmoother () |
Returns the smoother for primary variables (nodal averaging). 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 Member Functions | |
virtual void | setupVTKPiece (VTKPiece &vtkPiece, TimeStep *tStep, int region) |
virtual int | initRegionNodeNumbering (IntArray &mapG2L, IntArray &mapL2G, int ®ionDofMans, int &totalcells, Domain *domain, TimeStep *tStep, int reg) |
Assembles the region node map. More... | |
Protected Member Functions inherited from oofem::VTKXMLExportModule | |
std::string | giveOutputFileName (TimeStep *tStep) |
Returns the filename for the given time step. More... | |
FILE * | giveOutputStream (TimeStep *tStep) |
Returns the output stream for given solution step. More... | |
int | giveCellType (Element *element) |
Returns corresponding element cell_type. More... | |
int | giveNumberOfNodesPerCell (int cellType) |
Returns number of nodes corresponding to cell type. More... | |
void | giveElementCell (IntArray &answer, Element *elem) |
Returns the element cell geometry. More... | |
void | exportIntVars (VTKPiece &piece, IntArray &mapG2L, IntArray &mapL2G, int ireg, TimeStep *tStep) |
Export internal variables by smoothing. More... | |
void | exportPrimaryVars (VTKPiece &piece, IntArray &mapG2L, IntArray &mapL2G, int region, TimeStep *tStep) |
Export primary variables. More... | |
void | exportExternalForces (VTKPiece &piece, IntArray &mapG2L, IntArray &mapL2G, int region, TimeStep *tStep) |
Export external forces. More... | |
void | getNodalVariableFromPrimaryField (FloatArray &answer, DofManager *dman, TimeStep *tStep, UnknownType type, int ireg) |
void | writeIntVars (VTKPiece &vtkPiece) |
void | writeXFEMVars (VTKPiece &vtkPiece) |
void | writePrimaryVars (VTKPiece &vtkPiece) |
void | writeCellVars (VTKPiece &vtkPiece) |
void | writeExternalForces (VTKPiece &vtkPiece) |
bool | writeVTKPiece (VTKPiece &vtkPiece, TimeStep *tStep) |
void | exportXFEMVarAs (XFEMStateType xfemstype, IntArray &mapG2L, IntArray &mapL2G, int regionDofMans, int ireg, TimeStep *tStep, EnrichmentItem *ei) |
void | getNodalVariableFromIS (FloatArray &answer, Node *node, TimeStep *tStep, InternalStateType type, int ireg) |
void | getNodalVariableFromXFEMST (FloatArray &answer, Node *node, TimeStep *tStep, XFEMStateType xfemstype, int ireg, EnrichmentItem *ei) |
void | exportCellVars (VTKPiece &piece, const IntArray &elems, TimeStep *tStep) |
void | getCellVariableFromIS (FloatArray &answer, Element *el, InternalStateType type, TimeStep *tStep) |
void | exportIntVarsInGpAs (IntArray valIDs, TimeStep *tStep) |
Exports given internal variables directly in integration points (raw data, no smoothing) More... | |
void | writeVTKCollection () |
Writes a VTK collection file where time step data is stored. More... | |
void | writeGPVTKCollection () |
Writes a VTK collection file for Gauss points. More... | |
void | writeVTKPointData (FloatArray &valueArray) |
void | writeVTKCellData (FloatArray &valueArray) |
bool | isElementComposite (Element *elem) |
void | exportCompositeElement (VTKPiece &vtkPiece, Element *el, TimeStep *tStep) |
Returns true if element geometry type is composite (not a single cell). More... | |
void | exportCompositeElement (std::vector< VTKPiece > &vtkPieces, Element *el, TimeStep *tStep) |
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 | |
int | deactivatedElementsExportFlag |
IntArray | internalVarsToExport |
List of InternalStateType values, identifying the selected vars for export. More... | |
IntArray | primaryVarsToExport |
List of primary unknowns to export. More... | |
IntArray | cellVarsToExport |
List of cell data to export. More... | |
Protected Attributes inherited from oofem::VTKXMLExportModule | |
IntArray | internalVarsToExport |
List of InternalStateType values, identifying the selected vars for export. More... | |
IntArray | primaryVarsToExport |
List of primary unknowns to export. More... | |
IntArray | externalForcesToExport |
List of primary unknowns to export. More... | |
IntArray | cellVarsToExport |
List of cell data to export. More... | |
IntArray | ipInternalVarsToExport |
List of internal variables to export directly in Integration Points (no smoothing to nodes) More... | |
NodalRecoveryModel::NodalRecoveryModelType | stype |
Smoother type. More... | |
NodalRecoveryModel * | smoother |
Smoother. More... | |
NodalRecoveryModel * | primVarSmoother |
Smoother for primary variables. More... | |
bool | particleExportFlag |
particle export flag More... | |
std::list< std::string > | pvdBuffer |
Buffer for earlier time steps exported to *.pvd file. More... | |
std::list< std::string > | gpPvdBuffer |
Buffer for earlier time steps with gauss points exported to *.gp.pvd file. 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... | |
Additional Inherited Members | |
Static Public Member Functions inherited from oofem::VTKXMLExportModule | |
static void | computeIPAverage (FloatArray &answer, IntegrationRule *iRule, Element *elem, InternalStateType isType, TimeStep *tStep) |
Computes a cell average of an InternalStateType varible based on the weights in the integrationpoints (=> volume/area/length average) More... | |
Public Attributes inherited from oofem::VTKXMLExportModule | |
FILE * | fileStream |
VTKPiece | defaultVTKPiece |
std::vector< VTKPiece > | defaultVTKPieces |
Static Protected Member Functions inherited from oofem::VTKXMLExportModule | |
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. More... | |
Static Protected Attributes inherited from oofem::VTKXMLExportModule | |
static IntArray | redToFull |
Map from Voigt to full tensor. More... | |
Definition at line 63 of file quasicontinuumvtkxmlexportmodule.h.
oofem::QuasicontinuumVTKXMLExportModule::QuasicontinuumVTKXMLExportModule | ( | int | n, |
EngngModel * | e | ||
) |
Constructor. Creates empty Output Manager. By default all components are selected.
|
virtual |
Destructor.
Definition at line 60 of file quasicontinuumvtkxmlexportmodule.C.
|
virtual |
Initializes receiver according to object description stored in input record.
Reimplemented from oofem::VTKXMLExportModule.
Definition at line 65 of file quasicontinuumvtkxmlexportmodule.C.
References _IFT_QuasicontinuumVTKXMLExportModule_ExportDeactivatedElements, deactivatedElementsExportFlag, oofem::VTKXMLExportModule::initializeFrom(), and IR_GIVE_OPTIONAL_FIELD.
|
protectedvirtual |
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::VTKXMLExportModule.
Definition at line 175 of file quasicontinuumvtkxmlexportmodule.C.
References oofem::IntArray::at(), deactivatedElementsExportFlag, oofem::Element_local, oofem::Domain::giveElement(), oofem::Set::giveElementList(), oofem::Domain::giveEngngModel(), oofem::Element::giveNode(), oofem::FEMComponent::giveNumber(), oofem::Domain::giveNumberOfDofManagers(), oofem::Element::giveNumberOfNodes(), oofem::Element::giveParallelMode(), oofem::ExportModule::giveRegionSet(), oofem::IntArray::giveSize(), oofem::Element::isActivated(), oofem::Element::isCast(), oofem::EngngModel::isElementActivated(), oofem::VTKXMLExportModule::isElementComposite(), oofem::IntArray::resize(), and oofem::IntArray::zero().
Referenced by setupVTKPiece().
|
protectedvirtual |
Reimplemented from oofem::VTKXMLExportModule.
Definition at line 78 of file quasicontinuumvtkxmlexportmodule.C.
References oofem::IntArray::at(), deactivatedElementsExportFlag, oofem::Element_local, oofem::ExportModule::emodel, oofem::VTKXMLExportModule::exportCellVars(), oofem::VTKXMLExportModule::exportExternalForces(), oofem::VTKXMLExportModule::exportIntVars(), oofem::VTKXMLExportModule::exportPrimaryVars(), oofem::VTKXMLExportModule::giveCellType(), oofem::EngngModel::giveDomain(), oofem::Domain::giveElement(), oofem::VTKXMLExportModule::giveElementCell(), oofem::Set::giveElementList(), oofem::Domain::giveNode(), oofem::Element::giveParallelMode(), oofem::ExportModule::giveRegionSet(), oofem::IntArray::giveSize(), oofem::VTKXMLExportModule::giveSmoother(), initRegionNodeNumbering(), oofem::Element::isActivated(), oofem::Element::isCast(), oofem::EngngModel::isElementActivated(), oofem::VTKXMLExportModule::isElementComposite(), oofem::VTKPiece::setCellType(), oofem::VTKPiece::setConnectivity(), oofem::VTKPiece::setNodeCoords(), oofem::VTKPiece::setNumberOfCells(), oofem::VTKPiece::setNumberOfNodes(), and oofem::VTKPiece::setOffset().
|
protected |
List of cell data to export.
Definition at line 73 of file quasicontinuumvtkxmlexportmodule.h.
|
protected |
Definition at line 66 of file quasicontinuumvtkxmlexportmodule.h.
Referenced by initializeFrom(), initRegionNodeNumbering(), and setupVTKPiece().
|
protected |
List of InternalStateType values, identifying the selected vars for export.
Definition at line 69 of file quasicontinuumvtkxmlexportmodule.h.
|
protected |
List of primary unknowns to export.
Definition at line 71 of file quasicontinuumvtkxmlexportmodule.h.