dune-grid  2.1.1
Public Types | Public Member Functions
Dune::YaspGeometry< mydim, cdim, GridImp > Class Template Reference

The general version implements dimworld==dimworld. If this is not the case an error is thrown. More...

#include <dune/grid/yaspgrid.hh>

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

List of all members.

Public Types

typedef GridImp::ctype ctype
 define type used for coordinates in grid module
typedef Geometry< mydim, mydim,
GridImp, Dune::YaspGeometry
ReferenceGeometry
 the Reference Geometry

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
FieldVector< ctype, cdim > global (const FieldVector< ctype, mydim > &local) const
 maps a local coordinate within reference element to global coordinate in element
FieldVector< ctype, mydim > local (const FieldVector< ctype, cdim > &global) const
 maps a global coordinate within the element to a local coordinate in its reference element
ctype volume () const
 return volume of geometry
ctype integrationElement (const FieldVector< ctype, mydim > &local) const
FieldMatrix< ctype, mydim, cdim > & jacobianTransposed (const FieldVector< ctype, mydim > &local) const
 Compute the transposed of the jacobi matrix.
FieldMatrix< ctype, cdim, mydim > & jacobianInverseTransposed (const FieldVector< ctype, mydim > &local) const
 Compute the transposed of the inverse jacobi matrix.
 YaspGeometry (const FieldVector< ctype, cdim > &p, const FieldVector< ctype, cdim > &h, uint8_t &m)
 constructor from (storage for) midpoint and extension and missing direction number
 YaspGeometry (const YaspGeometry &other)
 copy constructor (skipping temporary variables)
void print (std::ostream &s) const
 print function

Detailed Description

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

The general version implements dimworld==dimworld. If this is not the case an error is thrown.


Member Typedef Documentation

template<int mydim, int cdim, class GridImp>
typedef GridImp::ctype Dune::YaspGeometry< mydim, cdim, GridImp >::ctype

define type used for coordinates in grid module

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

template<int mydim, int cdim, class GridImp>
typedef Geometry<mydim,mydim,GridImp,Dune::YaspGeometry> Dune::YaspGeometry< mydim, cdim, GridImp >::ReferenceGeometry

the Reference Geometry


Constructor & Destructor Documentation

template<int mydim, int cdim, class GridImp>
Dune::YaspGeometry< mydim, cdim, GridImp >::YaspGeometry ( const FieldVector< ctype, cdim > &  p,
const FieldVector< ctype, cdim > &  h,
uint8_t m 
) [inline]

constructor from (storage for) midpoint and extension and missing direction number

template<int mydim, int cdim, class GridImp>
Dune::YaspGeometry< mydim, cdim, GridImp >::YaspGeometry ( const YaspGeometry< mydim, cdim, GridImp > &  other) [inline]

copy constructor (skipping temporary variables)


Member Function Documentation

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

here we have always an affine geometry

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

access to the center/centroid

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

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

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

Referenced by Dune::YaspGeometry< mydim, cdim, const const GridImp >::operator[](), and Dune::YaspGeometry< mydim, mydim, GridImp >::operator[]().

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

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

template<int mydim, int cdim, class GridImp>
FieldVector<ctype, cdim> Dune::YaspGeometry< mydim, cdim, GridImp >::global ( const FieldVector< ctype, mydim > &  local) const [inline]

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

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

determinant of the jacobian of the mapping

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

Compute the transposed of the inverse jacobi matrix.

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

Compute the transposed of the jacobi matrix.

template<int mydim, int cdim, class GridImp>
FieldVector<ctype, mydim> Dune::YaspGeometry< mydim, cdim, GridImp >::local ( const FieldVector< ctype, cdim > &  global) const [inline]

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

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

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

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

print function

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

return the element type identifier

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

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