24 compute_n_polynomials_wedge(
const unsigned int dim,
const unsigned int degree)
44 const unsigned int degree)
61 const auto v_tri = poly_tri.compute_value(pair[0], p_tri);
64 const auto v_line = poly_line.compute_value(pair[1], p_line);
66 return v_tri * v_line;
80 const auto v_tri = poly_tri.compute_value(pair[0], p_tri);
81 const auto g_tri = poly_tri.compute_grad(pair[0], p_tri);
84 const auto v_line = poly_line.compute_value(pair[1], p_line);
85 const auto g_line = poly_line.compute_grad(pair[1], p_line);
88 grad[0] = g_tri[0] * v_line;
89 grad[1] = g_tri[1] * v_line;
90 grad[2] = v_tri * g_line[0];
115 std::vector<double> &values,
123 (void)third_derivatives;
124 (void)fourth_derivatives;
126 if (values.size() == this->n())
127 for (
unsigned int i = 0; i < this->n(); ++i)
128 values[i] = compute_value(i, unit_point);
130 if (grads.size() == this->n())
131 for (
unsigned int i = 0; i < this->n(); ++i)
132 grads[i] = compute_grad(i, unit_point);
140 const unsigned int i,
143 return compute_grad(i, p);
151 const unsigned int i,
167 const unsigned int i,
183 const unsigned int i,
200 return "ScalarLagrangePolynomialWedge";
206std::unique_ptr<ScalarPolynomialsBase<dim>>
209 return std::make_unique<ScalarLagrangePolynomialWedge<dim>>(*this);
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
Tensor< 1, dim > compute_grad(const unsigned int i, const Point< dim > &p) const override
Tensor< 1, dim > compute_1st_derivative(const unsigned int i, const Point< dim > &p) const override
Tensor< 4, dim > compute_4th_derivative(const unsigned int i, const Point< dim > &p) const override
std::string name() const override
Tensor< 3, dim > compute_3rd_derivative(const unsigned int i, const Point< dim > &p) const override
Tensor< 2, dim > compute_2nd_derivative(const unsigned int i, const Point< dim > &p) const override
ScalarLagrangePolynomialWedge(const unsigned int degree)
virtual std::unique_ptr< ScalarPolynomialsBase< dim > > clone() const override
double compute_value(const unsigned int i, const Point< dim > &p) const override
Tensor< 2, dim > compute_grad_grad(const unsigned int i, const Point< dim > &p) const override
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NOT_IMPLEMENTED()
static const constexpr ::ndarray< unsigned int, 18, 2 > wedge_table_2
static const constexpr ::ndarray< unsigned int, 6, 2 > wedge_table_1