NeoPZ
TPZGMSHReadMesh.h
Go to the documentation of this file.
1 
6 #ifndef TPZGMSH_HPP
7 #define TPZGMSH_HPP
8 
9 class TPZGeoMesh;
10 class TPZGeoEl;
11 class TPZGeoElSide;
12 #include "pzstack.h"
13 #include <fstream>
29 
33  std::ifstream fInGSMHGeoMesh;
34 
39 
40 public:
41 
43  //TPZGMSHReadMesh(char *meshGMSH,TPZGeoMesh *gmesh);
44 
46 
47  /*
48  * @brief Readings of meshes 2D, the contour and volume elements are returned in
49  * elemlist and elembclist respectively
50  *
51  * For a rectangular mesh the CC are: \n
52  * 1: for it wing \n
53  * 2: left lateral contour \n
54  * 3: inferior contour \n
55  * 4: right lateral contour \n
56  * 5: superior contour \n
57  * the plan is with axle X for right and axle Y for top
58  */
59  void ReadMesh2D(const char *meshfile,TPZStack<TPZGeoEl *> &elemlist,TPZStack<TPZGeoElSide> &elembclist);
60  void ReadMesh2D2(char *meshfile,TPZStack<TPZGeoEl *> &elemlist,TPZStack<TPZGeoElSide> &elembclist);
61  /*
62  * @brief Readings of meshes 3D, the contour and volume elements are returned in
63  * elemlist and elembclist respectively
64  *
65  * For one mesh of tetrahedrons the CC are \n
66  * 1: for it wing \n
67  * 2: left lateral contour \n
68  * 3: inferior contour \n
69  * 4: right lateral contour \n
70  * 5: superior contour \n
71  * 6: posterior contour (Z = 0) \n
72  * 7: previous contour (Z > 0) \n
73  * taking as base that the domain is with axle X for right, axle Y for top and axle -Z for the deep one
74  */
75  void ReadMesh3D(char *meshfile,TPZStack<TPZGeoEl *> &elemlist,TPZStack<TPZGeoElSide> &elembclist);
76 
80  void Resequence(TPZStack<int64_t> &Indexes,const char *meshfile);
81 
82  /*
83  * @brief Prints in the exit defined for out the characteristics of the geometric mesh
84  * created by the NeoPZ based on the mesh generated for the GMSH
85  */
86  void PrintGeoMesh(std::ostream &out = std::cout);
87 
88 };
89 
90 #endif
void ReadMesh2D2(char *meshfile, TPZStack< TPZGeoEl *> &elemlist, TPZStack< TPZGeoElSide > &elembclist)
TPZGeoMesh * fGeoMesh
defined geometric mesh in the NeoPZ
void Resequence(TPZStack< int64_t > &Indexes, const char *meshfile)
Rearranges the nodal numeration given by the GMSH of sequential form.
TPZGMSHReadMesh(TPZGeoMesh *gmesh)
Utility class which represents an element with its side. The Geometric approximation classes Geometry...
Definition: pzgeoelside.h:83
std::ifstream fInGSMHGeoMesh
archive generated for the GMSH to be used (interpreted) inside of the NeoPZ
void PrintGeoMesh(std::ostream &out=std::cout)
Defines the behaviour of all geometric elements. GeometryTPZGeoEl is the common denominator for all g...
Definition: pzgeoel.h:43
A simple stack.
void ReadMesh3D(char *meshfile, TPZStack< TPZGeoEl *> &elemlist, TPZStack< TPZGeoElSide > &elembclist)
This class implements a geometric mesh for the pz environment. Geometry.
Definition: pzgmesh.h:48
This class implements a stack object. Utility.
Definition: pzcheckmesh.h:14
Manages the manipulation of geometric meshes. Getting Data generated by the GMSH in order to be used ...
void ReadMesh2D(const char *meshfile, TPZStack< TPZGeoEl *> &elemlist, TPZStack< TPZGeoElSide > &elembclist)