10#ifndef INCG1fd687af60b74bf6aad50d509ecbc4da
11#define INCG1fd687af60b74bf6aad50d509ecbc4da
13#include <lf/mesh/mesh.h>
72 std::vector<std::pair<size_type, Eigen::Vector3d>>
Nodes;
263 std::string::const_iterator end,
264 const std::string& version,
bool is_binary,
265 int size_t_size,
int one,
266 const std::string& filename);
283struct fmt::formatter<
lf::io::GMshFileV2::ElementType> : ostream_formatter {};
Represents a reference element with all its properties.
lf::base::size_type size_type
Mesh input (from file) and output (in various formats) facilities.
GMshFileV2 readGmshFileV2(std::string::const_iterator begin, std::string::const_iterator end, const std::string &version, bool is_binary, int size_t_size, int one, const std::string &filename)
Read a *.msh file from disk and copy it's contents into the MshFile Datastructure.
int DimOf(GMshFileV2::ElementType et)
Dimension of the GmshElement type.
base::RefEl RefElOf(GMshFileV2::ElementType et)
Reference element type of a GmshElementType.
std::ostream & operator<<(std::ostream &stream, GMshFileV2::ElementType et)
Output the element type onto the console:
size_type NumNodes(GMshFileV2::ElementType et)
Number of nodes that this element type has.
Represents a mesh volume/surface/line/point.
std::vector< int > MeshPartitions
The id's of the partition to which this element belongs.
ElementType Type
The element type.
int ElementaryEntityNr
The number of the elementary entity to which this element belongs (second element tag in ....
int PhysicalEntityNr
The Number of the Physical Entity to which this element belongs (this is the first tag written in the...
std::vector< size_type > NodeNumbers
Contains the node numbers that make up this element (depends on the element type to)
Describes how 2 elementary entities are identified with each to represent periodic boundaries.
int ElementarySlaveNr
The elementary entity number (.
int Dimension
Dimension of the elementary entities that are coupled to each other.
std::vector< std::pair< size_type, size_type > > NodeMapping
A List of nodes that pairs nodes on the slave side with nodes on the master side.
int ElementaryMasterNr
The elementary entity number (.
Represents a physical entity as defined in gmsh. In GMSH a Physical entity is created through one of ...
int Number
The identification number of the Physical Entity This number is assigned to a physical entity as the ...
std::string Name
The name of this Physical Entity (provided.
A representation of a .msh file (V2) in a c++ data structure.
std::string VersionNumber
The version of GMSH of the msh file, equals usually 2.2.
int DoubleSize
how many bytes is a double?
std::vector< PhysicalEntity > PhysicalEntities
A list of all Physical entities that have a name.
std::vector< Element > Elements
A list of all Elements (Points,Lines,Surfaces or Volumes) present in the *.msh file.
ElementType
All possible element types (see GMSH documentation)
std::vector< std::pair< size_type, Eigen::Vector3d > > Nodes
The nodes that make up this mesh.
mesh::Mesh::size_type size_type
bool IsBinary
Is it a binary file?
std::vector< PeriodicEntity > Periodic
static const std::vector< ElementType > AllElementTypes
Contains a list of all element types that are possible.