dune-grid 2.9.0
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Dune::GmshReaderParser< GridType > Class Template Reference

dimension independent parts for GmshReaderParser More...

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

Public Member Functions

 GmshReaderParser (Dune::GridFactory< GridType > &_factory, bool v, bool i)
 
std::vector< int > & boundaryIdMap ()
 
std::vector< int > & elementIndexMap ()
 
void read (const std::string &f)
 
void pass1HandleElement (FILE *file, const int elm_type, std::map< int, unsigned int > &renumber, const std::vector< GlobalVector > &nodes)
 Process one element during the first pass through the list of all elements. More...
 
template<class E , class V , class V2 >
void boundarysegment_insert (const V &, const E &, const V2 &)
 
template<class E , class V >
void boundarysegment_insert (const std::vector< FieldVector< double, 3 > > &nodes, const E &elementDofs, const V &vertices)
 
virtual void pass2HandleElement (FILE *file, const int elm_type, std::map< int, unsigned int > &renumber, const std::vector< GlobalVector > &nodes, const int physical_entity)
 Process one element during the second pass through the list of all elements. More...
 

Protected Types

typedef FieldVector< double, dimWorldGlobalVector
 

Protected Member Functions

void readfile (FILE *file, int cnt, const char *format, void *t1, void *t2=0, void *t3=0, void *t4=0, void *t5=0, void *t6=0, void *t7=0, void *t8=0, void *t9=0, void *t10=0)
 
void skipline (FILE *file)
 

Protected Attributes

Dune::GridFactory< GridType > & factory
 
bool verbose
 
bool insert_boundary_segments
 
unsigned int number_of_real_vertices
 
int boundary_element_count
 
int element_count
 
char buf [512]
 
std::string fileName
 
std::vector< int > boundary_id_to_physical_entity
 
std::vector< int > element_index_to_physical_entity
 

Static Protected Attributes

static const int dim = GridType::dimension
 
static const int dimWorld = GridType::dimensionworld
 

Detailed Description

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

dimension independent parts for GmshReaderParser

Member Typedef Documentation

◆ GlobalVector

template<typename GridType >
typedef FieldVector< double, dimWorld > Dune::GmshReaderParser< GridType >::GlobalVector
protected

Constructor & Destructor Documentation

◆ GmshReaderParser()

template<typename GridType >
Dune::GmshReaderParser< GridType >::GmshReaderParser ( Dune::GridFactory< GridType > &  _factory,
bool  v,
bool  i 
)
inline

Member Function Documentation

◆ boundaryIdMap()

template<typename GridType >
std::vector< int > & Dune::GmshReaderParser< GridType >::boundaryIdMap ( )
inline

◆ boundarysegment_insert() [1/2]

template<typename GridType >
template<class E , class V >
void Dune::GmshReaderParser< GridType >::boundarysegment_insert ( const std::vector< FieldVector< double, 3 > > &  nodes,
const E &  elementDofs,
const V &  vertices 
)
inline

◆ boundarysegment_insert() [2/2]

template<typename GridType >
template<class E , class V , class V2 >
void Dune::GmshReaderParser< GridType >::boundarysegment_insert ( const V &  ,
const E &  ,
const V2 &   
)
inline

◆ elementIndexMap()

template<typename GridType >
std::vector< int > & Dune::GmshReaderParser< GridType >::elementIndexMap ( )
inline

◆ pass1HandleElement()

template<typename GridType >
void Dune::GmshReaderParser< GridType >::pass1HandleElement ( FILE *  file,
const int  elm_type,
std::map< int, unsigned int > &  renumber,
const std::vector< GlobalVector > &  nodes 
)
inline

Process one element during the first pass through the list of all elements.

Mainly, the method inserts all vertices needed by the current element, unless they have been inserted already for a previous element.

◆ pass2HandleElement()

template<typename GridType >
virtual void Dune::GmshReaderParser< GridType >::pass2HandleElement ( FILE *  file,
const int  elm_type,
std::map< int, unsigned int > &  renumber,
const std::vector< GlobalVector > &  nodes,
const int  physical_entity 
)
inlinevirtual

Process one element during the second pass through the list of all elements.

This method actually inserts the element into the grid factory.

◆ read()

template<typename GridType >
void Dune::GmshReaderParser< GridType >::read ( const std::string &  f)
inline

◆ readfile()

template<typename GridType >
void Dune::GmshReaderParser< GridType >::readfile ( FILE *  file,
int  cnt,
const char *  format,
void *  t1,
void *  t2 = 0,
void *  t3 = 0,
void *  t4 = 0,
void *  t5 = 0,
void *  t6 = 0,
void *  t7 = 0,
void *  t8 = 0,
void *  t9 = 0,
void *  t10 = 0 
)
inlineprotected

◆ skipline()

template<typename GridType >
void Dune::GmshReaderParser< GridType >::skipline ( FILE *  file)
inlineprotected

Member Data Documentation

◆ boundary_element_count

template<typename GridType >
int Dune::GmshReaderParser< GridType >::boundary_element_count
protected

◆ boundary_id_to_physical_entity

template<typename GridType >
std::vector<int> Dune::GmshReaderParser< GridType >::boundary_id_to_physical_entity
protected

◆ buf

template<typename GridType >
char Dune::GmshReaderParser< GridType >::buf[512]
protected

◆ dim

template<typename GridType >
const int Dune::GmshReaderParser< GridType >::dim = GridType::dimension
staticprotected

◆ dimWorld

template<typename GridType >
const int Dune::GmshReaderParser< GridType >::dimWorld = GridType::dimensionworld
staticprotected

◆ element_count

template<typename GridType >
int Dune::GmshReaderParser< GridType >::element_count
protected

◆ element_index_to_physical_entity

template<typename GridType >
std::vector<int> Dune::GmshReaderParser< GridType >::element_index_to_physical_entity
protected

◆ factory

template<typename GridType >
Dune::GridFactory<GridType>& Dune::GmshReaderParser< GridType >::factory
protected

◆ fileName

template<typename GridType >
std::string Dune::GmshReaderParser< GridType >::fileName
protected

◆ insert_boundary_segments

template<typename GridType >
bool Dune::GmshReaderParser< GridType >::insert_boundary_segments
protected

◆ number_of_real_vertices

template<typename GridType >
unsigned int Dune::GmshReaderParser< GridType >::number_of_real_vertices
protected

◆ verbose

template<typename GridType >
bool Dune::GmshReaderParser< GridType >::verbose
protected

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