16#ifndef dealii_mapping_fe_h
17#define dealii_mapping_fe_h
57template <
int dim,
int spacedim = dim>
72 virtual std::unique_ptr<Mapping<dim, spacedim>>
73 clone()
const override;
85 &cell)
const override;
198 const unsigned int n_original_q_points);
208 const unsigned int n_original_q_points);
223 shape(
const unsigned int qpoint,
const unsigned int shape_nr)
const;
229 shape(
const unsigned int qpoint,
const unsigned int shape_nr);
235 derivative(
const unsigned int qpoint,
const unsigned int shape_nr)
const;
241 derivative(
const unsigned int qpoint,
const unsigned int shape_nr);
248 const unsigned int shape_nr)
const;
261 const unsigned int shape_nr)
const;
274 const unsigned int shape_nr)
const;
332 std::array<std::vector<Tensor<1, dim>>,
360 mutable std::vector<DerivativeForm<1, dim, spacedim>>
covariant;
374 mutable std::vector<std::vector<Tensor<1, spacedim>>>
aux;
406 virtual std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase>
412 virtual std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase>
417 virtual std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase>
429 &output_data)
const override;
437 const unsigned int face_no,
441 &output_data)
const override;
447 const unsigned int face_no,
448 const unsigned int subface_no,
452 &output_data)
const override;
459 const std::unique_ptr<FiniteElement<dim, spacedim>>
fe;
470 virtual std::vector<Point<spacedim>>
486template <
int dim,
int spacedim>
489 const unsigned int shape_nr)
const
497template <
int dim,
int spacedim>
500 const unsigned int shape_nr)
502 AssertIndexRange(qpoint * n_shape_functions + shape_nr, shape_values.size());
503 return shape_values[qpoint * n_shape_functions + shape_nr];
507template <
int dim,
int spacedim>
510 const unsigned int qpoint,
511 const unsigned int shape_nr)
const
514 shape_derivatives.size());
515 return shape_derivatives[qpoint * n_shape_functions + shape_nr];
520template <
int dim,
int spacedim>
523 const unsigned int shape_nr)
526 shape_derivatives.size());
527 return shape_derivatives[qpoint * n_shape_functions + shape_nr];
531template <
int dim,
int spacedim>
534 const unsigned int qpoint,
535 const unsigned int shape_nr)
const
538 shape_second_derivatives.size());
539 return shape_second_derivatives[qpoint * n_shape_functions + shape_nr];
543template <
int dim,
int spacedim>
546 const unsigned int qpoint,
547 const unsigned int shape_nr)
550 shape_second_derivatives.size());
551 return shape_second_derivatives[qpoint * n_shape_functions + shape_nr];
554template <
int dim,
int spacedim>
557 const unsigned int qpoint,
558 const unsigned int shape_nr)
const
561 shape_third_derivatives.size());
562 return shape_third_derivatives[qpoint * n_shape_functions + shape_nr];
566template <
int dim,
int spacedim>
569 const unsigned int qpoint,
570 const unsigned int shape_nr)
573 shape_third_derivatives.size());
574 return shape_third_derivatives[qpoint * n_shape_functions + shape_nr];
578template <
int dim,
int spacedim>
581 const unsigned int qpoint,
582 const unsigned int shape_nr)
const
585 shape_fourth_derivatives.size());
586 return shape_fourth_derivatives[qpoint * n_shape_functions + shape_nr];
590template <
int dim,
int spacedim>
593 const unsigned int qpoint,
594 const unsigned int shape_nr)
597 shape_fourth_derivatives.size());
598 return shape_fourth_derivatives[qpoint * n_shape_functions + shape_nr];
603template <
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)
void initialize(const UpdateFlags update_flags, const Quadrature< dim > &quadrature, const unsigned int n_original_q_points)
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
const unsigned int polynomial_degree
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
const unsigned int polynomial_degree
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
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
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 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
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 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)
void reference_cell(Triangulation< dim, spacedim > &tria, const ReferenceCell &reference_cell)