NeoPZ
TPZVTKGeoMesh.h
Go to the documentation of this file.
1 
6 #ifndef TPZVTKGEOMESHH
7 #define TPZVTKGEOMESHH
8 
9 #include <set>
10 #include "pzgeoel.h"
11 #include "pzcompel.h"
12 
13 class TPZCompMesh;
14 
22 {
23 
24 public:
26 // TPZVTKGeoMesh();
28 // ~TPZVTKGeoMesh();
29 
31  static void PrintGMeshVTK(TPZGeoMesh *gmesh, std::ofstream &file, bool matColor = true);
32 
34  static void PrintGMeshVTK(TPZAutoPointer<TPZGeoMesh> gmesh, std::ofstream &file, bool matColor = true)
35  {
36  PrintGMeshVTK(gmesh.operator->(), file, matColor );
37  }
38 
40  static void PrintCMeshVTK(TPZCompMesh *cmesh, std::ofstream &file, bool matColor = true);
41 
43  static void PrintCMeshVTK(TPZGeoMesh *gmesh, std::ofstream &file, bool matColor = true);
44 
46  static void PrintGMeshVTK(TPZGeoMesh *gmesh, std::ofstream &file, TPZVec<int> &elData);
47 
49  static void PrintGMeshVTK(TPZGeoMesh *gmesh, std::ofstream &file, TPZVec<int64_t> &elData)
50  {
51  TPZVec<int> eldata2(elData.size());
52  for(int64_t el=0; el<elData.size(); el++) eldata2[el] = elData[el];
53  PrintGMeshVTK(gmesh, file, eldata2);
54  }
55 
57  static void PrintGMeshVTK(TPZGeoMesh *gmesh, std::ofstream &file, TPZVec<REAL> &elData);
58 
60  static void PrintCMeshVTK(TPZCompMesh *cmesh, std::ofstream &file, TPZVec<REAL> &elData, std::string dataName);
61 
63  static void PrintGMeshVTK(TPZGeoMesh *gmesh, char *filename, TPZChunkVector<int> &elData);
64 
66  static void PrintGMeshVTK(TPZGeoMesh *gmesh, char *filename, TPZVec<REAL> &elData);
67 
69  static void PrintGMeshVTK(TPZGeoMesh *gmesh, char *filename, TPZVec<TPZVec<REAL> > &elData);
70 
72  static void PrintGMeshVTK(TPZGeoMesh *gmesh, const char *filename, int var);
73 
75  static void PrintGMeshVTKneighbour_material(TPZGeoMesh *gmesh, std::ofstream &file, int neighMaterial, bool matColor = false);
76 
78  static void PrintGMeshVTKneighbourhood(TPZGeoMesh * gmesh, int64_t elIndex, std::ofstream &file);
79 
81  static void PrintGMeshVTK(TPZGeoMesh * gmesh, std::set<int64_t> & elIndex, std::ofstream &file);
82 
83  static void SetMaterialVTK(TPZGeoEl * gel, int mat);
84 
86  static void PrintGMeshVTKmy_material(TPZGeoMesh *gmesh, std::ofstream &file, std::set<int> myMaterial, bool matColor = true);
87 
89  static int GetVTK_ElType(TPZGeoEl *gel);
90 
92  static void PrintPOrderPoints(TPZCompMesh &cmesh,std::set<int> dimensions, std::ofstream &outfile);
93 };
94 
95 #endif
static void PrintGMeshVTK(TPZAutoPointer< TPZGeoMesh > gmesh, std::ofstream &file, bool matColor=true)
Generate an output of all geomesh to VTK.
Definition: TPZVTKGeoMesh.h:34
filename
Definition: stats.py:82
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 VT...
Contains declaration of TPZCompEl class which defines the interface of a computational element...
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. ...
Definition: TPZVTKGeoMesh.h:49
int64_t size() const
Returns the number of elements of the vector.
Definition: pzvec.h:196
static void PrintPOrderPoints(TPZCompMesh &cmesh, std::set< int > dimensions, std::ofstream &outfile)
Defines the behaviour of all geometric elements. GeometryTPZGeoEl is the common denominator for all g...
Definition: pzgeoel.h:43
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...
static void PrintGMeshVTK(TPZGeoMesh *gmesh, std::ofstream &file, bool matColor=true)
Default constructor for graphical mesh with VTK format.
To export a graphical mesh to VTK environment to geometric mesh. Post processing. ...
Definition: TPZVTKGeoMesh.h:21
static void PrintGMeshVTKneighbourhood(TPZGeoMesh *gmesh, int64_t elIndex, std::ofstream &file)
Print the elements that surround a givel geoel.
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 e...
This class implements a geometric mesh for the pz environment. Geometry.
Definition: pzgmesh.h:48
Implements computational mesh. Computational Mesh.
Definition: pzcmesh.h:47
static void SetMaterialVTK(TPZGeoEl *gel, int mat)
static int GetVTK_ElType(TPZGeoEl *gel)
Get type of the geometric element.