dune-grid  3.0-git
Public Types | Static Public Member Functions | List of all members
Dune::GmshReader< GridType > Class Template Reference

Read Gmsh mesh file. More...

#include <dune/grid/io/file/gmshreader.hh>

Public Types

typedef GridType Grid
 

Static Public Member Functions

static Gridread (const std::string &fileName, bool verbose=true, bool insertBoundarySegments=true)
 
static Gridread (const std::string &fileName, std::vector< int > &boundarySegmentToPhysicalEntity, std::vector< int > &elementToPhysicalEntity, bool verbose=true, bool insertBoundarySegments=true)
 
static void read (Dune::GridFactory< Grid > &factory, const std::string &fileName, bool verbose=true, bool insertBoundarySegments=true)
 
static void read (Dune::GridFactory< Grid > &factory, const std::string &fileName, std::vector< int > &boundarySegmentToPhysicalEntity, std::vector< int > &elementToPhysicalEntity, bool verbose=true, bool insertBoundarySegments=true)
 

Detailed Description

template<typename GridType>
class Dune::GmshReader< GridType >

Read Gmsh mesh file.

Read a .msh file generated using Gmsh and construct a grid using the grid factory interface.

The file format used by gmsh can hold grids that are more general than the simplex grids that the gmsh grid generator is able to construct. We try to read as many grids as possible, as long as they are valid files. You can test this by checking whether gmsh will load the file and display its content.

All grids in a gmsh file live in three-dimensional Euclidean space. If the world dimension of the grid type that you are reading the file into is less than three, the remaining coordinates are simply ignored.

Member Typedef Documentation

◆ Grid

template<typename GridType >
typedef GridType Dune::GmshReader< GridType >::Grid

Member Function Documentation

◆ read() [1/4]

template<typename GridType >
static Grid* Dune::GmshReader< GridType >::read ( const std::string &  fileName,
bool  verbose = true,
bool  insertBoundarySegments = true 
)
inlinestatic
Todo:
doc me

◆ read() [2/4]

template<typename GridType >
static Grid* Dune::GmshReader< GridType >::read ( const std::string &  fileName,
std::vector< int > &  boundarySegmentToPhysicalEntity,
std::vector< int > &  elementToPhysicalEntity,
bool  verbose = true,
bool  insertBoundarySegments = true 
)
inlinestatic
Todo:
doc me

◆ read() [3/4]

template<typename GridType >
static void Dune::GmshReader< GridType >::read ( Dune::GridFactory< Grid > &  factory,
const std::string &  fileName,
bool  verbose = true,
bool  insertBoundarySegments = true 
)
inlinestatic
Todo:
doc me

◆ read() [4/4]

template<typename GridType >
static void Dune::GmshReader< GridType >::read ( Dune::GridFactory< Grid > &  factory,
const std::string &  fileName,
std::vector< int > &  boundarySegmentToPhysicalEntity,
std::vector< int > &  elementToPhysicalEntity,
bool  verbose = true,
bool  insertBoundarySegments = true 
)
inlinestatic
Todo:
doc me

The documentation for this class was generated from the following file: