Opm::Elasticity::HexGeometry< 2, cdim, GridImp > Class Template Reference

Specialization for 2D quadrilaterals. More...

#include <boundarygrid.hh>

Public Types

enum  { dimension = 2 }
 The dimension of the grid. More...
 
enum  { mydimension = 2 }
 Dimension of the domain space. More...
 
enum  { coorddimension = cdim }
 Dimension of the range space. More...
 
enum  { dimensionworld = 2 }
 World dimension of underlying grid. More...
 
typedef double ctype
 Coordinate element type. More...
 
typedef Dune::FieldVector
< ctype, mydimension
LocalCoordinate
 Domain type. More...
 
typedef Dune::FieldVector
< ctype, coorddimension
GlobalCoordinate
 Range type. More...
 
typedef Dune::FieldMatrix
< ctype, coorddimension,
mydimension
Jacobian
 Type of Jacobian matrix. More...
 
typedef Dune::FieldMatrix
< ctype, mydimension,
coorddimension
JacobianTransposed
 Type of transposed Jacobian matrix. More...
 

Public Member Functions

 HexGeometry (const BoundaryGrid::Quad &q, const GridImp &gv, int dir)
 Construct integration element extracted from a 3D grid. More...
 
 HexGeometry (const BoundaryGrid::Quad &q)
 Construct integration element. More...
 
Dune::GeometryType type () const
 Returns entity type (a 2D cube) More...
 
int corners () const
 Returns number of corners. More...
 
ctype volume () const
 Returns volume (area) of quadrilateral. More...
 
GlobalCoordinate center () const
 Returns center of quadrilateral. More...
 
GlobalCoordinate corner (int cor) const
 Returns coordinates to requested corner. More...
 
GlobalCoordinate global (const LocalCoordinate &local) const
 Map from local coordinates to global coordinates. More...
 
LocalCoordinate local (const GlobalCoordinate &y) const
 Map from global coordinates to local coordinates. More...
 
const Dune::FieldMatrix< ctype,
mydimension, coorddimension
jacobianTransposed (const LocalCoordinate &local) const
 Return the transposed jacobian. More...
 
const Dune::FieldMatrix< ctype,
coorddimension, mydimension
jacobianInverseTransposed (const LocalCoordinate &local) const
 Returns the inverse, transposed Jacobian. More...
 
ctype integrationElement (const LocalCoordinate &local) const
 Returns the integration element (|J'*J|)^(1/2) More...
 

Detailed Description

template<int cdim, class GridImp>
class Opm::Elasticity::HexGeometry< 2, cdim, GridImp >

Specialization for 2D quadrilaterals.

Member Typedef Documentation

template<int cdim, class GridImp >
typedef double Opm::Elasticity::HexGeometry< 2, cdim, GridImp >::ctype

Coordinate element type.

template<int cdim, class GridImp >
typedef Dune::FieldVector<ctype,coorddimension> Opm::Elasticity::HexGeometry< 2, cdim, GridImp >::GlobalCoordinate

Range type.

template<int cdim, class GridImp >
typedef Dune::FieldMatrix<ctype,coorddimension,mydimension> Opm::Elasticity::HexGeometry< 2, cdim, GridImp >::Jacobian

Type of Jacobian matrix.

template<int cdim, class GridImp >
typedef Dune::FieldMatrix<ctype,mydimension,coorddimension> Opm::Elasticity::HexGeometry< 2, cdim, GridImp >::JacobianTransposed

Type of transposed Jacobian matrix.

template<int cdim, class GridImp >
typedef Dune::FieldVector<ctype,mydimension> Opm::Elasticity::HexGeometry< 2, cdim, GridImp >::LocalCoordinate

Domain type.

Member Enumeration Documentation

template<int cdim, class GridImp >
anonymous enum

The dimension of the grid.

Enumerator
dimension 
template<int cdim, class GridImp >
anonymous enum

Dimension of the domain space.

Enumerator
mydimension 
template<int cdim, class GridImp >
anonymous enum

Dimension of the range space.

Enumerator
coorddimension 
template<int cdim, class GridImp >
anonymous enum

World dimension of underlying grid.

Enumerator
dimensionworld 

Constructor & Destructor Documentation

template<int cdim, class GridImp >
Opm::Elasticity::HexGeometry< 2, cdim, GridImp >::HexGeometry ( const BoundaryGrid::Quad q,
const GridImp &  gv,
int  dir 
)
inline

Construct integration element extracted from a 3D grid.

Parameters
[in]qQuad describing element
[in]gvUnderlying 3D grid quads are extracted from
[in]dirThe direction of the normal vector on the face

References Opm::Elasticity::BoundaryGrid::extract(), Opm::Elasticity::BoundaryGrid::Vertex::i, Opm::Elasticity::itend, Opm::Elasticity::start, and Opm::Elasticity::BoundaryGrid::Quad::v.

template<int cdim, class GridImp >
Opm::Elasticity::HexGeometry< 2, cdim, GridImp >::HexGeometry ( const BoundaryGrid::Quad q)
inline

Construct integration element.

Parameters
[in]qQuad describing element

References Opm::Elasticity::BoundaryGrid::Vertex::c, and Opm::Elasticity::BoundaryGrid::Quad::v.

Member Function Documentation

template<int cdim, class GridImp >
GlobalCoordinate Opm::Elasticity::HexGeometry< 2, cdim, GridImp >::center ( ) const
inline

Returns center of quadrilateral.

template<int cdim, class GridImp >
GlobalCoordinate Opm::Elasticity::HexGeometry< 2, cdim, GridImp >::corner ( int  cor) const
inline

Returns coordinates to requested corner.

Parameters
[in]corThe requested corner (0..3)
template<int cdim, class GridImp >
int Opm::Elasticity::HexGeometry< 2, cdim, GridImp >::corners ( ) const
inline

Returns number of corners.

template<int cdim, class GridImp >
GlobalCoordinate Opm::Elasticity::HexGeometry< 2, cdim, GridImp >::global ( const LocalCoordinate local) const
inline

Map from local coordinates to global coordinates.

Parameters
[in]localThe local coordinates

References Opm::Elasticity::j.

template<int cdim, class GridImp >
ctype Opm::Elasticity::HexGeometry< 2, cdim, GridImp >::integrationElement ( const LocalCoordinate local) const
inline

Returns the integration element (|J'*J|)^(1/2)

Parameters
[in]localThe local coordinates
template<int cdim, class GridImp >
const Dune::FieldMatrix<ctype, coorddimension, mydimension> Opm::Elasticity::HexGeometry< 2, cdim, GridImp >::jacobianInverseTransposed ( const LocalCoordinate local) const
inline

Returns the inverse, transposed Jacobian.

Parameters
[in]localThe local coordinates
template<int cdim, class GridImp >
const Dune::FieldMatrix<ctype, mydimension, coorddimension> Opm::Elasticity::HexGeometry< 2, cdim, GridImp >::jacobianTransposed ( const LocalCoordinate local) const
inline

Return the transposed jacobian.

Parameters
[in]localThe local coordinates

References Opm::Elasticity::j.

template<int cdim, class GridImp >
LocalCoordinate Opm::Elasticity::HexGeometry< 2, cdim, GridImp >::local ( const GlobalCoordinate y) const
inline

Map from global coordinates to local coordinates.

Parameters
[in]yThe global coordinates
template<int cdim, class GridImp >
Dune::GeometryType Opm::Elasticity::HexGeometry< 2, cdim, GridImp >::type ( ) const
inline

Returns entity type (a 2D cube)

template<int cdim, class GridImp >
ctype Opm::Elasticity::HexGeometry< 2, cdim, GridImp >::volume ( ) const
inline

Returns volume (area) of quadrilateral.


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