BEM++
2.0
|
Collection of shape functions defined on a reference element. More...
#include </home/wojtek/Projects/BEM/bempp-sven/bempp/lib/fiber/shapeset.hpp>
Public Types | |
typedef ScalarTraits < ValueType >::RealType | CoordinateType |
Public Member Functions | |
virtual int | size () const =0 |
Return the number of shape functions. | |
virtual int | order () const =0 |
Return the maximum polynomial order of shape functions. | |
virtual void | evaluate (size_t what, const arma::Mat< CoordinateType > &points, LocalDofIndex localDofIndex, BasisData< ValueType > &data) const =0 |
Evaluate the shape functions making up this shapeset and/or their derivatives at specified points. More... | |
virtual std::pair< const char *, int > | clCodeString (bool isTestShapeset) const |
Returns an OpenCL code snippet for shape function evaluation. More... | |
Collection of shape functions defined on a reference element.
|
inlinevirtual |
Returns an OpenCL code snippet for shape function evaluation.
Reimplemented in Fiber::LinearScalarShapesetBarycentric< ValueType >, and Fiber::LinearScalarShapeset< elementVertexCount, ValueType >.
|
pure virtual |
Evaluate the shape functions making up this shapeset and/or their derivatives at specified points.
[in] | what | Bitwise combination of zero or more flags defined as members of the BasisDataType enum. Specifies what shall be evaluated: the values of the shape functions, their derivatives, both, or none. |
[in] | points | A 2D array whose (i, j) element is the ith coordinate of the jth point at which the shape functions and/or their derivatives shall be evaluated. |
[in] | localDofIndex. | If set to ALL_DOFS, all the shape functions from the shapeset shall be evaluated; otherwise only the localDofIndex'th function shall be evaluated. |
[out] | basisData | Receives evaluation results. |
If what
contains the flag VALUES, on output basisData.values(i, k, l)
shall contain the value of the ith component of the kth evaluated shape function at the lth point.
If what
contains the flag DERIVATIVES, on output basisData.derivatives(i, j, k, l)
shall contain the derivative in direction j of the ith component of the kth evaluated shape function at the lth point.
Implemented in Fiber::LinearScalarShapeset< elementVertexCount, ValueType >, Fiber::RaviartThomas0Shapeset< elementVertexCount, ValueType >, Fiber::LagrangeScalarShapeset< elementVertexCount, ValueType, polynomialOrder >, Fiber::LinearScalarShapesetBarycentric< ValueType >, and Fiber::ConstantScalarShapeset< ValueType >.
Referenced by Bempp::GridFunction< BasisFunctionType, ResultType >::evaluate().