DUNE PDELab (2.8)
specialization of the generic StructuredGridFactory for AlbertaGrid More...
#include <dune/grid/albertagrid/structuredgridfactory.hh>
Static Public Member Functions | |
static void | createSimplexGrid (GridFactory< GridType > &factory, const FieldVector< ctype, dimworld > &lowerLeft, const FieldVector< ctype, dimworld > &upperRight, const std::array< unsigned int, dim > &elements) |
Create a structured simplex grid for AlbertaGrid. More... | |
static std::unique_ptr< GridType > | createSimplexGrid (const FieldVector< ctype, dimworld > &lowerLeft, const FieldVector< ctype, dimworld > &upperRight, const std::array< unsigned int, dim > &elements) |
Create a structured simplex grid for AlbertaGrid. More... | |
Detailed Description
template<int dim, int dimworld>
class Dune::StructuredGridFactory< AlbertaGrid< dim, dimworld > >
specialization of the generic StructuredGridFactory for AlbertaGrid
The simplex grid generated by the default StructuredGridFactory is not compatible with the Alberta vertex numbering. This might lead to infinite recursions when refining such grid. This specialization of the StructuredGridFactory solves this issue by
- generating a structured cube grid
- subdividing each cube into 2 (2d) or 6 (3d) simplices following a compatible numbering scheme for AlbertaGrid.
Member Function Documentation
◆ createSimplexGrid() [1/2]
|
inlinestatic |
Create a structured simplex grid for AlbertaGrid.
This works in dimensions 1-3. Each cube is split into into dim! simplices by constructing macro triangulation, see insertElement for the local simplex numbering.
- Parameters
-
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(), and Dune::StructuredGridFactory< GridType >::createSimplexGrid().
◆ createSimplexGrid() [2/2]
|
inlinestatic |
Create a structured simplex grid for AlbertaGrid.
This works in dimensions 1-3. Each cube is split into into dim! simplices by constructing macro triangulation, see insertElement for the local simplex numbering.
- Parameters
-
factory Grid factory used for creating the grid lowerLeft Lower left corner of the grid upperRight Upper right corner of the grid elements Number of elements in each coordinate direction
References Dune::GridFactoryInterface< GridType >::comm(), Dune::Communication< Communicator >::rank(), and Dune::GeometryTypes::simplex().
The documentation for this class was generated from the following file:
- dune/grid/albertagrid/structuredgridfactory.hh