Opm::QuadrialteralQuadratureGeometry< Scalar, dim > Class Template Reference

Quadrature geometry for quadrilaterals. More...

#include <quadraturegeometries.hh>

Public Types

enum  { numCorners = (1 << dim) }
 
using LocalPosition = Dune::FieldVector< Scalar, dim >
 
using GlobalPosition = Dune::FieldVector< Scalar, dim >
 

Public Member Functions

Dune::GeometryType type () const
 
template<class CornerContainer >
void setCorners (const CornerContainer &corners, unsigned nCorners)
 
const GlobalPositioncenter () const
 Returns the center of weight of the polyhedron. More...
 
GlobalPosition global (const LocalPosition &localPos) const
 Convert a local coordinate into a global one. More...
 
void jacobian (Dune::FieldMatrix< Scalar, dim, dim > &jac, const LocalPosition &localPos) const
 Returns the Jacobian matrix of the local to global mapping at a given local position. More...
 
Scalar integrationElement (const LocalPosition &localPos) const
 Return the determinant of the Jacobian of the mapping from local to global coordinates at a given local position. More...
 
const GlobalPositioncorner (unsigned cornerIdx) const
 Return the position of the corner with a given index. More...
 
Scalar cornerWeight (const LocalPosition &localPos, unsigned cornerIdx) const
 Return the weight of an individual corner for the local to global mapping. More...
 

Detailed Description

template<class Scalar, unsigned dim>
class Opm::QuadrialteralQuadratureGeometry< Scalar, dim >

Quadrature geometry for quadrilaterals.

Member Typedef Documentation

◆ GlobalPosition

template<class Scalar , unsigned dim>
using Opm::QuadrialteralQuadratureGeometry< Scalar, dim >::GlobalPosition = Dune::FieldVector<Scalar, dim>

◆ LocalPosition

template<class Scalar , unsigned dim>
using Opm::QuadrialteralQuadratureGeometry< Scalar, dim >::LocalPosition = Dune::FieldVector<Scalar, dim>

Member Enumeration Documentation

◆ anonymous enum

template<class Scalar , unsigned dim>
anonymous enum
Enumerator
numCorners 

Member Function Documentation

◆ center()

template<class Scalar , unsigned dim>
const GlobalPosition & Opm::QuadrialteralQuadratureGeometry< Scalar, dim >::center ( ) const
inline

Returns the center of weight of the polyhedron.

Referenced by Opm::VcfvStencil< Scalar, GridView >::ScvGeometry::center().

◆ corner()

template<class Scalar , unsigned dim>
const GlobalPosition & Opm::QuadrialteralQuadratureGeometry< Scalar, dim >::corner ( unsigned  cornerIdx) const
inline

Return the position of the corner with a given index.

Referenced by Opm::VcfvStencil< Scalar, GridView >::ScvGeometry::corner().

◆ cornerWeight()

template<class Scalar , unsigned dim>
Scalar Opm::QuadrialteralQuadratureGeometry< Scalar, dim >::cornerWeight ( const LocalPosition localPos,
unsigned  cornerIdx 
) const
inline

Return the weight of an individual corner for the local to global mapping.

References Opm::Properties::dim.

Referenced by Opm::QuadrialteralQuadratureGeometry< Scalar, dim >::global().

◆ global()

template<class Scalar , unsigned dim>
GlobalPosition Opm::QuadrialteralQuadratureGeometry< Scalar, dim >::global ( const LocalPosition localPos) const
inline

◆ integrationElement()

template<class Scalar , unsigned dim>
Scalar Opm::QuadrialteralQuadratureGeometry< Scalar, dim >::integrationElement ( const LocalPosition localPos) const
inline

Return the determinant of the Jacobian of the mapping from local to global coordinates at a given local position.

References Opm::QuadrialteralQuadratureGeometry< Scalar, dim >::jacobian().

◆ jacobian()

template<class Scalar , unsigned dim>
void Opm::QuadrialteralQuadratureGeometry< Scalar, dim >::jacobian ( Dune::FieldMatrix< Scalar, dim, dim > &  jac,
const LocalPosition localPos 
) const
inline

Returns the Jacobian matrix of the local to global mapping at a given local position.

References Opm::Properties::dim, and Opm::QuadrialteralQuadratureGeometry< Scalar, dim >::numCorners.

Referenced by Opm::QuadrialteralQuadratureGeometry< Scalar, dim >::integrationElement().

◆ setCorners()

template<class Scalar , unsigned dim>
template<class CornerContainer >
void Opm::QuadrialteralQuadratureGeometry< Scalar, dim >::setCorners ( const CornerContainer &  corners,
unsigned  nCorners 
)
inline

References Opm::Properties::dim.

◆ type()

template<class Scalar , unsigned dim>
Dune::GeometryType Opm::QuadrialteralQuadratureGeometry< Scalar, dim >::type ( ) const
inline

References Opm::Properties::dim.


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