|
BEM++
2.0
|
Construct structured cube and simplex grids in unstructured grid managers. More...
#include </home/wojtek/Projects/BEM/bempp-sven/bempp/lib/grid/structured_grid_factory.hpp>
Classes | |
| class | MultiIndex |
| dim-dimensional multi-index. The range for each component can be set individually More... | |
Static Public Member Functions | |
| static std::auto_ptr< GridType > | createCubeGrid (const FieldVector< ctype, dim > &lowerLeft, const FieldVector< ctype, dim > &upperRight, const array< int, dim > &elements) |
| Create a structured cube grid. More... | |
| static std::auto_ptr< GridType > | createSimplexGrid (const FieldVector< ctype, dim > &lowerLeft, const FieldVector< ctype, dim > &upperRight, const array< int, dim > &elements) |
| Create a structured simplex grid. More... | |
Private Types | |
| typedef GridType::ctype | ctype |
Static Private Member Functions | |
| static void | insertVertices (GridFactory< GridType > &factory, const FieldVector< ctype, dim > &lowerLeft, const FieldVector< ctype, dim > &upperRight, const array< int, dim > &vertices) |
| Insert a structured set of vertices into the factory. | |
| static array< int, dim > | computeUnitOffsets (const array< int, dim > &vertices) |
Static Private Attributes | |
| static const int | dim = GridType::dimension |
| static const int | dimworld = GridType::dimensionworld |
Construct structured cube and simplex grids in unstructured grid managers.
|
inlinestatic |
Create a structured cube grid.
| lowerLeft | Lower left corner of the grid |
| upperRight | Upper right corner of the grid |
| elements | Number of elements in each coordinate direction |
References Dune::BemppStructuredGridFactory< GridType >::MultiIndex::cycle(), and Dune::BemppStructuredGridFactory< GridType >::insertVertices().
|
inlinestatic |
Create a structured simplex grid.
This works in all dimensions. The Coxeter-Freudenthal-Kuhn triangulation is used, which splits each cube into dim! simplices. See Allgower and Georg, 'Numerical Path Following' for a description.
References Dune::BemppStructuredGridFactory< GridType >::MultiIndex::cycle(), and Dune::BemppStructuredGridFactory< GridType >::insertVertices().
Referenced by Bempp::GridFactory::createStructuredGrid().
1.8.5