dune-geometry
2.2.0
|
Grid-independent geometry. More...
#include <dune/geometry/mockgeometry.hh>
Public Types | |
typedef FieldMatrix< ctype, coorddim, mydim > | Jacobian |
type of jacobian (also of jacobian inverse transposed) | |
typedef FieldMatrix< ctype, mydim, coorddim > | JacobianTransposed |
type of jacobian transposed | |
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. |
Public Member Functions | |
MockGeometry () | |
Default constructor. | |
template<class CoordVector > | |
MockGeometry (const GeometryType &type, const CoordVector &coords) | |
Constructor using a GeometryType and a list of corner coordinates. | |
template<int fatherdim> | |
MockGeometry (const MockGeometry< ctype, fatherdim, coorddim > &father, int i) | |
obtain a geometry for a subentity | |
JacobianTransposed | jacobianTransposed (const typename Base::LocalCoordinate &local) const |
Return the transposed of the Jacobian. | |
Jacobian | jacobianInverseTransposed (const typename Base::LocalCoordinate &local) const |
Return inverse of transposed of Jacobian. | |
operator bool () const | |
bool cast | |
GeometryType | type () const |
Return the topological type of this geometry. | |
int | corners () const |
Return the number of corners. | |
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. |
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 MappingProvider::Mapping | Mapping |
Grid-independent geometry.
This geometry can be used when somewhing mostly like a Dune::Geometry is required, but a full grid is a little bit too much. It provides the full interface of Dune::Geometry, except for the grid-specific member constants dimension
and dimensionworld
.
One further difference is that the jacobian methods return by value instead of by reference. The Jacobian depends on the local coordinate; returning it by reference is asking for trouble.
ctype | Field type for coordinates. |
mydim | Dimension of the local coordinates. |
coorddim | Dimension of the global coordinates. |
|
inherited |
Type used for coordinate components.
|
inherited |
Type used for world coordinates.
typedef FieldMatrix<ctype, coorddim, mydim> Dune::MockGeometry< ctype, mydim, coorddim >::Jacobian |
type of jacobian (also of jacobian inverse transposed)
Reimplemented from Dune::GenericGeometry::BasicGeometry< mydim, GenericGeometry::DefaultGeometryTraits< ctype, coorddim, coorddim > >.
typedef FieldMatrix<ctype, mydim, coorddim> Dune::MockGeometry< ctype, mydim, coorddim >::JacobianTransposed |
type of jacobian transposed
Reimplemented from Dune::GenericGeometry::BasicGeometry< mydim, GenericGeometry::DefaultGeometryTraits< ctype, coorddim, coorddim > >.
|
inherited |
Type used for parameter coordinates.
|
protectedinherited |
|
inline |
Default constructor.
|
inline |
Constructor using a GeometryType and a list of corner coordinates.
|
inline |
obtain a geometry for a subentity
|
inlineinherited |
Return true if this is an affine geometry.
|
inlineinherited |
return center of element
|
inlineinherited |
Return the world coordinates of the i-th corner.
|
inlineinherited |
Return the number of corners.
|
inlineinherited |
Map local to global coordinates.
|
inlineinherited |
Return the factor $|det F|$ that appears in the integral transformation formula.
|
inline |
Return inverse of transposed of Jacobian.
References Dune::GenericGeometry::BasicGeometry< mydim, Traits >::jacobianInverseTransposed().
|
inlineinherited |
Compute the transpose of the inverse Jacobian matrix of the transformation from the reference element into the world space.
|
inline |
Return the transposed of the Jacobian.
References Dune::GenericGeometry::BasicGeometry< mydim, Traits >::jacobianTransposed().
|
inlineinherited |
Compute the transpose of the Jacobian matrix of the transformation from the reference element into the world space.
|
inlineinherited |
Map global to local coordinates.
|
inlineinherited |
bool cast
Like a pointer, a BasicGeometry casts to true if and only if it is properly initialized. If a geometry casts to false, none of the interface methods may be called.
|
inlineinherited |
Return the topological type of this geometry.
|
inlineinherited |
Return the volume of the element.
|
staticinherited |
The dimension of the world space of this geometry.
|
staticinherited |
The dimension of the parameter space of this geometry.