All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
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.
 
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.
 
typedef double ctype
 Coordinate element type.
 
typedef FieldVector< ctype,
mydimension > 
LocalCoordinate
 Domain type of. More...
 
typedef FieldVector< ctype,
coorddimension > 
GlobalCoordinate
 Range type of. More...
 
typedef FieldMatrix< ctype,
coorddimension, mydimension > 
Jacobian
 Type of Jacobian matrix.
 
typedef FieldMatrix< ctype,
mydimension, coorddimension > 
JacobianTransposed
 Type of transposed Jacobian matrix.
 
typedef FieldMatrix< ctype,
coorddimension, mydimension > 
JacobianInverseTransposed
 Type of the inverse of the transposed Jacobian matrix.
 

Public Member Functions

 Geometry (const GlobalCoordinate &pos)
 Construct from vertex position. More...
 
 Geometry ()
 Default constructor, giving a non-valid geometry.
 
const GlobalCoordinateglobal (const LocalCoordinate &) const
 Returns the position of the vertex.
 
LocalCoordinate local (const GlobalCoordinate &) const
 Meaningless for the vertex geometry.
 
double integrationElement (const LocalCoordinate &) const
 Returns 1 for the vertex geometry.
 
GeometryType type () const
 Using the cube type for vertices.
 
int corners () const
 A vertex is defined by a single corner.
 
GlobalCoordinate corner (int cor) const
 Returns the single corner: the vertex itself.
 
ctype volume () const
 Volume of vertex is arbitrarily set to 1.
 
const GlobalCoordinatecenter () const
 Returns the centroid of the geometry.
 
FieldMatrix< ctype,
mydimension, coorddimension > 
jacobianTransposed (const LocalCoordinate &) const
 This method is meaningless for singular geometries.
 
FieldMatrix< ctype,
coorddimension, mydimension > 
jacobianInverseTransposed (const LocalCoordinate &) const
 This method is meaningless for singular geometries.
 
bool affine () const
 The mapping implemented by this geometry is constant, therefore affine.
 

Detailed Description

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

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

Member Typedef Documentation

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

Range type of.

See Also
global().
template<int cdim>
typedef FieldVector<ctype, mydimension> Dune::cpgrid::Geometry< 0, cdim >::LocalCoordinate

Domain type of.

See Also
global().

Member Enumeration Documentation

template<int cdim>
anonymous enum

Dimension of domain space of.

See Also
global().
template<int cdim>
anonymous enum

Dimension of range space of.

See Also
global().

Constructor & Destructor Documentation

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

Construct from vertex position.

Parameters
posthe position of the vertex

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