BEM++  2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Static Public Member Functions | Private Types | Static Private Attributes | List of all members
Dune::BemppStructuredGridFactory< YaspGrid< dim > > Class Template Reference

Specialization of the StructuredGridFactory for YaspGrid. More...

#include </home/wojtek/Projects/BEM/bempp-sven/bempp/lib/grid/structured_grid_factory.hpp>

Static Public Member Functions

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...
 

Private Types

typedef YaspGrid< dim > GridType
 
typedef GridType::ctype ctype
 

Static Private Attributes

static const int dimworld = GridType::dimensionworld
 

Detailed Description

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:

Member Function Documentation

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
lowerLeftLower left corner of the grid
upperRightUpper right corner of the grid
elementsNumber 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: