16#ifndef dealii_fe_poly_tensor_h
17#define dealii_fe_poly_tensor_h
140template <
int dim,
int spacedim = dim>
178 const unsigned int component)
const override;
193 const unsigned int component)
const override;
208 const unsigned int component)
const override;
242 const unsigned int face_no,
243 const bool face_orientation,
244 const bool face_flip,
245 const bool face_rotation)
const;
276 virtual std::unique_ptr<
284 &output_data)
const override
290 std::unique_ptr<typename FiniteElement<dim, spacedim>::InternalDataBase>
291 data_ptr = std::make_unique<InternalData>();
295 const unsigned int n_q_points = quadrature.
size();
298 std::vector<Tensor<1, dim>> values(0);
299 std::vector<Tensor<2, dim>> grads(0);
300 std::vector<Tensor<3, dim>> grad_grads(0);
301 std::vector<Tensor<4, dim>> third_derivatives(0);
302 std::vector<Tensor<5, dim>> fourth_derivatives(0);
311 const bool update_transformed_shape_values =
312 std::any_of(this->mapping_kind.begin(),
313 this->mapping_kind.end(),
314 [](
const MappingKind t) { return t != mapping_none; });
316 const bool update_transformed_shape_grads =
317 std::any_of(this->mapping_kind.begin(),
318 this->mapping_kind.end(),
320 return (t == mapping_raviart_thomas || t == mapping_piola ||
321 t == mapping_nedelec || t == mapping_contravariant);
324 const bool update_transformed_shape_hessian_tensors =
325 update_transformed_shape_values;
331 if (update_transformed_shape_values)
332 data.transformed_shape_values.resize(n_q_points);
339 data.transformed_shape_grads.resize(n_q_points);
341 if (update_transformed_shape_grads)
342 data.untransformed_shape_grads.resize(n_q_points);
349 data.transformed_shape_hessians.resize(n_q_points);
350 if (update_transformed_shape_hessian_tensors)
351 data.untransformed_shape_hessian_tensors.resize(n_q_points);
362 for (
unsigned int k = 0; k < n_q_points; ++k)
375 data.shape_values[i][k] = values[i];
382 data.shape_values[i][k] = add_values;
390 data.shape_grads[i][k] = grads[i];
397 data.shape_grads[i][k] = add_grads;
405 data.shape_grad_grads[i][k] = grad_grads[i];
413 data.shape_grad_grads[i][k] = add_grad_grads;
432 &output_data)
const override;
439 const unsigned int face_no,
448 &output_data)
const override;
453 const unsigned int face_no,
454 const unsigned int sub_no,
463 &output_data)
const override;
516 const std::unique_ptr<const TensorPolynomialsBase<dim>>
poly_space;
std::vector< Tensor< 3, spacedim > > transformed_shape_hessians
Table< 2, DerivativeForm< 2, dim, spacedim > > shape_grad_grads
Table< 2, DerivativeForm< 1, dim, spacedim > > shape_grads
std::vector< Tensor< 2, spacedim > > transformed_shape_grads
std::vector< Tensor< 3, dim > > untransformed_shape_hessian_tensors
std::vector< Tensor< 2, dim > > untransformed_shape_grads
Table< 2, Tensor< 1, dim > > shape_values
std::vector< Tensor< 1, spacedim > > transformed_shape_values
std::vector< double > dof_sign_change
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) const override
std::vector< Table< 2, bool > > adjust_quad_dof_sign_for_face_orientation_table
std::vector< Tensor< 2, dim > > cached_grads
FullMatrix< double > inverse_node_matrix
virtual Tensor< 1, dim > shape_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_PolyTensor(const FE_PolyTensor &fe)
virtual double shape_value_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const override
Point< dim > cached_point
virtual Tensor< 2, dim > shape_grad_grad(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
Threads::Mutex cache_mutex
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
virtual double shape_value(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
bool adjust_quad_dof_sign_for_face_orientation(const unsigned int index, const unsigned int face_no, const bool face_orientation, const bool face_flip, const bool face_rotation) const
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
std::vector< MappingKind > mapping_kind
MappingKind get_mapping_kind(const unsigned int i) const
FE_PolyTensor(const TensorPolynomialsBase< dim > &polynomials, const FiniteElementData< dim > &fe_data, const std::vector< bool > &restriction_is_additive_flags, const std::vector< ComponentMask > &nonzero_components)
std::vector< Tensor< 1, dim > > cached_values
bool single_mapping_kind() const
const std::unique_ptr< const TensorPolynomialsBase< dim > > poly_space
virtual Tensor< 1, dim > shape_grad_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const override
std::vector< Tensor< 3, dim > > cached_grad_grads
unsigned int n_dofs_per_cell() const
const unsigned int dofs_per_cell
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_gradients
Shape function gradients.