15#ifndef dealii_fe_poly_h
16#define dealii_fe_poly_h
74template <
int dim,
int spacedim = dim>
117 std::vector<unsigned int>
126 std::vector<unsigned int>
150 const unsigned int component)
const override;
173 const unsigned int component)
const override;
196 const unsigned int component)
const override;
220 const unsigned int component)
const override;
244 const unsigned int component)
const override;
260 virtual std::unique_ptr<
268 &output_data)
const override
274 std::unique_ptr<typename FiniteElement<dim, spacedim>::InternalDataBase>
275 data_ptr = std::make_unique<InternalData>();
279 const unsigned int n_q_points = quadrature.
size();
284 std::vector<double> values(
286 std::vector<Tensor<1, dim>> grads(
288 std::vector<Tensor<2, dim>> grad_grads(
290 std::vector<Tensor<3, dim>> third_derivatives(
292 std::vector<Tensor<4, dim>>
312 !((output_data.shape_values.n_rows() > 0) &&
313 (output_data.shape_values.n_cols() == n_q_points)))
314 data.shape_values.reinit(this->n_dofs_per_cell(), n_q_points);
323 data.shape_3rd_derivatives.reinit(this->
n_dofs_per_cell(), n_q_points);
330 for (
unsigned int i = 0; i < n_q_points; ++i)
347 if (output_data.shape_values.n_rows() > 0)
349 if (output_data.shape_values.n_cols() == n_q_points)
351 output_data.shape_values[k][i] = values[k];
354 data.shape_values[k][i] = values[k];
362 data.shape_gradients[k][i] = grads[k];
366 data.shape_hessians[k][i] = grad_grads[k];
370 data.shape_3rd_derivatives[k][i] = third_derivatives[k];
387 &output_data)
const override;
394 const unsigned int face_no,
403 &output_data)
const override;
408 const unsigned int face_no,
409 const unsigned int sub_no,
418 &output_data)
const override;
496 const unsigned int n_q_points)
const;
526 const unsigned int n_q_points)
const;
532 const std::unique_ptr<ScalarPolynomialsBase<dim>>
poly_space;
Table< 2, double > shape_values
Table< 2, Tensor< 3, dim > > shape_3rd_derivatives
Table< 2, Tensor< 2, dim > > shape_hessians
Table< 2, Tensor< 1, dim > > shape_gradients
virtual Tensor< 2, dim > shape_grad_grad(const unsigned int i, const Point< dim > &p) const override
virtual Tensor< 2, dim > shape_grad_grad_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const override
FE_Poly(const FE_Poly &fe)
virtual Tensor< 3, dim > shape_3rd_derivative_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const override
std::vector< unsigned int > get_poly_space_numbering_inverse() const
virtual double shape_value_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const override
virtual std::unique_ptr< typename FiniteElement< dim, spacedim >::InternalDataBase > get_data(const UpdateFlags update_flags, const Mapping< dim, spacedim > &mapping, const Quadrature< dim > &quadrature, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const override
FE_Poly(const ScalarPolynomialsBase< dim > &poly_space, const FiniteElementData< dim > &fe_data, const std::vector< bool > &restriction_is_additive_flags, const std::vector< ComponentMask > &nonzero_components)
void correct_hessians(internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data, const internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &mapping_data, const unsigned int n_q_points) const
virtual void fill_fe_values(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const CellSimilarity::Similarity cell_similarity, const Quadrature< dim > &quadrature, const Mapping< dim, spacedim > &mapping, const typename Mapping< dim, spacedim >::InternalDataBase &mapping_internal, const internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &mapping_data, const typename FiniteElement< dim, spacedim >::InternalDataBase &fe_internal, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const override
virtual Tensor< 1, dim > shape_grad(const unsigned int i, const Point< dim > &p) const override
unsigned int get_degree() const
const ScalarPolynomialsBase< dim > & get_poly_space() const
virtual Tensor< 4, dim > shape_4th_derivative_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const override
void correct_third_derivatives(internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data, const internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &mapping_data, const unsigned int n_q_points) const
virtual double shape_value(const unsigned int i, const Point< dim > &p) const override
const std::unique_ptr< ScalarPolynomialsBase< dim > > poly_space
virtual Tensor< 3, dim > shape_3rd_derivative(const unsigned int i, const Point< dim > &p) const override
virtual void fill_fe_face_values(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const unsigned int face_no, const hp::QCollection< dim - 1 > &quadrature, const Mapping< dim, spacedim > &mapping, const typename Mapping< dim, spacedim >::InternalDataBase &mapping_internal, const internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &mapping_data, const typename FiniteElement< dim, spacedim >::InternalDataBase &fe_internal, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const override
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) const override
virtual Tensor< 4, dim > shape_4th_derivative(const unsigned int i, const Point< dim > &p) const override
std::vector< unsigned int > get_poly_space_numbering() const
virtual std::size_t memory_consumption() const override
virtual void fill_fe_subface_values(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const unsigned int face_no, const unsigned int sub_no, const Quadrature< dim - 1 > &quadrature, const Mapping< dim, spacedim > &mapping, const typename Mapping< dim, spacedim >::InternalDataBase &mapping_internal, const internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &mapping_data, const typename FiniteElement< dim, spacedim >::InternalDataBase &fe_internal, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const override
virtual Tensor< 1, dim > shape_grad_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const override
unsigned int n_dofs_per_cell() const
const std::vector< bool > restriction_is_additive_flags
friend class InternalDataBase
const std::vector< ComponentMask > nonzero_components
Abstract base class for mapping classes.
const Point< dim > & point(const unsigned int i) const
unsigned int size() const
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
@ update_hessians
Second derivatives of shape functions.
@ update_values
Shape function values.
@ update_3rd_derivatives
Third derivatives of shape functions.
@ update_gradients
Shape function gradients.