NeoPZ
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TPZVTKGraphMesh Class Reference

To export a graphical mesh to VTK environment. Post processing. More...

#include <pzvtkmesh.h>

Inheritance diagram for TPZVTKGraphMesh:
[legend]
Collaboration diagram for TPZVTKGraphMesh:
[legend]

Public Member Functions

 TPZVTKGraphMesh (TPZCompMesh *cmesh, int dimension, const std::set< int > &matids, const TPZVec< std::string > &scalnames, const TPZVec< std::string > &vecnames, const TPZVec< std::string > &tensnames)
 Constructor for graphical mesh using VTK format with tensor variables. More...
 
 TPZVTKGraphMesh (TPZCompMesh *cmesh, int dim, TPZVTKGraphMesh *graph)
 Copy constructor for graphical mesh using VTK format. More...
 
virtual void DrawMesh (int numcases)
 Draw the graphical mesh. More...
 
virtual void DrawNodes ()
 Draw the graphical nodes information. More...
 
virtual void DrawConnectivity (MElementType type)
 Draw the connectivity information. More...
 
virtual void DrawSolution (int step, REAL time)
 Draw solution depending on the resolution. More...
 
virtual void DrawSolution (TPZBlock< REAL > &Sol)
 
virtual void DrawSolution (char *var=0)
 
- Public Member Functions inherited from TPZGraphMesh
 TPZGraphMesh (TPZCompMesh *cm, int dimension, const std::set< int > &matids, const TPZVec< std::string > &scalarnames, const TPZVec< std::string > &vecnames)
 Constructor for graphical mesh. More...
 
 TPZGraphMesh (TPZCompMesh *cm, int dimension, const std::set< int > &matids, const TPZVec< std::string > &scalarnames, const TPZVec< std::string > &vecnames, const TPZVec< std::string > &tensornames)
 Constructor with tensorial names for graphical mesh. More...
 
virtual ~TPZGraphMesh (void)
 Default destructor. More...
 
int ClassId () const override
 Define the class id associated with the class. More...
 
void Read (TPZStream &buf, void *context) override
 read objects from the stream More...
 
void Write (TPZStream &buf, int withclassid) const override
 Writes this object to the TPZStream buffer. Include the classid if withclassid = true. More...
 
TPZGraphNodeFindNode (int64_t side)
 Find graphical node (connect) More...
 
TPZGraphElFindElement (int64_t sid)
 
TPZAdmChunkVector< TPZGraphEl * > & ElementList ()
 Vector of the graphical elements. More...
 
TPZAdmChunkVector< TPZGraphNode > & NodeMap ()
 Vector of the graphical nodes. More...
 
int64_t NPoints ()
 Number of points to drawing, depending on the resolution. More...
 
int64_t NElements (MElementType type)
 
int Res ()
 Get the resolution of the draw. More...
 
virtual void SetCompMesh (TPZCompMesh *mesh, const std::set< int > &matids)
 Sets the computational mesh to associate. More...
 
TPZDrawStyle Style ()
 Gets the style of the graphical mesh. More...
 
virtual void SetFileName (const std::string &filename)
 Sets the filename to output of graph. More...
 
std::ostream & Out ()
 
void SetResolution (int res)
 Sets resolution. More...
 
void Print (std::ostream &out)
 Print object attributes. More...
 
void SetNames (const TPZVec< std::string > &scalarnames, const TPZVec< std::string > &vecnames)
 Set names with scalar and vector variable names. More...
 
void SetNames (const TPZVec< std::string > &scalarnames, const TPZVec< std::string > &vecnames, const TPZVec< std::string > &tensornames)
 Set names with scalar, vectorial and tensorial variable names. More...
 
void SetMaterialIds (const std::set< int > &matids)
 Set material ids. More...
 
std::set< int > MaterialIds ()
 Get material ids. More...
 
bool Material_Is_PostProcessed (int matid)
 Return a directive if the material id is being postprocessed. More...
 
virtual TPZCompMeshMesh ()
 Return of the material for graphical mesh. More...
 
TPZVec< std::string > ScalarNames ()
 Return scalar variable names. More...
 
TPZVec< std::string > VecNames ()
 Return vectorial variable names. More...
 
TPZVec< std::string > TensorNames ()
 Return tensorial variable names. More...
 
- Public Member Functions inherited from TPZSavable
 TPZSavable ()
 
virtual ~TPZSavable ()
 
virtual std::list< std::map< std::string, uint64_t > > VersionHistory () const
 
virtual std::pair< std::string, uint64_t > Version () const
 
virtual bool Compare (TPZSavable *copy, bool override=false)
 Compares the object for identity with the object pointed to, eventually copy the object. More...
 
virtual bool Compare (TPZSavable *copy, bool override=false) const
 Compares the object for identity with the object pointed to, eventually copy the object. More...
 
- Public Member Functions inherited from TPZRegisterClassId
template<typename T >
 TPZRegisterClassId (int(T::*)() const)
 
 TPZRegisterClassId ()=default
 

Protected Member Functions

virtual void SequenceNodes ()
 
- Protected Member Functions inherited from TPZGraphMesh
TPZCompElFindFirstInterpolatedElement (TPZCompMesh *mesh, int dimension)
 

Protected Attributes

int fNumCases
 
int fNumSteps
 
- Protected Attributes inherited from TPZGraphMesh
TPZCompMeshfCompMesh
 Computational mesh associated. More...
 
TPZGeoMeshfGeoMesh
 Geometric mesh related. More...
 
std::set< int > fMaterialIds
 Set of material ids being post-processed. More...
 
int fDimension
 Dimension of the graphical mesh. More...
 
TPZAdmChunkVector< TPZGraphEl * > fElementList
 Vector of graphical elements. More...
 
TPZAdmChunkVector< TPZGraphNodefNodeMap
 Vector of graphical nodes (connects) More...
 
int fResolution
 Resolution of the graphical object. More...
 
TPZDrawStyle fStyle
 Style of the graphical file. More...
 
std::ofstream fOutFile
 
std::string fFileName
 
TPZVec< std::string > fScalarNames
 Vectors of the variables names (scalar, vectorial, and tensorial) More...
 
TPZVec< std::string > fVecNames
 
TPZVec< std::string > fTensorNames
 

Additional Inherited Members

- Static Public Member Functions inherited from TPZSavable
static std::set< TPZRestoreClassBase * > & RestoreClassSet ()
 This static function guarantees that the gMap object is available when needed. More...
 
static std::map< int, TPZRestore_t > & ClassIdMap ()
 This static function guarantees that the gMap object is available when needed. More...
 
static std::pair< std::string, uint64_t > NeoPZVersion ()
 
static void Register (TPZRestoreClassBase *restore)
 
static void RegisterClassId (int classid, TPZRestore_t fun)
 
static TPZSavableCreateInstance (const int &classId)
 

Detailed Description

To export a graphical mesh to VTK environment. Post processing.

Definition at line 19 of file pzvtkmesh.h.

Constructor & Destructor Documentation

◆ TPZVTKGraphMesh() [1/2]

TPZVTKGraphMesh::TPZVTKGraphMesh ( TPZCompMesh cmesh,
int  dimension,
const std::set< int > &  matids,
const TPZVec< std::string > &  scalnames,
const TPZVec< std::string > &  vecnames,
const TPZVec< std::string > &  tensnames 
)

Constructor for graphical mesh using VTK format with tensor variables.

Definition at line 23 of file pzvtkmesh.cpp.

References EVTKStyle, fNumCases, fNumSteps, TPZGraphMesh::fScalarNames, TPZGraphMesh::fStyle, TPZGraphMesh::fTensorNames, and TPZGraphMesh::fVecNames.

◆ TPZVTKGraphMesh() [2/2]

TPZVTKGraphMesh::TPZVTKGraphMesh ( TPZCompMesh cmesh,
int  dim,
TPZVTKGraphMesh graph 
)

Copy constructor for graphical mesh using VTK format.

Definition at line 16 of file pzvtkmesh.cpp.

References EVTKStyle, fNumCases, fNumSteps, and TPZGraphMesh::fStyle.

Member Function Documentation

◆ DrawConnectivity()

void TPZVTKGraphMesh::DrawConnectivity ( MElementType  type)
virtual

◆ DrawMesh()

void TPZVTKGraphMesh::DrawMesh ( int  numcases)
virtual

Draw the graphical mesh.

Reimplemented from TPZGraphMesh.

Definition at line 32 of file pzvtkmesh.cpp.

References fNumCases, and fNumSteps.

Referenced by TPZNonLinMultGridAnalysis::SmoothingSolution2().

◆ DrawNodes()

void TPZVTKGraphMesh::DrawNodes ( )
virtual

Draw the graphical nodes information.

Reimplemented from TPZGraphMesh.

Definition at line 153 of file pzvtkmesh.cpp.

References TPZGraphNode::DrawCo(), EVTKStyle, TPZGraphMesh::fNodeMap, TPZGraphMesh::fOutFile, TPZChunkVector< T, EXP >::NElements(), and TPZGraphNode::NPoints().

Referenced by DrawSolution().

◆ DrawSolution() [1/3]

void TPZVTKGraphMesh::DrawSolution ( int  step,
REAL  time 
)
virtual

◆ DrawSolution() [2/3]

void TPZVTKGraphMesh::DrawSolution ( TPZBlock< REAL > &  Sol)
virtual

Definition at line 207 of file pzvtkmesh.cpp.

◆ DrawSolution() [3/3]

void TPZVTKGraphMesh::DrawSolution ( char *  var = 0)
virtual

Definition at line 211 of file pzvtkmesh.cpp.

◆ SequenceNodes()

void TPZVTKGraphMesh::SequenceNodes ( )
protectedvirtual

Reimplemented from TPZGraphMesh.

Definition at line 149 of file pzvtkmesh.cpp.

References TPZGraphMesh::SequenceNodes().

Member Data Documentation

◆ fNumCases

int TPZVTKGraphMesh::fNumCases
protected

Definition at line 37 of file pzvtkmesh.h.

Referenced by DrawMesh(), and TPZVTKGraphMesh().

◆ fNumSteps

int TPZVTKGraphMesh::fNumSteps
protected

Definition at line 38 of file pzvtkmesh.h.

Referenced by DrawMesh(), DrawSolution(), and TPZVTKGraphMesh().


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