dune-grid-dev-howto  2.3beta2
Public Types | Public Member Functions | Public Attributes | List of all members
Dune::IdentityGridGeometry< mydim, coorddim, GridImp > Class Template Reference

#include <dune/grid/identitygrid/identitygridgeometry.hh>

Public Types

enum  { CodimInHostGrid = GridImp::HostGridType::dimension - mydim }
enum  { DimensionWorld = GridImp::HostGridType::dimensionworld }
typedef
GridImp::HostGridType::Traits::template
Codim< CodimInHostGrid >
::Geometry 
HostGridGeometryType
typedef
GridImp::HostGridType::Traits::template
Codim< CodimInHostGrid >
::Geometry 
HostGridLocalGeometryType
typedef conditional< coorddim==DimensionWorld,
HostGridGeometryType,
HostGridLocalGeometryType >
::type 
HostGridGeometry
typedef
HostGridGeometryType::JacobianInverseTransposed 
JacobianInverseTransposed
 type of jacobian transposed
typedef
HostGridGeometryType::JacobianTransposed 
JacobianTransposed

Public Member Functions

 IdentityGridGeometry (const HostGridGeometry &hostGeometry)
GeometryType type () const
 Return the element type identifier.
bool affine () const
int corners () const
 return the number of corners of this element. Corners are numbered 0...n-1
const FieldVector< ctype,
coorddim > 
corner (int i) const
 access to coordinates of corners. Index is the number of the corner
FieldVector< ctype, coorddim > global (const FieldVector< ctype, mydim > &local) const
 Maps a local coordinate within reference element to global coordinate in element.
const JacobianTransposedjacobianTransposed (const FieldVector< ctype, mydim > &local) const
 Return the transposed of the Jacobian.
FieldVector< ctype, mydim > local (const FieldVector< ctype, coorddim > &global) const
 Maps a global coordinate within the element to a local coordinate in its reference element.
bool checkInside (const FieldVector< ctype, mydim > &local) const
 Returns true if the point is in the current element.
ctype integrationElement (const FieldVector< ctype, mydim > &local) const
const JacobianInverseTransposedjacobianInverseTransposed (const FieldVector< ctype, mydim > &local) const
 The Jacobian matrix of the mapping from the reference element to this element.

Public Attributes

HostGridGeometry hostGeometry_

Member Typedef Documentation

template<int mydim, int coorddim, class GridImp >
typedef conditional<coorddim==DimensionWorld, HostGridGeometryType, HostGridLocalGeometryType>::type Dune::IdentityGridGeometry< mydim, coorddim, GridImp >::HostGridGeometry
template<int mydim, int coorddim, class GridImp >
typedef GridImp::HostGridType::Traits::template Codim<CodimInHostGrid>::Geometry Dune::IdentityGridGeometry< mydim, coorddim, GridImp >::HostGridGeometryType
template<int mydim, int coorddim, class GridImp >
typedef GridImp::HostGridType::Traits::template Codim<CodimInHostGrid>::Geometry Dune::IdentityGridGeometry< mydim, coorddim, GridImp >::HostGridLocalGeometryType
template<int mydim, int coorddim, class GridImp >
typedef HostGridGeometryType::JacobianInverseTransposed Dune::IdentityGridGeometry< mydim, coorddim, GridImp >::JacobianInverseTransposed

type of jacobian transposed

template<int mydim, int coorddim, class GridImp >
typedef HostGridGeometryType::JacobianTransposed Dune::IdentityGridGeometry< mydim, coorddim, GridImp >::JacobianTransposed

Member Enumeration Documentation

template<int mydim, int coorddim, class GridImp >
anonymous enum
Enumerator:
CodimInHostGrid 
template<int mydim, int coorddim, class GridImp >
anonymous enum
Enumerator:
DimensionWorld 

Constructor & Destructor Documentation

template<int mydim, int coorddim, class GridImp >
Dune::IdentityGridGeometry< mydim, coorddim, GridImp >::IdentityGridGeometry ( const HostGridGeometry hostGeometry)
inline

constructor from host geometry

Member Function Documentation

template<int mydim, int coorddim, class GridImp >
bool Dune::IdentityGridGeometry< mydim, coorddim, GridImp >::affine ( ) const
inline
template<int mydim, int coorddim, class GridImp >
bool Dune::IdentityGridGeometry< mydim, coorddim, GridImp >::checkInside ( const FieldVector< ctype, mydim > &  local) const
inline

Returns true if the point is in the current element.

References Dune::IdentityGridGeometry< mydim, coorddim, GridImp >::hostGeometry_.

template<int mydim, int coorddim, class GridImp >
const FieldVector<ctype, coorddim> Dune::IdentityGridGeometry< mydim, coorddim, GridImp >::corner ( int  i) const
inline

access to coordinates of corners. Index is the number of the corner

References Dune::IdentityGridGeometry< mydim, coorddim, GridImp >::hostGeometry_.

template<int mydim, int coorddim, class GridImp >
int Dune::IdentityGridGeometry< mydim, coorddim, GridImp >::corners ( ) const
inline

return the number of corners of this element. Corners are numbered 0...n-1

References Dune::IdentityGridGeometry< mydim, coorddim, GridImp >::hostGeometry_.

template<int mydim, int coorddim, class GridImp >
FieldVector<ctype, coorddim> Dune::IdentityGridGeometry< mydim, coorddim, GridImp >::global ( const FieldVector< ctype, mydim > &  local) const
inline

Maps a local coordinate within reference element to global coordinate in element.

References Dune::IdentityGridGeometry< mydim, coorddim, GridImp >::hostGeometry_.

template<int mydim, int coorddim, class GridImp >
ctype Dune::IdentityGridGeometry< mydim, coorddim, GridImp >::integrationElement ( const FieldVector< ctype, mydim > &  local) const
inline
template<int mydim, int coorddim, class GridImp >
const JacobianInverseTransposed& Dune::IdentityGridGeometry< mydim, coorddim, GridImp >::jacobianInverseTransposed ( const FieldVector< ctype, mydim > &  local) const
inline

The Jacobian matrix of the mapping from the reference element to this element.

References Dune::IdentityGridGeometry< mydim, coorddim, GridImp >::hostGeometry_.

template<int mydim, int coorddim, class GridImp >
const JacobianTransposed& Dune::IdentityGridGeometry< mydim, coorddim, GridImp >::jacobianTransposed ( const FieldVector< ctype, mydim > &  local) const
inline

Return the transposed of the Jacobian.

References Dune::IdentityGridGeometry< mydim, coorddim, GridImp >::hostGeometry_.

template<int mydim, int coorddim, class GridImp >
FieldVector<ctype, mydim> Dune::IdentityGridGeometry< mydim, coorddim, GridImp >::local ( const FieldVector< ctype, coorddim > &  global) const
inline

Maps a global coordinate within the element to a local coordinate in its reference element.

References Dune::IdentityGridGeometry< mydim, coorddim, GridImp >::hostGeometry_.

template<int mydim, int coorddim, class GridImp >
GeometryType Dune::IdentityGridGeometry< mydim, coorddim, GridImp >::type ( ) const
inline

Return the element type identifier.

References Dune::IdentityGridGeometry< mydim, coorddim, GridImp >::hostGeometry_.

Member Data Documentation

template<int mydim, int coorddim, class GridImp >
HostGridGeometry Dune::IdentityGridGeometry< mydim, coorddim, GridImp >::hostGeometry_

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