9 #ifndef TPZGmshReader_h 10 #define TPZGmshReader_h 37 fMaterial(copy.fMaterial) {
121 int m_n_hexahedron_els = 0;
124 int m_n_tetrahedron_els = 0;
127 int m_n_prism_els = 0;
130 int m_n_pyramid_els = 0;
133 int m_n_quadrilateral_els = 0;
136 int m_n_triangle_els = 0;
139 int m_n_line_els = 0;
142 int m_n_point_els = 0;
162 void SetCharacteristiclength(REAL length);
165 void SetFormatVersion(std::string format_version);
168 void PrintPartitionSummary(std::ostream & out);
175 void InsertElement(
TPZGeoMesh * gmesh,
int & physical_identifier,
int & el_type,
int & el_identifier, std::vector<int> & node_identifiers);
177 int GetNumberofNodes(
int & el_type);
185 bool InsertElement(
TPZGeoMesh * gmesh, std::ifstream & line);
189 return m_dim_physical_tag_and_name;
194 m_dim_physical_tag_and_name = dim_physical_tag_and_name;
199 m_dim_name_and_physical_tag = dim_name_and_physical_tag;
205 return m_dim_name_and_physical_tag;
210 m_dim_name_and_physical_tag = dim_name_and_physical_tag;
215 return m_entity_index;
220 return m_n_hexahedron_els;
225 return m_n_tetrahedron_els;
230 return m_n_prism_els;
235 return m_n_pyramid_els;
240 return m_n_quadrilateral_els;
245 return m_n_triangle_els;
255 return m_n_point_els;
int m_n_physical_curves
Number of curves with physical tag.
TPZManVector< std::map< int, std::vector< int > >, 4 > m_dim_entity_tag_and_physical_tag
Data structure of both: physical entities and names indexed by dimension.
int NQuadrilaterals()
Return the number of quadrilaterals created.
Implements a vector class which allows to use external storage provided by the user. Utility.
MaterialDataS & operator=(const MaterialDataS ©)
int NPrisms()
Return the number of prisms created.
MaterialDataS(const MaterialDataS ©)
int m_n_curves
Number of curves.
void SetDimNamePhysical(TPZManVector< std::map< std::string, int >, 4 > &dim_name_and_physical_tag)
Get the structure dim - name - physical tag.
TPZManVector< std::map< int, std::string >, 4 > m_dim_physical_tag_and_name
Structure of both: physical entities and names indexed by dimension.
TPZManVector< std::map< std::string, int >, 4 > & GetDimNamePhysical()
Get the structure dim - name - physical tag.
TPZVec< int64_t > m_entity_index
Entity index to which the element belongs.
int m_n_volumes
Number of volumes.
TPZManVector< std::map< int, std::string >, 4 > & GetDimPhysicalTagName()
Get the structure dim - physical tag - name.
int NTriangles()
Return the number of triangles created.
int m_n_physical_points
Number of points with physical tag.
int NHexahedra()
Return the number of hexahedra created.
TPZManVector< std::map< std::string, int >, 4 > m_dim_name_and_physical_tag
Structure of both: names and physical id indexed by dimension.
int NPoints()
Return the number of line created.
Contains declaration of TPZMesh class which defines a geometrical mesh and contains a corresponding l...
int m_dimension
Geometry dimension.
int NLines()
Return the number of line created.
void GetDimNamePhysical(TPZVec< std::map< std::string, int >> &dim_name_and_physical_tag)
Get the structure dim - name - physical tag.
int m_n_physical_surfaces
Number of surfaces with physical tag.
int m_n_surfaces
Number of surfaces.
std::string m_format_version
gmsh file format version (supported versions = {3,4})
REAL m_characteristic_lentgh
Characteristic length to apply a Scale affine transformation.
Implement the interface between TPZGeoMesh and the files produced by Gmsh (version 3...
void SetDimPhysicalTagName(TPZManVector< std::map< int, std::string >, 4 > &dim_physical_tag_and_name)
Set the structure dim - physical tag - name.
int m_n_points
Number of points.
This class implements a geometric mesh for the pz environment. Geometry.
TPZManVector< std::map< int, int >, 4 > m_dim_physical_tag_and_physical_tag
Structure of both: physical id and user defined physical tag indexed by dimension.
int NPyramids()
Return the number of pyramids created.
int Dimension()
Return the dimension of the mesh.
TPZVec< int64_t > & EntityIndex()
int NTetrahera()
Return the number of tetrahedra created.
int m_n_physical_volumes
Number of volumes with physical tag.
TPZStack< std::pair< int,std::string > > fMaterial