LehrFEM++ 1.0.0
A simple Finite Element Library for teaching
|
A representation of a .msh file (V2) in a c++ data structure. More...
#include <lf/io/gmsh_file_v2.h>
Classes | |
struct | Element |
Represents a mesh volume/surface/line/point. More... | |
struct | PeriodicEntity |
Describes how 2 elementary entities are identified with each to represent periodic boundaries. More... | |
struct | PhysicalEntity |
Represents a physical entity as defined in gmsh. In GMSH a Physical entity is created through one of the commands Physical Point , Physical Line , Physical Surface or Physical Volume and represents a collection of points, lines, surfaces or volumes. More... | |
Public Types | |
enum class | ElementType : int { EDGE2 = 1 , TRIA3 = 2 , QUAD4 = 3 , TET4 = 4 , HEX8 = 5 , PRISM6 = 6 , PYRAMID5 = 7 , EDGE3 = 8 , TRIA6 = 9 , QUAD9 = 10 , TET10 = 11 , HEX27 = 12 , PRISM18 , PYRAMID14 , POINT = 15 , QUAD8 = 16 , HEX20 = 17 , PRISM15 = 18 , PYRAMID13 = 19 , TRIA9 = 20 , TRIA10 = 21 , TRIA12 = 22 , TRIA15 = 23 , TRIA15_5 = 24 , TRIA21 = 25 , EDGE4 = 26 , EDGE5 = 27 , EDGE6 = 28 , TET20 = 29 , TET35 = 30 , TET56 = 31 , HEX64 = 92 , HEX125 = 93 } |
All possible element types (see GMSH documentation) More... | |
using | size_type = mesh::Mesh::size_type |
Public Attributes | |
std::string | VersionNumber |
The version of GMSH of the msh file, equals usually 2.2. | |
bool | IsBinary = false |
Is it a binary file? | |
int | DoubleSize = 64 |
how many bytes is a double? | |
std::vector< PhysicalEntity > | PhysicalEntities |
A list of all Physical entities that have a name. | |
std::vector< std::pair< size_type, Eigen::Vector3d > > | Nodes |
The nodes that make up this mesh. | |
std::vector< Element > | Elements |
A list of all Elements (Points,Lines,Surfaces or Volumes) present in the *.msh file. | |
std::vector< PeriodicEntity > | Periodic |
Static Public Attributes | |
static const std::vector< ElementType > | AllElementTypes |
Contains a list of all element types that are possible. | |
A representation of a .msh file (V2) in a c++ data structure.
Definition at line 18 of file gmsh_file_v2.h.
Definition at line 19 of file gmsh_file_v2.h.
|
strong |
All possible element types (see GMSH documentation)
Definition at line 75 of file gmsh_file_v2.h.
|
static |
Contains a list of all element types that are possible.
Definition at line 144 of file gmsh_file_v2.h.
int lf::io::GMshFileV2::DoubleSize = 64 |
how many bytes is a double?
Definition at line 25 of file gmsh_file_v2.h.
Referenced by lf::io::operator<<(), and lf::io::readGmshFileV2().
std::vector<Element> lf::io::GMshFileV2::Elements |
A list of all Elements (Points,Lines,Surfaces or Volumes) present in the *.msh file.
Definition at line 196 of file gmsh_file_v2.h.
Referenced by lf::io::GmshReader::InitGmshFile(), and lf::io::operator<<().
bool lf::io::GMshFileV2::IsBinary = false |
Is it a binary file?
Definition at line 23 of file gmsh_file_v2.h.
Referenced by lf::io::operator<<(), and lf::io::readGmshFileV2().
std::vector<std::pair<size_type, Eigen::Vector3d> > lf::io::GMshFileV2::Nodes |
The nodes that make up this mesh.
node[i].first
contains the node number assigned by GMSH. They are not necessarily dense or ordered in sequence.node[i].second
contains the 3D coordinates of this point, for 2D mesh the z-component is always zero. Definition at line 72 of file gmsh_file_v2.h.
Referenced by lf::io::GmshReader::InitGmshFile(), and lf::io::operator<<().
std::vector<PeriodicEntity> lf::io::GMshFileV2::Periodic |
A List of Periodic definitions identifying elementary entities on the boundary with each other.
Definition at line 228 of file gmsh_file_v2.h.
Referenced by lf::io::GmshReader::InitGmshFile(), and lf::io::operator<<().
std::vector<PhysicalEntity> lf::io::GMshFileV2::PhysicalEntities |
A list of all Physical entities that have a name.
Definition at line 62 of file gmsh_file_v2.h.
Referenced by lf::io::GmshReader::InitGmshFile(), and lf::io::operator<<().
std::string lf::io::GMshFileV2::VersionNumber |
The version of GMSH of the msh file, equals usually 2.2.
Definition at line 21 of file gmsh_file_v2.h.
Referenced by lf::io::operator<<(), and lf::io::readGmshFileV2().