dune-grid  2.3.1
Static Public Member Functions | List of all members
Dune::StructuredGridFactory< SGrid< dim, dim > > Class Template Reference

Specialization of the StructuredGridFactory for SGrid. More...

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

Static Public Member Functions

static shared_ptr< GridTypecreateCubeGrid (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< GridTypecreateSimplexGrid (const FieldVector< ctype, dimworld > &lowerLeft, const FieldVector< ctype, dimworld > &upperRight, const array< unsigned int, dim > &elements)
 Create a structured simplex grid. More...
 

Detailed Description

template<int dim>
class Dune::StructuredGridFactory< SGrid< dim, dim > >

Specialization of the StructuredGridFactory for SGrid.

This allows a SGrid to be constructed using the StructuredGridFactory just like the unstructured Grids. Limitations:

Member Function Documentation

template<int dim>
static shared_ptr<GridType> Dune::StructuredGridFactory< SGrid< dim, dim > >::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
template<int dim>
static shared_ptr<GridType> Dune::StructuredGridFactory< SGrid< dim, dim > >::createSimplexGrid ( const FieldVector< ctype, dimworld > &  lowerLeft,
const FieldVector< ctype, dimworld > &  upperRight,
const array< unsigned int, dim > &  elements 
)
inlinestatic

Create a structured simplex grid.

Parameters
lowerLeftLower left corner of the grid
upperRightUpper right corner of the grid
elementsNumber of elements in each coordinate direction
Note
Simplices are not supported in SGrid, so this functions unconditionally throws a GridError.

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