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

#include <vtkxmlexportmodule.h>

+ Collaboration diagram for oofem::VTKPiece:

Public Member Functions

 VTKPiece ()
 
void clear ()
 
void setNumberOfNodes (int numNodes)
 
int giveNumberOfNodes ()
 
void setNumberOfCells (int numCells)
 
int giveNumberOfCells ()
 
void setConnectivity (int cellNum, IntArray &nodes)
 
IntArraygiveCellConnectivity (int cellNum)
 
void setCellType (int cellNum, int type)
 
int giveCellType (int cellNum)
 
void setOffset (int cellNum, int offset)
 
int giveCellOffset (int cellNum)
 
void setNodeCoords (int nodeNum, FloatArray &coords)
 
FloatArraygiveNodeCoords (int nodeNum)
 
void setNumberOfPrimaryVarsToExport (int numVars, int numNodes)
 
void setNumberOfLoadsToExport (int numVars, int numNodes)
 
void setNumberOfInternalVarsToExport (int numVars, int numNodes)
 
void setNumberOfInternalXFEMVarsToExport (int numVars, int numEnrichmentItems, int numNodes)
 
void setNumberOfCellVarsToExport (int numVars, int numCells)
 
void setPrimaryVarInNode (int varNum, int nodeNum, FloatArray valueArray)
 
FloatArraygivePrimaryVarInNode (int varNum, int nodeNum)
 
void setLoadInNode (int varNum, int nodeNum, FloatArray valueArray)
 
FloatArraygiveLoadInNode (int varNum, int nodeNum)
 
void setInternalVarInNode (int varNum, int nodeNum, FloatArray valueArray)
 
FloatArraygiveInternalVarInNode (int varNum, int nodeNum)
 
void setInternalXFEMVarInNode (int varNum, int eiNum, int nodeNum, FloatArray valueArray)
 
FloatArraygiveInternalXFEMVarInNode (int varNum, int eiNum, int nodeNum)
 
void setCellVar (int varNum, int cellNum, FloatArray valueArray)
 
FloatArraygiveCellVar (int field, int cellNum)
 

Private Attributes

int numCells
 
int numNodes
 
IntArray elCellTypes
 
IntArray elOffsets
 
std::vector< FloatArraynodeCoords
 
std::vector< IntArrayconnectivity
 
std::vector< std::vector< FloatArray > > nodeVars
 
std::vector< std::vector< FloatArray > > nodeLoads
 
std::vector< std::vector< FloatArray > > nodeVarsFromIS
 
std::vector< std::vector< std::vector< FloatArray > > > nodeVarsFromXFEMIS
 
std::vector< std::vector< FloatArray > > elVars
 

Detailed Description

Todo:
Rename this to something like "ExportPiece" and move it to a separate file (it doesn't actually contain anything VTK-specific).

Definition at line 71 of file vtkxmlexportmodule.h.

Constructor & Destructor Documentation

oofem::VTKPiece::VTKPiece ( )
inline

Definition at line 74 of file vtkxmlexportmodule.h.

References clear(), numCells, numNodes, and setNumberOfNodes().

Member Function Documentation

void oofem::VTKPiece::clear ( )
Todo:
Will this give a memory leak? / JB

Definition at line 2003 of file vtkxmlexportmodule.C.

Referenced by VTKPiece(), and oofem::VTKXMLExportModule::writeVTKPiece().

IntArray& oofem::VTKPiece::giveCellConnectivity ( int  cellNum)
inline

Definition at line 89 of file vtkxmlexportmodule.h.

References connectivity.

Referenced by oofem::VTKXMLExportModule::writeVTKPiece().

int oofem::VTKPiece::giveCellOffset ( int  cellNum)
inline
int oofem::VTKPiece::giveCellType ( int  cellNum)
inline

Definition at line 92 of file vtkxmlexportmodule.h.

References oofem::IntArray::at(), and elCellTypes.

Referenced by oofem::VTKXMLExportModule::writeVTKPiece().

FloatArray& oofem::VTKPiece::giveCellVar ( int  field,
int  cellNum 
)
inline

Definition at line 119 of file vtkxmlexportmodule.h.

References elVars.

Referenced by oofem::VTKXMLExportModule::writeCellVars().

FloatArray& oofem::VTKPiece::giveInternalVarInNode ( int  varNum,
int  nodeNum 
)
inline
FloatArray& oofem::VTKPiece::giveInternalXFEMVarInNode ( int  varNum,
int  eiNum,
int  nodeNum 
)
inline

Definition at line 116 of file vtkxmlexportmodule.h.

References nodeVarsFromXFEMIS, and setCellVar().

Referenced by oofem::VTKXMLExportModule::writeXFEMVars().

FloatArray& oofem::VTKPiece::giveLoadInNode ( int  varNum,
int  nodeNum 
)
inline
int oofem::VTKPiece::giveNumberOfCells ( )
inline
FloatArray& oofem::VTKPiece::givePrimaryVarInNode ( int  varNum,
int  nodeNum 
)
inline

Definition at line 107 of file vtkxmlexportmodule.h.

References nodeVars, and setLoadInNode().

Referenced by oofem::VTKXMLExportModule::writePrimaryVars().

void oofem::VTKPiece::setInternalVarInNode ( int  varNum,
int  nodeNum,
FloatArray  valueArray 
)
void oofem::VTKPiece::setInternalXFEMVarInNode ( int  varNum,
int  eiNum,
int  nodeNum,
FloatArray  valueArray 
)
void oofem::VTKPiece::setLoadInNode ( int  varNum,
int  nodeNum,
FloatArray  valueArray 
)
void oofem::VTKPiece::setNumberOfCellVarsToExport ( int  numVars,
int  numCells 
)
void oofem::VTKPiece::setNumberOfInternalVarsToExport ( int  numVars,
int  numNodes 
)
void oofem::VTKPiece::setNumberOfInternalXFEMVarsToExport ( int  numVars,
int  numEnrichmentItems,
int  numNodes 
)
void oofem::VTKPiece::setNumberOfLoadsToExport ( int  numVars,
int  numNodes 
)
void oofem::VTKPiece::setNumberOfPrimaryVarsToExport ( int  numVars,
int  numNodes 
)
void oofem::VTKPiece::setPrimaryVarInNode ( int  varNum,
int  nodeNum,
FloatArray  valueArray 
)

Member Data Documentation

std :: vector< IntArray > oofem::VTKPiece::connectivity
private

Definition at line 128 of file vtkxmlexportmodule.h.

Referenced by giveCellConnectivity().

IntArray oofem::VTKPiece::elCellTypes
private

Definition at line 125 of file vtkxmlexportmodule.h.

Referenced by giveCellType(), and setCellType().

IntArray oofem::VTKPiece::elOffsets
private

Definition at line 126 of file vtkxmlexportmodule.h.

Referenced by giveCellOffset(), and setOffset().

std :: vector< std :: vector< FloatArray > > oofem::VTKPiece::elVars
private

Definition at line 133 of file vtkxmlexportmodule.h.

Referenced by giveCellVar().

std :: vector< FloatArray > oofem::VTKPiece::nodeCoords
private

Definition at line 127 of file vtkxmlexportmodule.h.

Referenced by giveNodeCoords().

std :: vector< std :: vector< FloatArray > > oofem::VTKPiece::nodeLoads
private

Definition at line 130 of file vtkxmlexportmodule.h.

Referenced by giveLoadInNode().

std :: vector< std :: vector< FloatArray > > oofem::VTKPiece::nodeVars
private

Definition at line 129 of file vtkxmlexportmodule.h.

Referenced by givePrimaryVarInNode().

std :: vector< std :: vector< FloatArray > > oofem::VTKPiece::nodeVarsFromIS
private

Definition at line 131 of file vtkxmlexportmodule.h.

Referenced by giveInternalVarInNode().

std :: vector< std :: vector< std :: vector< FloatArray > > > oofem::VTKPiece::nodeVarsFromXFEMIS
private

Definition at line 132 of file vtkxmlexportmodule.h.

Referenced by giveInternalXFEMVarInNode().

int oofem::VTKPiece::numCells
private

Definition at line 123 of file vtkxmlexportmodule.h.

Referenced by giveNumberOfCells(), giveNumberOfNodes(), and VTKPiece().

int oofem::VTKPiece::numNodes
private

Definition at line 124 of file vtkxmlexportmodule.h.

Referenced by giveNumberOfNodes(), and VTKPiece().


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:43 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011