Opm::Elasticity::Elasticity< GridType > Class Template Reference

Elasticity helper class. More...

#include <elasticity.hpp>

Public Types

typedef
GridType::LeafGridView::ctype 
ctype
 A basic number. More...
 

Public Member Functions

 Elasticity (const GridType &gv_)
 Default constructor. More...
 
template<int components, int funcdim>
void getBmatrix (Dune::FieldMatrix< ctype, components, funcdim > &B, const Dune::FieldVector< ctype, dim > &point, const Dune::FieldMatrix< ctype, dim, dim > &Jinv)
 Returns the B matrix in a quadrature point. More...
 
template<int comp, int funcdim>
void getStiffnessMatrix (Dune::FieldMatrix< ctype, funcdim, funcdim > &A, const Dune::FieldMatrix< ctype, comp, funcdim > &B, const Dune::FieldMatrix< ctype, comp, comp > &C, ctype detJW)
 Return the stiffness matrix contributions in a quadrature point. More...
 
template<int comp, int funcdim>
void getStressVector (Dune::FieldVector< ctype, comp > &sigma, const Dune::FieldVector< ctype, funcdim > &v, const Dune::FieldVector< ctype, comp > &eps0, const Dune::FieldMatrix< ctype, comp, funcdim > &B, const Dune::FieldMatrix< ctype, comp, comp > &C)
 Return the stress vector in a quadrature point. More...
 

Static Public Attributes

static const int dim = GridType::dimension
 The dimension of our grid. More...
 

Protected Attributes

const GridType & gv
 Const reference to our grid. More...
 

Detailed Description

template<class GridType>
class Opm::Elasticity::Elasticity< GridType >

Elasticity helper class.

Member Typedef Documentation

template<class GridType >
typedef GridType::LeafGridView::ctype Opm::Elasticity::Elasticity< GridType >::ctype

A basic number.

Constructor & Destructor Documentation

template<class GridType >
Opm::Elasticity::Elasticity< GridType >::Elasticity ( const GridType &  gv_)
inline

Default constructor.

Parameters
[in]gv_The grid we are doing the calculations on

Member Function Documentation

template<class GridType >
template<int components, int funcdim>
void Opm::Elasticity::Elasticity< GridType >::getBmatrix ( Dune::FieldMatrix< ctype, components, funcdim > &  B,
const Dune::FieldVector< ctype, dim > &  point,
const Dune::FieldMatrix< ctype, dim, dim > &  Jinv 
)

Returns the B matrix in a quadrature point.

Parameters
[in]point(Reference) coordinates of quadrature point
[in]JinvJacobian matrix in quadrature point
[out]BThe B matrix

References INDEX, Opm::Elasticity::P1ShapeFunctionSet< ctype, rtype, dim >::instance(), and Opm::Elasticity::j.

template<class GridType >
template<int comp, int funcdim>
void Opm::Elasticity::Elasticity< GridType >::getStiffnessMatrix ( Dune::FieldMatrix< ctype, funcdim, funcdim > &  A,
const Dune::FieldMatrix< ctype, comp, funcdim > &  B,
const Dune::FieldMatrix< ctype, comp, comp > &  C,
ctype  detJW 
)

Return the stiffness matrix contributions in a quadrature point.

Parameters
[in]BThe B matrix in the quadrature point
[in]CThe constitutive matrix for the cell material
[in]detJWDet J times quadrature weight
[out]AThe stiffness matrix contributions in the quadrature point

References Opm::Elasticity::j.

template<class GridType >
template<int comp, int funcdim>
void Opm::Elasticity::Elasticity< GridType >::getStressVector ( Dune::FieldVector< ctype, comp > &  sigma,
const Dune::FieldVector< ctype, funcdim > &  v,
const Dune::FieldVector< ctype, comp > &  eps0,
const Dune::FieldMatrix< ctype, comp, funcdim > &  B,
const Dune::FieldMatrix< ctype, comp, comp > &  C 
)

Return the stress vector in a quadrature point.

Parameters
[in]vThe displacements in the quadrature point
[in]eps0The load case vector
[in]BThe B matrix in the quadrature point
[in]CThe constitutive matrix for the cell material
[out]sigmaThe stress vector in the given quadrature point

Member Data Documentation

template<class GridType >
const int Opm::Elasticity::Elasticity< GridType >::dim = GridType::dimension
static

The dimension of our grid.

template<class GridType >
const GridType& Opm::Elasticity::Elasticity< GridType >::gv
protected

Const reference to our grid.


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