16#ifndef dealii_fe_poly_h
17#define dealii_fe_poly_h
73template <
int dim,
int spacedim = dim>
116 std::vector<unsigned int>
125 std::vector<unsigned int>
149 const unsigned int component)
const override;
172 const unsigned int component)
const override;
195 const unsigned int component)
const override;
219 const unsigned int component)
const override;
243 const unsigned int component)
const override;
259 virtual std::unique_ptr<
267 &output_data)
const override
273 std::unique_ptr<typename FiniteElement<dim, spacedim>::InternalDataBase>
274 data_ptr = std::make_unique<InternalData>();
278 const unsigned int n_q_points = quadrature.
size();
283 std::vector<double> values(
285 std::vector<Tensor<1, dim>> grads(
287 std::vector<Tensor<2, dim>> grad_grads(
289 std::vector<Tensor<3, dim>> third_derivatives(
291 std::vector<Tensor<4, dim>>
311 !((output_data.shape_values.n_rows() > 0) &&
312 (output_data.shape_values.n_cols() == n_q_points)))
322 data.shape_3rd_derivatives.reinit(this->
n_dofs_per_cell(), n_q_points);
329 for (
unsigned int i = 0; i < n_q_points; ++i)
346 if (output_data.shape_values.n_rows() > 0)
348 if (output_data.shape_values.n_cols() == n_q_points)
350 output_data.shape_values[k][i] = values[k];
353 data.shape_values[k][i] = values[k];
361 data.shape_gradients[k][i] = grads[k];
365 data.shape_hessians[k][i] = grad_grads[k];
369 data.shape_3rd_derivatives[k][i] = third_derivatives[k];
381 const ::internal::FEValuesImplementation::MappingRelatedData<dim,
387 &output_data)
const override;
394 const unsigned int face_no,
398 const ::internal::FEValuesImplementation::MappingRelatedData<dim,
404 &output_data)
const override;
409 const unsigned int face_no,
410 const unsigned int sub_no,
414 const ::internal::FEValuesImplementation::MappingRelatedData<dim,
420 &output_data)
const override;
498 const unsigned int n_q_points)
const;
528 const unsigned int n_q_points)
const;
534 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 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 UpdateFlags requires_update_flags(const UpdateFlags update_flags) 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< 4, dim > shape_4th_derivative(const unsigned int i, const Point< dim > &p) const override
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
std::vector< unsigned int > get_poly_space_numbering() const
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 std::size_t memory_consumption() 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
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.