OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::QuasicontinuumVTKXMLExportModule Class Reference

#include <quasicontinuumvtkxmlexportmodule.h>

+ Inheritance diagram for oofem::QuasicontinuumVTKXMLExportModule:
+ Collaboration diagram for oofem::QuasicontinuumVTKXMLExportModule:

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)
 
NodalRecoveryModelgiveSmoother ()
 Returns the internal smoother. More...
 
NodalRecoveryModelgivePrimVarSmoother ()
 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 &regionDofMans, 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...
 
SetgiveRegionSet (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...
 
NodalRecoveryModelsmoother
 Smoother. More...
 
NodalRecoveryModelprimVarSmoother
 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...
 
EngngModelemodel
 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< Rangetsteps_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< VTKPiecedefaultVTKPieces
 
- 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...
 

Detailed Description

Definition at line 63 of file quasicontinuumvtkxmlexportmodule.h.

Constructor & Destructor Documentation

oofem::QuasicontinuumVTKXMLExportModule::QuasicontinuumVTKXMLExportModule ( int  n,
EngngModel e 
)

Constructor. Creates empty Output Manager. By default all components are selected.

oofem::QuasicontinuumVTKXMLExportModule::~QuasicontinuumVTKXMLExportModule ( )
virtual

Destructor.

Definition at line 60 of file quasicontinuumvtkxmlexportmodule.C.

Member Function Documentation

IRResultType oofem::QuasicontinuumVTKXMLExportModule::initializeFrom ( InputRecord ir)
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.

int oofem::QuasicontinuumVTKXMLExportModule::initRegionNodeNumbering ( IntArray mapG2L,
IntArray mapL2G,
int &  regionDofMans,
int &  totalcells,
Domain domain,
TimeStep tStep,
int  reg 
)
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().

Member Data Documentation

IntArray oofem::QuasicontinuumVTKXMLExportModule::cellVarsToExport
protected

List of cell data to export.

Definition at line 73 of file quasicontinuumvtkxmlexportmodule.h.

int oofem::QuasicontinuumVTKXMLExportModule::deactivatedElementsExportFlag
protected
IntArray oofem::QuasicontinuumVTKXMLExportModule::internalVarsToExport
protected

List of InternalStateType values, identifying the selected vars for export.

Definition at line 69 of file quasicontinuumvtkxmlexportmodule.h.

IntArray oofem::QuasicontinuumVTKXMLExportModule::primaryVarsToExport
protected

List of primary unknowns to export.

Definition at line 71 of file quasicontinuumvtkxmlexportmodule.h.


The documentation for this class was generated from the following files:

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:40 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011