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/grid/tria_iterator.h> 25 #include <deal.II/fe/mapping.h> 26 #include <deal.II/fe/fe_q.h> 28 #include <deal.II/base/std_cxx11/array.h> 32 DEAL_II_NAMESPACE_OPEN
136 template <
int dim,
int spacedim=dim>
276 const unsigned int n_original_q_points);
286 const unsigned int n_original_q_points);
310 const double &
shape (
const unsigned int qpoint,
311 const unsigned int shape_nr)
const;
316 double &
shape (
const unsigned int qpoint,
317 const unsigned int shape_nr);
323 const unsigned int shape_nr)
const;
329 const unsigned int shape_nr);
335 const unsigned int shape_nr)
const;
341 const unsigned int shape_nr);
347 const unsigned int shape_nr)
const;
353 const unsigned int shape_nr);
359 const unsigned int shape_nr)
const;
365 const unsigned int shape_nr);
461 mutable std::vector<DerivativeForm<1,dim, spacedim > >
covariant;
475 mutable std::vector<std::vector<Tensor<1,spacedim> > >
aux;
531 const unsigned int face_no,
539 const unsigned int face_no,
540 const unsigned int subface_no,
573 const std_cxx11::unique_ptr<FE_Q<dim> >
fe_q;
639 std::vector<Point<spacedim> >
704 template<
int dim,
int spacedim>
708 const unsigned int shape_nr)
const 718 template<
int dim,
int spacedim>
722 const unsigned int shape_nr)
724 Assert(qpoint*n_shape_functions + shape_nr < shape_values.size(),
726 shape_values.size()));
727 return shape_values [qpoint*n_shape_functions + shape_nr];
731 template<
int dim,
int spacedim>
735 const unsigned int shape_nr)
const 737 Assert(qpoint*n_shape_functions + shape_nr < shape_derivatives.size(),
739 shape_derivatives.size()));
740 return shape_derivatives [qpoint*n_shape_functions + shape_nr];
745 template<
int dim,
int spacedim>
749 const unsigned int shape_nr)
751 Assert(qpoint*n_shape_functions + shape_nr < shape_derivatives.size(),
753 shape_derivatives.size()));
754 return shape_derivatives [qpoint*n_shape_functions + shape_nr];
758 template <
int dim,
int spacedim>
762 const unsigned int shape_nr)
const 764 Assert(qpoint*n_shape_functions + shape_nr < shape_second_derivatives.size(),
766 shape_second_derivatives.size()));
767 return shape_second_derivatives [qpoint*n_shape_functions + shape_nr];
771 template <
int dim,
int spacedim>
775 const unsigned int shape_nr)
777 Assert(qpoint*n_shape_functions + shape_nr < shape_second_derivatives.size(),
779 shape_second_derivatives.size()));
780 return shape_second_derivatives [qpoint*n_shape_functions + shape_nr];
783 template <
int dim,
int spacedim>
787 const unsigned int shape_nr)
const 789 Assert(qpoint*n_shape_functions + shape_nr < shape_third_derivatives.size(),
791 shape_third_derivatives.size()));
792 return shape_third_derivatives [qpoint*n_shape_functions + shape_nr];
796 template <
int dim,
int spacedim>
800 const unsigned int shape_nr)
802 Assert(qpoint*n_shape_functions + shape_nr < shape_third_derivatives.size(),
804 shape_third_derivatives.size()));
805 return shape_third_derivatives [qpoint*n_shape_functions + shape_nr];
809 template <
int dim,
int spacedim>
813 const unsigned int shape_nr)
const 815 Assert(qpoint*n_shape_functions + shape_nr < shape_fourth_derivatives.size(),
817 shape_fourth_derivatives.size()));
818 return shape_fourth_derivatives [qpoint*n_shape_functions + shape_nr];
822 template <
int dim,
int spacedim>
826 const unsigned int shape_nr)
828 Assert(qpoint*n_shape_functions + shape_nr < shape_fourth_derivatives.size(),
830 shape_fourth_derivatives.size()));
831 return shape_fourth_derivatives [qpoint*n_shape_functions + shape_nr];
836 template <
int dim,
int spacedim>
849 DEAL_II_NAMESPACE_CLOSE
std_cxx11::array< std::vector< Tensor< 1, dim > >, GeometryInfo< dim >::faces_per_cell *(dim-1)> unit_tangentials
std::vector< DerivativeForm< 1, dim, spacedim > > covariant
const std_cxx11::unique_ptr< FE_Q< dim > > fe_q
std::vector< Tensor< 2, dim > > shape_second_derivatives
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::FEValues::MappingRelatedData< dim, spacedim > &output_data) const
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::FEValues::MappingRelatedData< dim, spacedim > &output_data) const
virtual InternalData * get_subface_data(const UpdateFlags flags, const Quadrature< dim-1 > &quadrature) const
virtual InternalData * get_data(const UpdateFlags, const Quadrature< dim > &quadrature) const
std::vector< Table< 2, double > > support_point_weights_perimeter_to_interior
std::vector< Tensor< 4, dim > > shape_fourth_derivatives
virtual Mapping< dim, spacedim > * clone() const
virtual Point< dim > transform_real_to_unit_cell(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const Point< spacedim > &p) const
Table< 2, double > support_point_weights_cell
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) const
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
MappingQGeneric(const unsigned int polynomial_degree)
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
InternalData(const unsigned int polynomial_degree)
const unsigned int polynomial_degree
std::vector< Tensor< 1, dim > > shape_derivatives
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
std::vector< Point< spacedim > > mapping_support_points
std::vector< DerivativeForm< 1, dim, spacedim > > contravariant
std::vector< std::vector< Tensor< 1, spacedim > > > aux
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
virtual std::size_t memory_consumption() const
unsigned int get_degree() const
const double & shape(const unsigned int qpoint, const unsigned int shape_nr) const
virtual Point< spacedim > transform_unit_to_real_cell(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const Point< dim > &p) const
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::FEValues::MappingRelatedData< dim, spacedim > &output_data) const
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
virtual InternalData * get_face_data(const UpdateFlags flags, const Quadrature< dim-1 > &quadrature) const
virtual bool preserves_vertex_locations() 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