dune-grid
2.4
|
Construct structured cube and simplex grids in unstructured grid managers. More...
#include <dune/grid/utility/structuredgridfactory.hh>
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. More... | |
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. More... | |
Construct structured cube and simplex grids in unstructured grid managers.
|
inlinestatic |
Create a structured cube 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.
lowerLeft | Lower left corner of the grid |
upperRight | Upper right corner of the grid |
elements | Number of elements in each coordinate direction |
References Dune::GridFactory< GridType >::createGrid(), Dune::cube, Dune::FactoryUtilities::MultiIndex< dim >::cycle(), and Dune::GridFactory< GridType >::insertElement().
|
inlinestatic |
Create a structured simplex grid.
This works in all dimensions. The Coxeter-Freudenthal-Kuhn triangulation is used, which splits each cube into dim! (i.e., dim faculty) simplices. See Allgower and Georg, 'Numerical Path Following' for a description.
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.
lowerLeft | Lower left corner of the grid |
upperRight | Upper right corner of the grid |
elements | Number of elements in each coordinate direction |
References Dune::GridFactory< GridType >::createGrid(), Dune::FactoryUtilities::MultiIndex< dim >::cycle(), Dune::GridFactory< GridType >::insertElement(), and Dune::simplex.