dune-grid 2.9.0
Static Public Member Functions | List of all members
Dune::StructuredGridFactory< YaspGrid< dim, EquidistantOffsetCoordinates< ctype, dim > > > Class Template Reference

Specialization of the StructuredGridFactory for YaspGrid<EquidistantOffsetCoordinates> More...

#include <dune/grid/yaspgrid/structuredyaspgridfactory.hh>

Static Public Member Functions

static std::unique_ptr< GridTypecreateCubeGrid (const FieldVector< ctype, dimworld > &lowerLeft, const FieldVector< ctype, dimworld > &upperRight, const std::array< unsigned int, dim > &elements)
 Create a structured cube grid. More...
 
static std::unique_ptr< GridTypecreateSimplexGrid (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 ctype, int dim>
class Dune::StructuredGridFactory< YaspGrid< dim, EquidistantOffsetCoordinates< ctype, dim > > >

Specialization of the StructuredGridFactory for YaspGrid<EquidistantOffsetCoordinates>

This allows a YaspGrid to be constructed using the StructuredGridFactory just like the unstructured Grids. Only limitation: limitations:

Member Function Documentation

◆ createCubeGrid()

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

◆ createSimplexGrid()

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

Create a structured simplex grid.

Note
Simplices are not supported in YaspGrid, so this functions unconditionally throws a GridError.

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