Opm::Elasticity::LagrangeCardinalFunction< ctype, rtype > Class Template Reference

Represents a cardinal function on a line. More...

#include <shapefunctions.hpp>

Public Member Functions

 LagrangeCardinalFunction ()
 Empty default constructor. More...
 
 LagrangeCardinalFunction (const std::vector< rtype > &nodes_, size_t i)
 Construct a cardinal function with the given nodes. More...
 
rtype evaluateFunction (const ctype &local) const
 Evaluate the shape function. More...
 
rtype evaluateGradient (const ctype &local) const
 Evaluate the derivative of the cardinal function. More...
 

Detailed Description

template<class ctype, class rtype>
class Opm::Elasticity::LagrangeCardinalFunction< ctype, rtype >

Represents a cardinal function on a line.

Constructor & Destructor Documentation

template<class ctype , class rtype >
Opm::Elasticity::LagrangeCardinalFunction< ctype, rtype >::LagrangeCardinalFunction ( )
inline

Empty default constructor.

template<class ctype , class rtype >
Opm::Elasticity::LagrangeCardinalFunction< ctype, rtype >::LagrangeCardinalFunction ( const std::vector< rtype > &  nodes_,
size_t  i 
)
inline

Construct a cardinal function with the given nodes.

Parameters
[in]nodes_The nodes
[in]iThe node this function is associated with

Member Function Documentation

template<class ctype , class rtype >
rtype Opm::Elasticity::LagrangeCardinalFunction< ctype, rtype >::evaluateFunction ( const ctype &  local) const
inline

Evaluate the shape function.

Parameters
[in]localThe local coordinates
template<class ctype , class rtype >
rtype Opm::Elasticity::LagrangeCardinalFunction< ctype, rtype >::evaluateGradient ( const ctype &  local) const
inline

Evaluate the derivative of the cardinal function.

Parameters
[in]localThe local coordinates

References Opm::Elasticity::j.


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