16 #ifndef dealii_fe_poly_h 17 #define dealii_fe_poly_h 20 #include <deal.II/fe/fe.h> 21 #include <deal.II/base/quadrature.h> 22 #include <deal.II/base/std_cxx14/memory.h> 24 DEAL_II_NAMESPACE_OPEN
68 template <
class PolynomialType,
int dim=PolynomialType::dimension,
int spacedim=dim>
124 const unsigned int component)
const;
146 const unsigned int component)
const;
168 const unsigned int component)
const;
190 const unsigned int component)
const;
212 const unsigned int component)
const;
222 std::unique_ptr<typename FiniteElement<dim,spacedim>::InternalDataBase>
230 auto data = std_cxx14::make_unique<InternalData>();
233 const unsigned int n_q_points = quadrature.
size();
241 this->dofs_per_cell : 0);
242 std::vector<Tensor<2,dim> > grad_grads(update_flags &
update_hessians ?
243 this->dofs_per_cell : 0);
245 this->dofs_per_cell : 0);
246 std::vector<Tensor<4,dim> > fourth_derivatives;
269 data->shape_values.reinit (this->dofs_per_cell, n_q_points);
272 data->shape_gradients.reinit (this->dofs_per_cell, n_q_points);
275 data->shape_hessians.reinit (this->dofs_per_cell, n_q_points);
278 data->shape_3rd_derivatives.reinit (this->dofs_per_cell, n_q_points);
285 for (
unsigned int i=0; i<n_q_points; ++i)
288 values, grads, grad_grads,
307 data->shape_values[k][i] = values[k];
315 data->shape_gradients[k][i] = grads[k];
319 data->shape_hessians[k][i] = grad_grads[k];
323 data->shape_3rd_derivatives[k][i] = third_derivatives[k];
325 return std::move(data);
335 const ::internal::FEValuesImplementation::MappingRelatedData<dim, spacedim> &mapping_data,
342 const unsigned int face_no,
346 const ::internal::FEValuesImplementation::MappingRelatedData<dim, spacedim> &mapping_data,
353 const unsigned int face_no,
354 const unsigned int sub_no,
358 const ::internal::FEValuesImplementation::MappingRelatedData<dim, spacedim> &mapping_data,
438 const unsigned int n_q_points,
439 const unsigned int dof)
const;
450 DEAL_II_NAMESPACE_CLOSE
virtual Tensor< 3, dim > shape_3rd_derivative(const unsigned int i, const Point< dim > &p) const
virtual Tensor< 1, dim > shape_grad_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const
const Point< dim > & point(const unsigned int i) const
Table< 2, Tensor< 2, dim > > shape_hessians
virtual Tensor< 1, dim > shape_grad(const unsigned int i, const Point< dim > &p) const
virtual double shape_value_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const
FE_Poly(const PolynomialType &poly_space, const FiniteElementData< dim > &fe_data, const std::vector< bool > &restriction_is_additive_flags, const std::vector< ComponentMask > &nonzero_components)
Table< 2, double > shape_values
Third derivatives of shape functions.
virtual Tensor< 2, dim > shape_grad_grad_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const
Abstract base class for mapping classes.
Table< 2, Tensor< 1, dim > > shape_gradients
virtual Tensor< 3, dim > shape_3rd_derivative_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const
Second derivatives of shape functions.
unsigned int size() const
const unsigned int dofs_per_cell
unsigned int get_degree() const
virtual Tensor< 2, dim > shape_grad_grad(const unsigned int i, const Point< dim > &p) const
virtual double shape_value(const unsigned int i, const Point< dim > &p) const
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 unsigned int dof) const
Shape function gradients.
virtual Tensor< 4, dim > shape_4th_derivative(const unsigned int i, const Point< dim > &p) const
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) const
const std::vector< ComponentMask > nonzero_components
Table< 2, Tensor< 3, dim > > shape_3rd_derivatives
virtual Tensor< 4, dim > shape_4th_derivative_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const
virtual std::unique_ptr< typename FiniteElement< dim, spacedim >::InternalDataBase > get_data(const UpdateFlags update_flags, const Mapping< dim, spacedim > &, const Quadrature< dim > &quadrature, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const
PolynomialType poly_space
std::vector< unsigned int > get_poly_space_numbering_inverse() const
std::vector< unsigned int > get_poly_space_numbering() const
const std::vector< bool > restriction_is_additive_flags