OGS
|
Classes | |
class | GMSHAdaptiveMeshDensity |
class | GMSHFixedMeshDensity |
class | GMSHInterface |
Reads and writes GMSH-files to and from OGS data structures. More... | |
class | GMSHLine |
class | GMSHLineLoop |
class | GMSHMeshDensityStrategy |
class | GMSHPoint |
class | GMSHPolygonTree |
Enumerations | |
enum class | MeshDensityAlgorithm { FixedMeshDensity , AdaptiveMeshDensity } |
Functions | |
static std::ostream & | operator<< (std::ostream &os, std::vector< GMSHPoint * > const &points) |
std::ostream & | operator<< (std::ostream &os, GMSHPoint const &p) |
bool | isGMSHMeshFile (const std::string &fname) |
void | readNodeIDs (std::ifstream &in, unsigned n_nodes, std::vector< unsigned > &node_ids, std::map< unsigned, unsigned > const &id_map) |
template<typename ElementType > | |
std::pair< MeshLib::Element *, int > | createElement (std::ifstream &in, std::vector< MeshLib::Node * > const &nodes, int const mat_id, std::map< unsigned, unsigned > const &id_map) |
template<> | |
std::pair< MeshLib::Element *, int > | createElement< MeshLib::Tri > (std::ifstream &in, std::vector< MeshLib::Node * > const &nodes, int const mat_id, std::map< unsigned, unsigned > const &id_map) |
template<> | |
std::pair< MeshLib::Element *, int > | createElement< MeshLib::Tet10 > (std::ifstream &in, std::vector< MeshLib::Node * > const &nodes, int const mat_id, std::map< unsigned, unsigned > const &id_map) |
template<> | |
std::pair< MeshLib::Element *, int > | createElement< MeshLib::Hex20 > (std::ifstream &in, std::vector< MeshLib::Node * > const &nodes, int const mat_id, std::map< unsigned, unsigned > const &id_map) |
template<> | |
std::pair< MeshLib::Element *, int > | createElement< MeshLib::Prism15 > (std::ifstream &in, std::vector< MeshLib::Node * > const &nodes, int const mat_id, std::map< unsigned, unsigned > const &id_map) |
template<> | |
std::pair< MeshLib::Element *, int > | createElement< MeshLib::Pyramid13 > (std::ifstream &in, std::vector< MeshLib::Node * > const &nodes, int const mat_id, std::map< unsigned, unsigned > const &id_map) |
std::pair< MeshLib::Element *, int > | readElement (std::ifstream &in, std::vector< MeshLib::Node * > const &nodes, std::map< unsigned, unsigned > const &id_map, bool const is_created_with_gmsh2) |
MeshLib::Mesh * | readGMSHMesh (std::string const &fname, bool const is_created_with_gmsh2) |
|
strong |
Enumerator | |
---|---|
FixedMeshDensity | set the parameter with a fixed value |
AdaptiveMeshDensity | computing the mesh density employing a QuadTree |
Definition at line 38 of file GMSHInterface.h.
std::pair< MeshLib::Element *, int > FileIO::GMSH::createElement | ( | std::ifstream & | in, |
std::vector< MeshLib::Node * > const & | nodes, | ||
int const | mat_id, | ||
std::map< unsigned, unsigned > const & | id_map ) |
Definition at line 76 of file GmshReader.cpp.
References readNodeIDs().
std::pair< MeshLib::Element *, int > FileIO::GMSH::createElement< MeshLib::Hex20 > | ( | std::ifstream & | in, |
std::vector< MeshLib::Node * > const & | nodes, | ||
int const | mat_id, | ||
std::map< unsigned, unsigned > const & | id_map ) |
Definition at line 76 of file GmshReader.cpp.
Referenced by readElement().
std::pair< MeshLib::Element *, int > FileIO::GMSH::createElement< MeshLib::Prism15 > | ( | std::ifstream & | in, |
std::vector< MeshLib::Node * > const & | nodes, | ||
int const | mat_id, | ||
std::map< unsigned, unsigned > const & | id_map ) |
Definition at line 76 of file GmshReader.cpp.
Referenced by readElement().
std::pair< MeshLib::Element *, int > FileIO::GMSH::createElement< MeshLib::Pyramid13 > | ( | std::ifstream & | in, |
std::vector< MeshLib::Node * > const & | nodes, | ||
int const | mat_id, | ||
std::map< unsigned, unsigned > const & | id_map ) |
Definition at line 76 of file GmshReader.cpp.
Referenced by readElement().
std::pair< MeshLib::Element *, int > FileIO::GMSH::createElement< MeshLib::Tet10 > | ( | std::ifstream & | in, |
std::vector< MeshLib::Node * > const & | nodes, | ||
int const | mat_id, | ||
std::map< unsigned, unsigned > const & | id_map ) |
Definition at line 76 of file GmshReader.cpp.
Referenced by readElement().
std::pair< MeshLib::Element *, int > FileIO::GMSH::createElement< MeshLib::Tri > | ( | std::ifstream & | in, |
std::vector< MeshLib::Node * > const & | nodes, | ||
int const | mat_id, | ||
std::map< unsigned, unsigned > const & | id_map ) |
Definition at line 76 of file GmshReader.cpp.
Referenced by readElement().
bool FileIO::GMSH::isGMSHMeshFile | ( | const std::string & | fname | ) |
checks if there is a GMSH mesh file header
fname | the file name of the mesh (including the path) |
Definition at line 37 of file GmshReader.cpp.
Referenced by MainWindow::loadFile().
std::ostream & FileIO::GMSH::operator<< | ( | std::ostream & | os, |
GMSHPoint const & | p ) |
overload the output operator for class GMSHPoint
Definition at line 41 of file GMSHPoint.cpp.
|
static |
Definition at line 37 of file GMSHInterface.cpp.
std::pair< MeshLib::Element *, int > FileIO::GMSH::readElement | ( | std::ifstream & | in, |
std::vector< MeshLib::Node * > const & | nodes, | ||
std::map< unsigned, unsigned > const & | id_map, | ||
bool const | is_created_with_gmsh2 ) |
Definition at line 185 of file GmshReader.cpp.
References createElement< MeshLib::Hex20 >(), createElement< MeshLib::Prism15 >(), createElement< MeshLib::Pyramid13 >(), createElement< MeshLib::Tet10 >(), createElement< MeshLib::Tri >(), and WARN().
Referenced by readGMSHMesh().
MeshLib::Mesh * FileIO::GMSH::readGMSHMesh | ( | std::string const & | fname, |
bool const | is_created_with_gmsh2 = false ) |
reads a mesh created by GMSH - this implementation is based on the former function GMSH2MSH
fname | the file name of the mesh (including the path) |
is_created_with_gmsh2 | An indicator for the mesh created by using Gmsh version 2. |
Definition at line 286 of file GmshReader.cpp.
References MeshLib::Cell, MeshToolsLib::ElementValueModification::condense(), MeshLib::Properties::createNewPropertyVector(), ERR(), BaseLib::extractBaseNameWithoutExtension(), MeshLib::Mesh::getProperties(), INFO(), MeshLib::Node, readElement(), and WARN().
Referenced by generateMesh(), MainWindow::loadFile(), and main().
void FileIO::GMSH::readNodeIDs | ( | std::ifstream & | in, |
unsigned | n_nodes, | ||
std::vector< unsigned > & | node_ids, | ||
std::map< unsigned, unsigned > const & | id_map ) |
Definition at line 63 of file GmshReader.cpp.
Referenced by createElement().