89 int numNodes, numRegionEl;
95 if ( numNodes > 0 && numRegionEl > 0 ) {
98 for (
int inode = 1; inode <= numNodes; inode++ ) {
99 coords = d->
giveNode( mapL2G.
at(inode) )->giveCoordinates();
113 for (
int ei = 1; ei <= elems.
giveSize(); ei++ ) {
114 int elNum = elems.
at(ei);
132 if ( !elem->
isCast(tStep) ) {
146 int numElNodes = cellNodes.
giveSize();
148 for (
int i = 1; i <= numElNodes; i++ ) {
149 connectivity.
at(i) = mapG2L.
at( cellNodes.
at(i) );
156 offset += numElNodes;
163 this->
exportIntVars(vtkPiece, mapG2L, mapL2G, region, tStep);
178 int ®ionSingleCells,
190 int elementNode,
node;
194 regionG2LNodalNumbers.
resize(nnodes);
195 regionG2LNodalNumbers.
zero();
197 regionSingleCells = 0;
200 for (
int ie = 1; ie <= elements.
giveSize(); ie++ ) {
201 int ielem = elements.
at(ie);
220 if ( !element->
isCast(tStep) ) {
233 for ( elementNode = 1; elementNode <= elemNodes; elementNode++ ) {
235 if ( regionG2LNodalNumbers.
at(node) == 0 ) {
239 regionG2LNodalNumbers.
at(node) = 1;
245 regionL2GNodalNumbers.
resize(regionDofMans);
247 for (
int i = 1; i <= nnodes; i++ ) {
248 if ( regionG2LNodalNumbers.
at(i) ) {
249 regionG2LNodalNumbers.
at(i) = currOffset++;
250 regionL2GNodalNumbers.
at( regionG2LNodalNumbers.
at(i) ) = i;
#define _IFT_QuasicontinuumVTKXMLExportModule_ExportDeactivatedElements
virtual bool isActivated(TimeStep *tStep)
void exportExternalForces(VTKPiece &piece, IntArray &mapG2L, IntArray &mapL2G, int region, TimeStep *tStep)
Export external forces.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
bool isElementComposite(Element *elem)
void exportCellVars(VTKPiece &piece, const IntArray &elems, TimeStep *tStep)
virtual int initRegionNodeNumbering(IntArray &mapG2L, IntArray &mapL2G, int ®ionDofMans, int &totalcells, Domain *domain, TimeStep *tStep, int reg)
Assembles the region node map.
int giveNumberOfDofManagers() const
Returns number of dof managers in domain.
int giveCellType(Element *element)
Returns corresponding element cell_type.
void setNumberOfNodes(int numNodes)
void zero()
Sets all component to zero.
virtual ~QuasicontinuumVTKXMLExportModule()
Destructor.
EngngModel * giveEngngModel()
Returns engineering model to which receiver is associated.
Abstract base class for all finite elements.
virtual void setupVTKPiece(VTKPiece &vtkPiece, TimeStep *tStep, int region)
void exportIntVars(VTKPiece &piece, IntArray &mapG2L, IntArray &mapL2G, int ireg, TimeStep *tStep)
Export internal variables by smoothing.
Class implementing an array of integers.
int & at(int i)
Coefficient access function.
void setNumberOfCells(int numCells)
int deactivatedElementsExportFlag
void setNodeCoords(int nodeNum, FloatArray &coords)
virtual int giveNumberOfNodes() const
Returns number of nodes of receiver.
void giveElementCell(IntArray &answer, Element *elem)
Returns the element cell geometry.
void setCellType(int cellNum, int type)
Element * giveElement(int n)
Service for accessing particular domain fe element.
EngngModel * emodel
Problem pointer.
Set * giveRegionSet(int i)
Returns element set.
void resize(int n)
Checks size of receiver towards requested bounds.
Represents VTK (Visualization Toolkit) export module.
Class representing vector of real numbers.
elementParallelMode giveParallelMode() const
Return elementParallelMode of receiver.
Element is local, there are no contributions from other domains to this element.
IRResultType
Type defining the return values of InputRecord reading operations.
NodalRecoveryModel * giveSmoother()
Returns the internal smoother.
void setOffset(int cellNum, int offset)
virtual bool isElementActivated(int elemNum)
void exportPrimaryVars(VTKPiece &piece, IntArray &mapG2L, IntArray &mapL2G, int region, TimeStep *tStep)
Export primary variables.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
void setConnectivity(int cellNum, IntArray &nodes)
Abstract base class representing the "problem" under consideration.
Node * giveNode(int n)
Service for accessing particular domain node.
the oofem namespace is to define a context or scope in which all oofem names are defined.
Domain * giveDomain(int n)
Service for accessing particular problem domain.
virtual bool isCast(TimeStep *tStep)
Node * giveNode(int i) const
Returns reference to the i-th node of element.
Class representing solution step.
const IntArray & giveElementList()
Returns list of elements within set.
REGISTER_ExportModule(ErrorCheckingExportModule)