dune-grid  2.2.0
Classes | Static Public Member Functions | List of all members
Dune::StructuredGridFactory< GridType > Class Template Reference

Construct structured cube and simplex grids in unstructured grid managers. More...

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

Classes

class  MultiIndex
 dim-dimensional multi-index. The range for each component can be set individually

Static Public Member Functions

static shared_ptr< GridType > createCubeGrid (const FieldVector< ctype, dimworld > &lowerLeft, const FieldVector< ctype, dimworld > &upperRight, const array< unsigned int, dim > &elements)
 Create a structured cube grid.
static shared_ptr< GridType > createSimplexGrid (const FieldVector< ctype, dimworld > &lowerLeft, const FieldVector< ctype, dimworld > &upperRight, const array< unsigned int, dim > &elements)
 Create a structured simplex grid.

Detailed Description

template<class GridType>
class Dune::StructuredGridFactory< GridType >

Construct structured cube and simplex grids in unstructured grid managers.

Member Function Documentation

template<class GridType >
static shared_ptr<GridType> Dune::StructuredGridFactory< GridType >::createCubeGrid ( const FieldVector< ctype, dimworld > &  lowerLeft,
const FieldVector< ctype, dimworld > &  upperRight,
const array< unsigned int, dim > &  elements 
)
inlinestatic

Create a structured cube grid.

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

References Dune::GridFactory< GridType >::createGrid(), Dune::cube, and Dune::GridFactory< GridType >::insertElement().

template<class GridType >
static shared_ptr<GridType> Dune::StructuredGridFactory< GridType >::createSimplexGrid ( const FieldVector< ctype, dimworld > &  lowerLeft,
const FieldVector< ctype, dimworld > &  upperRight,
const array< unsigned int, dim > &  elements 
)
inlinestatic

Create a structured simplex grid.

This works in all dimensions. The Coxeter-Freudenthal-Kuhn triangulation is used, which splits each cube into dim! simplices. See Allgower and Georg, 'Numerical Path Following' for a description.

References Dune::GridFactory< GridType >::createGrid(), Dune::GridFactory< GridType >::insertElement(), and Dune::simplex.


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