16#ifndef dealii_mapping_q_generic_h
17#define dealii_mapping_q_generic_h
134template <
int dim,
int spacedim = dim>
151 virtual std::unique_ptr<Mapping<dim, spacedim>>
171 &cell)
const override;
284 const unsigned int n_original_q_points);
294 const unsigned int n_original_q_points);
319 shape(
const unsigned int qpoint,
const unsigned int shape_nr)
const;
325 shape(
const unsigned int qpoint,
const unsigned int shape_nr);
331 derivative(
const unsigned int qpoint,
const unsigned int shape_nr)
const;
337 derivative(
const unsigned int qpoint,
const unsigned int shape_nr);
344 const unsigned int shape_nr)
const;
357 const unsigned int shape_nr)
const;
370 const unsigned int shape_nr)
const;
435 std::array<std::vector<Tensor<1, dim>>,
518 mutable std::vector<DerivativeForm<1, dim, spacedim>>
covariant;
532 mutable std::vector<std::vector<Tensor<1, spacedim>>>
aux;
559 virtual std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase>
565 virtual std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase>
570 virtual std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase>
582 &output_data)
const override;
590 const unsigned int face_no,
594 &output_data)
const override;
600 const unsigned int face_no,
601 const unsigned int subface_no,
605 &output_data)
const override;
699 const std::vector<Table<2, double>>
745 virtual std::vector<Point<spacedim>>
815template <
int dim,
int spacedim>
818 const unsigned int qpoint,
819 const unsigned int shape_nr)
const
821 AssertIndexRange(qpoint * n_shape_functions + shape_nr, shape_values.size());
822 return shape_values[qpoint * n_shape_functions + shape_nr];
827template <
int dim,
int spacedim>
830 const unsigned int shape_nr)
832 AssertIndexRange(qpoint * n_shape_functions + shape_nr, shape_values.size());
833 return shape_values[qpoint * n_shape_functions + shape_nr];
837template <
int dim,
int spacedim>
840 const unsigned int qpoint,
841 const unsigned int shape_nr)
const
844 shape_derivatives.size());
845 return shape_derivatives[qpoint * n_shape_functions + shape_nr];
850template <
int dim,
int spacedim>
853 const unsigned int qpoint,
854 const unsigned int shape_nr)
857 shape_derivatives.size());
858 return shape_derivatives[qpoint * n_shape_functions + shape_nr];
862template <
int dim,
int spacedim>
865 const unsigned int qpoint,
866 const unsigned int shape_nr)
const
869 shape_second_derivatives.size());
870 return shape_second_derivatives[qpoint * n_shape_functions + shape_nr];
874template <
int dim,
int spacedim>
877 const unsigned int qpoint,
878 const unsigned int shape_nr)
881 shape_second_derivatives.size());
882 return shape_second_derivatives[qpoint * n_shape_functions + shape_nr];
885template <
int dim,
int spacedim>
888 const unsigned int qpoint,
889 const unsigned int shape_nr)
const
892 shape_third_derivatives.size());
893 return shape_third_derivatives[qpoint * n_shape_functions + shape_nr];
897template <
int dim,
int spacedim>
900 const unsigned int qpoint,
901 const unsigned int shape_nr)
904 shape_third_derivatives.size());
905 return shape_third_derivatives[qpoint * n_shape_functions + shape_nr];
909template <
int dim,
int spacedim>
912 const unsigned int qpoint,
913 const unsigned int shape_nr)
const
916 shape_fourth_derivatives.size());
917 return shape_fourth_derivatives[qpoint * n_shape_functions + shape_nr];
921template <
int dim,
int spacedim>
924 const unsigned int qpoint,
925 const unsigned int shape_nr)
928 shape_fourth_derivatives.size());
929 return shape_fourth_derivatives[qpoint * n_shape_functions + shape_nr];
934template <
int dim,
int spacedim>
const double & shape(const unsigned int qpoint, const unsigned int shape_nr) const
std::vector< Tensor< 3, dim > > shape_third_derivatives
virtual std::size_t memory_consumption() const override
AlignedVector< VectorizedArray< double > > values_quad
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< double > shape_values
Tensor< 3, dim > & third_derivative(const unsigned int qpoint, const unsigned int shape_nr)
std::vector< Point< spacedim > > mapping_support_points
const unsigned int n_shape_functions
std::vector< Tensor< 4, dim > > shape_fourth_derivatives
AlignedVector< VectorizedArray< double > > values_dofs
AlignedVector< VectorizedArray< double > > hessians_quad
const Tensor< 3, dim > & third_derivative(const unsigned int qpoint, const unsigned int shape_nr) const
const unsigned int polynomial_degree
void compute_shape_function_values(const std::vector< Point< dim > > &unit_points)
std::vector< Tensor< 2, dim > > shape_second_derivatives
QGaussLobatto< 1 > line_support_points
std::array< std::vector< Tensor< 1, dim > >, GeometryInfo< dim >::faces_per_cell *(dim - 1)> unit_tangentials
InternalData(const unsigned int polynomial_degree)
std::vector< DerivativeForm< 1, dim, spacedim > > covariant
bool tensor_product_quadrature
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< DerivativeForm< 1, dim, spacedim > > contravariant
void initialize_face(const UpdateFlags update_flags, const Quadrature< dim > &quadrature, const unsigned int n_original_q_points)
Tensor< 4, dim > & fourth_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)
AlignedVector< VectorizedArray< double > > scratch
std::vector< Tensor< 1, dim > > shape_derivatives
AlignedVector< VectorizedArray< double > > gradients_quad
Triangulation< dim, spacedim >::cell_iterator cell_of_current_support_points
const Tensor< 2, dim > & second_derivative(const unsigned int qpoint, const unsigned int shape_nr) const
Tensor< 1, dim > & derivative(const unsigned int qpoint, const unsigned int shape_nr)
internal::MatrixFreeFunctions::ShapeInfo< VectorizedArray< double > > shape_info
Tensor< 2, dim > & second_derivative(const unsigned int qpoint, const unsigned int shape_nr)
std::vector< double > volume_elements
virtual void transform(const ArrayView< const DerivativeForm< 2, dim, spacedim > > &input, const MappingKind kind, const typename Mapping< dim, spacedim >::InternalDataBase &internal, const ArrayView< Tensor< 3, spacedim > > &output) 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
virtual std::unique_ptr< typename Mapping< dim, spacedim >::InternalDataBase > get_face_data(const UpdateFlags flags, const hp::QCollection< dim - 1 > &quadrature) const override
unsigned int get_degree() const
virtual void add_line_support_points(const typename Triangulation< dim, spacedim >::cell_iterator &cell, std::vector< Point< spacedim > > &a) const
const std::vector< Table< 2, double > > support_point_weights_perimeter_to_interior
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 void add_quad_support_points(const typename Triangulation< dim, spacedim >::cell_iterator &cell, std::vector< Point< spacedim > > &a) const
virtual std::unique_ptr< typename Mapping< dim, spacedim >::InternalDataBase > get_subface_data(const UpdateFlags flags, const Quadrature< dim - 1 > &quadrature) const override
const Table< 2, double > support_point_weights_cell
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
virtual BoundingBox< spacedim > get_bounding_box(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const override
virtual std::unique_ptr< Mapping< dim, spacedim > > clone() const override
virtual void transform(const ArrayView< const Tensor< 2, dim > > &input, const MappingKind kind, const typename Mapping< dim, spacedim >::InternalDataBase &internal, const ArrayView< Tensor< 2, spacedim > > &output) const override
const std::vector< Point< dim > > unit_cell_support_points
virtual void transform(const ArrayView< const Tensor< 3, dim > > &input, const MappingKind kind, const typename Mapping< dim, spacedim >::InternalDataBase &internal, const ArrayView< Tensor< 3, spacedim > > &output) const override
MappingQGeneric(const MappingQGeneric< dim, spacedim > &mapping)
const std::vector< Point< 1 > > line_support_points
virtual bool is_compatible_with(const ReferenceCell &reference_cell) const override
virtual Point< spacedim > transform_unit_to_real_cell(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const Point< dim > &p) 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 std::unique_ptr< typename Mapping< dim, spacedim >::InternalDataBase > get_data(const UpdateFlags, const Quadrature< dim > &quadrature) const override
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
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
const unsigned int polynomial_degree
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 bool preserves_vertex_locations() const override
virtual std::vector< Point< spacedim > > compute_mapping_support_points(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const
MappingQGeneric(const unsigned int polynomial_degree)
const std::vector< unsigned int > renumber_lexicographic_to_hierarchic
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) const override
const std::vector< Polynomials::Polynomial< double > > polynomials_1d
virtual Point< dim > transform_real_to_unit_cell(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const Point< spacedim > &p) const override
virtual void transform(const ArrayView< const DerivativeForm< 1, dim, spacedim > > &input, const MappingKind kind, const typename Mapping< dim, spacedim >::InternalDataBase &internal, const ArrayView< Tensor< 2, spacedim > > &output) const override
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)