Dune::cpgrid::Geometry< 2, cdim > Class Template Reference

#include <Geometry.hpp>

Public Types

enum  { dimension = 3 }
 Dimension of underlying grid. More...
 
enum  { mydimension = 2 }
 Dimension of domain space of. More...
 
enum  { coorddimension = cdim }
 Dimension of range space of. More...
 
enum  { dimensionworld = 3 }
 World dimension of underlying grid. More...
 
typedef double ctype
 Coordinate element type. More...
 
typedef FieldVector< ctype, mydimensionLocalCoordinate
 Domain type of. More...
 
typedef FieldVector< ctype, coorddimensionGlobalCoordinate
 Range type of. More...
 
typedef FieldMatrix< ctype, coorddimension, mydimensionJacobian
 Type of Jacobian matrix. More...
 
typedef FieldMatrix< ctype, coorddimension, mydimensionJacobianInverse
 Type of inverse of Jacobian matrix. More...
 
typedef FieldMatrix< ctype, mydimension, coorddimensionJacobianTransposed
 Type of transposed Jacobian matrix. More...
 
typedef FieldMatrix< ctype, coorddimension, mydimensionJacobianInverseTransposed
 Type of the inverse of the transposed Jacobian matrix. More...
 

Public Member Functions

 Geometry (const GlobalCoordinate &pos, ctype vol)
 Construct from centroid and volume (1- and 0-moments). More...
 
 Geometry ()
 Default constructor, giving a non-valid geometry. More...
 
const GlobalCoordinateglobal (const LocalCoordinate &) const
 This method is meaningless for singular geometries. More...
 
LocalCoordinate local (const GlobalCoordinate &) const
 This method is meaningless for singular geometries. More...
 
double integrationElement (const LocalCoordinate &) const
 
GeometryType type () const
 We use the singular type (None) for intersections. More...
 
int corners () const
 
GlobalCoordinate corner (int) const
 This method is meaningless for singular geometries. More...
 
ctype volume () const
 Volume (area, actually) of intersection. More...
 
const GlobalCoordinatecenter () const
 Returns the centroid of the geometry. More...
 
const FieldMatrix< ctype, mydimension, coorddimension > & jacobianTransposed (const LocalCoordinate &) const
 This method is meaningless for singular geometries. More...
 
const FieldMatrix< ctype, coorddimension, mydimension > & jacobianInverseTransposed (const LocalCoordinate &) const
 This method is meaningless for singular geometries. More...
 
Jacobian jacobian (const LocalCoordinate &) const
 The jacobian. More...
 
JacobianInverse jacobianInverse (const LocalCoordinate &) const
 The inverse of the jacobian. More...
 
bool affine () const
 Since integrationElement() is constant, returns true. More...
 

Detailed Description

template<int cdim>
class Dune::cpgrid::Geometry< 2, cdim >

Specialization for 2 dimensional geometries, that is intersections (since codim 1 entities are not in CpGrid).

Member Typedef Documentation

◆ ctype

template<int cdim>
typedef double Dune::cpgrid::Geometry< 2, cdim >::ctype

Coordinate element type.

◆ GlobalCoordinate

template<int cdim>
typedef FieldVector<ctype, coorddimension> Dune::cpgrid::Geometry< 2, cdim >::GlobalCoordinate

Range type of.

See also
global().

◆ Jacobian

template<int cdim>
typedef FieldMatrix< ctype, coorddimension, mydimension > Dune::cpgrid::Geometry< 2, cdim >::Jacobian

Type of Jacobian matrix.

◆ JacobianInverse

template<int cdim>
typedef FieldMatrix< ctype, coorddimension, mydimension > Dune::cpgrid::Geometry< 2, cdim >::JacobianInverse

Type of inverse of Jacobian matrix.

◆ JacobianInverseTransposed

template<int cdim>
typedef FieldMatrix< ctype, coorddimension, mydimension > Dune::cpgrid::Geometry< 2, cdim >::JacobianInverseTransposed

Type of the inverse of the transposed Jacobian matrix.

◆ JacobianTransposed

template<int cdim>
typedef FieldMatrix< ctype, mydimension, coorddimension > Dune::cpgrid::Geometry< 2, cdim >::JacobianTransposed

Type of transposed Jacobian matrix.

◆ LocalCoordinate

template<int cdim>
typedef FieldVector<ctype, mydimension> Dune::cpgrid::Geometry< 2, cdim >::LocalCoordinate

Domain type of.

See also
global().

Member Enumeration Documentation

◆ anonymous enum

template<int cdim>
anonymous enum

Dimension of underlying grid.

Enumerator
dimension 

◆ anonymous enum

template<int cdim>
anonymous enum

Dimension of domain space of.

See also
global().
Enumerator
mydimension 

◆ anonymous enum

template<int cdim>
anonymous enum

Dimension of range space of.

See also
global().
Enumerator
coorddimension 

◆ anonymous enum

template<int cdim>
anonymous enum

World dimension of underlying grid.

Enumerator
dimensionworld 

Constructor & Destructor Documentation

◆ Geometry() [1/2]

template<int cdim>
Dune::cpgrid::Geometry< 2, cdim >::Geometry ( const GlobalCoordinate pos,
ctype  vol 
)
inline

Construct from centroid and volume (1- and 0-moments).

Parameters
posthe centroid of the entity
volthe volume(area) of the entity

◆ Geometry() [2/2]

template<int cdim>
Dune::cpgrid::Geometry< 2, cdim >::Geometry ( )
inline

Default constructor, giving a non-valid geometry.

Member Function Documentation

◆ affine()

template<int cdim>
bool Dune::cpgrid::Geometry< 2, cdim >::affine ( ) const
inline

Since integrationElement() is constant, returns true.

◆ center()

template<int cdim>
const GlobalCoordinate & Dune::cpgrid::Geometry< 2, cdim >::center ( ) const
inline

Returns the centroid of the geometry.

◆ corner()

template<int cdim>
GlobalCoordinate Dune::cpgrid::Geometry< 2, cdim >::corner ( int  ) const
inline

This method is meaningless for singular geometries.

◆ corners()

template<int cdim>
int Dune::cpgrid::Geometry< 2, cdim >::corners ( ) const
inline

The number of corners of this convex polytope. Since this geometry is singular, we have no corners as such.

◆ global()

template<int cdim>
const GlobalCoordinate & Dune::cpgrid::Geometry< 2, cdim >::global ( const LocalCoordinate ) const
inline

This method is meaningless for singular geometries.

◆ integrationElement()

template<int cdim>
double Dune::cpgrid::Geometry< 2, cdim >::integrationElement ( const LocalCoordinate ) const
inline

For the singular geometry, we return a constant integration element equal to the volume.

◆ jacobian()

template<int cdim>
Jacobian Dune::cpgrid::Geometry< 2, cdim >::jacobian ( const LocalCoordinate ) const
inline

The jacobian.

◆ jacobianInverse()

template<int cdim>
JacobianInverse Dune::cpgrid::Geometry< 2, cdim >::jacobianInverse ( const LocalCoordinate ) const
inline

The inverse of the jacobian.

◆ jacobianInverseTransposed()

template<int cdim>
const FieldMatrix< ctype, coorddimension, mydimension > & Dune::cpgrid::Geometry< 2, cdim >::jacobianInverseTransposed ( const LocalCoordinate ) const
inline

This method is meaningless for singular geometries.

◆ jacobianTransposed()

template<int cdim>
const FieldMatrix< ctype, mydimension, coorddimension > & Dune::cpgrid::Geometry< 2, cdim >::jacobianTransposed ( const LocalCoordinate ) const
inline

This method is meaningless for singular geometries.

◆ local()

template<int cdim>
LocalCoordinate Dune::cpgrid::Geometry< 2, cdim >::local ( const GlobalCoordinate ) const
inline

This method is meaningless for singular geometries.

◆ type()

template<int cdim>
GeometryType Dune::cpgrid::Geometry< 2, cdim >::type ( ) const
inline

We use the singular type (None) for intersections.

◆ volume()

template<int cdim>
ctype Dune::cpgrid::Geometry< 2, cdim >::volume ( ) const
inline

Volume (area, actually) of intersection.


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