NeoPZ
pzreadmeshhr.h
Go to the documentation of this file.
1 
5 /*****************************************************************************
6  * O contedo desse arquivo �de propriedade do LabMeC-DES-FEC-UNICAMP e do
7  * CENPES-Petrobras.
8  * O uso de qualquer parte ou do todo est�condicionado �expressa autoriza�o
9  * dos propriet�ios.
10  *****************************************************************************/
11 
12 #ifndef PZREADMESHHR_H
13 #define PZREADMESHHR_H
14 
15 #include "pzreadmesh.h"
16 #include <string>
17 
18 class TPZGeoMesh;
19 class TPZCompMesh;
20 
31 class TPZReadMeshHR : public TPZReadMesh
32 {
33 public:
38  TPZReadMeshHR(const char* inFile);
39 
41  virtual ~TPZReadMeshHR();
42 
44  virtual TPZCompMesh* ReadMesh();
46 
47 protected:
48 
54  virtual void ReadNodes (int64_t NNos, TPZGeoMesh & GMesh);
55 
61  virtual void ReadElements (int64_t NElem, TPZGeoMesh & GMesh);
62 
68  virtual void ReadMaterials (int NMat, TPZCompMesh & CMesh);
69 
75  virtual void ReadBCs (int NMat, TPZCompMesh & CMesh);
76 
81  void removeComents (std::string &NumberOf);
82 
84  int64_t GetNodeIndex(TPZGeoMesh *GMesh,int64_t Id);
85 };
86 
87 #endif
virtual void ReadBCs(int NMat, TPZCompMesh &CMesh)
Read the boundary conditions.
virtual ~TPZReadMeshHR()
Default Destructor.
TPZReadMeshHR(const char *inFile)
Default Constructor.
virtual void ReadNodes(int64_t NNos, TPZGeoMesh &GMesh)
Read the nodes data.
Virtual class that implements the interface for build a computational mesh from a file...
Definition: pzreadmesh.h:24
virtual void ReadElements(int64_t NElem, TPZGeoMesh &GMesh)
Read the elements data.
void removeComents(std::string &NumberOf)
Remove the coments and return the integer parameter of the first line without comment token...
TPZGeoMesh * readGeoMesh()
virtual TPZCompMesh * ReadMesh()
Read and return the mesh from a given file.
virtual void ReadMaterials(int NMat, TPZCompMesh &CMesh)
Read the material data.
int64_t GetNodeIndex(TPZGeoMesh *GMesh, int64_t Id)
Translate a node id to a node index.
This class implements a geometric mesh for the pz environment. Geometry.
Definition: pzgmesh.h:48
Implements computational mesh. Computational Mesh.
Definition: pzcmesh.h:47
Reads a mesh in a "human readable" format, i.e. in text format and with coments. Getting Data...
Definition: pzreadmeshhr.h:31
Contains the TPZReadMesh class which implements the interface for build a computational mesh from a f...