17#ifndef dealii_polynomials_rannacher_turek_h
18#define dealii_polynomials_rannacher_turek_h
118 std::vector<double> &
values,
128 name()
const override;
133 virtual std::unique_ptr<ScalarPolynomialsBase<dim>>
134 clone()
const override;
140 namespace PolynomialsRannacherTurekImplementation
142 template <
int order,
int dim>
155 const unsigned int dim = 2;
166 grad[0] = -2.5 + 3 * p(0);
167 grad[1] = 1.5 - 3 * p(1);
171 grad[0] = -0.5 + 3.0 * p(0);
172 grad[1] = 1.5 - 3.0 * p(1);
176 grad[0] = 1.5 - 3.0 * p(0);
177 grad[1] = -2.5 + 3.0 * p(1);
181 grad[0] = 1.5 - 3.0 * p(0);
182 grad[1] = -0.5 + 3.0 * p(1);
199 grad_grad[1][1] = -3;
206 grad_grad[1][1] = -3;
210 grad_grad[0][0] = -3;
217 grad_grad[0][0] = -3;
252 const unsigned int i,
255 return compute_derivative<1>(i, p);
263 const unsigned int i,
266 return compute_derivative<2>(i, p);
274 const unsigned int i,
277 return compute_derivative<3>(i, p);
285 const unsigned int i,
288 return compute_derivative<4>(i, p);
297 return "RannacherTurek";
virtual Tensor< 3, dim > compute_3rd_derivative(const unsigned int i, const Point< dim > &p) const override
virtual Tensor< 1, dim > compute_1st_derivative(const unsigned int i, const Point< dim > &p) const override
virtual std::unique_ptr< ScalarPolynomialsBase< dim > > clone() const override
Tensor< order, dim > compute_derivative(const unsigned int i, const Point< dim > &p) const
void evaluate(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 override
std::string name() const override
Tensor< 2, dim > compute_grad_grad(const unsigned int i, const Point< dim > &p) const override
virtual Tensor< 4, dim > compute_4th_derivative(const unsigned int i, const Point< dim > &p) const override
Tensor< 1, dim > compute_grad(const unsigned int i, const Point< dim > &p) const override
virtual Tensor< 2, dim > compute_2nd_derivative(const unsigned int i, const Point< dim > &p) const override
static const unsigned int dimension
PolynomialsRannacherTurek()
double compute_value(const unsigned int i, const Point< dim > &p) const override
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcNotImplemented()
#define Assert(cond, exc)
Tensor< order, dim > compute_derivative(const unsigned int, const Point< dim > &)