17 #ifndef dealii_polynomials_rannacher_turek_h 18 #define dealii_polynomials_rannacher_turek_h 20 #include <deal.II/base/point.h> 21 #include <deal.II/base/tensor.h> 24 DEAL_II_NAMESPACE_OPEN
87 std::vector<double> &values,
97 namespace PolynomialsRannacherTurekImplementation
99 template <
int order,
int dim>
102 compute_derivative (
const unsigned int,
113 compute_derivative (
const unsigned int i,
116 const unsigned int dim = 2;
126 grad[0] = -2.5 + 3*p(0);
127 grad[1] = 1.5 - 3*p(1);
131 grad[0] = -0.5 + 3.0*p(0);
132 grad[1] = 1.5 - 3.0*p(1);
136 grad[0] = 1.5 - 3.0*p(0);
137 grad[1] = -2.5 + 3.0*p(1);
141 grad[0] = 1.5 - 3.0*p(0);
142 grad[1] = -0.5 + 3.0*p(1);
158 grad_grad[1][1] = -3;
165 grad_grad[1][1] = -3;
169 grad_grad[0][0] = -3;
176 grad_grad[0][0] = -3;
202 return internal::PolynomialsRannacherTurekImplementation::compute_derivative<order> (i, p);
206 DEAL_II_NAMESPACE_CLOSE
Tensor< 1, dim > compute_grad(const unsigned int i, const Point< dim > &p) const
static const unsigned int dimension
PolynomialsRannacherTurek()
double compute_value(const unsigned int i, const Point< dim > &p) const
#define Assert(cond, exc)
Tensor< order, dim > compute_derivative(const unsigned int i, const Point< dim > &p) const
Tensor< 2, dim > compute_grad_grad(const unsigned int i, const Point< dim > &p) const
void compute(const Point< dim > &unit_point, std::vector< double > &values, std::vector< Tensor< 1, dim > > &grads, std::vector< Tensor< 2, dim > > &grad_grads, std::vector< Tensor< 3, dim > > &third_derivatives, std::vector< Tensor< 4, dim > > &fourth_derivatives) const
static ::ExceptionBase & ExcNotImplemented()