Opm::Elasticity::P1ShapeFunctionSet< ctype, rtype, dim > Class Template Reference

Singleton handler for the set of LinearShapeFunction. More...

#include <shapefunctions.hpp>

Public Types

enum  { n = dim==2?4:8 }
 The number of shape functions in the set. More...
 
typedef LinearShapeFunction
< ctype, rtype, dim > 
ShapeFunction
 A single shape function. More...
 
typedef rtype resulttype
 The type of the return value from a shape function. More...
 

Public Member Functions

const ShapeFunctionoperator[] (int i) const
 Obtain a given shape function. More...
 

Static Public Member Functions

static const P1ShapeFunctionSetinstance ()
 Get the only instance of this class. More...
 

Detailed Description

template<class ctype, class rtype, int dim>
class Opm::Elasticity::P1ShapeFunctionSet< ctype, rtype, dim >

Singleton handler for the set of LinearShapeFunction.

Member Typedef Documentation

template<class ctype, class rtype, int dim>
typedef rtype Opm::Elasticity::P1ShapeFunctionSet< ctype, rtype, dim >::resulttype

The type of the return value from a shape function.

template<class ctype, class rtype, int dim>
typedef LinearShapeFunction<ctype,rtype,dim> Opm::Elasticity::P1ShapeFunctionSet< ctype, rtype, dim >::ShapeFunction

A single shape function.

Member Enumeration Documentation

template<class ctype, class rtype, int dim>
anonymous enum

The number of shape functions in the set.

Enumerator

Member Function Documentation

template<class ctype, class rtype, int dim>
static const P1ShapeFunctionSet& Opm::Elasticity::P1ShapeFunctionSet< ctype, rtype, dim >::instance ( )
inlinestatic

Get the only instance of this class.

Referenced by Opm::Elasticity::Elasticity< GridType >::getBmatrix(), and Opm::Elasticity::IMPL_FUNC().

template<class ctype, class rtype, int dim>
const ShapeFunction& Opm::Elasticity::P1ShapeFunctionSet< ctype, rtype, dim >::operator[] ( int  i) const
inline

Obtain a given shape function.

Parameters
[in]iThe requested shape function

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