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> 23 DEAL_II_NAMESPACE_OPEN
67 template <
class PolynomialType,
int dim=PolynomialType::dimension,
int spacedim=dim>
123 const unsigned int component)
const;
145 const unsigned int component)
const;
167 const unsigned int component)
const;
189 const unsigned int component)
const;
211 const unsigned int component)
const;
229 InternalData *data =
new InternalData;
232 const unsigned int n_q_points = quadrature.
size();
240 this->dofs_per_cell : 0);
241 std::vector<Tensor<2,dim> > grad_grads(update_flags &
update_hessians ?
242 this->dofs_per_cell : 0);
244 this->dofs_per_cell : 0);
245 std::vector<Tensor<4,dim> > fourth_derivatives;
268 data->shape_values.reinit (this->dofs_per_cell, n_q_points);
271 data->shape_gradients.reinit (this->dofs_per_cell, n_q_points);
274 data->shape_hessians.reinit (this->dofs_per_cell, n_q_points);
277 data->shape_3rd_derivatives.reinit (this->dofs_per_cell, n_q_points);
284 for (
unsigned int i=0; i<n_q_points; ++i)
287 values, grads, grad_grads,
306 data->shape_values[k][i] = values[k];
314 data->shape_gradients[k][i] = grads[k];
318 data->shape_hessians[k][i] = grad_grads[k];
322 data->shape_3rd_derivatives[k][i] = third_derivatives[k];
334 const ::internal::FEValues::MappingRelatedData<dim, spacedim> &mapping_data,
341 const unsigned int face_no,
345 const ::internal::FEValues::MappingRelatedData<dim, spacedim> &mapping_data,
352 const unsigned int face_no,
353 const unsigned int sub_no,
357 const ::internal::FEValues::MappingRelatedData<dim, spacedim> &mapping_data,
437 const unsigned int n_q_points,
438 const unsigned int dof)
const;
449 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::FEValues::FiniteElementRelatedData< dim, spacedim > &output_data, const internal::FEValues::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 FiniteElement< dim, spacedim >::InternalDataBase * get_data(const UpdateFlags update_flags, const Mapping< dim, spacedim > &, const Quadrature< dim > &quadrature, ::internal::FEValues::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