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

Specialization for 0 dimensional geometries, i.e. vertices. More...

#include <Geometry.hpp>

Public Types

enum  { dimension = 3 }
 Dimension of underlying grid. More...
 
enum  { mydimension = 0 }
 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)
 Construct from vertex position. More...
 
 Geometry ()
 Default constructor, giving a non-valid geometry. More...
 
const GlobalCoordinateglobal (const LocalCoordinate &) const
 Returns the position of the vertex. More...
 
LocalCoordinate local (const GlobalCoordinate &) const
 Meaningless for the vertex geometry. More...
 
double integrationElement (const LocalCoordinate &) const
 Returns 1 for the vertex geometry. More...
 
GeometryType type () const
 Using the cube type for vertices. More...
 
int corners () const
 A vertex is defined by a single corner. More...
 
GlobalCoordinate corner (int cor) const
 Returns the single corner: the vertex itself. More...
 
ctype volume () const
 Volume of vertex is arbitrarily set to 1. More...
 
const GlobalCoordinatecenter () const
 Returns the centroid of the geometry. More...
 
JacobianTransposed jacobianTransposed (const LocalCoordinate &) const
 This method is meaningless for singular geometries. More...
 
JacobianInverseTransposed jacobianInverseTransposed (const LocalCoordinate &) const
 This method is meaningless for singular geometries. More...
 
Jacobian jacobian (const LocalCoordinate &) const
 This method is meaningless for singular geometries. More...
 
JacobianInverse jacobianInverse (const LocalCoordinate &) const
 This method is meaningless for singular geometries. More...
 
bool affine () const
 The mapping implemented by this geometry is constant, therefore affine. More...
 

Detailed Description

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

Specialization for 0 dimensional geometries, i.e. vertices.

Member Typedef Documentation

◆ ctype

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

Coordinate element type.

◆ GlobalCoordinate

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

Range type of.

See also
global().

◆ Jacobian

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

Type of Jacobian matrix.

◆ JacobianInverse

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

Type of inverse of Jacobian matrix.

◆ JacobianInverseTransposed

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

Type of the inverse of the transposed Jacobian matrix.

◆ JacobianTransposed

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

Type of transposed Jacobian matrix.

◆ LocalCoordinate

template<int cdim>
typedef FieldVector<ctype, mydimension> Dune::cpgrid::Geometry< 0, 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< 0, cdim >::Geometry ( const GlobalCoordinate pos)
inline

Construct from vertex position.

Parameters
posthe position of the vertex

◆ Geometry() [2/2]

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

Default constructor, giving a non-valid geometry.

Member Function Documentation

◆ affine()

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

The mapping implemented by this geometry is constant, therefore affine.

◆ center()

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

Returns the centroid of the geometry.

◆ corner()

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

Returns the single corner: the vertex itself.

◆ corners()

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

A vertex is defined by a single corner.

◆ global()

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

Returns the position of the vertex.

◆ integrationElement()

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

Returns 1 for the vertex geometry.

References Dune::volume().

◆ jacobian()

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

This method is meaningless for singular geometries.

◆ jacobianInverse()

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

This method is meaningless for singular geometries.

◆ jacobianInverseTransposed()

template<int cdim>
JacobianInverseTransposed Dune::cpgrid::Geometry< 0, cdim >::jacobianInverseTransposed ( const LocalCoordinate ) const
inline

This method is meaningless for singular geometries.

◆ jacobianTransposed()

template<int cdim>
JacobianTransposed Dune::cpgrid::Geometry< 0, cdim >::jacobianTransposed ( const LocalCoordinate ) const
inline

This method is meaningless for singular geometries.

◆ local()

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

Meaningless for the vertex geometry.

◆ type()

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

Using the cube type for vertices.

◆ volume()

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

Volume of vertex is arbitrarily set to 1.


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