23#ifdef DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS
24# define BOOST_ALLOW_DEPRECATED_HEADERS
26#include <boost/geometry.hpp>
27#ifdef DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS
28# undef BOOST_ALLOW_DEPRECATED_HEADERS
36template <
int dim,
int spacedim>
37boost::container::small_vector<Point<spacedim>,
42 boost::container::small_vector<Point<spacedim>,
53template <
int dim,
int spacedim>
54boost::container::small_vector<Point<spacedim>,
58 const unsigned int face_no)
const
60 boost::container::small_vector<Point<spacedim>,
64 const auto &cell_vertices = get_vertices(cell);
66 const auto face_orientation = cell->combined_face_orientation(face_no);
68 for (
const unsigned int v :
71 face_vertices.push_back(
73 face_no, v, face_orientation)]);
81template <
int dim,
int spacedim>
85 const bool map_barycenter_of_reference_cell)
const
87 if (map_barycenter_of_reference_cell)
89 return transform_unit_to_real_cell(
90 cell, cell->reference_cell().template barycenter<dim>());
94 const auto vertices = get_vertices(cell);
98 return center / cell->n_vertices();
104template <
int dim,
int spacedim>
109 if (preserves_vertex_locations())
110 return cell->bounding_box();
117template <
int dim,
int spacedim>
130template <
int dim,
int spacedim>
138 for (
unsigned int i = 0; i < real_points.size(); ++i)
147 unit_points[i][0] = std::numeric_limits<double>::infinity();
154template <
int dim,
int spacedim>
158 const unsigned int face_no,
168 const unsigned int unit_normal_direction =
173 if (unit_normal_direction == 0)
174 return Point<dim - 1>{unit_cell_pt(1)};
175 else if (unit_normal_direction == 1)
176 return Point<dim - 1>{unit_cell_pt(0)};
180 if (unit_normal_direction == 0)
181 return Point<dim - 1>{unit_cell_pt(1), unit_cell_pt(2)};
182 else if (unit_normal_direction == 1)
183 return Point<dim - 1>{unit_cell_pt(0), unit_cell_pt(2)};
184 else if (unit_normal_direction == 2)
185 return Point<dim - 1>{unit_cell_pt(0), unit_cell_pt(1)};
196template <
int dim,
int spacedim>
200 const unsigned int face_no,
208 fill_fe_face_values(cell, face_no, quadrature[0], internal_data, output_data);
213template <
int dim,
int spacedim>
217 const unsigned int face_no,
224 ExcMessage(
"Use of a deprecated interface, please implement "
225 "fill_fe_face_values taking a hp::QCollection argument"));
235template <
int dim,
int spacedim>
236std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase>
242 return get_face_data(update_flags, quadrature[0]);
247template <
int dim,
int spacedim>
248std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase>
254 ExcMessage(
"Use of a deprecated interface, please implement "
255 "fill_fe_face_values taking a hp::QCollection argument"));
259 return std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase>();
266template <
int dim,
int spacedim>
273template <
int dim,
int spacedim>
277 return sizeof(*this);
283template <
int dim,
int spacedim>
287 const auto &reference_cells =
triangulation.get_reference_cells();
288 Assert(reference_cells.size() == 1,
290 "This function can only work for triangulations that "
291 "use only a single cell type -- for example, only triangles "
292 "or only quadrilaterals. For mixed meshes, there is no "
293 "single linear mapping object that can be used for all "
294 "cells of the triangulation. The triangulation you are "
295 "passing to this function uses multiple cell types."));
297 return reference_cells.front()
298 .template get_default_linear_mapping<dim, spacedim>();
304#include "mapping.inst"
virtual std::size_t memory_consumption() const
Abstract base class for mapping classes.
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 BoundingBox< spacedim > get_bounding_box(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const
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
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
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
virtual boost::container::small_vector< Point< spacedim >, GeometryInfo< dim >::vertices_per_cell > get_vertices(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const
virtual Point< spacedim > get_center(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const bool map_barycenter_of_reference_cell=true) const
virtual std::unique_ptr< InternalDataBase > get_face_data(const UpdateFlags update_flags, const hp::QCollection< dim - 1 > &quadrature) const
unsigned int size() const
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcNotImplemented()
#define Assert(cond, exc)
#define AssertDimension(dim1, dim2)
static ::ExceptionBase & ExcInternalError()
static ::ExceptionBase & ExcMessage(std::string arg1)
#define AssertThrow(cond, exc)
@ update_default
No update.
const Mapping< dim, spacedim > & get_default_linear_mapping(const Triangulation< dim, spacedim > &triangulation)
void reference_cell(Triangulation< dim, spacedim > &tria, const ReferenceCell &reference_cell)
Point< 1 > transform_real_to_unit_cell(const std::array< Point< spacedim >, GeometryInfo< 1 >::vertices_per_cell > &vertices, const Point< spacedim > &p)
const ::parallel::distributed::Triangulation< dim, spacedim > * triangulation