37#include <boost/container/small_vector.hpp>
50template <
int dim,
int spacedim>
52 const unsigned int polynomial_degree)
53 : polynomial_degree(polynomial_degree)
54 , n_shape_functions(
Utilities::fixed_power<dim>(polynomial_degree + 1))
55 , line_support_points(
QGaussLobatto<1>(polynomial_degree + 1))
56 , tensor_product_quadrature(false)
57 , output_data(nullptr)
62template <
int dim,
int spacedim>
80template <
int dim,
int spacedim>
85 const unsigned int n_original_q_points)
89 this->update_each = update_flags;
91 const unsigned int n_q_points = quadrature.
size();
94 volume_elements.resize(n_original_q_points);
101 tensor_product_quadrature =
false;
107 if (tensor_product_quadrature)
109 const std::array<Quadrature<1>, dim> &quad_array =
111 for (
unsigned int i = 1; i < dim && tensor_product_quadrature; ++i)
113 if (quad_array[i - 1].size() != quad_array[i].size())
115 tensor_product_quadrature =
false;
120 const std::vector<Point<1>> &points_1 =
121 quad_array[i - 1].get_points();
122 const std::vector<Point<1>> &points_2 =
123 quad_array[i].get_points();
124 const std::vector<double> &weights_1 =
125 quad_array[i - 1].get_weights();
126 const std::vector<double> &weights_2 =
127 quad_array[i].get_weights();
128 for (
unsigned int j = 0; j < quad_array[i].size(); ++j)
130 if (
std::abs(points_1[j][0] - points_2[j][0]) > 1.e-10 ||
131 std::abs(weights_1[j] - weights_2[j]) > 1.e-10)
133 tensor_product_quadrature =
false;
140 if (tensor_product_quadrature)
147 shape_info.lexicographic_numbering =
148 FETools::lexicographic_to_hierarchic_numbering<dim>(
150 shape_info.n_q_points = n_q_points;
151 shape_info.dofs_per_component_on_cell =
160template <
int dim,
int spacedim>
165 const unsigned int n_original_q_points)
167 initialize(update_flags, quadrature, n_original_q_points);
171 if (dim > 1 && tensor_product_quadrature)
173 constexpr unsigned int facedim = dim - 1;
176 shape_info.lexicographic_numbering =
177 FETools::lexicographic_to_hierarchic_numbering<facedim>(
179 shape_info.n_q_points = n_original_q_points;
180 shape_info.dofs_per_component_on_cell =
186 if (this->update_each &
190 aux[0].resize(n_original_q_points);
192 aux[1].resize(n_original_q_points);
195 for (
const unsigned int i :
GeometryInfo<dim>::face_indices())
197 unit_tangentials[i].resize(n_original_q_points);
198 std::fill(unit_tangentials[i].begin(),
199 unit_tangentials[i].end(),
204 .resize(n_original_q_points);
219template <
int dim,
int spacedim>
227 FETools::lexicographic_to_hierarchic_numbering<dim>(p))
229 internal::MappingQImplementation::unit_support_points<dim>(
234 compute_support_point_weights_perimeter_to_interior(
238 internal::MappingQImplementation::compute_support_point_weights_cell<dim>(
242 ExcMessage(
"It only makes sense to create polynomial mappings "
243 "with a polynomial degree greater or equal to one."));
248template <
int dim,
int spacedim>
255template <
int dim,
int spacedim>
270template <
int dim,
int spacedim>
271std::unique_ptr<Mapping<dim, spacedim>>
274 return std::make_unique<MappingQ<dim, spacedim>>(*this);
279template <
int dim,
int spacedim>
283 return polynomial_degree;
288template <
int dim,
int spacedim>
296 this->compute_mapping_support_points(cell),
298 polynomials_1d.size() == 2,
299 renumber_lexicographic_to_hierarchic));
322template <
int dim,
int spacedim>
345 return internal::MappingQImplementation::
346 do_transform_real_to_unit_cell_internal<1>(
349 this->compute_mapping_support_points(cell),
351 renumber_lexicographic_to_hierarchic);
361 const Point<2> & initial_p_unit)
const
363 return internal::MappingQImplementation::
364 do_transform_real_to_unit_cell_internal<2>(
367 this->compute_mapping_support_points(cell),
369 renumber_lexicographic_to_hierarchic);
379 const Point<3> & initial_p_unit)
const
381 return internal::MappingQImplementation::
382 do_transform_real_to_unit_cell_internal<3>(
385 this->compute_mapping_support_points(cell),
387 renumber_lexicographic_to_hierarchic);
397 const Point<1> & initial_p_unit)
const
400 const int spacedim = 2;
407 auto mdata = Utilities::dynamic_unique_cast<InternalData>(
408 get_data(update_flags, point_quadrature));
410 mdata->mapping_support_points = this->compute_mapping_support_points(cell);
414 return internal::MappingQImplementation::
415 do_transform_real_to_unit_cell_internal_codim1<1>(
418 mdata->mapping_support_points,
420 renumber_lexicographic_to_hierarchic);
430 const Point<2> & initial_p_unit)
const
433 const int spacedim = 3;
440 auto mdata = Utilities::dynamic_unique_cast<InternalData>(
441 get_data(update_flags, point_quadrature));
443 mdata->mapping_support_points = this->compute_mapping_support_points(cell);
447 return internal::MappingQImplementation::
448 do_transform_real_to_unit_cell_internal_codim1<2>(
451 mdata->mapping_support_points,
453 renumber_lexicographic_to_hierarchic);
471template <
int dim,
int spacedim>
479 if (this->preserves_vertex_locations() && (polynomial_degree == 1) &&
480 ((dim == 1) || ((dim == 2) && (dim == spacedim))))
503 const auto vertices_ = this->get_vertices(cell);
507 for (
unsigned int i = 0; i <
vertices.size(); ++i)
533 const double eps = 1e-15;
534 if (-eps <= point(1) && point(1) <= 1 + eps &&
535 -eps <= point(0) && point(0) <= 1 + eps)
566 if (this->preserves_vertex_locations())
568 initial_p_unit = cell->real_to_unit_cell_affine_approximation(p);
570 if (dim == 1 && polynomial_degree == 1)
571 return initial_p_unit;
576 for (
unsigned int d = 0;
d < dim; ++
d)
577 initial_p_unit[d] = 0.5;
583 this->transform_real_to_unit_cell_internal(cell, p, initial_p_unit);
591template <
int dim,
int spacedim>
609 const std::vector<Point<spacedim>> support_points =
610 this->compute_mapping_support_points(cell);
615 inverse_approximation(support_points, unit_cell_support_points);
617 const unsigned int n_points = real_points.size();
622 for (
unsigned int i = 0; i < n_points; i += n_lanes)
623 if (n_points - i > 1)
626 for (
unsigned int j = 0; j < n_lanes; ++j)
627 if (i + j < n_points)
628 for (
unsigned int d = 0; d < spacedim; ++d)
629 p_vec[d][j] = real_points[i + j][d];
631 for (
unsigned int d = 0; d < spacedim; ++d)
632 p_vec[d][j] = real_points[i][d];
635 internal::MappingQImplementation::
636 do_transform_real_to_unit_cell_internal<dim, spacedim>(
641 renumber_lexicographic_to_hierarchic);
648 for (
unsigned int j = 0; j < n_lanes && i + j < n_points; ++j)
650 for (
unsigned int d = 0; d < dim; ++d)
651 unit_points[i + j][d] = unit_point[d][j];
653 unit_points[i + j] = internal::MappingQImplementation::
654 do_transform_real_to_unit_cell_internal<dim, spacedim>(
656 inverse_approximation.
compute(real_points[i + j]),
659 renumber_lexicographic_to_hierarchic);
662 unit_points[i] = internal::MappingQImplementation::
663 do_transform_real_to_unit_cell_internal<dim, spacedim>(
665 inverse_approximation.
compute(real_points[i]),
668 renumber_lexicographic_to_hierarchic);
673template <
int dim,
int spacedim>
684 for (
unsigned int i = 0; i < 5; ++i)
729template <
int dim,
int spacedim>
730std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase>
734 std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase> data_ptr =
735 std::make_unique<InternalData>(polynomial_degree);
737 data.
initialize(this->requires_update_flags(update_flags), q, q.
size());
744template <
int dim,
int spacedim>
745std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase>
752 std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase> data_ptr =
753 std::make_unique<InternalData>(polynomial_degree);
757 ReferenceCells::get_hypercube<dim>(), quadrature[0]),
758 quadrature[0].size());
765template <
int dim,
int spacedim>
766std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase>
771 std::unique_ptr<typename Mapping<dim, spacedim>::InternalDataBase> data_ptr =
772 std::make_unique<InternalData>(polynomial_degree);
776 ReferenceCells::get_hypercube<dim>(), quadrature),
784template <
int dim,
int spacedim>
800 const unsigned int n_q_points = quadrature.
size();
820 (polynomial_degree == 1 && this->preserves_vertex_locations() ?
826 internal::MappingQImplementation::
827 maybe_update_q_points_Jacobians_and_grads_tensor<dim, spacedim>(
828 computed_cell_similarity,
838 computed_cell_similarity,
842 renumber_lexicographic_to_hierarchic,
849 computed_cell_similarity,
853 renumber_lexicographic_to_hierarchic,
859 spacedim>(computed_cell_similarity,
863 renumber_lexicographic_to_hierarchic,
868 spacedim>(computed_cell_similarity,
872 renumber_lexicographic_to_hierarchic,
875 internal::MappingQImplementation::
876 maybe_update_jacobian_pushed_forward_2nd_derivatives<dim, spacedim>(
877 computed_cell_similarity,
881 renumber_lexicographic_to_hierarchic,
886 spacedim>(computed_cell_similarity,
890 renumber_lexicographic_to_hierarchic,
893 internal::MappingQImplementation::
894 maybe_update_jacobian_pushed_forward_3rd_derivatives<dim, spacedim>(
895 computed_cell_similarity,
899 renumber_lexicographic_to_hierarchic,
903 const std::vector<double> &weights = quadrature.
get_weights();
919 for (
unsigned int point = 0; point < n_q_points; ++point)
931 1e-12 * Utilities::fixed_power<dim>(
932 cell->diameter() /
std::sqrt(
double(dim))),
934 cell->center(), det, point)));
936 output_data.
JxW_values[point] = weights[point] * det;
944 for (
unsigned int i = 0; i < spacedim; ++i)
945 for (
unsigned int j = 0; j < dim; ++j)
946 DX_t[j][i] = output_data.
jacobians[point][i][j];
949 for (
unsigned int i = 0; i < dim; ++i)
950 for (
unsigned int j = 0; j < dim; ++j)
951 G[i][j] = DX_t[i] * DX_t[j];
956 if (computed_cell_similarity ==
967 Assert(spacedim == dim + 1,
969 "There is no (unique) cell normal for " +
971 "-dimensional cells in " +
973 "-dimensional space. This only works if the "
974 "space dimension is one greater than the "
975 "dimensionality of the mesh cells."));
979 cross_product_2d(-DX_t[0]);
982 cross_product_3d(DX_t[0], DX_t[1]);
987 if (cell->direction_flag() ==
false)
995 return computed_cell_similarity;
1000template <
int dim,
int spacedim>
1004 const unsigned int face_no,
1023 (&cell->get_triangulation() !=
1037 ReferenceCells::get_hypercube<dim>(),
1039 cell->face_orientation(face_no),
1040 cell->face_flip(face_no),
1041 cell->face_rotation(face_no),
1042 quadrature[0].
size()),
1046 renumber_lexicographic_to_hierarchic,
1052template <
int dim,
int spacedim>
1056 const unsigned int face_no,
1057 const unsigned int subface_no,
1074 (&cell->get_triangulation() !=
1088 ReferenceCells::get_hypercube<dim>(),
1091 cell->face_orientation(face_no),
1092 cell->face_flip(face_no),
1093 cell->face_rotation(face_no),
1095 cell->subface_case(face_no)),
1099 renumber_lexicographic_to_hierarchic,
1105template <
int dim,
int spacedim>
1122 const unsigned int n_q_points = quadrature.
size();
1132 renumber_lexicographic_to_hierarchic,
1137 internal::MappingQImplementation::maybe_update_jacobian_grads<dim, spacedim>(
1142 renumber_lexicographic_to_hierarchic,
1151 renumber_lexicographic_to_hierarchic,
1160 renumber_lexicographic_to_hierarchic,
1163 internal::MappingQImplementation::
1164 maybe_update_jacobian_pushed_forward_2nd_derivatives<dim, spacedim>(
1169 renumber_lexicographic_to_hierarchic,
1178 renumber_lexicographic_to_hierarchic,
1181 internal::MappingQImplementation::
1182 maybe_update_jacobian_pushed_forward_3rd_derivatives<dim, spacedim>(
1187 renumber_lexicographic_to_hierarchic,
1190 const UpdateFlags update_flags = data.update_each;
1191 const std::vector<double> &weights = quadrature.
get_weights();
1203 for (
unsigned int point = 0; point < n_q_points; ++point)
1212 Assert(det > 1e-12 * Utilities::fixed_power<dim>(
1213 cell->diameter() /
std::sqrt(
double(dim))),
1215 cell->center(), det, point)));
1219 for (
unsigned int d = 0; d < spacedim; d++)
1223 output_data.
JxW_values[point] = weights[point] * det * normal.
norm();
1227 normal /= normal.
norm();
1236template <
int dim,
int spacedim>
1253 output_data.
initialize(unit_points.size(), update_flags);
1255 auto internal_data =
1256 this->get_data(update_flags,
1258 unit_points.end())));
1268 renumber_lexicographic_to_hierarchic,
1276template <
int dim,
int spacedim>
1280 const unsigned int face_no,
1306 renumber_lexicographic_to_hierarchic,
1312template <
int dim,
int spacedim>
1328template <
int dim,
int spacedim>
1344template <
int dim,
int spacedim>
1352 switch (mapping_kind)
1376template <
int dim,
int spacedim>
1388 &data = *
static_cast<const InternalData &
>(mapping_data).output_data;
1390 switch (mapping_kind)
1396 "update_covariant_transformation"));
1398 for (
unsigned int q = 0; q < output.size(); ++q)
1399 for (
unsigned int i = 0; i < spacedim; ++i)
1400 for (
unsigned int j = 0; j < spacedim; ++j)
1405 for (
unsigned int K = 0; K < dim; ++K)
1407 tmp[K] = covariant[j][0] * input[q][i][0][K];
1408 for (
unsigned int J = 1; J < dim; ++J)
1409 tmp[K] += covariant[j][J] * input[q][i][J][K];
1411 for (
unsigned int k = 0; k < spacedim; ++k)
1413 output[q][i][j][k] = covariant[k][0] * tmp[0];
1414 for (
unsigned int K = 1; K < dim; ++K)
1415 output[q][i][j][k] += covariant[k][K] * tmp[K];
1428template <
int dim,
int spacedim>
1436 switch (mapping_kind)
1453template <
int dim,
int spacedim>
1460 if (this->polynomial_degree == 2)
1462 for (
unsigned int line_no = 0;
1463 line_no < GeometryInfo<dim>::lines_per_cell;
1470 cell->line(line_no));
1475 cell->get_manifold() :
1484 std::vector<Point<spacedim>> tmp_points;
1485 for (
unsigned int line_no = 0;
1486 line_no < GeometryInfo<dim>::lines_per_cell;
1493 cell->line(line_no));
1498 cell->get_manifold() :
1501 const auto reference_cell = ReferenceCells::get_hypercube<dim>();
1502 const std::array<Point<spacedim>, 2>
vertices{
1503 {cell->vertex(reference_cell.line_to_cell_vertices(line_no, 0)),
1504 cell->vertex(reference_cell.line_to_cell_vertices(line_no, 1))}};
1506 const std::size_t n_rows =
1507 support_point_weights_perimeter_to_interior[0].size(0);
1508 a.resize(a.size() + n_rows);
1512 support_point_weights_perimeter_to_interior[0],
1529 std::vector<Point<3>> tmp_points;
1532 for (
unsigned int face_no = 0; face_no < faces_per_cell; ++face_no)
1537 const bool face_orientation = cell->face_orientation(face_no),
1538 face_flip = cell->face_flip(face_no),
1539 face_rotation = cell->face_rotation(face_no);
1544 for (
unsigned int i = 0; i < vertices_per_face; ++i)
1545 Assert(face->vertex_index(i) ==
1547 face_no, i, face_orientation, face_flip, face_rotation)),
1552 for (
unsigned int i = 0; i < lines_per_face; ++i)
1555 face_no, i, face_orientation, face_flip, face_rotation)),
1561 boost::container::small_vector<Point<3>, 200> tmp_points(
1566 if (polynomial_degree > 1)
1567 for (
unsigned int line = 0; line < GeometryInfo<2>::lines_per_cell;
1569 for (
unsigned int i = 0; i < polynomial_degree - 1; ++i)
1570 tmp_points[4 + line * (polynomial_degree - 1) + i] =
1572 (polynomial_degree - 1) *
1576 const std::size_t n_rows =
1577 support_point_weights_perimeter_to_interior[1].size(0);
1578 a.resize(a.size() + n_rows);
1580 face->get_manifold().get_new_points(
1582 support_point_weights_perimeter_to_interior[1],
1601 for (
unsigned int q = 0, q2 = 0; q2 < polynomial_degree - 1; ++q2)
1602 for (
unsigned int q1 = 0; q1 < polynomial_degree - 1; ++q1, ++q)
1604 Point<2> point(line_support_points[q1 + 1][0],
1605 line_support_points[q2 + 1][0]);
1610 const std::size_t n_rows = weights.size(0);
1611 a.resize(a.size() + n_rows);
1613 cell->get_manifold().get_new_points(
1619template <
int dim,
int spacedim>
1630template <
int dim,
int spacedim>
1631std::vector<Point<spacedim>>
1636 std::vector<Point<spacedim>> a;
1637 a.reserve(Utilities::fixed_power<dim>(polynomial_degree + 1));
1639 a.push_back(cell->vertex(i));
1641 if (this->polynomial_degree > 1)
1648 bool all_manifold_ids_are_equal = (dim == spacedim);
1649 if (all_manifold_ids_are_equal &&
1651 &cell->get_manifold()) ==
nullptr)
1654 if (&cell->face(f)->get_manifold() != &cell->get_manifold())
1655 all_manifold_ids_are_equal =
false;
1658 for (
unsigned int l = 0; l < GeometryInfo<dim>::lines_per_cell; ++l)
1659 if (&cell->line(l)->get_manifold() != &cell->get_manifold())
1660 all_manifold_ids_are_equal =
false;
1663 if (all_manifold_ids_are_equal)
1665 const std::size_t n_rows = support_point_weights_cell.size(0);
1666 a.resize(a.size() + n_rows);
1670 support_point_weights_cell,
1677 add_line_support_points(cell, a);
1682 add_line_support_points(cell, a);
1685 if (dim != spacedim)
1686 add_quad_support_points(cell, a);
1689 const std::size_t n_rows =
1690 support_point_weights_perimeter_to_interior[1].size(0);
1691 a.resize(a.size() + n_rows);
1693 cell->get_manifold().get_new_points(
1695 support_point_weights_perimeter_to_interior[1],
1702 add_line_support_points(cell, a);
1703 add_quad_support_points(cell, a);
1707 const std::size_t n_rows =
1708 support_point_weights_perimeter_to_interior[2].size(0);
1709 a.resize(a.size() + n_rows);
1711 cell->get_manifold().get_new_points(
1713 support_point_weights_perimeter_to_interior[2],
1729template <
int dim,
int spacedim>
1739template <
int dim,
int spacedim>
1744 Assert(dim == reference_cell.get_dimension(),
1745 ExcMessage(
"The dimension of your mapping (" +
1747 ") and the reference cell cell_type (" +
1749 " ) do not agree."));
1751 return reference_cell.is_hyper_cube();
1757#include "mapping_q.inst"
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
Triangulation< dim, spacedim >::cell_iterator cell_of_current_support_points
virtual std::size_t memory_consumption() const override
std::vector< Point< spacedim > > mapping_support_points
bool tensor_product_quadrature
internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > * output_data
void initialize_face(const UpdateFlags update_flags, const Quadrature< dim > &quadrature, const unsigned int n_original_q_points)
InternalData(const unsigned int polynomial_degree)
AlignedVector< double > volume_elements
void initialize(const UpdateFlags update_flags, const Quadrature< dim > &quadrature, const unsigned int n_original_q_points)
const std::vector< unsigned int > renumber_lexicographic_to_hierarchic
const Table< 2, double > support_point_weights_cell
virtual std::vector< Point< spacedim > > compute_mapping_support_points(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const
virtual std::unique_ptr< typename Mapping< dim, spacedim >::InternalDataBase > get_data(const UpdateFlags, const Quadrature< dim > &quadrature) const override
void fill_mapping_data_for_face_quadrature(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const unsigned int face_number, const Quadrature< dim - 1 > &face_quadrature, const typename Mapping< dim, spacedim >::InternalDataBase &internal_data, internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &output_data) const
virtual BoundingBox< spacedim > get_bounding_box(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const override
virtual std::unique_ptr< typename Mapping< dim, spacedim >::InternalDataBase > get_subface_data(const UpdateFlags flags, const Quadrature< dim - 1 > &quadrature) const override
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 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 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 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 override
const unsigned int polynomial_degree
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
virtual std::unique_ptr< typename Mapping< dim, spacedim >::InternalDataBase > get_face_data(const UpdateFlags flags, const hp::QCollection< dim - 1 > &quadrature) const override
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
const std::vector< Table< 2, double > > support_point_weights_perimeter_to_interior
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
const std::vector< Point< 1 > > line_support_points
virtual Point< spacedim > transform_unit_to_real_cell(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const Point< dim > &p) const override
const std::vector< Polynomials::Polynomial< double > > polynomials_1d
virtual std::unique_ptr< Mapping< dim, spacedim > > clone() const override
const std::vector< Point< dim > > unit_cell_support_points
virtual Point< dim > transform_real_to_unit_cell(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const Point< spacedim > &p) const override
MappingQ(const unsigned int polynomial_degree)
virtual void add_line_support_points(const typename Triangulation< dim, spacedim >::cell_iterator &cell, std::vector< Point< spacedim > > &a) const
virtual void add_quad_support_points(const typename Triangulation< dim, spacedim >::cell_iterator &cell, std::vector< Point< spacedim > > &a) const
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) const override
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 bool is_compatible_with(const ReferenceCell &reference_cell) const override
unsigned int get_degree() const
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
const Tensor< 1, spacedim > & normal_vector(const unsigned int i) const
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
numbers::NumberTraits< Number >::real_type norm() const
Triangulation< dim, spacedim > & get_triangulation()
static constexpr std::size_t size()
unsigned int size() const
Point< dim, Number > compute(const Point< spacedim, Number > &p) const
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
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)
typename IteratorSelector::line_iterator line_iterator
@ 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_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.
const Manifold< dim, spacedim > & get_manifold(const types::manifold_id number) const
@ mapping_covariant_gradient
@ mapping_contravariant_hessian
@ mapping_covariant_hessian
@ mapping_contravariant_gradient
std::enable_if_t< std::is_fundamental< T >::value, std::size_t > memory_consumption(const T &t)
SymmetricTensor< 2, dim, Number > d(const Tensor< 2, dim, Number > &F, const Tensor< 2, dim, Number > &dF_dt)
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 ::MappingQ< dim, spacedim >::InternalData &data, const ArrayView< const Point< dim > > &unit_points, const std::vector< Polynomials::Polynomial< double > > &polynomials_1d, const std::vector< unsigned int > &renumber_lexicographic_to_hierarchic, std::vector< DerivativeForm< 2, dim, spacedim > > &jacobian_grads)
void do_fill_fe_face_values(const ::MappingQ< 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 ::MappingQ< dim, spacedim >::InternalData &data, const std::vector< Polynomials::Polynomial< double > > &polynomials_1d, const std::vector< unsigned int > &renumber_lexicographic_to_hierarchic, internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &output_data)
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)
void maybe_update_jacobian_3rd_derivatives(const CellSimilarity::Similarity cell_similarity, const typename ::MappingQ< dim, spacedim >::InternalData &data, const ArrayView< const Point< dim > > &unit_points, const std::vector< Polynomials::Polynomial< double > > &polynomials_1d, const std::vector< unsigned int > &renumber_lexicographic_to_hierarchic, std::vector< DerivativeForm< 4, dim, spacedim > > &jacobian_3rd_derivatives)
void maybe_update_jacobian_pushed_forward_grads(const CellSimilarity::Similarity cell_similarity, const typename ::MappingQ< dim, spacedim >::InternalData &data, const ArrayView< const Point< dim > > &unit_points, const std::vector< Polynomials::Polynomial< double > > &polynomials_1d, const std::vector< unsigned int > &renumber_lexicographic_to_hierarchic, std::vector< Tensor< 3, spacedim > > &jacobian_pushed_forward_grads)
void maybe_update_q_points_Jacobians_generic(const CellSimilarity::Similarity cell_similarity, const typename ::MappingQ< dim, spacedim >::InternalData &data, const ArrayView< const Point< dim > > &unit_points, const std::vector< Polynomials::Polynomial< double > > &polynomials_1d, const std::vector< unsigned int > &renumber_lexicographic_to_hierarchic, std::vector< Point< spacedim > > &quadrature_points, std::vector< DerivativeForm< 1, dim, spacedim > > &jacobians, std::vector< DerivativeForm< 1, spacedim, dim > > &inverse_jacobians)
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_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_jacobian_2nd_derivatives(const CellSimilarity::Similarity cell_similarity, const typename ::MappingQ< dim, spacedim >::InternalData &data, const ArrayView< const Point< dim > > &unit_points, const std::vector< Polynomials::Polynomial< double > > &polynomials_1d, const std::vector< unsigned int > &renumber_lexicographic_to_hierarchic, std::vector< DerivativeForm< 3, dim, spacedim > > &jacobian_2nd_derivatives)
ProductTypeNoPoint< Number, Number2 >::type evaluate_tensor_product_value(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
bool is_finite(const double x)
::VectorizedArray< Number, width > sqrt(const ::VectorizedArray< Number, width > &)
::VectorizedArray< Number, width > abs(const ::VectorizedArray< Number, width > &)
static std_cxx20::ranges::iota_view< unsigned int, unsigned int > face_indices()
static double d_linear_shape_function(const Point< dim > &xi, const unsigned int i)
static std_cxx20::ranges::iota_view< unsigned int, unsigned int > vertex_indices()
DEAL_II_HOST constexpr Number determinant(const SymmetricTensor< 2, dim, Number > &)