dune-grid  2.2.1
Public Types | Public Member Functions | Static Public Attributes | Friends | List of all members
Dune::ALU3dGridGeometry< mydim, coorddim, GridImp > Class Template Reference

#include <dune/grid/alugrid/3d/entity.hh>

Inheritance diagram for Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >:
Dune::GeometryDefaultImplementation< mydim, cdim, GridImp, ALU3dGridGeometry >

Public Types

typedef GridImp::ctype ctype
 
typedef FieldVector< ctype, mydim > LocalCoordinate
 type of local coordinates More...
 
typedef FieldVector< ctype, cdim > GlobalCoordinate
 type of the global coordinates More...
 
typedef FieldMatrix< ctype,
cdim, mydim > 
Jacobian
 type of jacobian (also of jacobian inverse transposed) More...
 
typedef FieldMatrix< ctype,
mydim, cdim > 
JacobianTransposed
 type of jacobian transposed More...
 
typedef FieldMatrix< ctype,
EntityCount< elementType >
::numVerticesPerFace, 3 > 
FaceCoordinatesType
 

Public Member Functions

 ALU3dGridGeometry ()
 
GeometryType type () const
 
int corners () const
 return the number of corners of this element. Corners are numbered 0..n-1 More...
 
const GlobalCoordinateoperator[] (int i) const
 access to coordinates of corners. Index is the number of the corner More...
 
GlobalCoordinate corner (int i) const
 access to coordinates of corners. Index is the number of the corner More...
 
GlobalCoordinate global (const LocalCoordinate &local) const
 
LocalCoordinate local (const GlobalCoordinate &global) const
 
ctype integrationElement (const LocalCoordinate &local) const
 A(l) , see grid.hh. More...
 
const JacobianjacobianInverseTransposed (const LocalCoordinate &local) const
 
const JacobianTransposedjacobianTransposed (const LocalCoordinate &local) const
 jacobian transposed More...
 
bool affine () const
 returns true if mapping is affine More...
 
ctype volume () const
 returns volume of geometry More...
 
bool buildGeom (const IMPLElementType &item)
 Methods that not belong to the Interface, but have to be public. More...
 
bool buildGeom (const HFaceType &item, int twist, int faceNum)
 
bool buildGeom (const HEdgeType &item, int twist, int)
 
bool buildGeom (const VertexType &item, int twist, int)
 
bool buildGeom (const FaceCoordinatesType &coords)
 
template<class coord_t >
bool buildGeom (const coord_t &p0, const coord_t &p1, const coord_t &p2, const coord_t &p3)
 
template<class coord_t >
bool buildGeom (const coord_t &p0, const coord_t &p1, const coord_t &p2)
 
template<class GeometryType >
bool buildGeomInFather (const GeometryType &fatherGeom, const GeometryType &myGeom)
 build geometry of local coordinates relative to father More...
 
void print (std::ostream &ss) const
 
void invalidate ()
 invalidate geometry implementation to avoid errors More...
 
bool valid () const
 invalidate geometry implementation to avoid errors More...
 
GlobalCoordinate center () const
 return center of the geometry More...
 

Static Public Attributes

static const int mydimension
 
static const int coorddimension
 

Friends

class ALU3dGridIntersectionIterator< GridImp >
 

Member Typedef Documentation

template<int mydim, int coorddim, class GridImp >
typedef GridImp :: ctype Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::ctype
template<int mydim, int coorddim, class GridImp >
typedef FieldMatrix<ctype, EntityCount< elementType >:: numVerticesPerFace , 3> Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::FaceCoordinatesType
template<int mydim, int coorddim, class GridImp >
typedef FieldVector<ctype, cdim > Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::GlobalCoordinate

type of the global coordinates

template<int mydim, int coorddim, class GridImp >
typedef FieldMatrix<ctype,cdim,mydim> Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::Jacobian

type of jacobian (also of jacobian inverse transposed)

template<int mydim, int coorddim, class GridImp >
typedef FieldMatrix< ctype, mydim, cdim > Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::JacobianTransposed

type of jacobian transposed

template<int mydim, int coorddim, class GridImp >
typedef FieldVector<ctype, mydim> Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::LocalCoordinate

type of local coordinates

Constructor & Destructor Documentation

template<int mydim, int coorddim, class GridImp >
Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::ALU3dGridGeometry ( )

for makeRefGeometry == true a Geometry with the coordinates of the reference element is made

Member Function Documentation

template<int mydim, int coorddim, class GridImp >
bool Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::affine ( ) const
inline

returns true if mapping is affine

template<int mydim, int coorddim, class GridImp >
bool Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::buildGeom ( const IMPLElementType &  item)

Methods that not belong to the Interface, but have to be public.

generate the geometry out of a given ALU3dGridElement

template<int mydim, int coorddim, class GridImp >
bool Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::buildGeom ( const HFaceType &  item,
int  twist,
int  faceNum 
)
template<int mydim, int coorddim, class GridImp >
bool Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::buildGeom ( const HEdgeType &  item,
int  twist,
int   
)
template<int mydim, int coorddim, class GridImp >
bool Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::buildGeom ( const VertexType &  item,
int  twist,
int   
)
template<int mydim, int coorddim, class GridImp >
bool Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::buildGeom ( const FaceCoordinatesType coords)
template<int mydim, int coorddim, class GridImp >
template<class coord_t >
bool Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::buildGeom ( const coord_t &  p0,
const coord_t &  p1,
const coord_t &  p2,
const coord_t &  p3 
)
template<int mydim, int coorddim, class GridImp >
template<class coord_t >
bool Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::buildGeom ( const coord_t &  p0,
const coord_t &  p1,
const coord_t &  p2 
)
template<int mydim, int coorddim, class GridImp >
template<class GeometryType >
bool Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::buildGeomInFather ( const GeometryType &  fatherGeom,
const GeometryType &  myGeom 
)

build geometry of local coordinates relative to father

GlobalCoordinate Dune::GeometryDefaultImplementation< mydim, cdim, GridImp, ALU3dGridGeometry >::center ( ) const
inlineinherited

return center of the geometry

template<int mydim, int coorddim, class GridImp >
GlobalCoordinate Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::corner ( int  i) const

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

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

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

template<int mydim, int coorddim, class GridImp >
GlobalCoordinate Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::global ( const LocalCoordinate local) const

maps a local coordinate within reference element to global coordinate in element

template<int mydim, int coorddim, class GridImp >
ctype Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::integrationElement ( const LocalCoordinate local) const

A(l) , see grid.hh.

template<int mydim, int coorddim, class GridImp >
void Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::invalidate ( )

invalidate geometry implementation to avoid errors

template<int mydim, int coorddim, class GridImp >
const Jacobian& Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::jacobianInverseTransposed ( const LocalCoordinate local) const

can only be called for dim=dimworld! (Trivially true, since there is no other specialization...)

template<int mydim, int coorddim, class GridImp >
const JacobianTransposed& Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::jacobianTransposed ( const LocalCoordinate local) const

jacobian transposed

template<int mydim, int coorddim, class GridImp >
LocalCoordinate Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::local ( const GlobalCoordinate global) const

maps a global coordinate within the element to a local coordinate in its reference element

template<int mydim, int coorddim, class GridImp >
const GlobalCoordinate& Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::operator[] ( int  i) const

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

template<int mydim, int coorddim, class GridImp >
void Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::print ( std::ostream &  ss) const

print internal data no interface method

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

return the element type identifier line , triangle or tetrahedron, depends on dim

template<int mydim, int coorddim, class GridImp >
bool Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::valid ( ) const

invalidate geometry implementation to avoid errors

template<int mydim, int coorddim, class GridImp >
ctype Dune::ALU3dGridGeometry< mydim, coorddim, GridImp >::volume ( ) const

returns volume of geometry

Friends And Related Function Documentation

template<int mydim, int coorddim, class GridImp >
friend class ALU3dGridIntersectionIterator< GridImp >
friend

Member Data Documentation

const int Dune::GeometryDefaultImplementation< mydim, cdim, GridImp, ALU3dGridGeometry >::coorddimension
staticinherited
const int Dune::GeometryDefaultImplementation< mydim, cdim, GridImp, ALU3dGridGeometry >::mydimension
staticinherited

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