Dune Core Modules (unstable)

Dune::StructuredGridFactory< GridType > Class Template Reference

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

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

Static Public Member Functions

static void createCubeGrid (GridFactory< GridType > &factory, const FieldVector< ctype, dimworld > &lowerLeft, const FieldVector< ctype, dimworld > &upperRight, const std::array< unsigned int, dim > &elements)
 insert structured cube grid into grid factory More...
 
static std::unique_ptr< GridType > createCubeGrid (const FieldVector< ctype, dimworld > &lowerLeft, const FieldVector< ctype, dimworld > &upperRight, const std::array< unsigned int, dim > &elements)
 Create a structured cube grid. More...
 
static void createSimplexGrid (GridFactory< GridType > &factory, const FieldVector< ctype, dimworld > &lowerLeft, const FieldVector< ctype, dimworld > &upperRight, const std::array< unsigned int, dim > &elements)
 insert structured simplex grid into grid factory 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. More...
 

Detailed Description

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

Construct structured cube and simplex grids in unstructured grid managers.

Member Function Documentation

◆ createCubeGrid() [1/2]

template<class GridType >
static std::unique_ptr<GridType> Dune::StructuredGridFactory< GridType >::createCubeGrid ( const FieldVector< ctype, dimworld > &  lowerLeft,
const FieldVector< ctype, dimworld > &  upperRight,
const std::array< unsigned int, dim > &  elements 
)
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.

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

References Dune::StructuredGridFactory< GridType >::createCubeGrid(), and Dune::GridFactory< GridType >::createGrid().

◆ createCubeGrid() [2/2]

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

insert structured cube grid into grid factory

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
factorygrid factory used for creating the grid
lowerLeftLower left corner of the grid
upperRightUpper right corner of the grid
elementsNumber of elements in each coordinate direction

References Dune::GridFactoryInterface< GridType >::comm(), Dune::GeometryTypes::cube(), Dune::GridFactory< GridType >::insertElement(), and Dune::Communication< Communicator >::rank().

Referenced by Dune::StructuredGridFactory< GridType >::createCubeGrid().

◆ createSimplexGrid() [1/2]

template<class GridType >
static std::unique_ptr<GridType> Dune::StructuredGridFactory< GridType >::createSimplexGrid ( const FieldVector< ctype, dimworld > &  lowerLeft,
const FieldVector< ctype, dimworld > &  upperRight,
const std::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! (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.

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(), and Dune::StructuredGridFactory< GridType >::createSimplexGrid().

◆ createSimplexGrid() [2/2]

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

insert structured simplex grid into grid factory

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.

Parameters
factorygrid factory used for creating the grid
lowerLeftLower left corner of the grid
upperRightUpper right corner of the grid
elementsNumber of elements in each coordinate direction

References Dune::GridFactoryInterface< GridType >::comm(), Dune::GridFactory< GridType >::insertElement(), Dune::Communication< Communicator >::rank(), and Dune::GeometryTypes::simplex().

Referenced by Dune::StructuredGridFactory< AlbertaGrid< dim, dimworld > >::createSimplexGrid(), and Dune::StructuredGridFactory< GridType >::createSimplexGrid().


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (Apr 18, 22:30, 2024)