|
Reference documentation for deal.II version 9.2.0
|
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\)
\(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\)
\(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\)
\(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Go to the documentation of this file.
16 #ifndef dealii_fe_poly_tensor_h
17 #define dealii_fe_poly_tensor_h
142 template <
int dim,
int spacedim = dim>
180 const unsigned int component)
const override;
195 const unsigned int component)
const override;
210 const unsigned int component)
const override;
238 virtual std::unique_ptr<
250 std::unique_ptr<typename FiniteElement<dim, spacedim>::InternalDataBase>
251 data_ptr = std_cxx14::make_unique<InternalData>();
252 auto &data =
dynamic_cast<InternalData &
>(*data_ptr);
255 const unsigned int n_q_points = quadrature.
size();
258 std::vector<Tensor<1, dim>> values(0);
259 std::vector<Tensor<2, dim>> grads(0);
260 std::vector<Tensor<3, dim>> grad_grads(0);
261 std::vector<Tensor<4, dim>> third_derivatives(0);
262 std::vector<Tensor<5, dim>> fourth_derivatives(0);
271 const bool update_transformed_shape_values =
272 std::any_of(this->mapping_kind.begin(),
273 this->mapping_kind.end(),
274 [](
const MappingKind t) { return t != mapping_none; });
276 const bool update_transformed_shape_grads =
277 std::any_of(this->mapping_kind.begin(),
278 this->mapping_kind.end(),
280 return (t == mapping_raviart_thomas || t == mapping_piola ||
281 t == mapping_nedelec || t == mapping_contravariant);
284 const bool update_transformed_shape_hessian_tensors =
285 update_transformed_shape_values;
291 if (update_transformed_shape_values)
292 data.transformed_shape_values.resize(n_q_points);
299 data.transformed_shape_grads.resize(n_q_points);
301 if (update_transformed_shape_grads)
302 data.untransformed_shape_grads.resize(n_q_points);
308 data.shape_grad_grads.reinit(this->
dofs_per_cell, n_q_points);
309 data.transformed_shape_hessians.resize(n_q_points);
310 if (update_transformed_shape_hessian_tensors)
311 data.untransformed_shape_hessian_tensors.resize(n_q_points);
322 for (
unsigned int k = 0; k < n_q_points; ++k)
335 data.shape_values[i][k] = values[i];
342 data.shape_values[i][k] = add_values;
350 data.shape_grads[i][k] = grads[i];
357 data.shape_grads[i][k] = add_grads;
365 data.shape_grad_grads[i][k] = grad_grads[i];
373 data.shape_grad_grads[i][k] = add_grad_grads;
387 const ::internal::FEValuesImplementation::MappingRelatedData<dim,
393 &output_data)
const override;
398 const unsigned int face_no,
402 const ::internal::FEValuesImplementation::MappingRelatedData<dim,
408 &output_data)
const override;
413 const unsigned int face_no,
414 const unsigned int sub_no,
418 const ::internal::FEValuesImplementation::MappingRelatedData<dim,
424 &output_data)
const override;
477 const std::unique_ptr<const TensorPolynomialsBase<dim>>
poly_space;
std::vector< Tensor< 2, dim > > untransformed_shape_grads
std::vector< Tensor< 3, dim > > untransformed_shape_hessian_tensors
bool single_mapping_kind() const
friend class InternalDataBase
virtual Tensor< 2, dim > shape_grad_grad(const unsigned int i, const Point< dim > &p) const override
std::vector< Tensor< 1, dim > > cached_values
std::vector< MappingKind > mapping_kind
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
@ update_values
Shape function values.
MappingKind get_mapping_kind(const unsigned int i) 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 > &) const override
std::vector< Tensor< 2, dim > > cached_grads
const Point< dim > & point(const unsigned int i) const
Table< 2, Tensor< 1, dim > > shape_values
Abstract base class for mapping classes.
std::vector< Tensor< 3, dim > > cached_grad_grads
const std::unique_ptr< const TensorPolynomialsBase< dim > > poly_space
const unsigned int dofs_per_cell
const std::vector< ComponentMask > nonzero_components
#define DEAL_II_NAMESPACE_OPEN
@ update_gradients
Shape function gradients.
FullMatrix< double > inverse_node_matrix
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) const override
std::vector< Tensor< 2, spacedim > > transformed_shape_grads
virtual double shape_value_component(const unsigned int i, const Point< dim > &p, const unsigned int component) 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
@ update_hessians
Second derivatives of shape functions.
virtual Tensor< 1, dim > shape_grad(const unsigned int i, const Point< dim > &p) const override
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)
virtual Tensor< 2, dim > shape_grad_grad_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const override
const std::vector< bool > restriction_is_additive_flags
unsigned int size() const
std::vector< double > sign_change
Table< 2, DerivativeForm< 2, dim, spacedim > > shape_grad_grads
Table< 2, DerivativeForm< 1, dim, spacedim > > shape_grads
#define DEAL_II_NAMESPACE_CLOSE
virtual Tensor< 1, dim > shape_grad_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const override
Point< dim > cached_point
virtual void fill_fe_face_values(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const unsigned int face_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 double shape_value(const unsigned int i, const Point< dim > &p) const override
std::vector< Tensor< 1, spacedim > > transformed_shape_values
std::vector< Tensor< 3, spacedim > > transformed_shape_hessians