3 #ifndef DUNE_RANNACHER_TUREK_2D_LOCALBASIS_HH
4 #define DUNE_RANNACHER_TUREK_2D_LOCALBASIS_HH
8 #include <dune/common/fvector.hh>
9 #include <dune/common/fmatrix.hh>
16 template<
class D,
class R >
20 R, 1, FieldVector< R, 1 >,
31 std::vector< typename Traits::RangeType > &out )
const
35 out[0] = .75 - 2*in[0] + in[1] + qbase;
36 out[1] = -.25 + in[1] + qbase;
37 out[2] = .75 + in[0] - 2*in[1] - qbase;
38 out[3] = -.25 + in[0] - qbase;
43 std::vector< typename Traits::JacobianType > &out )
const
50 out[0][0][0] = -2 + 2*in[0]; out[0][0][1] = 1 - 2*in[1];
51 out[1][0][0] = 2*in[0]; out[1][0][1] = 1 - 2*in[1];
52 out[2][0][0] = 1 - 2*in[0]; out[2][0][1] = -2 + 2*in[1];
53 out[3][0][0] = 1 - 2*in[0]; out[3][0][1] = 2*in[1];
66 #endif // #ifndef DUNE_RANNACHER_TUREK_2D_LOCALBASIS_HH
Type traits for LocalBasisVirtualInterface.
Definition: localbasis.hh:39
unsigned int size() const
number of shape functions
Definition: rannacherturek2dlocalbasis.hh:24
void evaluateJacobian(const typename Traits::DomainType &in, std::vector< typename Traits::JacobianType > &out) const
evaluate jacobian of all shape functions
Definition: rannacherturek2dlocalbasis.hh:42
unsigned int order() const
polynomial order of the shape functions
Definition: rannacherturek2dlocalbasis.hh:57
Definition: rannacherturek2dlocalbasis.hh:17
DF DomainFieldType
Export type for domain field.
Definition: localbasis.hh:42
D DomainType
domain type
Definition: localbasis.hh:51
void evaluateFunction(const typename Traits::DomainType &in, std::vector< typename Traits::RangeType > &out) const
evaluate all shape functions
Definition: rannacherturek2dlocalbasis.hh:30
LocalBasisTraits< D, 2, FieldVector< D, 2 >, R, 1, FieldVector< R, 1 >, FieldMatrix< R, 1, 2 > > Traits
Definition: rannacherturek2dlocalbasis.hh:21