38#include <boost/container/small_vector.hpp>
51template <
int dim,
int spacedim>
53 const unsigned int polynomial_degree)
54 : polynomial_degree(polynomial_degree)
56 , line_support_points(
QGaussLobatto<1>(polynomial_degree + 1))
57 , tensor_product_quadrature(false)
62template <
int dim,
int spacedim>
83template <
int dim,
int spacedim>
88 const unsigned int n_original_q_points)
92 this->update_each = update_flags;
94 const unsigned int n_q_points = q.
size();
96 const bool needs_higher_order_terms =
104 covariant.resize(n_original_q_points);
107 contravariant.resize(n_original_q_points);
110 volume_elements.resize(n_original_q_points);
116 if (polynomial_degree < 2 || n_q_points == 1)
117 tensor_product_quadrature =
false;
123 if (tensor_product_quadrature)
125 const std::array<Quadrature<1>, dim> quad_array =
127 for (
unsigned int i = 1; i < dim && tensor_product_quadrature; ++i)
129 if (quad_array[i - 1].size() != quad_array[i].size())
131 tensor_product_quadrature =
false;
136 const std::vector<Point<1>> &points_1 =
137 quad_array[i - 1].get_points();
138 const std::vector<Point<1>> &points_2 =
139 quad_array[i].get_points();
140 const std::vector<double> &weights_1 =
141 quad_array[i - 1].get_weights();
142 const std::vector<double> &weights_2 =
143 quad_array[i].get_weights();
144 for (
unsigned int j = 0; j < quad_array[i].size(); ++j)
146 if (
std::abs(points_1[j][0] - points_2[j][0]) > 1.e-10 ||
147 std::abs(weights_1[j] - weights_2[j]) > 1.e-10)
149 tensor_product_quadrature =
false;
156 if (tensor_product_quadrature)
163 shape_info.lexicographic_numbering =
164 FETools::lexicographic_to_hierarchic_numbering<dim>(
166 shape_info.n_q_points = q.
size();
167 shape_info.dofs_per_component_on_cell =
175 if (dim == 1 || !tensor_product_quadrature || needs_higher_order_terms)
180 shape_values.resize(n_shape_functions * n_q_points);
182 if (this->update_each &
192 shape_derivatives.resize(n_shape_functions * n_q_points);
194 if (this->update_each &
196 shape_second_derivatives.resize(n_shape_functions * n_q_points);
200 shape_third_derivatives.resize(n_shape_functions * n_q_points);
204 shape_fourth_derivatives.resize(n_shape_functions * n_q_points);
207 compute_shape_function_values(q.
get_points());
213template <
int dim,
int spacedim>
218 const unsigned int n_original_q_points)
220 initialize(update_flags, q, n_original_q_points);
222 if (dim > 1 && tensor_product_quadrature)
224 constexpr unsigned int facedim = dim - 1;
227 shape_info.lexicographic_numbering =
228 FETools::lexicographic_to_hierarchic_numbering<facedim>(
230 shape_info.n_q_points = n_original_q_points;
231 shape_info.dofs_per_component_on_cell =
237 if (this->update_each &
247 unit_tangentials[i].resize(n_original_q_points);
248 std::fill(unit_tangentials[i].
begin(),
249 unit_tangentials[i].
end(),
254 .resize(n_original_q_points);
269template <
int dim,
int spacedim>
274 const unsigned int n_points = unit_points.size();
280 line_support_points.get_points()));
285 const std::vector<unsigned int> renumber =
286 FETools::hierarchic_to_lexicographic_numbering<dim>(polynomial_degree);
288 std::vector<double>
values;
289 std::vector<Tensor<1, dim>> grads;
290 if (shape_values.size() != 0)
292 Assert(shape_values.size() == n_shape_functions * n_points,
294 values.resize(n_shape_functions);
296 if (shape_derivatives.size() != 0)
298 Assert(shape_derivatives.size() == n_shape_functions * n_points,
300 grads.resize(n_shape_functions);
303 std::vector<Tensor<2, dim>> grad2;
304 if (shape_second_derivatives.size() != 0)
306 Assert(shape_second_derivatives.size() == n_shape_functions * n_points,
308 grad2.resize(n_shape_functions);
311 std::vector<Tensor<3, dim>> grad3;
312 if (shape_third_derivatives.size() != 0)
314 Assert(shape_third_derivatives.size() == n_shape_functions * n_points,
316 grad3.resize(n_shape_functions);
319 std::vector<Tensor<4, dim>> grad4;
320 if (shape_fourth_derivatives.size() != 0)
322 Assert(shape_fourth_derivatives.size() == n_shape_functions * n_points,
324 grad4.resize(n_shape_functions);
328 if (shape_values.size() != 0 || shape_derivatives.size() != 0 ||
329 shape_second_derivatives.size() != 0 ||
330 shape_third_derivatives.size() != 0 ||
331 shape_fourth_derivatives.size() != 0)
334 tensor_pols.evaluate(
335 unit_points[
point],
values, grads, grad2, grad3, grad4);
337 if (shape_values.size() != 0)
338 for (
unsigned int i = 0; i < n_shape_functions; ++i)
341 if (shape_derivatives.size() != 0)
342 for (
unsigned int i = 0; i < n_shape_functions; ++i)
343 derivative(
point, i) = grads[renumber[i]];
345 if (shape_second_derivatives.size() != 0)
346 for (
unsigned int i = 0; i < n_shape_functions; ++i)
347 second_derivative(
point, i) = grad2[renumber[i]];
349 if (shape_third_derivatives.size() != 0)
350 for (
unsigned int i = 0; i < n_shape_functions; ++i)
351 third_derivative(
point, i) = grad3[renumber[i]];
353 if (shape_fourth_derivatives.size() != 0)
354 for (
unsigned int i = 0; i < n_shape_functions; ++i)
355 fourth_derivative(
point, i) = grad4[renumber[i]];
361template <
int dim,
int spacedim>
363 : polynomial_degree(p)
364 , line_support_points(
368 , renumber_lexicographic_to_hierarchic(
370 , unit_cell_support_points(
373 renumber_lexicographic_to_hierarchic))
374 , support_point_weights_perimeter_to_interior(
375 internal::MappingQGenericImplementation::
377 this->polynomial_degree,
379 , support_point_weights_cell(
380 internal::MappingQGenericImplementation::
384 ExcMessage(
"It only makes sense to create polynomial mappings "
385 "with a polynomial degree greater or equal to one."));
390template <
int dim,
int spacedim>
393 : polynomial_degree(mapping.polynomial_degree)
394 , line_support_points(mapping.line_support_points)
395 , polynomials_1d(mapping.polynomials_1d)
396 , renumber_lexicographic_to_hierarchic(
397 mapping.renumber_lexicographic_to_hierarchic)
398 , support_point_weights_perimeter_to_interior(
399 mapping.support_point_weights_perimeter_to_interior)
400 , support_point_weights_cell(mapping.support_point_weights_cell)
405template <
int dim,
int spacedim>
406std::unique_ptr<Mapping<dim, spacedim>>
409 return std::make_unique<MappingQGeneric<dim, spacedim>>(*this);
414template <
int dim,
int spacedim>
423template <
int dim,
int spacedim>
458template <
int dim,
int spacedim>
477 const Point<1> & initial_p_unit)
const
481 return internal::MappingQGenericImplementation::
482 do_transform_real_to_unit_cell_internal<1>(
485 this->compute_mapping_support_points(cell),
487 renumber_lexicographic_to_hierarchic);
497 const Point<2> & initial_p_unit)
const
499 return internal::MappingQGenericImplementation::
500 do_transform_real_to_unit_cell_internal<2>(
503 this->compute_mapping_support_points(cell),
505 renumber_lexicographic_to_hierarchic);
515 const Point<3> & initial_p_unit)
const
517 return internal::MappingQGenericImplementation::
518 do_transform_real_to_unit_cell_internal<3>(
521 this->compute_mapping_support_points(cell),
523 renumber_lexicographic_to_hierarchic);
533 const Point<1> & initial_p_unit)
const
536 const int spacedim = 2;
543 auto mdata = Utilities::dynamic_unique_cast<InternalData>(
544 get_data(update_flags, point_quadrature));
546 mdata->mapping_support_points = this->compute_mapping_support_points(cell);
550 return internal::MappingQGenericImplementation::
551 do_transform_real_to_unit_cell_internal_codim1<1>(cell,
564 const Point<2> & initial_p_unit)
const
567 const int spacedim = 3;
574 auto mdata = Utilities::dynamic_unique_cast<InternalData>(
575 get_data(update_flags, point_quadrature));
577 mdata->mapping_support_points = this->compute_mapping_support_points(cell);
581 return internal::MappingQGenericImplementation::
582 do_transform_real_to_unit_cell_internal_codim1<2>(cell,
601template <
int dim,
int spacedim>
610 ((dim == 1) || ((dim == 2) && (dim == spacedim))))
637 for (
unsigned int i = 0; i <
vertices.size(); ++i)
663 const double eps = 1
e-15;
698 initial_p_unit = cell->real_to_unit_cell_affine_approximation(p);
701 return initial_p_unit;
706 for (
unsigned int d = 0;
d < dim; ++
d)
707 initial_p_unit[
d] = 0.5;
714 if (p_unit[0] == std::numeric_limits<double>::infinity())
722template <
int dim,
int spacedim>
740 const std::vector<Point<spacedim>> support_points =
745 internal::MappingQGenericImplementation::
746 InverseQuadraticApproximation<dim, spacedim>
749 const unsigned int n_points = real_points.size();
754 for (
unsigned int i = 0; i < n_points; i += n_lanes)
755 if (n_points - i > 1)
758 for (
unsigned int j = 0; j < n_lanes; ++j)
759 if (i + j < n_points)
760 for (
unsigned int d = 0;
d < spacedim; ++
d)
761 p_vec[
d][j] = real_points[i + j][
d];
763 for (
unsigned int d = 0;
d < spacedim; ++
d)
764 p_vec[
d][j] = real_points[i][
d];
767 internal::MappingQGenericImplementation::
768 do_transform_real_to_unit_cell_internal<dim, spacedim>(
770 inverse_approximation.compute(p_vec),
780 for (
unsigned int j = 0; j < n_lanes && i + j < n_points; ++j)
781 if (unit_point[0][j] == std::numeric_limits<double>::infinity())
782 unit_points[i + j] = internal::MappingQGenericImplementation::
783 do_transform_real_to_unit_cell_internal<dim, spacedim>(
785 inverse_approximation.compute(real_points[i + j]),
790 for (
unsigned int d = 0;
d < dim; ++
d)
791 unit_points[i + j][
d] = unit_point[
d][j];
794 unit_points[i] = internal::MappingQGenericImplementation::
795 do_transform_real_to_unit_cell_internal<dim, spacedim>(
797 inverse_approximation.compute(real_points[i]),
805template <
int dim,
int spacedim>
817 for (
unsigned int i = 0; i < 5; ++i)
862template <
int dim,
int spacedim>
863std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase>
867 std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase> data_ptr =
869 auto &data =
dynamic_cast<InternalData &
>(*data_ptr);
877template <
int dim,
int spacedim>
878std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase>
885 std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase> data_ptr =
887 auto &data =
dynamic_cast<InternalData &
>(*data_ptr);
890 ReferenceCells::get_hypercube<dim>(), quadrature[0]),
891 quadrature[0].size());
898template <
int dim,
int spacedim>
899std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase>
904 std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase> data_ptr =
906 auto &data =
dynamic_cast<InternalData &
>(*data_ptr);
909 ReferenceCells::get_hypercube<dim>(), quadrature),
917template <
int dim,
int spacedim>
928 Assert(
dynamic_cast<const InternalData *
>(&internal_data) !=
nullptr,
930 const InternalData &data =
static_cast<const InternalData &
>(internal_data);
932 const unsigned int n_q_points = quadrature.
size();
945 data.cell_of_current_support_points = cell;
954 if (dim > 1 && data.tensor_product_quadrature)
956 internal::MappingQGenericImplementation::
957 maybe_update_q_points_Jacobians_and_grads_tensor<dim, spacedim>(
958 computed_cell_similarity,
973 computed_cell_similarity,
979 spacedim>(computed_cell_similarity,
985 internal::MappingQGenericImplementation::
986 maybe_update_jacobian_pushed_forward_grads<dim, spacedim>(
987 computed_cell_similarity,
992 internal::MappingQGenericImplementation::
993 maybe_update_jacobian_2nd_derivatives<dim, spacedim>(
994 computed_cell_similarity,
999 internal::MappingQGenericImplementation::
1000 maybe_update_jacobian_pushed_forward_2nd_derivatives<dim, spacedim>(
1001 computed_cell_similarity,
1006 internal::MappingQGenericImplementation::
1007 maybe_update_jacobian_3rd_derivatives<dim, spacedim>(
1008 computed_cell_similarity,
1013 internal::MappingQGenericImplementation::
1014 maybe_update_jacobian_pushed_forward_3rd_derivatives<dim, spacedim>(
1015 computed_cell_similarity,
1020 const UpdateFlags update_flags = data.update_each;
1021 const std::vector<double> &weights = quadrature.
get_weights();
1039 if (dim == spacedim)
1041 const double det = data.contravariant[
point].determinant();
1049 1
e-12 * Utilities::fixed_power<dim>(
1050 cell->diameter() /
std::sqrt(
double(dim))),
1052 cell->center(), det,
point)));
1062 for (
unsigned int i = 0; i < spacedim; ++i)
1063 for (
unsigned int j = 0; j < dim; ++j)
1064 DX_t[j][i] = data.contravariant[
point][i][j];
1067 for (
unsigned int i = 0; i < dim; ++i)
1068 for (
unsigned int j = 0; j < dim; ++j)
1069 G[i][j] = DX_t[i] * DX_t[j];
1074 if (computed_cell_similarity ==
1085 Assert(spacedim == dim + 1,
1087 "There is no (unique) cell normal for " +
1089 "-dimensional cells in " +
1091 "-dimensional space. This only works if the "
1092 "space dimension is one greater than the "
1093 "dimensionality of the mesh cells."));
1105 if (cell->direction_flag() ==
false)
1131 data.covariant[
point].transpose();
1134 return computed_cell_similarity;
1139template <
int dim,
int spacedim>
1143 const unsigned int face_no,
1152 Assert((
dynamic_cast<const InternalData *
>(&internal_data) !=
nullptr),
1154 const InternalData &data =
static_cast<const InternalData &
>(internal_data);
1160 if ((data.mapping_support_points.size() == 0) ||
1163 (cell != data.cell_of_current_support_points))
1166 data.cell_of_current_support_points = cell;
1175 ReferenceCells::get_hypercube<dim>(),
1177 cell->face_orientation(face_no),
1178 cell->face_flip(face_no),
1179 cell->face_rotation(face_no),
1180 quadrature[0].size()),
1188template <
int dim,
int spacedim>
1192 const unsigned int face_no,
1193 const unsigned int subface_no,
1200 Assert((
dynamic_cast<const InternalData *
>(&internal_data) !=
nullptr),
1202 const InternalData &data =
static_cast<const InternalData &
>(internal_data);
1208 if ((data.mapping_support_points.size() == 0) ||
1211 (cell != data.cell_of_current_support_points))
1214 data.cell_of_current_support_points = cell;
1223 ReferenceCells::get_hypercube<dim>(),
1226 cell->face_orientation(face_no),
1227 cell->face_flip(face_no),
1228 cell->face_rotation(face_no),
1230 cell->subface_case(face_no)),
1238template <
int dim,
int spacedim>
1255 output_data.
initialize(unit_points.size(), update_flags);
1256 const std::vector<Point<spacedim>> support_points =
1259 const unsigned int n_points = unit_points.size();
1264 for (
unsigned int i = 0; i < n_points; i += n_lanes)
1265 if (n_points - i > 1)
1268 for (
unsigned int j = 0; j < n_lanes; ++j)
1269 if (i + j < n_points)
1270 for (
unsigned int d = 0;
d < dim; ++
d)
1271 p_vec[
d][j] = unit_points[i + j][
d];
1273 for (
unsigned int d = 0;
d < dim; ++
d)
1274 p_vec[
d][j] = unit_points[i][
d];
1285 for (
unsigned int j = 0; j < n_lanes && i + j < n_points; ++j)
1286 for (
unsigned int d = 0;
d < spacedim; ++
d)
1290 for (
unsigned int j = 0; j < n_lanes && i + j < n_points; ++j)
1291 for (
unsigned int d = 0;
d < spacedim; ++
d)
1292 for (
unsigned int e = 0;
e < dim; ++
e)
1293 output_data.
jacobians[i + j][
d][
e] = result.second[
e][
d][j];
1301 for (
unsigned int j = 0; j < n_lanes && i + j < n_points; ++j)
1302 for (
unsigned int d = 0;
d < dim; ++
d)
1303 for (
unsigned int e = 0;
e < spacedim; ++
e)
1330 for (
unsigned int d = 0;
d < dim; ++
d)
1331 for (
unsigned int e = 0;
e < spacedim; ++
e)
1339template <
int dim,
int spacedim>
1355template <
int dim,
int spacedim>
1364 input, mapping_kind, mapping_data, output);
1369template <
int dim,
int spacedim>
1377 switch (mapping_kind)
1390 input, mapping_kind, mapping_data, output);
1399template <
int dim,
int spacedim>
1408 Assert(
dynamic_cast<const InternalData *
>(&mapping_data) !=
nullptr,
1410 const InternalData &data =
static_cast<const InternalData &
>(mapping_data);
1412 switch (mapping_kind)
1418 "update_covariant_transformation"));
1420 for (
unsigned int q = 0; q < output.
size(); ++q)
1421 for (
unsigned int i = 0; i < spacedim; ++i)
1422 for (
unsigned int j = 0; j < spacedim; ++j)
1425 for (
unsigned int K = 0; K < dim; ++K)
1427 tmp[K] = data.covariant[q][j][0] * input[q][i][0][K];
1428 for (
unsigned int J = 1; J < dim; ++J)
1429 tmp[K] += data.covariant[q][j][J] * input[q][i][J][K];
1431 for (
unsigned int k = 0; k < spacedim; ++k)
1433 output[q][i][j][k] = data.covariant[q][k][0] * tmp[0];
1434 for (
unsigned int K = 1; K < dim; ++K)
1435 output[q][i][j][k] += data.covariant[q][k][K] * tmp[K];
1448template <
int dim,
int spacedim>
1456 switch (mapping_kind)
1462 input, mapping_kind, mapping_data, output);
1471template <
int dim,
int spacedim>
1480 for (
unsigned int line_no = 0;
1481 line_no < GeometryInfo<dim>::lines_per_cell;
1488 cell->line(line_no));
1502 std::vector<Point<spacedim>> tmp_points;
1503 for (
unsigned int line_no = 0;
1504 line_no < GeometryInfo<dim>::lines_per_cell;
1511 cell->line(line_no));
1519 const std::array<Point<spacedim>, 2>
vertices{
1524 const std::size_t n_rows =
1526 a.resize(a.size() + n_rows);
1547 std::vector<Point<3>> tmp_points;
1550 for (
unsigned int face_no = 0; face_no < faces_per_cell; ++face_no)
1555 const bool face_orientation = cell->face_orientation(face_no),
1556 face_flip = cell->face_flip(face_no),
1557 face_rotation = cell->face_rotation(face_no);
1562 for (
unsigned int i = 0; i < vertices_per_face; ++i)
1563 Assert(face->vertex_index(i) ==
1565 face_no, i, face_orientation, face_flip, face_rotation)),
1570 for (
unsigned int i = 0; i < lines_per_face; ++i)
1573 face_no, i, face_orientation, face_flip, face_rotation)),
1579 boost::container::small_vector<Point<3>, 200> tmp_points(
1584 if (polynomial_degree > 1)
1585 for (
unsigned int line = 0; line < GeometryInfo<2>::lines_per_cell;
1587 for (
unsigned int i = 0; i < polynomial_degree - 1; ++i)
1588 tmp_points[4 + line * (polynomial_degree - 1) + i] =
1590 (polynomial_degree - 1) *
1594 const std::size_t n_rows =
1595 support_point_weights_perimeter_to_interior[1].size(0);
1596 a.resize(a.size() + n_rows);
1598 face->get_manifold().get_new_points(
1600 support_point_weights_perimeter_to_interior[1],
1619 for (
unsigned int q = 0, q2 = 0; q2 < polynomial_degree - 1; ++q2)
1620 for (
unsigned int q1 = 0; q1 < polynomial_degree - 1; ++q1, ++q)
1623 line_support_points[q2 + 1][0]);
1628 const std::size_t n_rows = weights.size(0);
1629 a.resize(a.size() + n_rows);
1631 cell->get_manifold().get_new_points(
1637template <
int dim,
int spacedim>
1648template <
int dim,
int spacedim>
1649std::vector<Point<spacedim>>
1654 std::vector<Point<spacedim>> a;
1657 a.push_back(cell->vertex(i));
1666 bool all_manifold_ids_are_equal = (dim == spacedim);
1667 if (all_manifold_ids_are_equal &&
1673 all_manifold_ids_are_equal =
false;
1676 for (
unsigned int l = 0; l < GeometryInfo<dim>::lines_per_cell; ++
l)
1678 all_manifold_ids_are_equal =
false;
1681 if (all_manifold_ids_are_equal)
1684 a.resize(a.size() + n_rows);
1703 if (dim != spacedim)
1707 const std::size_t n_rows =
1709 a.resize(a.size() + n_rows);
1725 const std::size_t n_rows =
1727 a.resize(a.size() + n_rows);
1747template <
int dim,
int spacedim>
1757template <
int dim,
int spacedim>
1763 ExcMessage(
"The dimension of your mapping (" +
1765 ") and the reference cell cell_type (" +
1767 " ) do not agree."));
1775#include "mapping_q_generic.inst"
ArrayView< typename std::remove_reference< typename std::iterator_traits< Iterator >::reference >::type, MemorySpaceType > make_array_view(const Iterator begin, const Iterator end)
ArrayView< typename std::remove_reference< typename std::iterator_traits< Iterator >::reference >::type, MemorySpaceType > make_array_view(const Iterator begin, const Iterator end)
virtual Point< spacedim > get_new_point_on_line(const typename Triangulation< dim, spacedim >::line_iterator &line) const
virtual void get_new_points(const ArrayView< const Point< spacedim > > &surrounding_points, const Table< 2, double > &weights, ArrayView< Point< spacedim > > new_points) const
virtual std::size_t memory_consumption() const override
void compute_shape_function_values(const std::vector< Point< dim > > &unit_points)
InternalData(const unsigned int polynomial_degree)
void initialize_face(const UpdateFlags update_flags, const Quadrature< dim > &quadrature, const unsigned int n_original_q_points)
void initialize(const UpdateFlags update_flags, const Quadrature< dim > &quadrature, const unsigned int n_original_q_points)
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
const std::vector< Point< dim > > unit_cell_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
Abstract base class for mapping classes.
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
static DataSetDescriptor cell()
bool is_tensor_product() const
const std::array< Quadrature< 1 >, dim > & get_tensor_basis() const
const std::vector< double > & get_weights() const
const std::vector< Point< dim > > & get_points() const
unsigned int size() const
Triangulation< dim, spacedim > & get_triangulation()
static constexpr std::size_t size()
unsigned int size() const
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#define DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
@ update_jacobian_pushed_forward_2nd_derivatives
@ update_volume_elements
Determinant of the Jacobian.
@ update_contravariant_transformation
Contravariant transformation.
@ update_jacobian_pushed_forward_grads
@ update_jacobian_3rd_derivatives
@ update_jacobian_grads
Gradient of volume element.
@ update_normal_vectors
Normal vectors.
@ update_JxW_values
Transformed quadrature weights.
@ update_covariant_transformation
Covariant transformation.
@ update_jacobians
Volume element.
@ update_inverse_jacobians
Volume element.
@ update_quadrature_points
Transformed quadrature points.
@ update_default
No update.
@ update_jacobian_pushed_forward_3rd_derivatives
@ update_boundary_forms
Outer normal vector, not normalized.
@ update_jacobian_2nd_derivatives
static ::ExceptionBase & ExcNotImplemented()
#define Assert(cond, exc)
static ::ExceptionBase & ExcImpossibleInDim(int arg1)
#define AssertDimension(dim1, dim2)
static ::ExceptionBase & ExcInternalError()
static ::ExceptionBase & ExcDimensionMismatch(std::size_t arg1, std::size_t arg2)
static ::ExceptionBase & ExcMessage(std::string arg1)
#define AssertThrow(cond, exc)
const Manifold< dim, spacedim > & get_manifold(const types::manifold_id number) const
@ mapping_covariant_gradient
@ mapping_contravariant_hessian
@ mapping_covariant_hessian
@ mapping_contravariant_gradient
void reference_cell(Triangulation< dim, spacedim > &tria, const ReferenceCell &reference_cell)
std::enable_if< std::is_fundamental< T >::value, std::size_t >::type memory_consumption(const T &t)
Point< spacedim > point(const gp_Pnt &p, const double tolerance=1e-10)
SymmetricTensor< 2, dim, Number > e(const Tensor< 2, dim, Number > &F)
Tensor< 2, dim, Number > l(const Tensor< 2, dim, Number > &F, const Tensor< 2, dim, Number > &dF_dt)
SymmetricTensor< 2, dim, Number > d(const Tensor< 2, dim, Number > &F, const Tensor< 2, dim, Number > &dF_dt)
std::vector< Polynomial< double > > generate_complete_Lagrange_basis(const std::vector< Point< 1 > > &points)
VectorType::value_type * end(VectorType &V)
VectorType::value_type * begin(VectorType &V)
constexpr T pow(const T base, const int iexp)
std::string to_string(const number value, const unsigned int digits=numbers::invalid_unsigned_int)
std::string int_to_string(const unsigned int value, const unsigned int digits=numbers::invalid_unsigned_int)
Point< 1 > transform_real_to_unit_cell(const std::array< Point< spacedim >, GeometryInfo< 1 >::vertices_per_cell > &vertices, const Point< spacedim > &p)
void transform_differential_forms(const ArrayView< const DerivativeForm< rank, dim, spacedim > > &input, const MappingKind mapping_kind, const typename Mapping< dim, spacedim >::InternalDataBase &mapping_data, const ArrayView< Tensor< rank+1, spacedim > > &output)
void maybe_update_jacobian_grads(const CellSimilarity::Similarity cell_similarity, const typename QProjector< dim >::DataSetDescriptor data_set, const typename ::MappingQGeneric< dim, spacedim >::InternalData &data, std::vector< DerivativeForm< 2, dim, spacedim > > &jacobian_grads)
std::vector<::Table< 2, double > > compute_support_point_weights_perimeter_to_interior(const unsigned int polynomial_degree, const unsigned int dim)
void transform_hessians(const ArrayView< const Tensor< 3, dim > > &input, const MappingKind mapping_kind, const typename Mapping< dim, spacedim >::InternalDataBase &mapping_data, const ArrayView< Tensor< 3, spacedim > > &output)
void maybe_update_Jacobians(const CellSimilarity::Similarity cell_similarity, const typename ::QProjector< dim >::DataSetDescriptor data_set, const typename ::MappingQGeneric< dim, spacedim >::InternalData &data)
void do_fill_fe_face_values(const ::MappingQGeneric< dim, spacedim > &mapping, const typename ::Triangulation< dim, spacedim >::cell_iterator &cell, const unsigned int face_no, const unsigned int subface_no, const typename QProjector< dim >::DataSetDescriptor data_set, const Quadrature< dim - 1 > &quadrature, const typename ::MappingQGeneric< dim, spacedim >::InternalData &data, internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &output_data)
void transform_gradients(const ArrayView< const Tensor< rank, dim > > &input, const MappingKind mapping_kind, const typename Mapping< dim, spacedim >::InternalDataBase &mapping_data, const ArrayView< Tensor< rank, spacedim > > &output)
void transform_fields(const ArrayView< const Tensor< rank, dim > > &input, const MappingKind mapping_kind, const typename Mapping< dim, spacedim >::InternalDataBase &mapping_data, const ArrayView< Tensor< rank, spacedim > > &output)
inline ::Table< 2, double > compute_support_point_weights_cell(const unsigned int polynomial_degree)
void maybe_compute_q_points(const typename QProjector< dim >::DataSetDescriptor data_set, const typename ::MappingQGeneric< dim, spacedim >::InternalData &data, std::vector< Point< spacedim > > &quadrature_points)
std::vector< Point< dim > > unit_support_points(const std::vector< Point< 1 > > &line_support_points, const std::vector< unsigned int > &renumbering)
std::pair< typename ProductTypeNoPoint< Number, Number2 >::type, Tensor< 1, dim, typename ProductTypeNoPoint< Number, Number2 >::type > > evaluate_tensor_product_value_and_gradient(const std::vector< Polynomials::Polynomial< double > > &poly, const std::vector< Number > &values, const Point< dim, Number2 > &p, const bool d_linear=false, const std::vector< unsigned int > &renumber={})
static const unsigned int invalid_unsigned_int
const types::manifold_id flat_manifold_id
::VectorizedArray< Number, width > sqrt(const ::VectorizedArray< Number, width > &)
::VectorizedArray< Number, width > abs(const ::VectorizedArray< Number, width > &)
static unsigned int face_to_cell_vertices(const unsigned int face, const unsigned int vertex, const bool face_orientation=true, const bool face_flip=false, const bool face_rotation=false)
static double d_linear_shape_function(const Point< dim > &xi, const unsigned int i)
constexpr Number determinant(const SymmetricTensor< 2, dim, Number > &)
constexpr Tensor< 1, dim, Number > cross_product_2d(const Tensor< 1, dim, Number > &src)
constexpr Tensor< 1, dim, typename ProductType< Number1, Number2 >::type > cross_product_3d(const Tensor< 1, dim, Number1 > &src1, const Tensor< 1, dim, Number2 > &src2)