16 #ifndef dealii_mapping_q_generic_h 17 #define dealii_mapping_q_generic_h 20 #include <deal.II/base/config.h> 21 #include <deal.II/base/derivative_form.h> 22 #include <deal.II/base/table.h> 23 #include <deal.II/base/quadrature_lib.h> 24 #include <deal.II/base/vectorization.h> 25 #include <deal.II/grid/tria_iterator.h> 26 #include <deal.II/fe/mapping.h> 27 #include <deal.II/fe/fe_q.h> 28 #include <deal.II/matrix_free/shape_info.h> 33 DEAL_II_NAMESPACE_OPEN
127 template <
int dim,
int spacedim=dim>
145 std::unique_ptr<Mapping<dim,spacedim>>
clone ()
const override;
267 const unsigned int n_original_q_points);
277 const unsigned int n_original_q_points);
301 const double &
shape (
const unsigned int qpoint,
302 const unsigned int shape_nr)
const;
307 double &
shape (
const unsigned int qpoint,
308 const unsigned int shape_nr);
314 const unsigned int shape_nr)
const;
320 const unsigned int shape_nr);
326 const unsigned int shape_nr)
const;
332 const unsigned int shape_nr);
338 const unsigned int shape_nr)
const;
344 const unsigned int shape_nr);
350 const unsigned int shape_nr)
const;
356 const unsigned int shape_nr);
495 mutable std::vector<DerivativeForm<1,dim, spacedim > >
covariant;
509 mutable std::vector<std::vector<Tensor<1,spacedim> > >
aux;
537 std::unique_ptr<typename Mapping<dim,spacedim>::InternalDataBase>
543 std::unique_ptr<typename Mapping<dim,spacedim>::InternalDataBase>
549 std::unique_ptr<typename Mapping<dim,spacedim>::InternalDataBase>
566 const unsigned int face_no,
575 const unsigned int face_no,
576 const unsigned int subface_no,
609 const std::unique_ptr<FE_Q<dim> >
fe_q;
676 std::vector<Point<spacedim> >
740 template <
int dim,
int spacedim>
744 const unsigned int shape_nr)
const 754 template <
int dim,
int spacedim>
758 const unsigned int shape_nr)
760 Assert(qpoint*n_shape_functions + shape_nr < shape_values.size(),
762 shape_values.size()));
763 return shape_values [qpoint*n_shape_functions + shape_nr];
767 template <
int dim,
int spacedim>
771 const unsigned int shape_nr)
const 773 Assert(qpoint*n_shape_functions + shape_nr < shape_derivatives.size(),
775 shape_derivatives.size()));
776 return shape_derivatives [qpoint*n_shape_functions + shape_nr];
781 template <
int dim,
int spacedim>
785 const unsigned int shape_nr)
787 Assert(qpoint*n_shape_functions + shape_nr < shape_derivatives.size(),
789 shape_derivatives.size()));
790 return shape_derivatives [qpoint*n_shape_functions + shape_nr];
794 template <
int dim,
int spacedim>
798 const unsigned int shape_nr)
const 800 Assert(qpoint*n_shape_functions + shape_nr < shape_second_derivatives.size(),
802 shape_second_derivatives.size()));
803 return shape_second_derivatives [qpoint*n_shape_functions + shape_nr];
807 template <
int dim,
int spacedim>
811 const unsigned int shape_nr)
813 Assert(qpoint*n_shape_functions + shape_nr < shape_second_derivatives.size(),
815 shape_second_derivatives.size()));
816 return shape_second_derivatives [qpoint*n_shape_functions + shape_nr];
819 template <
int dim,
int spacedim>
823 const unsigned int shape_nr)
const 825 Assert(qpoint*n_shape_functions + shape_nr < shape_third_derivatives.size(),
827 shape_third_derivatives.size()));
828 return shape_third_derivatives [qpoint*n_shape_functions + shape_nr];
832 template <
int dim,
int spacedim>
836 const unsigned int shape_nr)
838 Assert(qpoint*n_shape_functions + shape_nr < shape_third_derivatives.size(),
840 shape_third_derivatives.size()));
841 return shape_third_derivatives [qpoint*n_shape_functions + shape_nr];
845 template <
int dim,
int spacedim>
849 const unsigned int shape_nr)
const 851 Assert(qpoint*n_shape_functions + shape_nr < shape_fourth_derivatives.size(),
853 shape_fourth_derivatives.size()));
854 return shape_fourth_derivatives [qpoint*n_shape_functions + shape_nr];
858 template <
int dim,
int spacedim>
862 const unsigned int shape_nr)
864 Assert(qpoint*n_shape_functions + shape_nr < shape_fourth_derivatives.size(),
866 shape_fourth_derivatives.size()));
867 return shape_fourth_derivatives [qpoint*n_shape_functions + shape_nr];
872 template <
int dim,
int spacedim>
885 DEAL_II_NAMESPACE_CLOSE
std::vector< DerivativeForm< 1, dim, spacedim > > covariant
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 typename Mapping< dim, spacedim >::InternalDataBase &internal_data, ::internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &output_data) const override
std::vector< Tensor< 2, dim > > shape_second_derivatives
const unsigned int polynomial_degree
AlignedVector< VectorizedArray< double > > values_quad
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) const override
std::vector< Table< 2, double > > support_point_weights_perimeter_to_interior
std::vector< Tensor< 4, dim > > shape_fourth_derivatives
virtual Point< spacedim > transform_unit_to_real_cell(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const Point< dim > &p) const override
Table< 2, double > support_point_weights_cell
virtual std::unique_ptr< Mapping< dim, spacedim > > clone() const override
AlignedVector< VectorizedArray< double > > gradients_quad
Triangulation< dim, spacedim >::cell_iterator cell_of_current_support_points
const Tensor< 3, dim > & third_derivative(const unsigned int qpoint, const unsigned int shape_nr) const
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
MappingQGeneric(const unsigned int polynomial_degree)
bool tensor_product_quadrature
AlignedVector< VectorizedArray< double > > scratch
static ::ExceptionBase & ExcIndexRange(int arg1, int arg2, int arg3)
const Tensor< 4, dim > & fourth_derivative(const unsigned int qpoint, const unsigned int shape_nr) const
const std::unique_ptr< FE_Q< dim > > fe_q
InternalData(const unsigned int polynomial_degree)
const unsigned int polynomial_degree
std::vector< Tensor< 1, dim > > shape_derivatives
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
void compute_shape_function_values(const std::vector< Point< dim > > &unit_points)
#define Assert(cond, exc)
Abstract base class for mapping classes.
virtual void transform(const ArrayView< const Tensor< 1, dim > > &input, const MappingType type, const typename Mapping< dim, spacedim >::InternalDataBase &internal, const ArrayView< Tensor< 1, spacedim > > &output) const override
std::vector< Point< spacedim > > mapping_support_points
std::vector< DerivativeForm< 1, dim, spacedim > > contravariant
std::vector< std::vector< Tensor< 1, spacedim > > > aux
virtual std::unique_ptr< typename Mapping< dim, spacedim >::InternalDataBase > get_data(const UpdateFlags, const Quadrature< dim > &quadrature) const override
void initialize(const UpdateFlags update_flags, const Quadrature< dim > &quadrature, const unsigned int n_original_q_points)
std::vector< double > volume_elements
const unsigned int n_shape_functions
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
AlignedVector< VectorizedArray< double > > hessians_quad
AlignedVector< VectorizedArray< double > > values_dofs
unsigned int get_degree() const
const double & shape(const unsigned int qpoint, const unsigned int shape_nr) const
virtual std::unique_ptr< typename Mapping< dim, spacedim >::InternalDataBase > get_face_data(const UpdateFlags flags, const Quadrature< dim-1 > &quadrature) const override
std::array< std::vector< Tensor< 1, dim > >, GeometryInfo< dim >::faces_per_cell *(dim-1)> unit_tangentials
virtual bool preserves_vertex_locations() const override
virtual std::size_t memory_consumption() const override
virtual std::vector< Point< spacedim > > compute_mapping_support_points(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const
virtual void add_line_support_points(const typename Triangulation< dim, spacedim >::cell_iterator &cell, std::vector< Point< spacedim > > &a) const
std::vector< Tensor< 3, dim > > shape_third_derivatives
const Tensor< 2, dim > & second_derivative(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
void initialize_face(const UpdateFlags update_flags, const Quadrature< dim > &quadrature, const unsigned int n_original_q_points)
std::vector< double > shape_values
virtual Point< dim > transform_real_to_unit_cell(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const Point< spacedim > &p) const override
internal::MatrixFreeFunctions::ShapeInfo< VectorizedArray< double > > shape_info
virtual std::unique_ptr< typename Mapping< dim, spacedim >::InternalDataBase > get_subface_data(const UpdateFlags flags, const Quadrature< dim-1 > &quadrature) const override