KASKADE 7 development version
|
Functions | |
template<class Grid > | |
std::unique_ptr< Grid > | Kaskade::createHexahedron () |
Creates a hexahedron consisting of five tetrahedra. More... | |
template<class Grid > | |
std::unique_ptr< Grid > | Kaskade::createOctahedron (Dune::FieldVector< typename Grid::ctype, 3 > extent=Dune::FieldVector< typename Grid::ctype, 3 >(1.0)) |
Creates an octahedron consisting of eight tetrahedra. More... | |
template<class Grid > | |
std::unique_ptr< Grid > | Kaskade::createIcosahedron () |
Creates an icosahedron consisting of 20 tetrahedra. More... | |
Functions for creating basic grids for Platonian solids.
std::unique_ptr< Grid > Kaskade::createHexahedron | ( | ) |
Creates a hexahedron consisting of five tetrahedra.
The hexahedron is then the unit cube \( [0,1]^3 \).
Grid | the type of grid to create |
Definition at line 539 of file gridGeneration.hh.
std::unique_ptr< Grid > Kaskade::createIcosahedron | ( | ) |
Creates an icosahedron consisting of 20 tetrahedra.
The icosahedron is centered around the origin and has a diameter of two.
Grid | the type of grid to create |
Definition at line 609 of file gridGeneration.hh.
std::unique_ptr< Grid > Kaskade::createOctahedron | ( | Dune::FieldVector< typename Grid::ctype, 3 > | extent = Dune::FieldVector<typename Grid::ctype,3>(1.0) | ) |
Creates an octahedron consisting of eight tetrahedra.
The octahedron is centered at the origin, with the vertices located at given positions on the cartesian axes.
Grid | the type of grid to create |
Definition at line 574 of file gridGeneration.hh.