13#ifndef dealii_geometry_info_h
14#define dealii_geometry_info_h
27#include <Kokkos_Macros.hpp>
43 namespace GeometryInfoHelper
51 struct Initializers<1>
53 static constexpr std::array<unsigned int, 2>
59 static constexpr std::array<unsigned int, 2>
60 unit_normal_direction()
65 static constexpr std::array<int, 2>
66 unit_normal_orientation()
71 static constexpr std::array<Tensor<1, 1>, 2>
77 static constexpr ::ndarray<Tensor<1, 1>, 2, 0>
78 unit_tangential_vectors()
80 return {{{{}}, {{}}}};
83 static constexpr std::array<unsigned int, 2>
89 static constexpr std::array<unsigned int, 2>
95 static constexpr ::ndarray<unsigned int, 2, 1>
98 return {{{{0}}, {{1}}}};
103 struct Initializers<2>
105 static constexpr std::array<unsigned int, 4>
108 return {{0, 1, 3, 2}};
111 static constexpr std::array<unsigned int, 4>
112 unit_normal_direction()
114 return {{0, 0, 1, 1}};
117 static constexpr std::array<int, 4>
118 unit_normal_orientation()
120 return {{-1, 1, -1, 1}};
123 static constexpr std::array<Tensor<1, 2>, 4>
132 static constexpr ::ndarray<Tensor<1, 2>, 4, 1>
133 unit_tangential_vectors()
141 static constexpr std::array<unsigned int, 4>
144 return {{1, 0, 3, 2}};
147 static constexpr std::array<unsigned int, 4>
150 return {{0, 2, 1, 3}};
153 static constexpr ::ndarray<unsigned int, 4, 2>
156 return {{{{0, 2}}, {{1, 2}}, {{0, 3}}, {{1, 3}}}};
161 struct Initializers<3>
163 static constexpr std::array<unsigned int, 8>
166 return {{0, 4, 5, 1, 2, 6, 7, 3}};
169 static constexpr std::array<unsigned int, 6>
170 unit_normal_direction()
172 return {{0, 0, 1, 1, 2, 2}};
175 static constexpr std::array<int, 6>
176 unit_normal_orientation()
178 return {{-1, 1, -1, 1, -1, 1}};
181 static constexpr std::array<Tensor<1, 3>, 6>
192 static constexpr ::ndarray<Tensor<1, 3>, 6, 2>
193 unit_tangential_vectors()
203 static constexpr std::array<unsigned int, 6>
206 return {{1, 0, 3, 2, 5, 4}};
209 static constexpr std::array<unsigned int, 8>
212 return {{0, 4, 2, 6, 1, 5, 3, 7}};
215 static constexpr ::ndarray<unsigned int, 8, 3>
218 return {{{{0, 2, 4}},
230 struct Initializers<4>
232 static constexpr std::array<unsigned int, 16>
253 static constexpr std::array<unsigned int, 8>
254 unit_normal_direction()
256 return {{0, 0, 1, 1, 2, 2, 3, 3}};
259 static constexpr std::array<int, 8>
260 unit_normal_orientation()
262 return {{-1, 1, -1, 1, -1, 1, -1, 1}};
265 static constexpr std::array<Tensor<1, 4>, 8>
278 static constexpr ::ndarray<Tensor<1, 4>, 8, 3>
279 unit_tangential_vectors()
307 static constexpr std::array<unsigned int, 8>
310 return {{1, 0, 3, 2, 5, 4, 7, 6}};
313 static constexpr std::array<unsigned int, 16>
334 static constexpr ::ndarray<unsigned int, 16, 4>
469 operator unsigned int()
const;
676 cut_xy = cut_x | cut_y,
749 cut_xy = cut_x | cut_y,
757 cut_xz = cut_x | cut_z,
761 cut_yz = cut_y | cut_z,
765 cut_xyz = cut_x | cut_y | cut_z,
825 operator std::uint8_t()
const;
874 static constexpr std::size_t
882 template <
class Archive>
892 <<
"The refinement flags given (" << arg1
893 <<
") contain set bits that do not "
894 <<
"make sense for the space dimension of the object to which they are applied.");
901 std::uint8_t
value : (dim > 0 ? dim : 1);
1174 subface_possibility);
1187 operator std::uint8_t()
const;
1192 static constexpr std::size_t
1201 <<
"The subface case given (" << arg1 <<
") does not make sense "
1202 <<
"for the space dimension of the object to which they are applied.");
1209 std::uint8_t
value : (dim == 3 ? 4 : 1);
1273 static std::array<unsigned int, 0>
1316 static std::array<unsigned int, vertices_per_cell>
1344 const unsigned int vertex,
1345 const bool face_orientation =
true,
1346 const bool face_flip =
false,
1347 const bool face_rotation =
false);
1365 const unsigned int line,
1366 const bool face_orientation =
true,
1367 const bool face_flip =
false,
1368 const bool face_rotation =
false);
1420 static const std::array<unsigned int, vertices_per_cell>
ucd_to_deal;
1435 static const std::array<unsigned int, vertices_per_cell>
dx_to_deal;
2105 static constexpr std::array<unsigned int, vertices_per_cell>
ucd_to_deal =
2106 internal::GeometryInfoHelper::Initializers<dim>::ucd_to_deal();
2121 static constexpr std::array<unsigned int, vertices_per_cell>
dx_to_deal =
2122 internal::GeometryInfoHelper::Initializers<dim>::dx_to_deal();
2136 internal::GeometryInfoHelper::Initializers<dim>::vertex_to_face();
2163 const unsigned int subface_no);
2172 const unsigned int face_no,
2173 const bool face_orientation =
true,
2174 const bool face_flip =
false,
2175 const bool face_rotation =
false);
2185 const unsigned int face_no,
2186 const bool face_orientation =
true,
2187 const bool face_flip =
false,
2188 const bool face_rotation =
false);
2196 const unsigned int line_no);
2253 const unsigned int face,
2254 const unsigned int subface,
2255 const bool face_orientation =
true,
2256 const bool face_flip =
false,
2257 const bool face_rotation =
false,
2299 const unsigned int vertex,
2300 const bool face_orientation =
true,
2301 const bool face_flip =
false,
2302 const bool face_rotation =
false);
2317 const unsigned int line,
2318 const bool face_orientation =
true,
2319 const bool face_flip =
false,
2320 const bool face_rotation =
false);
2333 const bool face_orientation =
true,
2334 const bool face_flip =
false,
2335 const bool face_rotation =
false);
2348 const bool face_orientation =
true,
2349 const bool face_flip =
false,
2350 const bool face_rotation =
false);
2363 const bool face_orientation =
true,
2364 const bool face_flip =
false,
2365 const bool face_rotation =
false);
2374 const bool line_orientation =
true);
2383 static std::array<unsigned int, 2>
2393 static std::array<unsigned int, 2>
2403 static std::array<unsigned int, 2>
2417 const bool face_orientation =
true,
2418 const bool face_flip =
false,
2419 const bool face_rotation =
false);
2450 const unsigned int child_index,
2461 const unsigned int child_index,
2490 template <
typename Number =
double>
2567 template <
int spacedim>
2570#ifndef DEAL_II_CXX14_CONSTEXPR_BUG
2586 static constexpr std::array<unsigned int, faces_per_cell>
2588 internal::GeometryInfoHelper::Initializers<dim>::unit_normal_direction();
2607 internal::GeometryInfoHelper::Initializers<dim>::unit_normal_orientation();
2621 internal::GeometryInfoHelper::Initializers<dim>::unit_normal_vector();
2646 internal::GeometryInfoHelper::Initializers<dim>::opposite_face();
2654 <<
"The coordinates must satisfy 0 <= x_i <= 1, "
2655 <<
"but here we have x_i=" << arg1);
2664 <<
"RefinementCase<dim> " << arg1 <<
": face " << arg2
2665 <<
" has no subface " << arg3);
2679 const unsigned int i);
2683 const unsigned int i);
2687 const unsigned int i);
2701 : object(static_cast<Object>(object_dimension))
2705inline GeometryPrimitive::
2706operator
unsigned int()
const
2708 return static_cast<unsigned int>(object);
2718 :
value(subface_possibility)
2723 inline SubfaceCase<dim>::
2724 operator std::uint8_t()
const
2738 return static_cast<std::uint8_t
>(-1);
2782inline constexpr std::array<RefinementCase<1>, 2>
2792inline constexpr std::array<RefinementCase<2>, 4>
2804inline constexpr std::array<RefinementCase<3>, 8>
2829 :
value(refinement_case)
2835 Assert((refinement_case &
2838 ExcInvalidRefinementCase(refinement_case));
2845 const std::uint8_t refinement_case)
2846 :
value(refinement_case)
2852 Assert((refinement_case &
2855 ExcInvalidRefinementCase(refinement_case));
2862operator std::uint8_t()
const
2898inline constexpr std::size_t
2907template <
class Archive>
2913 std::uint8_t uchar_value =
value;
2915 value = uchar_value;
2926 return Point<1>(
static_cast<double>(vertex));
2937 return {
static_cast<double>(vertex % 2),
static_cast<double>(vertex / 2)};
2948 return {
static_cast<double>(vertex % 2),
2949 static_cast<double>(vertex / 2 % 2),
2950 static_cast<double>(vertex / 4)};
2955inline std::array<unsigned int, 0>
2963inline std::array<unsigned int, 1>
2976 0U, faces_per_cell);
2986 0U, vertices_per_cell);
3006 Assert((p[0] >= 0) && (p[0] <= 1), ExcInvalidCoordinate(p[0]));
3008 return (p[0] <= 0.5 ? 0 : 1);
3017 Assert((p[0] >= 0) && (p[0] <= 1), ExcInvalidCoordinate(p[0]));
3018 Assert((p[1] >= 0) && (p[1] <= 1), ExcInvalidCoordinate(p[1]));
3020 return (p[0] <= 0.5 ? (p[1] <= 0.5 ? 0 : 2) : (p[1] <= 0.5 ? 1 : 3));
3029 Assert((p[0] >= 0) && (p[0] <= 1), ExcInvalidCoordinate(p[0]));
3030 Assert((p[1] >= 0) && (p[1] <= 1), ExcInvalidCoordinate(p[1]));
3031 Assert((p[2] >= 0) && (p[2] <= 1), ExcInvalidCoordinate(p[2]));
3033 return (p[0] <= 0.5 ?
3034 (p[1] <= 0.5 ? (p[2] <= 0.5 ? 0 : 4) : (p[2] <= 0.5 ? 2 : 6)) :
3035 (p[1] <= 0.5 ? (p[2] <= 0.5 ? 1 : 5) : (p[2] <= 0.5 ? 3 : 7)));
3053 const unsigned int child_index,
3061 return Point<1>(p * 2.0 - unit_cell_vertex(child_index));
3069 const unsigned int child_index,
3076 switch (refine_case)
3080 if (child_index == 1)
3085 if (child_index == 1)
3090 point -= unit_cell_vertex(child_index);
3104 const unsigned int child_index,
3116 switch (refine_case)
3120 if (child_index == 1)
3125 if (child_index == 1)
3130 if (child_index == 1)
3136 if (child_index % 2 == 1)
3138 if (child_index / 2 == 1)
3148 if (child_index / 2 == 1)
3150 if (child_index % 2 == 1)
3156 if (child_index % 2 == 1)
3158 if (child_index / 2 == 1)
3163 point -= unit_cell_vertex(child_index);
3178 const unsigned int ,
3191 const unsigned int child_index,
3199 return (p + unit_cell_vertex(child_index)) * 0.5;
3207 const unsigned int child_index,
3219 switch (refine_case)
3222 if (child_index == 1)
3227 if (child_index == 1)
3232 if (child_index == 1)
3237 if (child_index % 2 == 1)
3239 if (child_index / 2 == 1)
3249 if (child_index / 2 == 1)
3251 if (child_index % 2 == 1)
3257 if (child_index % 2 == 1)
3259 if (child_index / 2 == 1)
3265 point += unit_cell_vertex(child_index);
3280 const unsigned int child_index,
3286 switch (refine_case)
3289 if (child_index == 1)
3294 if (child_index == 1)
3299 point += unit_cell_vertex(child_index);
3315 const unsigned int ,
3336 return (p[0] >= 0.) && (p[0] <= 1.);
3345 return (p[0] >= 0.) && (p[0] <= 1.) && (p[1] >= 0.) && (p[1] <= 1.);
3354 return (p[0] >= 0.) && (p[0] <= 1.) && (p[1] >= 0.) && (p[1] <= 1.) &&
3355 (p[2] >= 0.) && (p[2] <= 1.);
3372 return (p[0] >= -eps) && (p[0] <= 1. +
eps);
3381 const double l = -
eps, u = 1 +
eps;
3382 return (p[0] >= l) && (p[0] <= u) && (p[1] >= l) && (p[1] <= u);
3391 const double l = -
eps, u = 1.0 +
eps;
3392 return (p[0] >= l) && (p[0] <= u) && (p[1] >= l) && (p[1] <= u) &&
3393 (p[2] >= l) && (p[2] <= u);
3401 const unsigned int vertex)
3414 const unsigned int vertex)
3416 constexpr unsigned int cell_vertices[4][2] = {{0, 2}, {1, 3}, {0, 1}, {2, 3}};
3417 return cell_vertices[line][vertex];
3425 const unsigned int vertex)
3430 constexpr unsigned vertices[lines_per_cell][2] = {{0, 2},
3443 return vertices[line][vertex];
3458 const bool face_orientation,
3459 const bool face_flip,
3460 const bool face_rotation)
3482 constexpr unsigned int vertex_translation[4][2][2][2] = {
3504 return vertex_translation[vertex][face_orientation][face_flip][face_rotation];
3526 0, 2, 2, 4, 2, 4, 4, 8};
3528 return n_children[ref_case];
3563 0, 2, 3, 3, 4, 2, 3, 3, 4, 4};
3564 return nsubs[subface_case];
3593 switch (subface_case)
3630 const unsigned int subface_no)
3633 switch (subface_case)
3668 if (subface_no == 0)
3715 const unsigned int face_no,
3720 const unsigned int dim = 2;
3742 return ref_cases[cell_refinement_case][face_no / 2];
3750 const unsigned int face_no,
3751 const bool face_orientation,
3753 const bool face_rotation)
3755 const unsigned int dim = 3;
3801 ref_cases[cell_refinement_case][face_no / 2];
3821 return (face_orientation == face_rotation) ? flip[ref_case] : ref_case;
3839 const unsigned int line_no)
3842 const unsigned int dim = 1;
3848 return cell_refinement_case;
3856 const unsigned int line_no)
3859 return face_refinement_case(cell_refinement_case, line_no);
3867 const unsigned int line_no)
3869 const unsigned int dim = 3;
3890 const unsigned int direction[lines_per_cell] = {
3891 1, 1, 0, 0, 1, 1, 0, 0, 2, 2, 2, 2};
3893 return ((cell_refinement_case & cut_one[direction[line_no]]) ?
3923 const unsigned int dim = 1;
3934 const unsigned int face_no,
3939 const unsigned int dim = 2;
3956 const unsigned int face_no,
3957 const bool face_orientation,
3959 const bool face_rotation)
3961 const unsigned int dim = 3;
3985 (face_orientation == face_rotation) ? flip[face_refinement_case] :
3986 face_refinement_case;
4005 return face_to_cell[face_no / 2][std_face_ref];
4023 const unsigned int line_no)
4035 const unsigned int line_no)
4037 const unsigned int dim = 2;
4049 const unsigned int line_no)
4051 const unsigned int dim = 3;
4062 return ref_cases[line_no / 2];
4070 const bool face_orientation,
4071 const bool face_flip,
4072 const bool face_rotation)
4094 const unsigned int vertex_translation[4][2][2][2] = {
4116 return vertex_translation[vertex][face_orientation][face_flip][face_rotation];
4138 const bool face_orientation,
4139 const bool face_flip,
4140 const bool face_rotation)
4162 const unsigned int line_translation[4][2][2][2] = {
4184 return line_translation[line][face_orientation][face_flip][face_rotation];
4205 const bool line_orientation)
4207 return line_orientation ? vertex : (1 - vertex);
4224inline std::array<unsigned int, 2>
4226 const unsigned int vertex)
4228 return {{vertex % 2, vertex / 2}};
4234inline std::array<unsigned int, 2>
4236 const unsigned int vertex)
4246inline std::array<unsigned int, 2>
4270 return {{lookup_table[i][0], lookup_table[i][1]}};
4276inline std::array<unsigned int, 2>
4287inline std::array<unsigned int, 2>
4289 const unsigned int vertex)
4296 return {{4 + vertex / 4, vertex % 4}};
4302inline std::array<unsigned int, 2>
4304 const unsigned int vertex)
4316 const bool face_orientation,
4317 const bool face_flip,
4318 const bool face_rotation)
4340 const unsigned int line_translation[4][2][2][2] = {
4362 return line_translation[line][face_orientation][face_flip][face_rotation];
4383 const unsigned int face,
4384 const unsigned int subface,
4402 const unsigned int face,
4403 const unsigned int subface,
4404 const bool face_orientation,
4419 constexpr unsigned int
4425 {{0, 0}, {1, 1}, {1, 0}, {1, 0}},
4426 {{1, 0}, {1, 0}, {0, 0}, {1, 1}},
4427 {{2, 0}, {3, 1}, {1, 0}, {3, 2}}
4431 {{0, 0}, {1, 1}, {0, 1}, {0, 1}},
4432 {{0, 1}, {0, 1}, {0, 0}, {1, 1}},
4433 {{0, 2}, {1, 3}, {0, 1}, {2, 3}}
4436 return subcells[face_orientation][ref_case - 1][face][subface];
4444 const unsigned int face,
4445 const unsigned int subface,
4446 const bool face_orientation,
4447 const bool face_flip,
4448 const bool face_rotation,
4451 const unsigned int dim = 3;
4456 if (!(subface == 0 &&
4494 (face_orientation == face_rotation) ? flip[face_ref_case] : face_ref_case;
4506 const unsigned int subface_exchange[4][2][2][2][4] = {
4509 {{{{0,
e,
e,
e}, {0,
e,
e,
e}}, {{0,
e,
e,
e}, {0,
e,
e,
e}}},
4510 {{{0,
e,
e,
e}, {0,
e,
e,
e}}, {{0,
e,
e,
e}, {0,
e,
e,
e}}}},
4524 {{{{0, 1,
e,
e}, {0, 1,
e,
e}}, {{1, 0,
e,
e}, {1, 0,
e,
e}}},
4525 {{{0, 1,
e,
e}, {0, 1,
e,
e}}, {{1, 0,
e,
e}, {1, 0,
e,
e}}}},
4528 {{{{0, 1,
e,
e}, {1, 0,
e,
e}}, {{1, 0,
e,
e}, {0, 1,
e,
e}}},
4529 {{{0, 1,
e,
e}, {1, 0,
e,
e}}, {{1, 0,
e,
e}, {0, 1,
e,
e}}}},
4551 const unsigned int std_subface =
4552 subface_exchange[face_ref_case][face_orientation][face_flip][face_rotation]
4564 [max_children_per_face] = {
4626 if ((std_face_ref & face_refinement_case(ref_case, face)) ==
4627 face_refinement_case(ref_case, face))
4636 const unsigned int equivalent_iso_subface[4][4] = {
4642 const unsigned int equ_std_subface =
4643 equivalent_iso_subface[std_face_ref][std_subface];
4646 return iso_children[ref_case - 1][face][equ_std_subface];
4653 ExcMessage(
"The face RefineCase is too coarse "
4654 "for the given cell RefineCase."));
4681 const unsigned int line,
4699 const unsigned int line,
4700 const bool face_orientation,
4701 const bool face_flip,
4702 const bool face_rotation)
4707 const unsigned lines[faces_per_cell][lines_per_face] = {
4714 return lines[face][real_to_standard_face_line(
4715 line, face_orientation, face_flip, face_rotation)];
4750 const unsigned int vertex,
4751 const bool face_orientation,
4752 const bool face_flip,
4753 const bool face_rotation)
4779template <
typename Number>
4784 for (
unsigned int i = 0; i < dim; ++i)
4796 double result = 0.0;
4798 for (
unsigned int i = 0; i < dim; ++i)
4801 result =
std::max(result, p[i] - 1.);
4812 const unsigned int i)
4820 const double x = xi[0];
4833 const double x = xi[0];
4834 const double y = xi[1];
4838 return (1 - x) * (1 - y);
4851 const double x = xi[0];
4852 const double y = xi[1];
4853 const double z = xi[2];
4857 return (1 - x) * (1 - y) * (1 - z);
4859 return x * (1 - y) * (1 - z);
4861 return (1 - x) * y * (1 - z);
4863 return x * y * (1 - z);
4865 return (1 - x) * (1 - y) * z;
4867 return x * (1 - y) * z;
4869 return (1 - x) * y * z;
4887 const unsigned int i)
4907 const unsigned int i)
4911 const double x = xi[0];
4912 const double y = xi[1];
4916 return Point<2>(-(1 - y), -(1 - x));
4932 const unsigned int i)
4936 const double x = xi[0];
4937 const double y = xi[1];
4938 const double z = xi[2];
4942 return Point<3>(-(1 - y) * (1 - z),
4944 -(1 - x) * (1 - y));
4946 return Point<3>((1 - y) * (1 - z), -x * (1 - z), -x * (1 - y));
4948 return Point<3>(-y * (1 - z), (1 - x) * (1 - z), -(1 - x) * y);
4950 return Point<3>(y * (1 - z), x * (1 - z), -x * y);
4952 return Point<3>(-(1 - y) * z, -(1 - x) * z, (1 - x) * (1 - y));
4954 return Point<3>((1 - y) * z, -x * z, x * (1 - y));
4956 return Point<3>(-y * z, (1 - x) * z, (1 - x) * y);
4958 return Point<3>(y * z, x * z, x * y);
4984 namespace GeometryInfoHelper
4994 result[0] = derivative[0][1];
4995 result[1] = -derivative[0][0];
5006 return cross_product_3d(derivative[0], derivative[1]);
5018 for (
unsigned int i = 0; i < dim; ++i)
5019 jacobian[i] = derivative[i];
5028template <
int spacedim>
5031# ifndef DEAL_II_CXX14_CONSTEXPR_BUG
5033 Tensor<spacedim - dim, spacedim> (&forms)[vertices_per_cell])
5067 for (
unsigned int i = 0; i < vertices_per_cell; ++i)
5071 for (
unsigned int j = 0; j < vertices_per_cell; ++j)
5074 d_linear_shape_function_gradient(unit_cell_vertex(i), j);
5075 for (
unsigned int l = 0;
l < dim; ++
l)
5076 derivatives[l] += vertices[j] * grad_phi_j[l];
5079 forms[i] = internal::GeometryInfoHelper::wedge_product(derivatives);
GeometryPrimitive(const unsigned int object_dimension)
GeometryPrimitive(const Object object)
constexpr RefinementCase()
constexpr RefinementCase(const typename RefinementPossibilities< dim >::Possibilities refinement_case)
constexpr RefinementCase operator&(const RefinementCase &r) const
constexpr RefinementCase operator~() const
static constexpr unsigned int n_refinement_cases
static constexpr RefinementCase cut_axis(const unsigned int i)
void serialize(Archive &ar, const unsigned int version)
constexpr RefinementCase operator|(const RefinementCase &r) const
constexpr RefinementCase(const std::uint8_t refinement_case)
static constexpr std::array< RefinementCase< dim >, n_refinement_cases > all_refinement_cases()
static constexpr std::size_t memory_consumption()
static constexpr std::size_t memory_consumption()
SubfaceCase(const typename SubfacePossibilities< dim >::Possibilities subface_possibility)
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_HOST_DEVICE
#define DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_ASSERT_UNREACHABLE()
#define DEAL_II_NOT_IMPLEMENTED()
#define Assert(cond, exc)
static ::ExceptionBase & ExcImpossibleInDim(int arg1)
static ::ExceptionBase & ExcInvalidCoordinate(double arg1)
static ::ExceptionBase & ExcInvalidSubface(int arg1, int arg2, int arg3)
static ::ExceptionBase & ExcInvalidRefinementCase(int arg1)
#define AssertIndexRange(index, range)
static ::ExceptionBase & ExcInternalError()
#define DeclException3(Exception3, type1, type2, type3, outsequence)
#define DeclException1(Exception1, type1, outsequence)
static ::ExceptionBase & ExcMessage(std::string arg1)
static ::ExceptionBase & ExcInvalidSubfaceCase(int arg1)
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)
* * * RotationFunction< dim, Number >::RotationFunction Number(dim)
constexpr unsigned int invalid_unsigned_int
boost::integer_range< IncrementableType > iota_view
::VectorizedArray< Number, width > min(const ::VectorizedArray< Number, width > &, const ::VectorizedArray< Number, width > &)
::VectorizedArray< Number, width > max(const ::VectorizedArray< Number, width > &, const ::VectorizedArray< Number, width > &)
typename internal::ndarray::HelperArray< T, Ns... >::type ndarray
static unsigned int n_children(const RefinementCase< 0 > &refinement_case)
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 std::array< unsigned int, 0 > face_indices()
static std::array< unsigned int, vertices_per_cell > vertex_indices()
static unsigned int face_to_cell_lines(const unsigned int face, const unsigned int line, const bool face_orientation=true, const bool face_flip=false, const bool face_rotation=false)
static unsigned int child_cell_from_point(const Point< dim > &p)
static unsigned int standard_to_real_line_vertex(const unsigned int vertex, const bool line_orientation=true)
static constexpr std::array< unsigned int, vertices_per_cell > ucd_to_deal
static constexpr ndarray< Tensor< 1, dim >, faces_per_cell, dim - 1 > unit_tangential_vectors
static bool is_inside_unit_cell(const Point< dim > &p, const double eps)
static double distance_to_unit_cell(const Point< dim > &p)
static unsigned int child_cell_on_face(const RefinementCase< dim > &ref_case, const unsigned int face, const unsigned int subface, const bool face_orientation=true, const bool face_flip=false, const bool face_rotation=false, const RefinementCase< dim - 1 > &face_refinement_case=RefinementCase< dim - 1 >::isotropic_refinement)
static constexpr unsigned int quads_per_face
static RefinementCase< dim - 1 > face_refinement_case(const RefinementCase< dim > &cell_refinement_case, const unsigned int face_no, const bool face_orientation=true, const bool face_flip=false, const bool face_rotation=false)
static unsigned int standard_to_real_face_vertex(const unsigned int vertex, const bool face_orientation=true, const bool face_flip=false, const bool face_rotation=false)
static RefinementCase< dim > min_cell_refinement_case_for_line_refinement(const unsigned int line_no)
static constexpr std::array< unsigned int, faces_per_cell > opposite_face
static constexpr unsigned int max_children_per_face
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 constexpr unsigned int vertices_per_cell
static constexpr std::array< unsigned int, vertices_per_cell > dx_to_deal
static constexpr unsigned int lines_per_cell
static constexpr std::array< unsigned int, faces_per_cell > unit_normal_direction
static std::array< unsigned int, 2 > standard_hex_line_to_quad_line_index(const unsigned int line)
static constexpr unsigned int faces_per_cell
static unsigned int standard_to_real_face_line(const unsigned int line, const bool face_orientation=true, const bool face_flip=false, const bool face_rotation=false)
static std_cxx20::ranges::iota_view< unsigned int, unsigned int > face_indices()
static double subface_ratio(const internal::SubfaceCase< dim > &subface_case, const unsigned int subface_no)
static constexpr unsigned int hexes_per_cell
static Point< dim, Number > project_to_unit_cell(const Point< dim, Number > &p)
static RefinementCase< 1 > line_refinement_case(const RefinementCase< dim > &cell_refinement_case, const unsigned int line_no)
static std::array< unsigned int, 2 > standard_hex_vertex_to_quad_vertex_index(const unsigned int vertex)
static std::array< unsigned int, 2 > standard_quad_vertex_to_line_vertex_index(const unsigned int vertex)
static double d_linear_shape_function(const Point< dim > &xi, const unsigned int i)
static constexpr std::array< Tensor< 1, dim >, faces_per_cell > unit_normal_vector
static constexpr unsigned int vertices_per_face
static unsigned int real_to_standard_face_line(const unsigned int line, const bool face_orientation=true, const bool face_flip=false, const bool face_rotation=false)
static unsigned int line_to_cell_vertices(const unsigned int line, const unsigned int vertex)
static std_cxx20::ranges::iota_view< unsigned int, unsigned int > vertex_indices()
static bool is_inside_unit_cell(const Point< dim > &p)
static RefinementCase< dim > min_cell_refinement_case_for_face_refinement(const RefinementCase< dim - 1 > &face_refinement_case, const unsigned int face_no, const bool face_orientation=true, const bool face_flip=false, const bool face_rotation=false)
static unsigned int n_children(const RefinementCase< dim > &refinement_case)
static unsigned int real_to_standard_face_vertex(const unsigned int vertex, const bool face_orientation=true, const bool face_flip=false, const bool face_rotation=false)
static unsigned int face_to_cell_lines(const unsigned int face, const unsigned int line, const bool face_orientation=true, const bool face_flip=false, const bool face_rotation=false)
static Point< dim > cell_to_child_coordinates(const Point< dim > &p, const unsigned int child_index, const RefinementCase< dim > refine_case=RefinementCase< dim >::isotropic_refinement)
static constexpr ndarray< unsigned int, vertices_per_cell, dim > vertex_to_face
static Tensor< 1, dim > d_linear_shape_function_gradient(const Point< dim > &xi, const unsigned int i)
static void alternating_form_at_vertices(const Point< spacedim >(&vertices)[vertices_per_cell], Tensor< spacedim - dim, spacedim >(&forms)[vertices_per_cell])
static Point< dim > unit_cell_vertex(const unsigned int vertex)
static constexpr std::array< int, faces_per_cell > unit_normal_orientation
static constexpr unsigned int quads_per_cell
static Point< dim > child_to_cell_coordinates(const Point< dim > &p, const unsigned int child_index, const RefinementCase< dim > refine_case=RefinementCase< dim >::isotropic_refinement)
static constexpr unsigned int max_children_per_cell
static unsigned int n_subfaces(const internal::SubfaceCase< dim > &subface_case)
static constexpr unsigned int lines_per_face
constexpr Number determinant(const SymmetricTensor< 2, dim, Number > &)