dune-mmesh 1.4.1-git
Loading...
Searching...
No Matches
Dune::MMeshStructuredGridFactory< Grid > Struct Template Reference

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

Public Types

typedef MPIHelper::MPICommunicator MPICommunicatorType
 
typedef Grid::template Codim< 0 >::Entity Element
 
typedef Grid::template Codim< dimworld >::Entity Vertex
 
typedef Grid::FieldType FieldType
 
typedef FieldVector< FieldType, dimworldGlobalPosition
 
typedef Dune::MMeshImplicitGridFactory< GridGridFactory
 

Public Member Functions

template<long unsigned int dim>
 MMeshStructuredGridFactory (const GlobalPosition &lowerLeft, const GlobalPosition &upperRight, const std::array< unsigned int, dim > &elements, MPICommunicatorType comm=MPIHelper::getCommunicator())
 Constructor.
 
const std::shared_ptr< 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
 

Static Public Member Functions

template<long unsigned int dim>
static Grid::GridPtrType createStructuredGrid (const GlobalPosition &lowerLeft, const GlobalPosition &upperRight, const std::array< unsigned int, dim > &elements)
 Create a structured simplicial mmesh grid.
 

Static Public Attributes

static const int dimworld = Grid::dimension
 

Member Typedef Documentation

◆ Element

template<class Grid >
typedef Grid::template Codim<0>::Entity Dune::MMeshStructuredGridFactory< Grid >::Element

◆ FieldType

template<class Grid >
typedef Grid::FieldType Dune::MMeshStructuredGridFactory< Grid >::FieldType

◆ GlobalPosition

template<class Grid >
typedef FieldVector<FieldType, dimworld> Dune::MMeshStructuredGridFactory< Grid >::GlobalPosition

◆ GridFactory

◆ MPICommunicatorType

template<class Grid >
typedef MPIHelper::MPICommunicator Dune::MMeshStructuredGridFactory< Grid >::MPICommunicatorType

◆ Vertex

template<class Grid >
typedef Grid::template Codim<dimworld>::Entity Dune::MMeshStructuredGridFactory< Grid >::Vertex

Constructor & Destructor Documentation

◆ MMeshStructuredGridFactory()

template<class Grid >
template<long unsigned int dim>
Dune::MMeshStructuredGridFactory< Grid >::MMeshStructuredGridFactory ( const GlobalPosition lowerLeft,
const GlobalPosition upperRight,
const std::array< unsigned int, dim > &  elements,
MPICommunicatorType  comm = MPIHelper::getCommunicator() 
)
inlineexplicit

Constructor.

Member Function Documentation

◆ boundaryId()

template<class Grid >
template<class Intersection >
int Dune::MMeshStructuredGridFactory< Grid >::boundaryId ( const Intersection intersection) const
inline

return boundary id

◆ createStructuredGrid()

template<class Grid >
template<long unsigned int dim>
static Grid::GridPtrType Dune::MMeshStructuredGridFactory< Grid >::createStructuredGrid ( const GlobalPosition lowerLeft,
const GlobalPosition upperRight,
const std::array< unsigned int, dim > &  elements 
)
inlinestatic

Create a structured simplicial mmesh grid.

If the grid dimension is less than the world dimension, the coefficients (dim+1,...,dimworld) in the vertex coordinates are set to the corresponding values of the lowerLeft input argument.

Parameters
lowerLeftLower left corner of the grid
upperRightUpper right corner of the grid
elementsNumber of elements in each coordinate direction

◆ grid()

template<class Grid >
const std::shared_ptr< Grid > Dune::MMeshStructuredGridFactory< Grid >::grid ( ) const
inline

return grid pointer

◆ wasInserted()

template<class Grid >
template<class Intersection >
bool Dune::MMeshStructuredGridFactory< Grid >::wasInserted ( const Intersection intersection) const
inline

returns if intersection was inserted

Member Data Documentation

◆ dimworld

template<class Grid >
const int Dune::MMeshStructuredGridFactory< Grid >::dimworld = Grid::dimension
static

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