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, mydimensionLocalCoordinate
 Domain type. More...
 
typedef Dune::FieldVector< ctype, coorddimensionGlobalCoordinate
 Range type. More...
 
typedef Dune::FieldMatrix< ctype, coorddimension, mydimensionJacobian
 Type of Jacobian matrix. More...
 
typedef Dune::FieldMatrix< ctype, mydimension, coorddimensionJacobianTransposed
 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, coorddimensionjacobianTransposed (const LocalCoordinate &local) const
 Return the transposed jacobian. More...
 
const Dune::FieldMatrix< ctype, coorddimension, mydimensionjacobianInverseTransposed (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

◆ ctype

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

Coordinate element type.

◆ GlobalCoordinate

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

Range type.

◆ Jacobian

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

Type of Jacobian matrix.

◆ JacobianTransposed

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

Type of transposed Jacobian matrix.

◆ LocalCoordinate

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

Domain type.

Member Enumeration Documentation

◆ anonymous enum

template<int cdim, class GridImp >
anonymous enum

The dimension of the grid.

Enumerator
dimension 

◆ anonymous enum

template<int cdim, class GridImp >
anonymous enum

Dimension of the domain space.

Enumerator
mydimension 

◆ anonymous enum

template<int cdim, class GridImp >
anonymous enum

Dimension of the range space.

Enumerator
coorddimension 

◆ anonymous enum

template<int cdim, class GridImp >
anonymous enum

World dimension of underlying grid.

Enumerator
dimensionworld 

Constructor & Destructor Documentation

◆ HexGeometry() [1/2]

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.

◆ HexGeometry() [2/2]

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

◆ center()

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

Returns center of quadrilateral.

◆ corner()

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)

◆ corners()

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

Returns number of corners.

◆ global()

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.

◆ integrationElement()

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

◆ jacobianInverseTransposed()

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

◆ jacobianTransposed()

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.

◆ local()

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

◆ type()

template<int cdim, class GridImp >
Dune::GeometryType Opm::Elasticity::HexGeometry< 2, cdim, GridImp >::type ( ) const
inline

Returns entity type (a 2D cube)

◆ volume()

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: