Specialization of the StructuredGridFactory for YaspGrid.
More...
#include </home/wojtek/Projects/BEM/bempp-sven/bempp/lib/grid/structured_grid_factory.hpp>
|
static std::auto_ptr< GridType > | createCubeGrid (const FieldVector< ctype, dimworld > &lowerLeft, const FieldVector< ctype, dimworld > &upperRight, const array< int, dim > &elements) |
| Create a structured cube grid. More...
|
|
static std::auto_ptr< GridType > | createSimplexGrid (const FieldVector< ctype, dimworld > &lowerLeft, const FieldVector< ctype, dimworld > &upperRight, const array< int, dim > &elements) |
| Create a structured simplex grid. More...
|
|
|
typedef YaspGrid< dim > | GridType |
|
typedef GridType::ctype | ctype |
|
|
static const int | dimworld = GridType::dimensionworld |
|
template<int dim>
class Dune::BemppStructuredGridFactory< YaspGrid< dim > >
Specialization of the StructuredGridFactory for YaspGrid.
This allows a YaspGrid to be constructed using the StructuredGridFactory just like the unstructured Grids. There are two limitations:
- YaspGrid does not support simplices
- YaspGrid only support grids which have their lower left corder at the origin.
template<int dim>
static std::auto_ptr<GridType> Dune::BemppStructuredGridFactory< YaspGrid< dim > >::createCubeGrid |
( |
const FieldVector< ctype, dimworld > & |
lowerLeft, |
|
|
const FieldVector< ctype, dimworld > & |
upperRight, |
|
|
const array< int, dim > & |
elements |
|
) |
| |
|
inlinestatic |
Create a structured cube grid.
- Parameters
-
lowerLeft | Lower left corner of the grid |
upperRight | Upper right corner of the grid |
elements | Number of elements in each coordinate direction |
- Note
- YaspGrid only supports lowerLeft at the origin. This function throws a GridError if this requirement is not met.
template<int dim>
static std::auto_ptr<GridType> Dune::BemppStructuredGridFactory< YaspGrid< dim > >::createSimplexGrid |
( |
const FieldVector< ctype, dimworld > & |
lowerLeft, |
|
|
const FieldVector< ctype, dimworld > & |
upperRight, |
|
|
const array< 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: