KASKADE 7 development version
Functions
Platonian solids

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

Detailed Description

Functions for creating basic grids for Platonian solids.

Function Documentation

◆ createHexahedron()

template<class Grid >
std::unique_ptr< Grid > Kaskade::createHexahedron ( )

Creates a hexahedron consisting of five tetrahedra.

The hexahedron is then the unit cube \( [0,1]^3 \).

Template Parameters
Gridthe type of grid to create

Definition at line 539 of file gridGeneration.hh.

◆ createIcosahedron()

template<class Grid >
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.

Template Parameters
Gridthe type of grid to create

Definition at line 609 of file gridGeneration.hh.

◆ createOctahedron()

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.

The octahedron is centered at the origin, with the vertices located at given positions on the cartesian axes.

Template Parameters
Gridthe type of grid to create

Definition at line 574 of file gridGeneration.hh.