NeoPZ
Static Public Member Functions | List of all members
TPZVTKGeoMesh Class Reference

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

#include <TPZVTKGeoMesh.h>

Static Public Member Functions

static void PrintGMeshVTK (TPZGeoMesh *gmesh, std::ofstream &file, bool matColor=true)
 Default constructor for graphical mesh with VTK format. More...
 
static void PrintGMeshVTK (TPZAutoPointer< TPZGeoMesh > gmesh, std::ofstream &file, bool matColor=true)
 Generate an output of all geomesh to VTK. More...
 
static void PrintCMeshVTK (TPZCompMesh *cmesh, std::ofstream &file, bool matColor=true)
 Generate an output of all geometric elements that have a computational counterpart to VTK. More...
 
static void PrintCMeshVTK (TPZGeoMesh *gmesh, std::ofstream &file, bool matColor=true)
 Generate an output of all geometric elements that have a computational counterpart to VTK. More...
 
static void PrintGMeshVTK (TPZGeoMesh *gmesh, std::ofstream &file, TPZVec< int > &elData)
 Generate an output of all geomesh to VTK, associating to each one the given data. More...
 
static void PrintGMeshVTK (TPZGeoMesh *gmesh, std::ofstream &file, TPZVec< int64_t > &elData)
 Generate an output of all geomesh to VTK, associating to each one the given data. More...
 
static void PrintGMeshVTK (TPZGeoMesh *gmesh, std::ofstream &file, TPZVec< REAL > &elData)
 Generate an output of all geomesh to VTK, associating to each one the given data. More...
 
static void PrintCMeshVTK (TPZCompMesh *cmesh, std::ofstream &file, TPZVec< REAL > &elData, std::string dataName)
 Generate an output of all geometric elements that have a computational counterpart to VTK. More...
 
static void PrintGMeshVTK (TPZGeoMesh *gmesh, char *filename, TPZChunkVector< int > &elData)
 Generate an output of all geomesh to VTK, associating to each one the given data (int), creates a file with filename given. More...
 
static void PrintGMeshVTK (TPZGeoMesh *gmesh, char *filename, TPZVec< REAL > &elData)
 Generate an output of all geomesh to VTK, associating to each one the given data (REAL), creates a file with filename given. More...
 
static void PrintGMeshVTK (TPZGeoMesh *gmesh, char *filename, TPZVec< TPZVec< REAL > > &elData)
 Generate an output of all geomesh to VTK, associating to each one the given vector data as several substructures, creates a file with filename given. More...
 
static void PrintGMeshVTK (TPZGeoMesh *gmesh, const char *filename, int var)
 Generate an output of all geomesh to VTK, associating to each one the given data. Print the values of the variable var. More...
 
static void PrintGMeshVTKneighbour_material (TPZGeoMesh *gmesh, std::ofstream &file, int neighMaterial, bool matColor=false)
 Based on a given geomesh, just the elements that have an neighbour with a given material id will be exported to an VTK file. More...
 
static void PrintGMeshVTKneighbourhood (TPZGeoMesh *gmesh, int64_t elIndex, std::ofstream &file)
 Print the elements that surround a givel geoel. More...
 
static void PrintGMeshVTK (TPZGeoMesh *gmesh, std::set< int64_t > &elIndex, std::ofstream &file)
 Print the given elements. More...
 
static void SetMaterialVTK (TPZGeoEl *gel, int mat)
 
static void PrintGMeshVTKmy_material (TPZGeoMesh *gmesh, std::ofstream &file, std::set< int > myMaterial, bool matColor=true)
 Based on a given geomesh, just the elements that have the given material id will be exported to an VTK file. More...
 
static int GetVTK_ElType (TPZGeoEl *gel)
 Get type of the geometric element. More...
 
static void PrintPOrderPoints (TPZCompMesh &cmesh, std::set< int > dimensions, std::ofstream &outfile)
 

Detailed Description

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

Author
Cesar Lucci
Since
16/08/10

Definition at line 21 of file TPZVTKGeoMesh.h.

Member Function Documentation

◆ GetVTK_ElType()

int TPZVTKGeoMesh::GetVTK_ElType ( TPZGeoEl gel)
static

◆ PrintCMeshVTK() [1/3]

void TPZVTKGeoMesh::PrintCMeshVTK ( TPZCompMesh cmesh,
std::ofstream &  file,
bool  matColor = true 
)
static

◆ PrintCMeshVTK() [2/3]

void TPZVTKGeoMesh::PrintCMeshVTK ( TPZGeoMesh gmesh,
std::ofstream &  file,
bool  matColor = true 
)
static

◆ PrintCMeshVTK() [3/3]

void TPZVTKGeoMesh::PrintCMeshVTK ( TPZCompMesh cmesh,
std::ofstream &  file,
TPZVec< REAL > &  elData,
std::string  dataName 
)
static

◆ PrintGMeshVTK() [1/10]

void TPZVTKGeoMesh::PrintGMeshVTK ( TPZGeoMesh gmesh,
std::ofstream &  file,
bool  matColor = true 
)
static

◆ PrintGMeshVTK() [2/10]

static void TPZVTKGeoMesh::PrintGMeshVTK ( TPZAutoPointer< TPZGeoMesh gmesh,
std::ofstream &  file,
bool  matColor = true 
)
inlinestatic

Generate an output of all geomesh to VTK.

Definition at line 34 of file TPZVTKGeoMesh.h.

References PrintCMeshVTK(), and PrintGMeshVTK().

◆ PrintGMeshVTK() [3/10]

void TPZVTKGeoMesh::PrintGMeshVTK ( TPZGeoMesh gmesh,
std::ofstream &  file,
TPZVec< int > &  elData 
)
static

◆ PrintGMeshVTK() [4/10]

static void TPZVTKGeoMesh::PrintGMeshVTK ( TPZGeoMesh gmesh,
std::ofstream &  file,
TPZVec< int64_t > &  elData 
)
inlinestatic

Generate an output of all geomesh to VTK, associating to each one the given data.

Definition at line 49 of file TPZVTKGeoMesh.h.

References stats::filename, GetVTK_ElType(), PrintCMeshVTK(), PrintGMeshVTK(), PrintGMeshVTKmy_material(), PrintGMeshVTKneighbour_material(), PrintGMeshVTKneighbourhood(), PrintPOrderPoints(), SetMaterialVTK(), and TPZVec< T >::size().

◆ PrintGMeshVTK() [5/10]

void TPZVTKGeoMesh::PrintGMeshVTK ( TPZGeoMesh gmesh,
std::ofstream &  file,
TPZVec< REAL > &  elData 
)
static

◆ PrintGMeshVTK() [6/10]

void TPZVTKGeoMesh::PrintGMeshVTK ( TPZGeoMesh gmesh,
char *  filename,
TPZChunkVector< int > &  elData 
)
static

Generate an output of all geomesh to VTK, associating to each one the given data (int), creates a file with filename given.

Definition at line 536 of file TPZVTKGeoMesh.cpp.

References TPZGeoNode::Coord(), DebugStop, TPZGeoMesh::ElementVec(), EOned, GetVTK_ElType(), TPZGeoEl::Index(), TPZGeoEl::IsLinearMapping(), MElementType_NNodes(), TPZGeoMesh::NElements(), TPZChunkVector< T, EXP >::NElements(), TPZGeoMesh::NNodes(), TPZGeoEl::NodeIndex(), TPZGeoMesh::NodeVec(), and TPZGeoEl::Type().

◆ PrintGMeshVTK() [7/10]

void TPZVTKGeoMesh::PrintGMeshVTK ( TPZGeoMesh gmesh,
char *  filename,
TPZVec< REAL > &  elData 
)
static

Generate an output of all geomesh to VTK, associating to each one the given data (REAL), creates a file with filename given.

Definition at line 634 of file TPZVTKGeoMesh.cpp.

References TPZGeoNode::Coord(), DebugStop, TPZGeoMesh::ElementVec(), EOned, GetVTK_ElType(), TPZGeoEl::Index(), TPZGeoEl::IsLinearMapping(), MElementType_NNodes(), TPZGeoMesh::NElements(), TPZVec< T >::NElements(), TPZGeoMesh::NNodes(), TPZGeoEl::NodeIndex(), TPZGeoMesh::NodeVec(), and TPZGeoEl::Type().

◆ PrintGMeshVTK() [8/10]

void TPZVTKGeoMesh::PrintGMeshVTK ( TPZGeoMesh gmesh,
char *  filename,
TPZVec< TPZVec< REAL > > &  elData 
)
static

Generate an output of all geomesh to VTK, associating to each one the given vector data as several substructures, creates a file with filename given.

Definition at line 729 of file TPZVTKGeoMesh.cpp.

References TPZGeoNode::Coord(), DebugStop, TPZGeoMesh::ElementVec(), EOned, GetVTK_ElType(), TPZGeoEl::Index(), TPZGeoEl::IsLinearMapping(), MElementType_NNodes(), TPZGeoMesh::NElements(), TPZGeoMesh::NNodes(), TPZGeoEl::NodeIndex(), TPZGeoMesh::NodeVec(), and TPZGeoEl::Type().

◆ PrintGMeshVTK() [9/10]

void TPZVTKGeoMesh::PrintGMeshVTK ( TPZGeoMesh gmesh,
const char *  filename,
int  var 
)
static

◆ PrintGMeshVTK() [10/10]

void TPZVTKGeoMesh::PrintGMeshVTK ( TPZGeoMesh gmesh,
std::set< int64_t > &  elIndex,
std::ofstream &  file 
)
static

◆ PrintGMeshVTKmy_material()

void TPZVTKGeoMesh::PrintGMeshVTKmy_material ( TPZGeoMesh gmesh,
std::ofstream &  file,
std::set< int >  myMaterial,
bool  matColor = true 
)
static

Based on a given geomesh, just the elements that have the given material id will be exported to an VTK file.

Based on a given geomesh, just the elements that have the given material id will be exported to an VTK file

Definition at line 1176 of file TPZVTKGeoMesh.cpp.

References TPZGeoEl::Dimension(), TPZGeoMesh::ElementVec(), GetVTK_ElType(), TPZGeoEl::HasSubElement(), TPZGeoEl::Index(), TPZGeoEl::MaterialId(), MElementType_NNodes(), TPZGeoMesh::NElements(), TPZGeoEl::NodeIndex(), TPZGeoMesh::NodeVec(), and TPZGeoEl::Type().

Referenced by PrintGMeshVTK(), and PrintGMeshVTKneighbourhood().

◆ PrintGMeshVTKneighbour_material()

void TPZVTKGeoMesh::PrintGMeshVTKneighbour_material ( TPZGeoMesh gmesh,
std::ofstream &  file,
int  neighMaterial,
bool  matColor = false 
)
static

Based on a given geomesh, just the elements that have an neighbour with a given material id will be exported to an VTK file.

Based on a given geomesh, just the elements that have an neighbour with a given material id will be exported to an VTK file

Definition at line 941 of file TPZVTKGeoMesh.cpp.

References TPZGeoMesh::ElementVec(), EOned, GetVTK_ElType(), TPZGeoEl::HasSubElement(), TPZGeoEl::Index(), TPZGeoEl::IsLinearMapping(), TPZGeoEl::MaterialId(), MElementType_NNodes(), TPZGeoElSide::Neighbour(), TPZGeoMesh::NElements(), TPZGeoEl::NodeIndex(), TPZGeoMesh::NodeVec(), TPZGeoEl::NSides(), and TPZGeoEl::Type().

Referenced by PrintGMeshVTK().

◆ PrintGMeshVTKneighbourhood()

void TPZVTKGeoMesh::PrintGMeshVTKneighbourhood ( TPZGeoMesh gmesh,
int64_t  elIndex,
std::ofstream &  file 
)
static

◆ PrintPOrderPoints()

void TPZVTKGeoMesh::PrintPOrderPoints ( TPZCompMesh cmesh,
std::set< int >  dimensions,
std::ofstream &  file 
)
static

◆ SetMaterialVTK()

void TPZVTKGeoMesh::SetMaterialVTK ( TPZGeoEl gel,
int  mat 
)
static

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