25 compute_n_polynomials_wedge(
const unsigned int dim,
const unsigned int degree)
45 const unsigned int degree)
62 const auto v_tri = poly_tri.compute_value(pair[0], p_tri);
65 const auto v_line = poly_line.compute_value(pair[1], p_line);
67 return v_tri * v_line;
81 const auto v_tri = poly_tri.compute_value(pair[0], p_tri);
82 const auto g_tri = poly_tri.compute_grad(pair[0], p_tri);
85 const auto v_line = poly_line.compute_value(pair[1], p_line);
86 const auto g_line = poly_line.compute_grad(pair[1], p_line);
89 grad[0] = g_tri[0] * v_line;
90 grad[1] = g_tri[1] * v_line;
91 grad[2] = v_tri * g_line[0];
116 std::vector<double> & values,
124 (void)third_derivatives;
125 (void)fourth_derivatives;
127 if (values.size() == this->n())
128 for (
unsigned int i = 0; i < this->n(); ++i)
129 values[i] = compute_value(i, unit_point);
131 if (grads.size() == this->n())
132 for (
unsigned int i = 0; i < this->n(); ++i)
133 grads[i] = compute_grad(i, unit_point);
141 const unsigned int i,
144 return compute_grad(i, p);
152 const unsigned int i,
168 const unsigned int i,
184 const unsigned int i,
201 return "ScalarLagrangePolynomialWedge";
207std::unique_ptr<ScalarPolynomialsBase<dim>>
210 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
static ::ExceptionBase & ExcNotImplemented()
#define Assert(cond, exc)
static const constexpr ::ndarray< unsigned int, 18, 2 > wedge_table_2
static const constexpr ::ndarray< unsigned int, 6, 2 > wedge_table_1