dune-grid 2.9.0
Public Types | Public Member Functions | Static Public Attributes | List of all members
Dune::AlbertaGridGeometry< mydim, cdim, GridImp > Class Template Reference

geometry implementation for AlbertaGrid More...

#include <dune/grid/albertagrid/geometry.hh>

Inheritance diagram for Dune::AlbertaGridGeometry< mydim, cdim, GridImp >:
Inheritance graph

Public Types

typedef Alberta::Real ctype
 type of coordinates More...
 
typedef FieldVector< ctype, mydimensionLocalCoordinate
 
typedef FieldVector< ctype, coorddimensionGlobalCoordinate
 
typedef FieldMatrix< ctype, mydimension, coorddimensionJacobianTransposed
 
typedef FieldMatrix< ctype, coorddimension, mydimensionJacobianInverseTransposed
 
typedef FieldMatrix< ctype, coorddimension, mydimensionJacobian
 
typedef FieldMatrix< ctype, mydimension, coorddimensionJacobianInverse
 

Public Member Functions

 AlbertaGridGeometry ()
 
template<class CoordReader >
 AlbertaGridGeometry (const CoordReader &coordReader)
 
GeometryType type () const
 obtain the type of reference element More...
 
bool affine () const
 returns always true since we only have simplices More...
 
int corners () const
 number of corner the geometry More...
 
GlobalCoordinate corner (const int i) const
 obtain the i-th corner of this geometry More...
 
GlobalCoordinate center () const
 return center of geometry More...
 
GlobalCoordinate global (const LocalCoordinate &local) const
 map a point from the reference element to the geometry More...
 
 LocalCoordinate (const GlobalCoordinate &global) const
 map a point from the geometry to the reference element More...
 
ctype integrationElement () const
 integration element of the geometry mapping More...
 
ctype integrationElement (const LocalCoordinate &local) const
 integration element of the geometry mapping More...
 
ctype volume () const
 volume of geometry More...
 
const JacobianTransposedjacobianTransposed () const
 transposed of the geometry mapping's Jacobian More...
 
const JacobianTransposedjacobianTransposed (const LocalCoordinate &local) const
 transposed of the geometry mapping's Jacobian More...
 
const JacobianInverseTransposedjacobianInverseTransposed () const
 transposed inverse of the geometry mapping's Jacobian More...
 
const JacobianInverseTransposedjacobianInverseTransposed (const LocalCoordinate &local) const
 transposed inverse of the geometry mapping's Jacobian More...
 
Jacobian jacobian (const LocalCoordinate &local) const
 geometry mapping's Jacobian More...
 
JacobianInverse jacobianInverse (const LocalCoordinate &local) const
 inverse of the geometry mapping's Jacobian More...
 
void invalidate ()
 invalidate the geometry More...
 
template<class CoordReader >
void build (const CoordReader &coordReader)
 build the geometry from a coordinate reader More...
 
void print (std::ostream &out) const
 

Static Public Attributes

static constexpr int dimension = Grid :: dimension
 
static constexpr int mydimension = mydim
 
static constexpr int codimension = dimension - mydimension
 
static constexpr int coorddimension = cdim
 

Detailed Description

template<int mydim, int cdim, class GridImp>
class Dune::AlbertaGridGeometry< mydim, cdim, GridImp >

geometry implementation for AlbertaGrid

Defines the geometry part of a mesh entity. Works for all dimensions, element types and dim of world. Provides reference element and mapping between local and global coordinates.

Template Parameters
mydimdimension of the element (0 <= dim <= 3)
cdimdimension of global coordinates
GridImpgrid implementation (always const AlbertaGrid< dim, dimworld >)

Member Typedef Documentation

◆ ctype

template<int mydim, int cdim, class GridImp >
typedef Alberta::Real Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::ctype

type of coordinates

◆ GlobalCoordinate

template<int mydim, int cdim, class GridImp >
typedef FieldVector< ctype, coorddimension > Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::GlobalCoordinate

◆ Jacobian

template<int mydim, int cdim, class GridImp >
typedef FieldMatrix< ctype, coorddimension, mydimension > Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::Jacobian

◆ JacobianInverse

template<int mydim, int cdim, class GridImp >
typedef FieldMatrix< ctype, mydimension, coorddimension > Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::JacobianInverse

◆ JacobianInverseTransposed

template<int mydim, int cdim, class GridImp >
typedef FieldMatrix< ctype, coorddimension, mydimension > Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::JacobianInverseTransposed

◆ JacobianTransposed

template<int mydim, int cdim, class GridImp >
typedef FieldMatrix< ctype, mydimension, coorddimension > Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::JacobianTransposed

◆ LocalCoordinate

template<int mydim, int cdim, class GridImp >
typedef FieldVector< ctype, mydimension > Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::LocalCoordinate

Constructor & Destructor Documentation

◆ AlbertaGridGeometry() [1/2]

template<int mydim, int cdim, class GridImp >
Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::AlbertaGridGeometry ( )
inline

◆ AlbertaGridGeometry() [2/2]

template<int mydim, int cdim, class GridImp >
template<class CoordReader >
Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::AlbertaGridGeometry ( const CoordReader &  coordReader)
inline

Member Function Documentation

◆ affine()

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

returns always true since we only have simplices

◆ build()

template<int mydim, int cdim, class GridImp >
template<class CoordReader >
void Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::build ( const CoordReader &  coordReader)
inline

build the geometry from a coordinate reader

◆ center()

template<int mydim, int cdim, class GridImp >
GlobalCoordinate Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::center ( ) const
inline

return center of geometry

◆ corner()

template<int mydim, int cdim, class GridImp >
GlobalCoordinate Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::corner ( const int  i) const
inline

obtain the i-th corner of this geometry

◆ corners()

template<int mydim, int cdim, class GridImp >
int Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::corners ( ) const
inline

number of corner the geometry

◆ global()

template<int mydim, int cdim, class GridImp >
AlbertaGridGeometry< mydim, cdim, GridImp >::GlobalCoordinate Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::global ( const LocalCoordinate local) const
inline

map a point from the reference element to the geometry

◆ integrationElement() [1/2]

template<int mydim, int cdim, class GridImp >
ctype Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::integrationElement ( ) const
inline

integration element of the geometry mapping

Note
This method is not part of the geometry interface. It is used internally only.

◆ integrationElement() [2/2]

template<int mydim, int cdim, class GridImp >
ctype Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::integrationElement ( const LocalCoordinate local) const
inline

integration element of the geometry mapping

◆ invalidate()

template<int mydim, int cdim, class GridImp >
void Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::invalidate ( )
inline

invalidate the geometry

◆ jacobian()

template<int mydim, int cdim, class GridImp >
Jacobian Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::jacobian ( const LocalCoordinate local) const
inline

geometry mapping's Jacobian

◆ jacobianInverse()

template<int mydim, int cdim, class GridImp >
JacobianInverse Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::jacobianInverse ( const LocalCoordinate local) const
inline

inverse of the geometry mapping's Jacobian

◆ jacobianInverseTransposed() [1/2]

template<int mydim, int cdim, class GridImp >
const AlbertaGridGeometry< mydim, cdim, GridImp >::JacobianInverseTransposed & Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::jacobianInverseTransposed
inline

transposed inverse of the geometry mapping's Jacobian

Note
This method is not part of the geometry interface. It is used internally only.

◆ jacobianInverseTransposed() [2/2]

template<int mydim, int cdim, class GridImp >
const JacobianInverseTransposed & Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::jacobianInverseTransposed ( const LocalCoordinate local) const
inline

transposed inverse of the geometry mapping's Jacobian

◆ jacobianTransposed() [1/2]

template<int mydim, int cdim, class GridImp >
const AlbertaGridGeometry< mydim, cdim, GridImp >::JacobianTransposed & Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::jacobianTransposed
inline

transposed of the geometry mapping's Jacobian

Note
This method is not part of the geometry interface. It is used internally only.

◆ jacobianTransposed() [2/2]

template<int mydim, int cdim, class GridImp >
const JacobianTransposed & Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::jacobianTransposed ( const LocalCoordinate local) const
inline

transposed of the geometry mapping's Jacobian

◆ LocalCoordinate()

template<int mydim, int cdim, class GridImp >
Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::LocalCoordinate ( const GlobalCoordinate global) const

map a point from the geometry to the reference element

◆ print()

template<int mydim, int cdim, class GridImp >
void Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::print ( std::ostream &  out) const
inline

◆ type()

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

obtain the type of reference element

◆ volume()

template<int mydim, int cdim, class GridImp >
ctype Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::volume ( ) const
inline

volume of geometry

Member Data Documentation

◆ codimension

template<int mydim, int cdim, class GridImp >
constexpr int Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::codimension = dimension - mydimension
staticconstexpr

◆ coorddimension

template<int mydim, int cdim, class GridImp >
constexpr int Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::coorddimension = cdim
staticconstexpr

◆ dimension

template<int mydim, int cdim, class GridImp >
constexpr int Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::dimension = Grid :: dimension
staticconstexpr

◆ mydimension

template<int mydim, int cdim, class GridImp >
constexpr int Dune::AlbertaGridGeometry< mydim, cdim, GridImp >::mydimension = mydim
staticconstexpr

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