15#ifndef dealii_mapping_fe_h
16#define dealii_mapping_fe_h
58template <
int dim,
int spacedim = dim>
73 virtual std::unique_ptr<Mapping<dim, spacedim>>
74 clone()
const override;
86 &cell)
const override;
201 const unsigned int n_original_q_points);
216 shape(
const unsigned int qpoint,
const unsigned int shape_nr)
const;
222 shape(
const unsigned int qpoint,
const unsigned int shape_nr);
228 derivative(
const unsigned int qpoint,
const unsigned int shape_nr)
const;
234 derivative(
const unsigned int qpoint,
const unsigned int shape_nr);
241 const unsigned int shape_nr)
const;
254 const unsigned int shape_nr)
const;
267 const unsigned int shape_nr)
const;
325 std::array<std::vector<Tensor<1, dim>>,
353 mutable std::vector<DerivativeForm<1, dim, spacedim>>
covariant;
367 mutable std::vector<std::vector<Tensor<1, spacedim>>>
aux;
399 virtual std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase>
405 virtual std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase>
410 virtual std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase>
422 &output_data)
const override;
430 const unsigned int face_no,
434 &output_data)
const override;
440 const unsigned int face_no,
441 const unsigned int subface_no,
445 &output_data)
const override;
452 const std::unique_ptr<FiniteElement<dim, spacedim>>
fe;
463 virtual std::vector<Point<spacedim>>
479template <
int dim,
int spacedim>
482 const unsigned int shape_nr)
const
490template <
int dim,
int spacedim>
493 const unsigned int shape_nr)
495 AssertIndexRange(qpoint * n_shape_functions + shape_nr, shape_values.size());
496 return shape_values[qpoint * n_shape_functions + shape_nr];
500template <
int dim,
int spacedim>
503 const unsigned int qpoint,
504 const unsigned int shape_nr)
const
507 shape_derivatives.size());
508 return shape_derivatives[qpoint * n_shape_functions + shape_nr];
513template <
int dim,
int spacedim>
516 const unsigned int shape_nr)
519 shape_derivatives.size());
520 return shape_derivatives[qpoint * n_shape_functions + shape_nr];
524template <
int dim,
int spacedim>
527 const unsigned int qpoint,
528 const unsigned int shape_nr)
const
531 shape_second_derivatives.size());
532 return shape_second_derivatives[qpoint * n_shape_functions + shape_nr];
536template <
int dim,
int spacedim>
539 const unsigned int qpoint,
540 const unsigned int shape_nr)
543 shape_second_derivatives.size());
544 return shape_second_derivatives[qpoint * n_shape_functions + shape_nr];
547template <
int dim,
int spacedim>
550 const unsigned int qpoint,
551 const unsigned int shape_nr)
const
554 shape_third_derivatives.size());
555 return shape_third_derivatives[qpoint * n_shape_functions + shape_nr];
559template <
int dim,
int spacedim>
562 const unsigned int qpoint,
563 const unsigned int shape_nr)
566 shape_third_derivatives.size());
567 return shape_third_derivatives[qpoint * n_shape_functions + shape_nr];
571template <
int dim,
int spacedim>
574 const unsigned int qpoint,
575 const unsigned int shape_nr)
const
578 shape_fourth_derivatives.size());
579 return shape_fourth_derivatives[qpoint * n_shape_functions + shape_nr];
583template <
int dim,
int spacedim>
586 const unsigned int qpoint,
587 const unsigned int shape_nr)
590 shape_fourth_derivatives.size());
591 return shape_fourth_derivatives[qpoint * n_shape_functions + shape_nr];
596template <
int dim,
int spacedim>
const Tensor< 3, dim > & third_derivative(const unsigned int qpoint, const unsigned int shape_nr) const
Tensor< 2, dim > & second_derivative(const unsigned int qpoint, const unsigned int shape_nr)
void initialize_face(const UpdateFlags update_flags, const Quadrature< dim > &quadrature, const unsigned int n_original_q_points)
std::vector< Point< spacedim > > mapping_support_points
const Tensor< 4, dim > & fourth_derivative(const unsigned int qpoint, const unsigned int shape_nr) const
std::vector< std::vector< Tensor< 1, spacedim > > > aux
std::vector< Tensor< 3, dim > > shape_third_derivatives
std::vector< Tensor< 2, dim > > shape_second_derivatives
Tensor< 1, dim > & derivative(const unsigned int qpoint, const unsigned int shape_nr)
std::vector< Tensor< 4, dim > > shape_fourth_derivatives
Tensor< 3, dim > & third_derivative(const unsigned int qpoint, const unsigned int shape_nr)
Triangulation< dim, spacedim >::cell_iterator cell_of_current_support_points
Tensor< 4, dim > & fourth_derivative(const unsigned int qpoint, const unsigned int shape_nr)
void compute_shape_function_values(const std::vector< Point< dim > > &unit_points)
std::array< std::vector< Tensor< 1, dim > >, GeometryInfo< dim >::faces_per_cell *(dim - 1)> unit_tangentials
std::vector< double > quadrature_weights
const FiniteElement< dim, spacedim > & fe
std::vector< DerivativeForm< 1, dim, spacedim > > contravariant
std::vector< DerivativeForm< 1, dim, spacedim > > covariant
const Tensor< 1, dim > & derivative(const unsigned int qpoint, const unsigned int shape_nr) const
double & shape(const unsigned int qpoint, const unsigned int shape_nr)
std::vector< double > shape_values
std::vector< Tensor< 1, dim > > shape_derivatives
virtual std::size_t memory_consumption() const override
const Tensor< 2, dim > & second_derivative(const unsigned int qpoint, const unsigned int shape_nr) const
InternalData(const FiniteElement< dim, spacedim > &fe)
const unsigned int n_shape_functions
std::vector< double > volume_elements
const double & shape(const unsigned int qpoint, const unsigned int shape_nr) const
virtual void reinit(const UpdateFlags update_flags, const Quadrature< dim > &quadrature) override
const unsigned int polynomial_degree
virtual CellSimilarity::Similarity fill_fe_values(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const CellSimilarity::Similarity cell_similarity, const Quadrature< dim > &quadrature, const typename Mapping< dim, spacedim >::InternalDataBase &internal_data, internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &output_data) const override
const unsigned int polynomial_degree
MappingFE(const FiniteElement< dim, spacedim > &fe)
virtual std::unique_ptr< typename Mapping< dim, spacedim >::InternalDataBase > get_face_data(const UpdateFlags flags, const hp::QCollection< dim - 1 > &quadrature) const override
virtual Point< dim > transform_real_to_unit_cell(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const Point< spacedim > &p) const override
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) 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 typename Mapping< dim, spacedim >::InternalDataBase &internal_data, internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &output_data) const override
Table< 2, double > mapping_support_point_weights
virtual std::vector< Point< spacedim > > compute_mapping_support_points(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const
virtual void transform(const ArrayView< const Tensor< 1, dim > > &input, const MappingKind kind, const typename Mapping< dim, spacedim >::InternalDataBase &internal, const ArrayView< Tensor< 1, spacedim > > &output) const override
virtual BoundingBox< spacedim > get_bounding_box(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const override
virtual std::unique_ptr< typename Mapping< dim, spacedim >::InternalDataBase > get_data(const UpdateFlags, const Quadrature< dim > &quadrature) const override
virtual std::unique_ptr< typename Mapping< dim, spacedim >::InternalDataBase > get_subface_data(const UpdateFlags flags, const Quadrature< dim - 1 > &quadrature) const override
unsigned int get_degree() const
virtual bool is_compatible_with(const ReferenceCell &reference_cell) const override
virtual void fill_fe_subface_values(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const unsigned int face_no, const unsigned int subface_no, const Quadrature< dim - 1 > &quadrature, const typename Mapping< dim, spacedim >::InternalDataBase &internal_data, internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &output_data) const override
virtual bool preserves_vertex_locations() const override
virtual std::unique_ptr< Mapping< dim, spacedim > > clone() const override
virtual Point< spacedim > transform_unit_to_real_cell(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const Point< dim > &p) const override
const std::unique_ptr< FiniteElement< dim, spacedim > > fe
Abstract base class for mapping classes.
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
#define AssertIndexRange(index, range)