dune-geometry  2.2.1
Public Types | Public Member Functions | Static Public Attributes | Protected Types | List of all members
Dune::GenericGeometry::LocalGeometry< mydim, cdim, Grid > Class Template Reference

generic implementation of a DUNE (local) geometry More...

#include <dune/geometry/genericgeometry/geometry.hh>

Inheritance diagram for Dune::GenericGeometry::LocalGeometry< mydim, cdim, Grid >:
Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >

Public Types

typedef CoordTraits::ctype ctype
 Type used for coordinate components. More...
 
typedef FieldVector< ctype,
mydimension
LocalCoordinate
 Type used for parameter coordinates. More...
 
typedef FieldVector< ctype,
coorddimension
GlobalCoordinate
 Type used for world coordinates. More...
 
typedef Mapping::JacobianTransposed JacobianTransposed
 Type used for Jacobian matrices. More...
 
typedef
Mapping::JacobianInverseTransposed 
Jacobian
 Type used for Jacobian matrices. More...
 
typedef Jacobian JacobianInverseTransposed
 

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. More...
 
template<class CoordVector >
 LocalGeometry (const GeometryType &type, const CoordVector &coords)
 Constructor with a GeometryType and a set of coordinates. More...
 
template<int fatherdim>
 LocalGeometry (const Geometry< fatherdim, cdim, Grid > &father, int i)
 
 operator bool () const
 bool cast More...
 
GeometryType type () const
 Return the topological type of this geometry. More...
 
int corners () const
 Return the number of corners. More...
 
GlobalCoordinate corner (const int i) const
 Return the world coordinates of the i-th corner. More...
 
GlobalCoordinate global (const LocalCoordinate &local) const
 Map local to global coordinates. More...
 
LocalCoordinate local (const GlobalCoordinate &global) const
 Map global to local coordinates. More...
 
GlobalCoordinate center () const
 return center of element More...
 
bool affine () const
 Return true if this is an affine geometry. More...
 
ctype integrationElement (const LocalCoordinate &local) const
 Return the factor $|det F|$ that appears in the integral transformation formula. More...
 
ctype volume () const
 Return the volume of the element. More...
 
const JacobianTransposedjacobianTransposed (const LocalCoordinate &local) const
 Compute the transpose of the Jacobian matrix of the transformation from the reference element into the world space. More...
 
const JacobianInverseTransposedjacobianInverseTransposed (const LocalCoordinate &local) const
 Compute the transpose of the inverse Jacobian matrix of the transformation from the reference element into the world space. More...
 

Static Public Attributes

static const int mydimension
 The dimension of the parameter space of this geometry. More...
 
static const int coorddimension
 The dimension of the world space of this geometry. More...
 

Protected Types

typedef Base::Mapping Mapping
 

Detailed Description

template<int mydim, int cdim, class Grid>
class Dune::GenericGeometry::LocalGeometry< mydim, cdim, Grid >

generic implementation of a DUNE (local) geometry

LocalGeometry inherits all its features from BasicGeometry. It only adds LocalGeometryTraits< Grid > as Traits parameter to the template parameter list.

Template Parameters
mydimDimension of the entity
cdimDimension of the coordinate space
GridThe grid this geometry will be used in

Member Typedef Documentation

typedef CoordTraits :: ctype Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::ctype
inherited

Type used for coordinate components.

Type used for world coordinates.

typedef Mapping::JacobianInverseTransposed Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::Jacobian
inherited

Type used for Jacobian matrices.

Note
This is not a FieldMatrix but a proxy type that can be assigned to a FieldMatrix.
typedef Mapping::JacobianTransposed Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::JacobianTransposed
inherited

Type used for Jacobian matrices.

Note
This is not a FieldMatrix but a proxy type that can be assigned to a FieldMatrix.
typedef FieldVector< ctype, mydimension > Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::LocalCoordinate
inherited

Type used for parameter coordinates.

template<int mydim, int cdim, class Grid >
typedef Base::Mapping Dune::GenericGeometry::LocalGeometry< mydim, cdim, Grid >::Mapping
protected

Constructor & Destructor Documentation

template<int mydim, int cdim, class Grid >
template<class CoordVector >
Dune::GenericGeometry::LocalGeometry< mydim, cdim, Grid >::LocalGeometry ( const unsigned int  topologyId,
const CoordVector &  coords 
)
inline
template<int mydim, int cdim, class Grid >
template<class CoordVector >
Dune::GenericGeometry::LocalGeometry< mydim, cdim, Grid >::LocalGeometry ( const unsigned int  topologyId,
const CoordVector &  coords,
const bool  affine 
)
inline
template<int mydim, int cdim, class Grid >
template<class Geo >
Dune::GenericGeometry::LocalGeometry< mydim, cdim, Grid >::LocalGeometry ( const Geo &  geo)
inlineexplicit

Copy constructor from another geometry.

template<int mydim, int cdim, class Grid >
template<class CoordVector >
Dune::GenericGeometry::LocalGeometry< mydim, cdim, Grid >::LocalGeometry ( const GeometryType type,
const CoordVector &  coords 
)
inline

Constructor with a GeometryType and a set of coordinates.

template<int mydim, int cdim, class Grid >
template<int fatherdim>
Dune::GenericGeometry::LocalGeometry< mydim, cdim, Grid >::LocalGeometry ( const Geometry< fatherdim, cdim, Grid > &  father,
int  i 
)
inline
Todo:
Please doc me!

Member Function Documentation

bool Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::affine ( ) const
inlineinherited

Return true if this is an affine geometry.

GlobalCoordinate Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::center ( ) const
inlineinherited

return center of element

GlobalCoordinate Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::corner ( const int  i) const
inlineinherited

Return the world coordinates of the i-th corner.

int Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::corners ( ) const
inlineinherited

Return the number of corners.

GlobalCoordinate Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::global ( const LocalCoordinate local) const
inlineinherited

Map local to global coordinates.

ctype Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::integrationElement ( const LocalCoordinate local) const
inlineinherited

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
inlineinherited

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
inlineinherited

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
inlineinherited

Map global to local coordinates.

Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::operator bool ( ) const
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.

GeometryType Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::type ( ) const
inlineinherited

Return the topological type of this geometry.

ctype Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::volume ( ) const
inlineinherited

Return the volume of the element.

Member Data Documentation

const int Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::coorddimension
staticinherited

The dimension of the world space of this geometry.

const int Dune::GenericGeometry::BasicGeometry< mydim, LocalGeometryTraits< Grid > >::mydimension
staticinherited

The dimension of the parameter space of this geometry.


The documentation for this class was generated from the following file: