- Home
- About DUNE
- Download
- Documentation
- Community
- Development
generic implementation of a DUNE (local) geometry More...
#include <dune/grid/genericgeometry/geometry.hh>
Public Types | |
typedef CoordTraits::ctype | ctype |
Type used for coordinate components. | |
typedef FieldVector< ctype, mydimension > | LocalCoordinate |
Type used for parameter coordinates. | |
typedef FieldVector< ctype, coorddimension > | GlobalCoordinate |
Type used for world coordinates. | |
typedef Mapping::JacobianTransposed | JacobianTransposed |
Type used for Jacobian matrices. | |
typedef Mapping::JacobianInverseTransposed | JacobianInverseTransposed |
Type used for Jacobian matrices. | |
Public Member Functions | |
template<class CoordVector > | |
LocalGeometry (const unsigned int topologyId, const CoordVector &coords) | |
template<class CoordVector > | |
LocalGeometry (const unsigned int topologyId, const CoordVector &coords, const bool affine) | |
template<class Geo > | |
LocalGeometry (const Geo &geo) | |
Copy constructor from another geometry. | |
template<class CoordVector > | |
LocalGeometry (const GeometryType &type, const CoordVector &coords) | |
Constructor with a GeometryType and a set of coordinates. | |
template<int fatherdim> | |
LocalGeometry (const Geometry< fatherdim, cdim, Grid > &father, int i) | |
bool | operator! () const |
Test whether this BasicGeometry is properly set up. | |
GeometryType | type () const |
Return the topological type of this geometry. | |
int | corners () const |
Return the number of corners. | |
const GlobalCoordinate & | operator[] (int i) const |
Return the world coordinates of the i-th corner. | |
GlobalCoordinate | corner (const int i) const |
Return the world coordinates of the i-th corner. | |
GlobalCoordinate | global (const LocalCoordinate &local) const |
Map local to global coordinates. | |
LocalCoordinate | local (const GlobalCoordinate &global) const |
Map global to local coordinates. | |
GlobalCoordinate | center () const |
return center of element | |
bool | affine () const |
Return true if this is an affine geometry. | |
ctype | integrationElement (const LocalCoordinate &local) const |
Return the factor $|det F|$ that appears in the integral transformation formula. | |
ctype | volume () const |
Return the volume of the element. | |
const JacobianTransposed & | jacobianTransposed (const LocalCoordinate &local) const |
Compute the transpose of the Jacobian matrix of the transformation from the reference element into the world space. | |
const JacobianInverseTransposed & | jacobianInverseTransposed (const LocalCoordinate &local) const |
Compute the transpose of the inverse Jacobian matrix of the transformation from the reference element into the world space. | |
GlobalCoordinate | normal (int face, const LocalCoordinate &local) const |
compute an outer normal to an element face | |
Static Public Attributes | |
static const int | mydimension |
The dimension of the parameter space of this geometry. | |
static const int | coorddimension |
The dimension of the world space of this geometry. | |
Protected Types | |
typedef Base::Mapping | Mapping |
generic implementation of a DUNE (local) geometry
Geometry inherits all its features from Geometry. It only adds LocalGeometryTraits< Grid > as Traits parameter to the template parameter list.
mydim | Dimension of the entity | |
cdom | Dimension of the coordinate space | |
Grid | The grid this geometry will be used in |
typedef CoordTraits :: ctype Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::ctype [inherited] |
Type used for coordinate components.
typedef FieldVector< ctype, coorddimension > Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::GlobalCoordinate [inherited] |
Type used for world coordinates.
typedef Mapping::JacobianInverseTransposed Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::JacobianInverseTransposed [inherited] |
Type used for Jacobian matrices.
typedef Mapping::JacobianTransposed Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::JacobianTransposed [inherited] |
Type used for Jacobian matrices.
typedef FieldVector< ctype, mydimension > Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::LocalCoordinate [inherited] |
Type used for parameter coordinates.
typedef Base::Mapping Dune::GenericGeometry::LocalGeometry< mydim, cdim, Grid >::Mapping [protected] |
Reimplemented from Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >.
Dune::GenericGeometry::LocalGeometry< mydim, cdim, Grid >::LocalGeometry | ( | const unsigned int | topologyId, | |
const CoordVector & | coords | |||
) | [inline] |
Dune::GenericGeometry::LocalGeometry< mydim, cdim, Grid >::LocalGeometry | ( | const unsigned int | topologyId, | |
const CoordVector & | coords, | |||
const bool | affine | |||
) | [inline] |
Dune::GenericGeometry::LocalGeometry< mydim, cdim, Grid >::LocalGeometry | ( | const Geo & | geo | ) | [inline, explicit] |
Copy constructor from another geometry.
Dune::GenericGeometry::LocalGeometry< mydim, cdim, Grid >::LocalGeometry | ( | const GeometryType & | type, | |
const CoordVector & | coords | |||
) | [inline] |
Constructor with a GeometryType and a set of coordinates.
Dune::GenericGeometry::LocalGeometry< mydim, cdim, Grid >::LocalGeometry | ( | const Geometry< fatherdim, cdim, Grid > & | father, | |
int | i | |||
) | [inline] |
bool Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::affine | ( | ) | const [inline, inherited] |
Return true if this is an affine geometry.
GlobalCoordinate Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::center | ( | ) | const [inline, inherited] |
return center of element
GlobalCoordinate Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::corner | ( | const int | i | ) | const [inline, inherited] |
Return the world coordinates of the i-th corner.
int Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::corners | ( | ) | const [inline, inherited] |
Return the number of corners.
GlobalCoordinate Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::global | ( | const LocalCoordinate & | local | ) | const [inline, inherited] |
Map local to global coordinates.
ctype Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::integrationElement | ( | const LocalCoordinate & | local | ) | const [inline, inherited] |
Return the factor $|det F|$ that appears in the integral transformation formula.
const JacobianInverseTransposed& Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::jacobianInverseTransposed | ( | const LocalCoordinate & | local | ) | const [inline, inherited] |
Compute the transpose of the inverse Jacobian matrix of the transformation from the reference element into the world space.
const JacobianTransposed& Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::jacobianTransposed | ( | const LocalCoordinate & | local | ) | const [inline, inherited] |
Compute the transpose of the Jacobian matrix of the transformation from the reference element into the world space.
LocalCoordinate Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::local | ( | const GlobalCoordinate & | global | ) | const [inline, inherited] |
Map global to local coordinates.
GlobalCoordinate Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::normal | ( | int | face, | |
const LocalCoordinate & | local | |||
) | const [inline, inherited] |
compute an outer normal to an element face
[in] | face | number of the face (in generic numbering) |
[in] | local | point to compute the normal in (in local coordinates with respect to the element, *not* the face) |
bool Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::operator! | ( | ) | const [inline, inherited] |
Test whether this BasicGeometry is properly set up.
const GlobalCoordinate& Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::operator[] | ( | int | i | ) | const [inline, inherited] |
Return the world coordinates of the i-th corner.
GeometryType Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::type | ( | ) | const [inline, inherited] |
Return the topological type of this geometry.
ctype Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::volume | ( | ) | const [inline, inherited] |
Return the volume of the element.
const int Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::coorddimension [static, inherited] |
The dimension of the world space of this geometry.
const int Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::mydimension [static, inherited] |
The dimension of the parameter space of this geometry.
Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].