KASKADE 7 development version
|
This class caches values and derivatives of shape functions at quadrature points. More...
#include <shapefunctioncache.hh>
This class caches values and derivatives of shape functions at quadrature points.
Limitations are:
G | the grid type |
T | the scalar field type |
ComponentsEnd | upper bound on the number of components of the shape functions |
Definition at line 115 of file shapefunctioncache.hh.
Classes | |
struct | DataType |
Defines the type returned by evaluate(sfs,qr,subId). More... | |
struct | LocalDataType |
Defines the type returned by evaluate(sfs,qr,ip,subId). More... | |
Public Member Functions | |
template<int nComp, int subDim> | |
Dune::FieldVector< T, nComp > | evaluateFunction (ShapeFunctionSet< typename G::ctype, G::dimension, T, nComp > const &sfs, int isf, Dune::QuadratureRule< typename G::ctype, subDim > const &qr, int ip, int subId) |
Evaluate comp-th component of isf-th shape function of the shape function set sfs ath the ip-th integration point of quadrature rule qr. More... | |
template<int nComp, int subDim> | |
Dune::FieldMatrix< T, nComp, G::dimension > const & | evaluateDerivative (ShapeFunctionSet< typename G::ctype, G::dimension, T, nComp > const &sfs, int isf, Dune::QuadratureRule< typename G::ctype, subDim > const &qr, int ip, int subId) |
Evaluate derivative of comp-th component of isf-th shape function of the shape function set sfs ath the ip-th integration point of quadrature rule qr. More... | |
template<int nComp, int subDim> | |
LocalDataType< nComp >::type | evaluate (ShapeFunctionSet< typename G::ctype, G::dimension, T, nComp > const &sfs, Dune::QuadratureRule< typename G::ctype, subDim > const &qr, int ip, int subId) |
Returns the values of all shape functions at given integration point. More... | |
template<int nComp, int subDim> | |
DataType< nComp >::type const & | evaluate (ShapeFunctionSet< typename G::ctype, G::dimension, T, nComp > const &sfs, Dune::QuadratureRule< typename G::ctype, subDim > const &qr, int subId) |
Returns the values of all shape functions. More... | |
int | maximumSubentityIndex () const |
Reports the maximum subentity number that is allowed. More... | |
|
inline |
Returns the values of all shape functions at given integration point.
The return value can be indexed by shape function number, yielding a pair of value and derivative of the shape function's component.
E.g., the value can be obtained by evaluate(sfs,qr,ip,subId)[isf].value
This method is explicitly NOT thread safe. Use one cache object per thread.
subId | the index of the subentity in the cell (has to be between 0 and the maximum supported subentity number) |
Definition at line 220 of file shapefunctioncache.hh.
Referenced by Kaskade::FEFunctionSpace< LocalToGlobalMapper >::Evaluator::evaluateAt(), and Kaskade::FEFunctionSpace< LocalToGlobalMapper >::Evaluator::useQuadratureRule().
|
inline |
Returns the values of all shape functions.
The return value can be indexed by shape function number, yielding a pair of value and derivative of the shape function's component.
E.g., the value can be obtained by evaluate(sfs,qr,subId)[ip][isf].value
This method is explicitly NOT thread safe. Use one cache object per thread.
subId | the index of the subentity in the cell (has to be between 0 and the maximum supported subentity number) |
Definition at line 245 of file shapefunctioncache.hh.
|
inline |
Evaluate derivative of comp-th component of isf-th shape function of the shape function set sfs ath the ip-th integration point of quadrature rule qr.
This method is explicitly NOT thread safe. Use one cache object per thread.
Definition at line 196 of file shapefunctioncache.hh.
|
inline |
Evaluate comp-th component of isf-th shape function of the shape function set sfs ath the ip-th integration point of quadrature rule qr.
This method is explicitly NOT thread safe. Use one cache object per thread.
Definition at line 180 of file shapefunctioncache.hh.
|
inline |
Reports the maximum subentity number that is allowed.
Definition at line 256 of file shapefunctioncache.hh.