dune-geometry  2.3.1
Public Types | Public Member Functions | Static Public Attributes | Protected Types | List of all members
Dune::MockGeometry< ctype, mydim, coorddim > Class Template Reference

Grid-independent geometry. More...

#include <dune/geometry/mockgeometry.hh>

Inheritance diagram for Dune::MockGeometry< ctype, mydim, coorddim >:
Inheritance graph

Public Types

typedef FieldMatrix< ctype,
coorddim, mydim > 
Jacobian
 type of jacobian (also of jacobian inverse transposed) More...
 
typedef FieldMatrix< ctype,
mydim, coorddim > 
JacobianTransposed
 type of jacobian transposed More...
 
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...
 

Public Member Functions

 MockGeometry ()
 Default constructor. More...
 
template<class CoordVector >
 MockGeometry (const GeometryType &type, const CoordVector &coords)
 Constructor using a GeometryType and a list of corner coordinates. More...
 
template<int fatherdim>
 MockGeometry (const MockGeometry< ctype, fatherdim, coorddim > &father, int i)
 obtain a geometry for a subentity More...
 
JacobianTransposed jacobianTransposed (const typename Base::LocalCoordinate &local) const
 Return the transposed of the Jacobian. More...
 
Jacobian jacobianInverseTransposed (const typename Base::LocalCoordinate &local) const
 Return inverse of transposed of Jacobian. More...
 
 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 conditional< hybrid,
Hybrid< true >, NonHybrid
< false >
>::type::MappingFactory 
MappingFactory
 
typedef MappingFactory::Mapping Mapping
 

Detailed Description

template<class ctype, std::size_t mydim, std::size_t coorddim>
class Dune::MockGeometry< ctype, mydim, coorddim >

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.

Template Parameters
ctypeField type for coordinates.
mydimDimension of the local coordinates.
coorddimDimension of the global coordinates.

Member Typedef Documentation

Type used for coordinate components.

Type used for world coordinates.

template<class ctype , std::size_t mydim, std::size_t coorddim>
typedef FieldMatrix<ctype, coorddim, mydim> Dune::MockGeometry< ctype, mydim, coorddim >::Jacobian

type of jacobian (also of jacobian inverse transposed)

template<class ctype , std::size_t mydim, std::size_t coorddim>
typedef FieldMatrix<ctype, mydim, coorddim> Dune::MockGeometry< ctype, mydim, coorddim >::JacobianTransposed

type of jacobian transposed

typedef FieldVector< ctype, mydimension > Dune::GenericGeometry::BasicGeometry< mydim, GenericGeometry::DefaultGeometryTraits< ctype, coorddim, coorddim > >::LocalCoordinate
inherited

Type used for parameter coordinates.

typedef MappingFactory::Mapping Dune::GenericGeometry::BasicGeometry< mydim, GenericGeometry::DefaultGeometryTraits< ctype, coorddim, coorddim > >::Mapping
protectedinherited
typedef conditional< hybrid, Hybrid< true >, NonHybrid< false > >::type::MappingFactory Dune::GenericGeometry::BasicGeometry< mydim, GenericGeometry::DefaultGeometryTraits< ctype, coorddim, coorddim > >::MappingFactory
protectedinherited

Constructor & Destructor Documentation

template<class ctype , std::size_t mydim, std::size_t coorddim>
Dune::MockGeometry< ctype, mydim, coorddim >::MockGeometry ( )
inline

Default constructor.

Deprecated:
"MockGeometry is deprecated; use MultiLinearGeometry instead."
template<class ctype , std::size_t mydim, std::size_t coorddim>
template<class CoordVector >
Dune::MockGeometry< ctype, mydim, coorddim >::MockGeometry ( const GeometryType type,
const CoordVector &  coords 
)
inline

Constructor using a GeometryType and a list of corner coordinates.

Deprecated:
"MockGeometry is deprecated; use MultiLinearGeometry instead."
template<class ctype , std::size_t mydim, std::size_t coorddim>
template<int fatherdim>
Dune::MockGeometry< ctype, mydim, coorddim >::MockGeometry ( const MockGeometry< ctype, fatherdim, coorddim > &  father,
int  i 
)
inline

obtain a geometry for a subentity

Deprecated:
"MockGeometry is deprecated; use MultiLinearGeometry instead."

Member Function Documentation

bool Dune::GenericGeometry::BasicGeometry< mydim, GenericGeometry::DefaultGeometryTraits< ctype, coorddim, coorddim > >::affine ( ) const
inlineinherited

Return true if this is an affine geometry.

GlobalCoordinate Dune::GenericGeometry::BasicGeometry< mydim, GenericGeometry::DefaultGeometryTraits< ctype, coorddim, coorddim > >::center ( ) const
inlineinherited

return center of element

GlobalCoordinate Dune::GenericGeometry::BasicGeometry< mydim, GenericGeometry::DefaultGeometryTraits< ctype, coorddim, coorddim > >::corner ( const int  i) const
inlineinherited

Return the world coordinates of the i-th corner.

int Dune::GenericGeometry::BasicGeometry< mydim, GenericGeometry::DefaultGeometryTraits< ctype, coorddim, coorddim > >::corners ( ) const
inlineinherited

Return the number of corners.

GlobalCoordinate Dune::GenericGeometry::BasicGeometry< mydim, GenericGeometry::DefaultGeometryTraits< ctype, coorddim, coorddim > >::global ( const LocalCoordinate local) const
inlineinherited

Map local to global coordinates.

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

Return the factor $|det F|$ that appears in the integral transformation formula.

template<class ctype , std::size_t mydim, std::size_t coorddim>
Jacobian Dune::MockGeometry< ctype, mydim, coorddim >::jacobianInverseTransposed ( const typename Base::LocalCoordinate local) const
inline

Return inverse of transposed of Jacobian.

References Dune::GenericGeometry::BasicGeometry< mydim, Traits >::jacobianInverseTransposed().

const JacobianInverseTransposed& Dune::GenericGeometry::BasicGeometry< mydim, GenericGeometry::DefaultGeometryTraits< ctype, coorddim, coorddim > >::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.

template<class ctype , std::size_t mydim, std::size_t coorddim>
JacobianTransposed Dune::MockGeometry< ctype, mydim, coorddim >::jacobianTransposed ( const typename Base::LocalCoordinate local) const
inline

Return the transposed of the Jacobian.

References Dune::GenericGeometry::BasicGeometry< mydim, Traits >::jacobianTransposed().

const JacobianTransposed& Dune::GenericGeometry::BasicGeometry< mydim, GenericGeometry::DefaultGeometryTraits< ctype, coorddim, coorddim > >::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, GenericGeometry::DefaultGeometryTraits< ctype, coorddim, coorddim > >::local ( const GlobalCoordinate global) const
inlineinherited

Map global to local coordinates.

Dune::GenericGeometry::BasicGeometry< mydim, GenericGeometry::DefaultGeometryTraits< ctype, coorddim, coorddim > >::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, GenericGeometry::DefaultGeometryTraits< ctype, coorddim, coorddim > >::type ( ) const
inlineinherited

Return the topological type of this geometry.

ctype Dune::GenericGeometry::BasicGeometry< mydim, GenericGeometry::DefaultGeometryTraits< ctype, coorddim, coorddim > >::volume ( ) const
inlineinherited

Return the volume of the element.

Member Data Documentation

const int Dune::GenericGeometry::BasicGeometry< mydim, GenericGeometry::DefaultGeometryTraits< ctype, coorddim, coorddim > >::coorddimension
staticinherited

The dimension of the world space of this geometry.

const int Dune::GenericGeometry::BasicGeometry< mydim, GenericGeometry::DefaultGeometryTraits< ctype, coorddim, coorddim > >::mydimension
staticinherited

The dimension of the parameter space of this geometry.


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