15#ifndef dealii_fe_poly_tensor_h
16#define dealii_fe_poly_tensor_h
139template <
int dim,
int spacedim = dim>
177 const unsigned int component)
const override;
192 const unsigned int component)
const override;
207 const unsigned int component)
const override;
241 const unsigned int face_no,
242 const bool face_orientation,
243 const bool face_flip,
244 const bool face_rotation)
const;
275 virtual std::unique_ptr<
283 &output_data)
const override
289 std::unique_ptr<typename FiniteElement<dim, spacedim>::InternalDataBase>
290 data_ptr = std::make_unique<InternalData>();
294 const unsigned int n_q_points = quadrature.
size();
297 std::vector<Tensor<1, dim>> values(0);
298 std::vector<Tensor<2, dim>> grads(0);
299 std::vector<Tensor<3, dim>> grad_grads(0);
300 std::vector<Tensor<4, dim>> third_derivatives(0);
301 std::vector<Tensor<5, dim>> fourth_derivatives(0);
310 const bool update_transformed_shape_values =
311 std::any_of(this->mapping_kind.begin(),
312 this->mapping_kind.end(),
313 [](
const MappingKind t) { return t != mapping_none; });
315 const bool update_transformed_shape_grads =
316 std::any_of(this->mapping_kind.begin(),
317 this->mapping_kind.end(),
319 return (t == mapping_raviart_thomas || t == mapping_piola ||
320 t == mapping_nedelec || t == mapping_contravariant);
323 const bool update_transformed_shape_hessian_tensors =
324 update_transformed_shape_values;
330 if (update_transformed_shape_values)
331 data.transformed_shape_values.resize(n_q_points);
338 data.transformed_shape_grads.resize(n_q_points);
340 if (update_transformed_shape_grads)
341 data.untransformed_shape_grads.resize(n_q_points);
348 data.transformed_shape_hessians.resize(n_q_points);
349 if (update_transformed_shape_hessian_tensors)
350 data.untransformed_shape_hessian_tensors.resize(n_q_points);
361 for (
unsigned int k = 0; k < n_q_points; ++k)
374 data.shape_values[i][k] = values[i];
381 data.shape_values[i][k] = add_values;
389 data.shape_grads[i][k] = grads[i];
396 data.shape_grads[i][k] = add_grads;
404 data.shape_grad_grads[i][k] = grad_grads[i];
412 data.shape_grad_grads[i][k] = add_grad_grads;
431 &output_data)
const override;
438 const unsigned int face_no,
447 &output_data)
const override;
452 const unsigned int face_no,
453 const unsigned int sub_no,
462 &output_data)
const override;
515 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
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_gradients
Shape function gradients.