dune-mmesh 1.4.1-git
Loading...
Searching...
No Matches
Dune::DGFGridFactory< MMesh< HostGrid, dim > > Struct Template Reference

#include <dune/mmesh/grid/dgfparser.hh>

Public Types

typedef MMesh< HostGrid, dimGrid
 
typedef MPIHelper::MPICommunicator MPICommunicatorType
 
typedef Grid::template Codim< 0 >::Entity Element
 
typedef Grid::template Codim< dimension >::Entity Vertex
 
typedef Dune::MMeshExplicitGridFactory< GridGridFactory
 

Public Member Functions

 DGFGridFactory (std::istream &input, MPICommunicatorType comm=MPIHelper::getCommunicator())
 DGFGridFactory for MMesh using std::istream.
 
 DGFGridFactory (const std::string &filename, MPICommunicatorType comm=MPIHelper::getCommunicator())
 DGFGridFactory for MMesh using filename.
 
Gridgrid () const
 return grid pointer
 
template<class Intersection >
bool wasInserted (const Intersection &intersection) const
 Returns if intersection was inserted.
 
template<class Intersection >
int boundaryId (const Intersection &intersection) const
 Return boundary id of intersection.
 
std::vector< double > & parameter (const Element &element)
 Returns dgf element parameters for given element.
 
std::vector< double > & parameter (const Vertex &vertex)
 Returns dgf vertex parameters for given vertex.
 
bool haveBoundaryParameters () const
 Returns true if boundary parameters found.
 
template<class GG , class II >
const DGFBoundaryParameter::type boundaryParameter (const Intersection< GG, II > &intersection) const
 
template<int codim>
int numParameters () const
 

Static Public Attributes

static const int dimension = Grid::dimension
 

Member Typedef Documentation

◆ Element

template<class HostGrid , int dim>
typedef Grid::template Codim<0>::Entity Dune::DGFGridFactory< MMesh< HostGrid, dim > >::Element

◆ Grid

template<class HostGrid , int dim>
typedef MMesh<HostGrid, dim> Dune::DGFGridFactory< MMesh< HostGrid, dim > >::Grid

◆ GridFactory

template<class HostGrid , int dim>
typedef Dune::MMeshExplicitGridFactory<Grid> Dune::DGFGridFactory< MMesh< HostGrid, dim > >::GridFactory

◆ MPICommunicatorType

template<class HostGrid , int dim>
typedef MPIHelper::MPICommunicator Dune::DGFGridFactory< MMesh< HostGrid, dim > >::MPICommunicatorType

◆ Vertex

template<class HostGrid , int dim>
typedef Grid::template Codim<dimension>::Entity Dune::DGFGridFactory< MMesh< HostGrid, dim > >::Vertex

Constructor & Destructor Documentation

◆ DGFGridFactory() [1/2]

template<class HostGrid , int dim>
Dune::DGFGridFactory< MMesh< HostGrid, dim > >::DGFGridFactory ( std::istream input,
MPICommunicatorType  comm = MPIHelper::getCommunicator() 
)
inlineexplicit

◆ DGFGridFactory() [2/2]

template<class HostGrid , int dim>
Dune::DGFGridFactory< MMesh< HostGrid, dim > >::DGFGridFactory ( const std::string filename,
MPICommunicatorType  comm = MPIHelper::getCommunicator() 
)
inlineexplicit

DGFGridFactory for MMesh using filename.

Member Function Documentation

◆ boundaryId()

template<class HostGrid , int dim>
template<class Intersection >
int Dune::DGFGridFactory< MMesh< HostGrid, dim > >::boundaryId ( const Intersection intersection) const
inline

Return boundary id of intersection.

◆ boundaryParameter()

template<class HostGrid , int dim>
template<class GG , class II >
const DGFBoundaryParameter::type Dune::DGFGridFactory< MMesh< HostGrid, dim > >::boundaryParameter ( const Intersection< GG, II > &  intersection) const
inline

◆ grid()

template<class HostGrid , int dim>
Grid * Dune::DGFGridFactory< MMesh< HostGrid, dim > >::grid ( ) const
inline

return grid pointer

◆ haveBoundaryParameters()

template<class HostGrid , int dim>
bool Dune::DGFGridFactory< MMesh< HostGrid, dim > >::haveBoundaryParameters ( ) const
inline

Returns true if boundary parameters found.

◆ numParameters()

template<class HostGrid , int dim>
template<int codim>
int Dune::DGFGridFactory< MMesh< HostGrid, dim > >::numParameters ( ) const
inline

◆ parameter() [1/2]

template<class HostGrid , int dim>
std::vector< double > & Dune::DGFGridFactory< MMesh< HostGrid, dim > >::parameter ( const Element element)
inline

Returns dgf element parameters for given element.

◆ parameter() [2/2]

template<class HostGrid , int dim>
std::vector< double > & Dune::DGFGridFactory< MMesh< HostGrid, dim > >::parameter ( const Vertex vertex)
inline

Returns dgf vertex parameters for given vertex.

◆ wasInserted()

template<class HostGrid , int dim>
template<class Intersection >
bool Dune::DGFGridFactory< MMesh< HostGrid, dim > >::wasInserted ( const Intersection intersection) const
inline

Returns if intersection was inserted.

Member Data Documentation

◆ dimension

template<class HostGrid , int dim>
const int Dune::DGFGridFactory< MMesh< HostGrid, dim > >::dimension = Grid::dimension
static

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