Dune Core Modules (2.3.1)

Dune::GenericGeometry::Geometry< mydim, cdim, Grid > Class Template Reference

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

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

Public Types

typedef CoordTraits ::ctype ctype
 Type used for coordinate components.
 
typedef FieldVector< ctype, mydimensionLocalCoordinate
 Type used for parameter coordinates.
 
typedef FieldVector< ctype, coorddimensionGlobalCoordinate
 Type used for world coordinates.
 
typedef Mapping::JacobianTransposed JacobianTransposed
 Type used for Jacobian matrices. More...
 
typedef Mapping::JacobianInverseTransposed Jacobian
 Type used for Jacobian matrices. More...
 

Public Member Functions

template<class Geo >
 Geometry (const Geo &geo)
 Copy constructor from another geometry.
 
template<class CoordVector >
 Geometry (const GeometryType &type, const CoordVector &coords)
 Constructor with a GeometryType and a set of coordinates.
 
template<int fatherdim>
 Geometry (const Geometry< fatherdim, cdim, Grid > &father, int i)
 
 LocalCoordinate (const GlobalCoordinate &global) const
 Map global to local coordinates.
 
 operator bool () const
 bool cast More...
 
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.
 
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 JacobianTransposedjacobianTransposed (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.
 

Detailed Description

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

generic implementation of a DUNE (global) geometry

Geometry inherits all its features from BasicGeometry. It only adds GlobalGeometryTraits< 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

◆ Jacobian

typedef Mapping::JacobianInverseTransposed Dune::GenericGeometry::BasicGeometry< mydim, GlobalGeometryTraits< 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.

◆ JacobianTransposed

typedef Mapping::JacobianTransposed Dune::GenericGeometry::BasicGeometry< mydim, GlobalGeometryTraits< 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.

Constructor & Destructor Documentation

◆ Geometry()

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

Member Function Documentation

◆ operator bool()

Dune::GenericGeometry::BasicGeometry< mydim, GlobalGeometryTraits< 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.


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (Apr 26, 22:29, 2024)