- Home
- About DUNE
- Download
- Documentation
- Community
- Development
This namespace contains the Refinement implementation for simplices (triangles, tetrahedrons...). More...
Classes | |
class | RefinementImp |
class | RefinementIteratorSpecial< dimension, CoordType, dimension > |
class | RefinementIteratorSpecial< dimension, CoordType, 0 > |
class | Geometry |
class | MakeableGeometry |
class | ReferenceGeometryInstance |
Functions | |
Utilities | |
int | factorial (int n) |
Calculate n! | |
int | binomial (int upper, int lower) |
calculate ![]() | |
template<int dimension> | |
int | pointIndex (const FieldVector< int, dimension > &point) |
calculate the index of a given gridpoint within a Kuhn0 simplex | |
template<int n> | |
FieldVector< int, n > | getPermutation (int m) |
Calculate permutation from it's index. | |
template<int dimension, class CoordType > | |
FieldVector< CoordType, dimension > | referenceToKuhn (FieldVector< CoordType, dimension > point, const FieldVector< int, dimension > &kuhn) |
Map from the reference simplex to some Kuhn simplex. | |
template<int dimension, class CoordType > | |
FieldVector< CoordType, dimension > | kuhnToReference (FieldVector< CoordType, dimension > point, const FieldVector< int, dimension > &kuhn) |
Map from some Kuhn simplex to the reference simplex. |
This namespace contains the Refinement implementation for simplices (triangles, tetrahedrons...).
See Refinement implementation for simplices.
int Dune::RefinementImp::Simplex::binomial | ( | int | upper, | |
int | lower | |||
) | [inline] |
calculate
Runtime is of order O(min {lower, upper-lower})
References factorial().
Referenced by Dune::RefinementImp::Simplex::RefinementImp< dimension_, CoordType >::nVertices(), and pointIndex().
int Dune::RefinementImp::Simplex::factorial | ( | int | n | ) | [inline] |
Calculate n!
Runtime is of order O(n).
Referenced by binomial(), Dune::RefinementImp::PyramidTriangulation::Geometry< mydimension, coorddimension, GridImp >::integrationElement(), Dune::RefinementImp::PrismTriangulation::Geometry< mydimension, coorddimension, GridImp >::integrationElement(), Dune::RefinementImp::HCubeTriangulation::Geometry< mydimension, coorddimension, GridImp >::integrationElement(), Dune::RefinementImp::HCubeTriangulation::RefinementImp< dimension_, CoordType >::nElements(), Dune::RefinementImp::HCubeTriangulation::RefinementImp< dimension_, CoordType >::nVertices(), Dune::AlbertaGridGlobalGeometry< dim, cdim, const AlbertaGrid< dim, cdim > >::volume(), and Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::volume().
FieldVector<int, n> Dune::RefinementImp::Simplex::getPermutation | ( | int | m | ) |
Calculate permutation from it's index.
Runtime is of order O(n).
FieldVector<CoordType, dimension> Dune::RefinementImp::Simplex::kuhnToReference | ( | FieldVector< CoordType, dimension > | point, | |
const FieldVector< int, dimension > & | kuhn | |||
) |
Map from some Kuhn simplex to the reference simplex.
dimension | Dimension of the simplices | |
CoordType | The C++ type of the coordinates |
Runtime is of order O(dimension)
point | Point to map | |
kuhn | Permutation of the Kuhn simplex to map from |
Referenced by Dune::RefinementImp::Simplex::RefinementIteratorSpecial< dimension, CoordType, dimension >::coords(), Dune::RefinementImp::Simplex::Geometry< mydimension, mydimension, GridImp, Geometry >::global(), Dune::RefinementImp::Simplex::Geometry< mydimension, mydimension, GridImp, Geometry >::jacobianInverse(), Dune::RefinementImp::PyramidTriangulation::Geometry< mydimension, coorddimension, GridImp >::jacobianInverse(), Dune::RefinementImp::PrismTriangulation::Geometry< mydimension, coorddimension, GridImp >::jacobianInverse(), Dune::RefinementImp::HCubeTriangulation::Geometry< mydimension, coorddimension, GridImp >::jacobianInverse(), Dune::RefinementImp::Simplex::Geometry< mydimension, mydimension, GridImp, Geometry >::local(), Dune::RefinementImp::PyramidTriangulation::Geometry< mydimension, coorddimension, GridImp >::local(), Dune::RefinementImp::PrismTriangulation::Geometry< mydimension, coorddimension, GridImp >::local(), and Dune::RefinementImp::HCubeTriangulation::Geometry< mydimension, coorddimension, GridImp >::local().
int Dune::RefinementImp::Simplex::pointIndex | ( | const FieldVector< int, dimension > & | point | ) |
calculate the index of a given gridpoint within a Kuhn0 simplex
Runtime is of order O(dimension^2) (or better for dimension > the coordinates of the point)
References binomial().
Referenced by Dune::RefinementImp::Simplex::RefinementIteratorSpecial< dimension, CoordType, dimension >::index(), and Dune::RefinementImp::Simplex::RefinementIteratorSpecial< dimension, CoordType, 0 >::vertexIndices().
FieldVector<CoordType, dimension> Dune::RefinementImp::Simplex::referenceToKuhn | ( | FieldVector< CoordType, dimension > | point, | |
const FieldVector< int, dimension > & | kuhn | |||
) |
Map from the reference simplex to some Kuhn simplex.
dimension | Dimension of the simplices | |
CoordType | The C++ type of the coordinates |
Runtime is of order O(dimension)
point | Point to map | |
kuhn | Permutation of the Kuhn simplex to map to |
Referenced by Dune::RefinementImp::PyramidTriangulation::RefinementIteratorSpecial< dimension, CoordType, dimension >::coords(), Dune::RefinementImp::PrismTriangulation::RefinementIteratorSpecial< dimension, CoordType, dimension >::coords(), Dune::RefinementImp::HCubeTriangulation::RefinementIteratorSpecial< dimension, CoordType, dimension >::coords(), Dune::RefinementImp::Simplex::Geometry< mydimension, mydimension, GridImp, Geometry >::global(), Dune::RefinementImp::PyramidTriangulation::Geometry< mydimension, coorddimension, GridImp >::global(), Dune::RefinementImp::PrismTriangulation::Geometry< mydimension, coorddimension, GridImp >::global(), Dune::RefinementImp::HCubeTriangulation::Geometry< mydimension, coorddimension, GridImp >::global(), Dune::RefinementImp::Simplex::Geometry< mydimension, mydimension, GridImp, Geometry >::jacobianInverse(), Dune::RefinementImp::Simplex::Geometry< mydimension, mydimension, GridImp, Geometry >::local(), Dune::RefinementImp::PyramidTriangulation::Geometry< mydimension, coorddimension, GridImp >::operator[](), Dune::RefinementImp::PrismTriangulation::Geometry< mydimension, coorddimension, GridImp >::operator[](), and Dune::RefinementImp::HCubeTriangulation::Geometry< mydimension, coorddimension, GridImp >::operator[]().
Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].