16#ifndef dealii_mapping_q_h
17#define dealii_mapping_q_h
109template <
int dim,
int spacedim = dim>
125 DEAL_II_DEPRECATED_EARLY
127 const bool use_mapping_q_on_all_cells);
135 virtual std::unique_ptr<Mapping<dim, spacedim>>
136 clone()
const override;
155 &cell)
const override;
293 const unsigned int n_original_q_points);
303 const unsigned int n_original_q_points);
328 shape(
const unsigned int qpoint,
const unsigned int shape_nr)
const;
334 shape(
const unsigned int qpoint,
const unsigned int shape_nr);
340 derivative(
const unsigned int qpoint,
const unsigned int shape_nr)
const;
346 derivative(
const unsigned int qpoint,
const unsigned int shape_nr);
353 const unsigned int shape_nr)
const;
366 const unsigned int shape_nr)
const;
379 const unsigned int shape_nr)
const;
444 std::array<std::vector<Tensor<1, dim>>,
492 (dim <= 2 ? 2 : 4))>;
535 mutable std::vector<AlignedVector<Tensor<1, spacedim>>>
aux;
562 virtual std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase>
568 virtual std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase>
573 virtual std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase>
585 &output_data)
const override;
593 const unsigned int face_no,
597 &output_data)
const override;
603 const unsigned int face_no,
604 const unsigned int subface_no,
608 &output_data)
const override;
617 &output_data)
const override;
684 const std::vector<Table<2, double>>
730 virtual std::vector<Point<spacedim>>
794template <
int dim,
int spacedim = dim>
804template <
int dim,
int spacedim>
807 const unsigned int shape_nr)
const
815template <
int dim,
int spacedim>
818 const unsigned int shape_nr)
821 return shape_values[qpoint * n_shape_functions + shape_nr];
825template <
int dim,
int spacedim>
828 const unsigned int qpoint,
829 const unsigned int shape_nr)
const
832 shape_derivatives.
size());
833 return shape_derivatives[qpoint * n_shape_functions + shape_nr];
838template <
int dim,
int spacedim>
841 const unsigned int shape_nr)
844 shape_derivatives.
size());
845 return shape_derivatives[qpoint * n_shape_functions + shape_nr];
849template <
int dim,
int spacedim>
852 const unsigned int qpoint,
853 const unsigned int shape_nr)
const
856 shape_second_derivatives.
size());
857 return shape_second_derivatives[qpoint * n_shape_functions + shape_nr];
861template <
int dim,
int spacedim>
864 const unsigned int qpoint,
865 const unsigned int shape_nr)
868 shape_second_derivatives.
size());
869 return shape_second_derivatives[qpoint * n_shape_functions + shape_nr];
872template <
int dim,
int spacedim>
875 const unsigned int qpoint,
876 const unsigned int shape_nr)
const
879 shape_third_derivatives.
size());
880 return shape_third_derivatives[qpoint * n_shape_functions + shape_nr];
884template <
int dim,
int spacedim>
887 const unsigned int qpoint,
888 const unsigned int shape_nr)
891 shape_third_derivatives.
size());
892 return shape_third_derivatives[qpoint * n_shape_functions + shape_nr];
896template <
int dim,
int spacedim>
899 const unsigned int qpoint,
900 const unsigned int shape_nr)
const
903 shape_fourth_derivatives.
size());
904 return shape_fourth_derivatives[qpoint * n_shape_functions + shape_nr];
908template <
int dim,
int spacedim>
911 const unsigned int qpoint,
912 const unsigned int shape_nr)
915 shape_fourth_derivatives.
size());
916 return shape_fourth_derivatives[qpoint * n_shape_functions + shape_nr];
921template <
int dim,
int spacedim>
Tensor< 3, dim > & third_derivative(const unsigned int qpoint, const unsigned int shape_nr)
AlignedVector< DerivativeForm< 1, dim, spacedim > > covariant
QGaussLobatto< 1 > line_support_points
AlignedVector< Tensor< 3, dim > > shape_third_derivatives
Triangulation< dim, spacedim >::cell_iterator cell_of_current_support_points
virtual std::size_t memory_consumption() const override
Tensor< 4, dim > & fourth_derivative(const unsigned int qpoint, const unsigned int shape_nr)
Tensor< 2, dim > & second_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) const
std::vector< Point< spacedim > > mapping_support_points
AlignedVector< Tensor< 4, dim > > shape_fourth_derivatives
double & shape(const unsigned int qpoint, const unsigned int shape_nr)
const unsigned int polynomial_degree
AlignedVector< double > shape_values
std::array< std::vector< Tensor< 1, dim > >, GeometryInfo< dim >::faces_per_cell *(dim - 1)> unit_tangentials
AlignedVector< DerivativeForm< 1, dim, spacedim > > contravariant
AlignedVector< Tensor< 1, dim > > shape_derivatives
bool tensor_product_quadrature
const Tensor< 3, dim > & third_derivative(const unsigned int qpoint, const unsigned int shape_nr) const
Tensor< 1, dim > & derivative(const unsigned int qpoint, const unsigned int shape_nr)
const Tensor< 4, dim > & fourth_derivative(const unsigned int qpoint, const unsigned int shape_nr) const
AlignedVector< Tensor< 2, dim > > shape_second_derivatives
std::vector< AlignedVector< Tensor< 1, spacedim > > > aux
void initialize_face(const UpdateFlags update_flags, const Quadrature< dim > &quadrature, const unsigned int n_original_q_points)
const double & shape(const unsigned int qpoint, const unsigned int shape_nr) const
const Tensor< 1, dim > & derivative(const unsigned int qpoint, const unsigned int shape_nr) const
AlignedVector< double > volume_elements
void initialize(const UpdateFlags update_flags, const Quadrature< dim > &quadrature, const unsigned int n_original_q_points)
const unsigned int n_shape_functions
void compute_shape_function_values(const std::vector< Point< dim > > &unit_points)
internal::MatrixFreeFunctions::ShapeInfo< VectorizedArrayType > shape_info
AlignedVector< VectorizedArrayType > scratch
const std::vector< unsigned int > renumber_lexicographic_to_hierarchic
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 Table< 2, double > support_point_weights_cell
virtual std::vector< Point< spacedim > > compute_mapping_support_points(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const
virtual std::unique_ptr< typename Mapping< dim, spacedim >::InternalDataBase > get_data(const UpdateFlags, const Quadrature< dim > &quadrature) 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 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_subface_data(const UpdateFlags flags, const Quadrature< dim - 1 > &quadrature) const override
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 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
const unsigned int polynomial_degree
virtual bool preserves_vertex_locations() const override
virtual void transform_points_real_to_unit_cell(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const ArrayView< const Point< spacedim > > &real_points, const ArrayView< Point< dim > > &unit_points) const override
virtual std::unique_ptr< typename Mapping< dim, spacedim >::InternalDataBase > get_face_data(const UpdateFlags flags, const hp::QCollection< dim - 1 > &quadrature) const override
Point< dim > transform_real_to_unit_cell_internal(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const Point< spacedim > &p, const Point< dim > &initial_p_unit) const
void fill_mapping_data_for_generic_points(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const ArrayView< const Point< dim > > &unit_points, const UpdateFlags update_flags, ::internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &output_data) const
const std::vector< Table< 2, double > > support_point_weights_perimeter_to_interior
const std::vector< Point< 1 > > line_support_points
virtual Point< spacedim > transform_unit_to_real_cell(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const Point< dim > &p) const override
const std::vector< Polynomials::Polynomial< double > > polynomials_1d
virtual std::unique_ptr< Mapping< dim, spacedim > > clone() const override
const std::vector< Point< dim > > unit_cell_support_points
virtual Point< dim > transform_real_to_unit_cell(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const Point< spacedim > &p) const override
virtual void add_line_support_points(const typename Triangulation< dim, spacedim >::cell_iterator &cell, std::vector< Point< spacedim > > &a) const
virtual void add_quad_support_points(const typename Triangulation< dim, spacedim >::cell_iterator &cell, std::vector< Point< spacedim > > &a) const
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) const override
virtual void fill_fe_immersed_surface_values(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const NonMatching::ImmersedSurfaceQuadrature< dim > &quadrature, const typename Mapping< dim, spacedim >::InternalDataBase &internal_data, ::internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &output_data) const override
virtual bool is_compatible_with(const ReferenceCell &reference_cell) const override
unsigned int get_degree() const
Abstract base class for mapping classes.
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
#define AssertIndexRange(index, range)