19 #ifndef _GMSHMESHREADER_H
20 #define _GMSHMESHREADER_H
43 <<
"Missing section " << EI_Section::qval <<
" in the GMSH input file: " << EI_GMSHFile::qval);
45 <<
"Element " << EI_ElementId::val <<
"in the GMSH input file " << EI_GMSHFile::qval
46 <<
" is of the unsupported type " << EI_ElementType::val );
48 <<
"Zero number of nodes, " << EI_Position::val <<
".\n");
50 <<
"Zero number of elements, " << EI_Position::val <<
".\n");
52 <<
"At least two element tags have to be defined for element with id=" << EI_ElementId::val <<
", " << EI_Position::val <<
".\n");
Dedicated class for storing path to input and output files.
void read_element_data(ElementDataCacheBase &data_cache, MeshDataHeader header) override
GmshMeshReader(const FilePath &file_name)
TYPEDEF_ERR_INFO(EI_GMSHFile, std::string)
TYPEDEF_ERR_INFO(EI_Position, std::string)
TYPEDEF_ERR_INFO(EI_ElementType, int)
DECLARE_EXCEPTION(ExcMissingSection,<< "Missing section "<< EI_Section::qval<< " in the GMSH input file: "<< EI_GMSHFile::qval)
void read_data_header(MeshDataHeader &head)
MeshDataHeader & find_header(HeaderQuery &header_query) override
void read_nodes(Mesh *mesh)
void read_elements(Mesh *mesh)
virtual ~GmshMeshReader()
DECLARE_EXCEPTION(ExcUnsupportedType,<< "Element "<< EI_ElementId::val<< "in the GMSH input file "<< EI_GMSHFile::qval<< " is of the unsupported type "<< EI_ElementType::val)
std::map< std::string, std::vector< MeshDataHeader > > HeaderTable
TYPEDEF_ERR_INFO(EI_Section, std::string)
HeaderTable header_table_
Table with data of ElementData headers.
void make_header_table() override
TYPEDEF_ERR_INFO(EI_ElementId, int)
DECLARE_EXCEPTION(ExcZeroElements,<< "Zero number of elements, "<< EI_Position::val<< ".\n")
DECLARE_EXCEPTION(ExcZeroNodes,<< "Zero number of nodes, "<< EI_Position::val<< ".\n")
void read_physical_names(Mesh *mesh) override
DECLARE_EXCEPTION(ExcTooManyElementTags,<< "At least two element tags have to be defined for element with id="<< EI_ElementId::val<< ", "<< EI_Position::val<< ".\n")