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

specialization for dim=0, this is a vertex More...

#include <dune/grid/yaspgrid.hh>

Inheritance diagram for Dune::YaspGeometry< 0, cdim, GridImp >:
Dune::GeometryDefaultImplementation< 0, cdim, GridImp, YaspGeometry >

Public Types

typedef GridImp::ctype ctype
typedef FieldVector< ctype, mydim > LocalCoordinate
typedef FieldVector< ctype, cdim > GlobalCoordinate
typedef FieldMatrix< ctype,
cdim, mydim > 
Jacobian
 type of jacobian (also of jacobian inverse transposed)
typedef FieldMatrix< ctype,
mydim, cdim > 
JacobianTransposed
 type of jacobian transposed

Public Member Functions

GeometryType type () const
 return the element type identifier
bool affine () const
 here we have always an affine geometry
int corners () const
 return the number of corners of this element. Corners are numbered 0...n-1
const FieldVector< ctype, cdim > & operator[] (int i) const
 access to coordinates of corners. Index is the number of the corner
FieldVector< ctype, cdim > corner (const int i) const
 access to coordinates of corners. Index is the number of the corner
FieldVector< ctype, cdim > center () const
 access to the center/centroid
ctype integrationElement (const FieldVector< ctype, 0 > &local) const
FieldMatrix< ctype, 0, cdim > & jacobianTransposed (const FieldVector< ctype, 0 > &local) const
 Compute the transposed of the jacobi matrix.
FieldMatrix< ctype, cdim, 0 > & jacobianInverseTransposed (const FieldVector< ctype, 0 > &local) const
 Compute the transposed of the inverse jacobi matrix.
 YaspGeometry ()
 default constructor
 YaspGeometry (const FieldVector< ctype, cdim > &p)
 constructor
 YaspGeometry (const FieldVector< ctype, cdim > &p, const FieldVector< ctype, cdim > &, uint8_t &)
void print (std::ostream &s) const
 print function
ctype volume () const
 return volume of the geometry

Static Public Attributes

static const int mydimension
static const int coorddimension

Detailed Description

template<int cdim, class GridImp>
class Dune::YaspGeometry< 0, cdim, GridImp >

specialization for dim=0, this is a vertex

Member Typedef Documentation

template<int cdim, class GridImp >
typedef GridImp::ctype Dune::YaspGeometry< 0, cdim, GridImp >::ctype
typedef FieldVector< ctype, cdim > Dune::GeometryDefaultImplementation< mydim, cdim, GridImp, YaspGeometry >::GlobalCoordinate
inherited
typedef FieldMatrix<ctype,cdim,mydim> Dune::GeometryDefaultImplementation< mydim, cdim, GridImp, YaspGeometry >::Jacobian
inherited

type of jacobian (also of jacobian inverse transposed)

typedef FieldMatrix< ctype, mydim, cdim > Dune::GeometryDefaultImplementation< mydim, cdim, GridImp, YaspGeometry >::JacobianTransposed
inherited

type of jacobian transposed

typedef FieldVector< ctype, mydim > Dune::GeometryDefaultImplementation< mydim, cdim, GridImp, YaspGeometry >::LocalCoordinate
inherited

Constructor & Destructor Documentation

template<int cdim, class GridImp >
Dune::YaspGeometry< 0, cdim, GridImp >::YaspGeometry ( )
inline

default constructor

template<int cdim, class GridImp >
Dune::YaspGeometry< 0, cdim, GridImp >::YaspGeometry ( const FieldVector< ctype, cdim > &  p)
inlineexplicit

constructor

template<int cdim, class GridImp >
Dune::YaspGeometry< 0, cdim, GridImp >::YaspGeometry ( const FieldVector< ctype, cdim > &  p,
const FieldVector< ctype, cdim > &  ,
uint8_t  
)
inline

Member Function Documentation

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

here we have always an affine geometry

template<int cdim, class GridImp >
FieldVector< ctype, cdim > Dune::YaspGeometry< 0, cdim, GridImp >::center ( ) const
inline

access to the center/centroid

Reimplemented from Dune::GeometryDefaultImplementation< 0, cdim, GridImp, YaspGeometry >.

template<int cdim, class GridImp >
FieldVector< ctype, cdim > Dune::YaspGeometry< 0, cdim, GridImp >::corner ( const int  i) const
inline

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

template<int cdim, class GridImp >
int Dune::YaspGeometry< 0, cdim, GridImp >::corners ( ) const
inline

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

template<int cdim, class GridImp >
ctype Dune::YaspGeometry< 0, cdim, GridImp >::integrationElement ( const FieldVector< ctype, 0 > &  local) const
inline

determinant of the jacobian of the mapping

template<int cdim, class GridImp >
FieldMatrix<ctype,cdim,0>& Dune::YaspGeometry< 0, cdim, GridImp >::jacobianInverseTransposed ( const FieldVector< ctype, 0 > &  local) const
inline

Compute the transposed of the inverse jacobi matrix.

template<int cdim, class GridImp >
FieldMatrix<ctype,0,cdim>& Dune::YaspGeometry< 0, cdim, GridImp >::jacobianTransposed ( const FieldVector< ctype, 0 > &  local) const
inline

Compute the transposed of the jacobi matrix.

template<int cdim, class GridImp >
const FieldVector<ctype, cdim>& Dune::YaspGeometry< 0, cdim, GridImp >::operator[] ( int  i) const
inline

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

template<int cdim, class GridImp >
void Dune::YaspGeometry< 0, cdim, GridImp >::print ( std::ostream &  s) const
inline

print function

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

return the element type identifier

References Dune::cube.

ctype Dune::GeometryDefaultImplementation< mydim, cdim, GridImp, YaspGeometry >::volume ( ) const
inlineinherited

return volume of the geometry

Member Data Documentation

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

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