22 std::ifstream mesh(meshfile);
24 int64_t nnodes,number;
30 for(i=0;i<nnodes;i++){
32 mesh >> coord[0] >> coord[1] >> coord[2];
42 int64_t numb,fgt1,nmat,fgt2,nvert,no1,no2,no3,no4;
43 for(i=0;i<numelem;i++){
44 mesh >> numb >> fgt1 >> nmat >> fgt2 >> nvert;
46 nodes[0] = Indexes[no1-1];
47 nodes[1] = Indexes[no2-1];
56 nodes[2] = Indexes[no3-1];
62 nodes[2] = Indexes[no3-1];
63 nodes[3] = Indexes[no4-1];
73 std::ifstream mesh(meshfile);
75 int64_t nnodes,number;
81 for(i=0;i<nnodes;i++){
83 mesh >> coord[0] >> coord[1] >> coord[2];
93 int64_t numb,fgt1,nmat,fgt2,nvert,no1,no2,no3,no4;
94 for(i=0;i<numelem;i++){
95 mesh >> numb >> fgt1 >> nmat >> fgt2 >> nvert;
129 std::ifstream mesh(meshfile);
131 int64_t nnodes,number;
137 for(i=0;i<nnodes;i++){
139 mesh >> coord[0] >> coord[1] >> coord[2];
149 int64_t numb,fgt1,nmat,fgt2,nvert;
151 for(i=0;i<numelem;i++){
152 mesh >> numb >> fgt1 >> nmat >> fgt2 >> nvert;
153 for(i=0;i<nvert;i++) mesh >> nos[i];
155 for(i=0;i<nvert;i++) nodes[i] = Indexes[nos[i]-1];
159 }
else if(nvert == 4 && fgt1 != 4){
161 for(i=0;i<nvert;i++) nodes[i] = Indexes[nos[i]-1];
164 }
else if(nvert == 4 && fgt1 == 4){
166 for(i=0;i<nvert;i++) nodes[i] = Indexes[nos[i]-1];
169 }
else if(nvert == 8){
171 for(i=0;i<nvert;i++) nodes[i] = Indexes[nos[i]-1];
182 std::ifstream mesh(meshfile);
191 mesh >> pos >> no1 >> no2 >> no3;
195 while( index < pos ){
208 std::cout <<
"TPZGMSHReadMesh::PrintGeoMesh the geometric mesh of the NeoPZ was printed\n";
void ReadMesh2D2(char *meshfile, TPZStack< TPZGeoEl *> &elemlist, TPZStack< TPZGeoElSide > &elembclist)
Contains declaration of TPZGeoElSide class which represents an element and its side, and TPZGeoElSideIndex class which represents an TPZGeoElSide index.
virtual TPZGeoEl * CreateGeoElement(MElementType type, TPZVec< int64_t > &cornerindexes, int matid, int64_t &index, int reftype=1)
Generic method for creating a geometric element. Putting this method centrally facilitates the modifi...
TPZGeoMesh * fGeoMesh
defined geometric mesh in the NeoPZ
Templated vector implementation.
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...
Contains the TPZGMSHReadMesh class which manages the manipulation of geometric meshes.
virtual void Resize(const int64_t newsize, const T &object)
Resizes the vector object reallocating the necessary storage, copying the existing objects to the new...
void Resize(const int newsize)
Increase the size of the chunk vector.
Contains declaration of TPZMesh class which defines a geometrical mesh and contains a corresponding l...
void PrintGeoMesh(std::ostream &out=std::cout)
void Push(const T object)
Pushes a copy of the object on the stack.
virtual void Print(std::ostream &out=std::cout) const
Print the information of the grid to an ostream.
TPZAdmChunkVector< TPZGeoNode > & NodeVec()
void ReadMesh3D(char *meshfile, TPZStack< TPZGeoEl *> &elemlist, TPZStack< TPZGeoElSide > &elembclist)
This class implements a geometric mesh for the pz environment. Geometry.
This class implements a stack object. Utility.
void ReadMesh2D(const char *meshfile, TPZStack< TPZGeoEl *> &elemlist, TPZStack< TPZGeoElSide > &elembclist)