21 #ifndef fiber_raviart_thomas_0_shapeset_hpp
22 #define fiber_raviart_thomas_0_shapeset_hpp
24 #include "../common/common.hpp"
28 #include "basis_data.hpp"
29 #include "dune_basis_helper.hpp"
32 #include <dune/localfunctions/raviartthomas/raviartthomas02d/raviartthomas02dlocalbasis.hh>
37 template <
int elementVertexCount,
typename CoordinateType,
typename ValueType>
43 template <
typename CoordinateType,
typename ValueType>
47 typedef Dune::RT02DLocalBasis<CoordinateType, ValueType> DuneBasis;
59 template <
int elementVertexCount,
typename ValueType>
63 typedef typename Basis<ValueType>::CoordinateType CoordinateType;
67 <elementVertexCount, CoordinateType, ValueType>::DuneBasis DuneBasis;
80 const arma::Mat<CoordinateType>& points,
81 LocalDofIndex localDofIndex,
83 if (localDofIndex != ALL_DOFS &&
84 (localDofIndex < 0 ||
size() <= localDofIndex))
85 throw std::invalid_argument(
"RaviartThomas0Basis::"
86 "evaluate(): Invalid localDofIndex");
89 evaluateShapeFunctionsWithDune<CoordinateType, ValueType, DuneBasis>(
90 points, localDofIndex, data.
values);
91 if (what & DERIVATIVES)
92 evaluateShapeFunctionDerivativesWithDune<
93 CoordinateType, ValueType, DuneBasis>(
Shapeset composed of the lowest-order Raviart-Thomas functions.
Definition: raviart_thomas_0_shapeset.hpp:60
_4dArray< ValueType > derivatives
Derivatives of shape functions.
Definition: basis_data.hpp:59
virtual int size() const
Return the number of shape functions.
Definition: raviart_thomas_0_shapeset.hpp:70
Definition: raviart_thomas_0_shapeset.hpp:38
_3dArray< ValueType > values
Values of shape functions.
Definition: basis_data.hpp:51
virtual int order() const
Return the maximum polynomial order of shape functions.
Definition: raviart_thomas_0_shapeset.hpp:75
Collection of shape functions defined on a reference element.
Definition: basis.hpp:36
Storage of values and/or derivatives of shape functions.
Definition: basis_data.hpp:44
virtual void evaluate(size_t what, const arma::Mat< CoordinateType > &points, LocalDofIndex localDofIndex, BasisData< ValueType > &data) const
Evaluate the shape functions making up this shapeset and/or their derivatives at specified points...
Definition: raviart_thomas_0_shapeset.hpp:79