16 #ifndef dealii_mapping_h 17 #define dealii_mapping_h 20 #include <deal.II/base/config.h> 22 #include <deal.II/base/derivative_form.h> 24 #include <deal.II/fe/fe_update_flags.h> 26 #include <deal.II/grid/tria.h> 32 DEAL_II_NAMESPACE_OPEN
34 template <
typename ElementType,
typename MemorySpaceType>
38 template <
int dim,
int spacedim>
40 template <
int dim,
int spacedim>
42 template <
int dim,
int spacedim>
44 template <
int dim,
int spacedim>
46 template <
int dim,
int spacedim>
300 template <
int dim,
int spacedim = dim>
307 virtual ~Mapping()
override =
default;
318 virtual std::unique_ptr<Mapping<dim, spacedim>>
366 const bool map_center_of_reference_cell =
true)
const;
471 const unsigned int face_no,
499 "Computing the mapping between a real space point and a point in reference " 500 "space failed, typically because the given point lies outside the cell " 501 "where the inverse mapping is not unique.");
514 <<
"The image of the mapping applied to cell with center [" 515 << arg1 <<
"] is distorted. The cell geometry or the " 516 <<
"mapping are invalid, giving a non-positive volume " 517 <<
"fraction of " << arg2 <<
" in quadrature point " << arg3
713 virtual std::unique_ptr<InternalDataBase>
744 virtual std::unique_ptr<InternalDataBase>
776 virtual std::unique_ptr<InternalDataBase>
870 &output_data)
const = 0;
899 const unsigned int face_no,
903 &output_data)
const = 0;
934 const unsigned int face_no,
935 const unsigned int subface_no,
939 &output_data)
const = 0;
1241 friend class FEValues<dim, spacedim>;
1247 DEAL_II_NAMESPACE_CLOSE
Point< dim - 1 > project_real_point_to_unit_point_on_face(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const unsigned int face_no, const Point< spacedim > &p) const
virtual std::unique_ptr< InternalDataBase > get_subface_data(const UpdateFlags update_flags, const Quadrature< dim - 1 > &quadrature) const =0
static ::ExceptionBase & ExcTransformationFailed()
virtual ~InternalDataBase()=default
virtual Point< spacedim > get_center(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const bool map_center_of_reference_cell=true) const
virtual std::size_t memory_consumption() const
virtual std::array< Point< spacedim >, GeometryInfo< dim >::vertices_per_cell > get_vertices(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const
virtual ~Mapping() override=default
virtual std::unique_ptr< InternalDataBase > get_face_data(const UpdateFlags update_flags, const Quadrature< dim - 1 > &quadrature) const =0
virtual Point< dim > transform_real_to_unit_cell(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const Point< spacedim > &p) const =0
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 =0
static ::ExceptionBase & ExcDistortedMappedCell(Point< spacedim > arg1, double arg2, int arg3)
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 =0
Abstract base class for mapping classes.
#define DeclExceptionMsg(Exception, defaulttext)
#define DeclException0(Exception0)
static ::ExceptionBase & ExcInvalidData()
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 =0
virtual BoundingBox< spacedim > get_bounding_box(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) const =0
virtual bool preserves_vertex_locations() const =0
#define DeclException3(Exception3, type1, type2, type3, outsequence)
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 =0
virtual Point< spacedim > transform_unit_to_real_cell(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const Point< dim > &p) const =0
virtual std::unique_ptr< Mapping< dim, spacedim > > clone() const =0
virtual std::unique_ptr< InternalDataBase > get_data(const UpdateFlags update_flags, const Quadrature< dim > &quadrature) const =0