15#ifndef dealii_geometry_info_h
16#define dealii_geometry_info_h
36 namespace GeometryInfoHelper
44 struct Initializers<1>
46 static constexpr std::array<unsigned int, 2>
52 static constexpr std::array<unsigned int, 2>
53 unit_normal_direction()
58 static constexpr std::array<int, 2>
59 unit_normal_orientation()
64 static constexpr std::array<Tensor<1, 1>, 2>
70 static constexpr ::ndarray<Tensor<1, 1>, 2, 0>
71 unit_tangential_vectors()
73 return {{{{}}, {{}}}};
76 static constexpr std::array<unsigned int, 2>
82 static constexpr std::array<unsigned int, 2>
88 static constexpr ::ndarray<unsigned int, 2, 1>
91 return {{{{0}}, {{1}}}};
96 struct Initializers<2>
98 static constexpr std::array<unsigned int, 4>
101 return {{0, 1, 3, 2}};
104 static constexpr std::array<unsigned int, 4>
105 unit_normal_direction()
107 return {{0, 0, 1, 1}};
110 static constexpr std::array<int, 4>
111 unit_normal_orientation()
113 return {{-1, 1, -1, 1}};
116 static constexpr std::array<Tensor<1, 2>, 4>
125 static constexpr ::ndarray<Tensor<1, 2>, 4, 1>
126 unit_tangential_vectors()
134 static constexpr std::array<unsigned int, 4>
137 return {{1, 0, 3, 2}};
140 static constexpr std::array<unsigned int, 4>
143 return {{0, 2, 1, 3}};
146 static constexpr ::ndarray<unsigned int, 4, 2>
149 return {{{{0, 2}}, {{1, 2}}, {{0, 3}}, {{1, 3}}}};
154 struct Initializers<3>
156 static constexpr std::array<unsigned int, 8>
159 return {{0, 4, 5, 1, 2, 6, 7, 3}};
162 static constexpr std::array<unsigned int, 6>
163 unit_normal_direction()
165 return {{0, 0, 1, 1, 2, 2}};
168 static constexpr std::array<int, 6>
169 unit_normal_orientation()
171 return {{-1, 1, -1, 1, -1, 1}};
174 static constexpr std::array<Tensor<1, 3>, 6>
185 static constexpr ::ndarray<Tensor<1, 3>, 6, 2>
186 unit_tangential_vectors()
196 static constexpr std::array<unsigned int, 6>
199 return {{1, 0, 3, 2, 5, 4}};
202 static constexpr std::array<unsigned int, 8>
205 return {{0, 4, 2, 6, 1, 5, 3, 7}};
208 static constexpr ::ndarray<unsigned int, 8, 3>
211 return {{{{0, 2, 4}},
223 struct Initializers<4>
225 static constexpr std::array<unsigned int, 16>
246 static constexpr std::array<unsigned int, 8>
247 unit_normal_direction()
249 return {{0, 0, 1, 1, 2, 2, 3, 3}};
252 static constexpr std::array<int, 8>
253 unit_normal_orientation()
255 return {{-1, 1, -1, 1, -1, 1, -1, 1}};
258 static constexpr std::array<Tensor<1, 4>, 8>
271 static constexpr ::ndarray<Tensor<1, 4>, 8, 3>
272 unit_tangential_vectors()
300 static constexpr std::array<unsigned int, 8>
303 return {{1, 0, 3, 2, 5, 4, 7, 6}};
306 static constexpr std::array<unsigned int, 16>
327 static constexpr ::ndarray<unsigned int, 16, 4>
462 operator unsigned int()
const;
669 cut_xy = cut_x | cut_y,
742 cut_xy = cut_x | cut_y,
750 cut_xz = cut_x | cut_z,
754 cut_yz = cut_y | cut_z,
758 cut_xyz = cut_x | cut_y | cut_z,
873 template <
class Archive>
883 <<
"The refinement flags given (" << arg1
884 <<
") contain set bits that do not "
885 <<
"make sense for the space dimension of the object to which they are applied.");
892 std::uint8_t
value : (dim > 0 ? dim : 1);
1165 subface_possibility);
1178 operator std::uint8_t()
const;
1183 static constexpr std::size_t
1192 <<
"The subface case given (" << arg1 <<
") does not make sense "
1193 <<
"for the space dimension of the object to which they are applied.");
1200 std::uint8_t
value : (dim == 3 ? 4 : 1);
1264 static std::array<unsigned int, 0>
1307 static std::array<unsigned int, vertices_per_cell>
1335 const unsigned int vertex,
1336 const bool face_orientation =
true,
1337 const bool face_flip =
false,
1338 const bool face_rotation =
false);
1356 const unsigned int line,
1357 const bool face_orientation =
true,
1358 const bool face_flip =
false,
1359 const bool face_rotation =
false);
1411 static const std::array<unsigned int, vertices_per_cell>
ucd_to_deal;
1426 static const std::array<unsigned int, vertices_per_cell>
dx_to_deal;
2097 static constexpr std::array<unsigned int, vertices_per_cell>
ucd_to_deal =
2098 internal::GeometryInfoHelper::Initializers<dim>::ucd_to_deal();
2113 static constexpr std::array<unsigned int, vertices_per_cell>
dx_to_deal =
2114 internal::GeometryInfoHelper::Initializers<dim>::dx_to_deal();
2128 internal::GeometryInfoHelper::Initializers<dim>::vertex_to_face();
2155 const unsigned int subface_no);
2164 const unsigned int face_no,
2165 const bool face_orientation =
true,
2166 const bool face_flip =
false,
2167 const bool face_rotation =
false);
2177 const unsigned int face_no,
2178 const bool face_orientation =
true,
2179 const bool face_flip =
false,
2180 const bool face_rotation =
false);
2188 const unsigned int line_no);
2245 const unsigned int face,
2246 const unsigned int subface,
2247 const bool face_orientation =
true,
2248 const bool face_flip =
false,
2249 const bool face_rotation =
false,
2291 const unsigned int vertex,
2292 const bool face_orientation =
true,
2293 const bool face_flip =
false,
2294 const bool face_rotation =
false);
2309 const unsigned int line,
2310 const bool face_orientation =
true,
2311 const bool face_flip =
false,
2312 const bool face_rotation =
false);
2325 const bool face_orientation =
true,
2326 const bool face_flip =
false,
2327 const bool face_rotation =
false);
2340 const bool face_orientation =
true,
2341 const bool face_flip =
false,
2342 const bool face_rotation =
false);
2355 const bool face_orientation =
true,
2356 const bool face_flip =
false,
2357 const bool face_rotation =
false);
2366 const bool line_orientation =
true);
2375 static std::array<unsigned int, 2>
2385 static std::array<unsigned int, 2>
2395 static std::array<unsigned int, 2>
2409 const bool face_orientation =
true,
2410 const bool face_flip =
false,
2411 const bool face_rotation =
false);
2442 const unsigned int child_index,
2453 const unsigned int child_index,
2482 template <
typename Number =
double>
2559 template <
int spacedim>
2562#ifndef DEAL_II_CXX14_CONSTEXPR_BUG
2578 static constexpr std::array<unsigned int, faces_per_cell>
2580 internal::GeometryInfoHelper::Initializers<dim>::unit_normal_direction();
2599 internal::GeometryInfoHelper::Initializers<dim>::unit_normal_orientation();
2613 internal::GeometryInfoHelper::Initializers<dim>::unit_normal_vector();
2638 internal::GeometryInfoHelper::Initializers<dim>::opposite_face();
2646 <<
"The coordinates must satisfy 0 <= x_i <= 1, "
2647 <<
"but here we have x_i=" << arg1);
2656 <<
"RefinementCase<dim> " << arg1 <<
": face " << arg2
2657 <<
" has no subface " << arg3);
2671 const unsigned int i);
2675 const unsigned int i);
2679 const unsigned int i);
2693 : object(static_cast<Object>(object_dimension))
2697inline GeometryPrimitive::operator
unsigned int()
const
2699 return static_cast<unsigned int>(object);
2709 :
value(subface_possibility)
2714 inline SubfaceCase<dim>::operator std::uint8_t()
const
2728 return static_cast<std::uint8_t
>(-1);
2772inline std::array<RefinementCase<1>, 2>
2782inline std::array<RefinementCase<2>, 4>
2794inline std::array<RefinementCase<3>, 8>
2819 :
value(refinement_case)
2825 Assert((refinement_case &
2828 ExcInvalidRefinementCase(refinement_case));
2835 :
value(refinement_case)
2841 Assert((refinement_case &
2844 ExcInvalidRefinementCase(refinement_case));
2895template <
class Archive>
2901 std::uint8_t uchar_value =
value;
2903 value = uchar_value;
2914 return Point<1>(
static_cast<double>(vertex));
2925 return {
static_cast<double>(vertex % 2),
static_cast<double>(vertex / 2)};
2936 return {
static_cast<double>(vertex % 2),
2937 static_cast<double>(vertex / 2 % 2),
2938 static_cast<double>(vertex / 4)};
2943inline std::array<unsigned int, 0>
2951inline std::array<unsigned int, 1>
2963 return {0U, faces_per_cell};
2972 return {0U, vertices_per_cell};
2992 Assert((p[0] >= 0) && (p[0] <= 1), ExcInvalidCoordinate(p[0]));
2994 return (p[0] <= 0.5 ? 0 : 1);
3003 Assert((p[0] >= 0) && (p[0] <= 1), ExcInvalidCoordinate(p[0]));
3004 Assert((p[1] >= 0) && (p[1] <= 1), ExcInvalidCoordinate(p[1]));
3006 return (p[0] <= 0.5 ? (p[1] <= 0.5 ? 0 : 2) : (p[1] <= 0.5 ? 1 : 3));
3015 Assert((p[0] >= 0) && (p[0] <= 1), ExcInvalidCoordinate(p[0]));
3016 Assert((p[1] >= 0) && (p[1] <= 1), ExcInvalidCoordinate(p[1]));
3017 Assert((p[2] >= 0) && (p[2] <= 1), ExcInvalidCoordinate(p[2]));
3019 return (p[0] <= 0.5 ?
3020 (p[1] <= 0.5 ? (p[2] <= 0.5 ? 0 : 4) : (p[2] <= 0.5 ? 2 : 6)) :
3021 (p[1] <= 0.5 ? (p[2] <= 0.5 ? 1 : 5) : (p[2] <= 0.5 ? 3 : 7)));
3039 const unsigned int child_index,
3047 return Point<1>(p * 2.0 - unit_cell_vertex(child_index));
3055 const unsigned int child_index,
3062 switch (refine_case)
3066 if (child_index == 1)
3071 if (child_index == 1)
3076 point -= unit_cell_vertex(child_index);
3090 const unsigned int child_index,
3102 switch (refine_case)
3106 if (child_index == 1)
3111 if (child_index == 1)
3116 if (child_index == 1)
3122 if (child_index % 2 == 1)
3124 if (child_index / 2 == 1)
3134 if (child_index / 2 == 1)
3136 if (child_index % 2 == 1)
3142 if (child_index % 2 == 1)
3144 if (child_index / 2 == 1)
3149 point -= unit_cell_vertex(child_index);
3164 const unsigned int ,
3177 const unsigned int child_index,
3185 return (p + unit_cell_vertex(child_index)) * 0.5;
3193 const unsigned int child_index,
3205 switch (refine_case)
3208 if (child_index == 1)
3213 if (child_index == 1)
3218 if (child_index == 1)
3223 if (child_index % 2 == 1)
3225 if (child_index / 2 == 1)
3235 if (child_index / 2 == 1)
3237 if (child_index % 2 == 1)
3243 if (child_index % 2 == 1)
3245 if (child_index / 2 == 1)
3251 point += unit_cell_vertex(child_index);
3266 const unsigned int child_index,
3272 switch (refine_case)
3275 if (child_index == 1)
3280 if (child_index == 1)
3285 point += unit_cell_vertex(child_index);
3301 const unsigned int ,
3322 return (p[0] >= 0.) && (p[0] <= 1.);
3331 return (p[0] >= 0.) && (p[0] <= 1.) && (p[1] >= 0.) && (p[1] <= 1.);
3340 return (p[0] >= 0.) && (p[0] <= 1.) && (p[1] >= 0.) && (p[1] <= 1.) &&
3341 (p[2] >= 0.) && (p[2] <= 1.);
3358 return (p[0] >= -eps) && (p[0] <= 1. +
eps);
3367 const double l = -
eps, u = 1 +
eps;
3368 return (p[0] >= l) && (p[0] <= u) && (p[1] >= l) && (p[1] <= u);
3377 const double l = -
eps, u = 1.0 +
eps;
3378 return (p[0] >= l) && (p[0] <= u) && (p[1] >= l) && (p[1] <= u) &&
3379 (p[2] >= l) && (p[2] <= u);
3387 const unsigned int vertex)
3400 const unsigned int vertex)
3402 constexpr unsigned int cell_vertices[4][2] = {{0, 2}, {1, 3}, {0, 1}, {2, 3}};
3403 return cell_vertices[line][vertex];
3411 const unsigned int vertex)
3416 constexpr unsigned vertices[lines_per_cell][2] = {{0, 2},
3444 const bool face_orientation,
3445 const bool face_flip,
3446 const bool face_rotation)
3468 constexpr unsigned int vertex_translation[4][2][2][2] = {
3490 return vertex_translation[vertex][face_orientation][face_flip][face_rotation];
3512 0, 2, 2, 4, 2, 4, 4, 8};
3514 return n_children[ref_case];
3549 0, 2, 3, 3, 4, 2, 3, 3, 4, 4};
3550 return nsubs[subface_case];
3579 switch (subface_case)
3616 const unsigned int subface_no)
3619 switch (subface_case)
3654 if (subface_no == 0)
3701 const unsigned int face_no,
3706 const unsigned int dim = 2;
3728 return ref_cases[cell_refinement_case][face_no / 2];
3736 const unsigned int face_no,
3737 const bool face_orientation,
3739 const bool face_rotation)
3741 const unsigned int dim = 3;
3787 ref_cases[cell_refinement_case][face_no / 2];
3807 return (face_orientation == face_rotation) ? flip[ref_case] : ref_case;
3825 const unsigned int line_no)
3828 const unsigned int dim = 1;
3834 return cell_refinement_case;
3842 const unsigned int line_no)
3845 return face_refinement_case(cell_refinement_case, line_no);
3853 const unsigned int line_no)
3855 const unsigned int dim = 3;
3876 const unsigned int direction[lines_per_cell] = {
3877 1, 1, 0, 0, 1, 1, 0, 0, 2, 2, 2, 2};
3879 return ((cell_refinement_case & cut_one[direction[line_no]]) ?
3909 const unsigned int dim = 1;
3920 const unsigned int face_no,
3925 const unsigned int dim = 2;
3942 const unsigned int face_no,
3943 const bool face_orientation,
3945 const bool face_rotation)
3947 const unsigned int dim = 3;
3971 (face_orientation == face_rotation) ? flip[face_refinement_case] :
3972 face_refinement_case;
3991 return face_to_cell[face_no / 2][std_face_ref];
4009 const unsigned int line_no)
4021 const unsigned int line_no)
4023 const unsigned int dim = 2;
4035 const unsigned int line_no)
4037 const unsigned int dim = 3;
4048 return ref_cases[line_no / 2];
4056 const bool face_orientation,
4057 const bool face_flip,
4058 const bool face_rotation)
4080 const unsigned int vertex_translation[4][2][2][2] = {
4102 return vertex_translation[vertex][face_orientation][face_flip][face_rotation];
4124 const bool face_orientation,
4125 const bool face_flip,
4126 const bool face_rotation)
4148 const unsigned int line_translation[4][2][2][2] = {
4170 return line_translation[line][face_orientation][face_flip][face_rotation];
4191 const bool line_orientation)
4193 return line_orientation ? vertex : (1 - vertex);
4210inline std::array<unsigned int, 2>
4212 const unsigned int vertex)
4214 return {{vertex % 2, vertex / 2}};
4220inline std::array<unsigned int, 2>
4222 const unsigned int vertex)
4232inline std::array<unsigned int, 2>
4256 return {{lookup_table[i][0], lookup_table[i][1]}};
4262inline std::array<unsigned int, 2>
4273inline std::array<unsigned int, 2>
4275 const unsigned int vertex)
4282 return {{4 + vertex / 4, vertex % 4}};
4288inline std::array<unsigned int, 2>
4290 const unsigned int vertex)
4302 const bool face_orientation,
4303 const bool face_flip,
4304 const bool face_rotation)
4326 const unsigned int line_translation[4][2][2][2] = {
4348 return line_translation[line][face_orientation][face_flip][face_rotation];
4369 const unsigned int face,
4370 const unsigned int subface,
4388 const unsigned int face,
4389 const unsigned int subface,
4390 const bool face_orientation,
4405 constexpr unsigned int
4411 {{0, 0}, {1, 1}, {1, 0}, {1, 0}},
4412 {{1, 0}, {1, 0}, {0, 0}, {1, 1}},
4413 {{2, 0}, {3, 1}, {1, 0}, {3, 2}}
4417 {{0, 0}, {1, 1}, {0, 1}, {0, 1}},
4418 {{0, 1}, {0, 1}, {0, 0}, {1, 1}},
4419 {{0, 2}, {1, 3}, {0, 1}, {2, 3}}
4422 return subcells[face_orientation][ref_case - 1][face][subface];
4430 const unsigned int face,
4431 const unsigned int subface,
4432 const bool face_orientation,
4433 const bool face_flip,
4434 const bool face_rotation,
4437 const unsigned int dim = 3;
4442 if (!(subface == 0 &&
4480 (face_orientation == face_rotation) ? flip[face_ref_case] : face_ref_case;
4492 const unsigned int subface_exchange[4][2][2][2][4] = {
4495 {{{{0,
e,
e,
e}, {0,
e,
e,
e}}, {{0,
e,
e,
e}, {0,
e,
e,
e}}},
4496 {{{0,
e,
e,
e}, {0,
e,
e,
e}}, {{0,
e,
e,
e}, {0,
e,
e,
e}}}},
4510 {{{{0, 1,
e,
e}, {0, 1,
e,
e}}, {{1, 0,
e,
e}, {1, 0,
e,
e}}},
4511 {{{0, 1,
e,
e}, {0, 1,
e,
e}}, {{1, 0,
e,
e}, {1, 0,
e,
e}}}},
4514 {{{{0, 1,
e,
e}, {1, 0,
e,
e}}, {{1, 0,
e,
e}, {0, 1,
e,
e}}},
4515 {{{0, 1,
e,
e}, {1, 0,
e,
e}}, {{1, 0,
e,
e}, {0, 1,
e,
e}}}},
4537 const unsigned int std_subface =
4538 subface_exchange[face_ref_case][face_orientation][face_flip][face_rotation]
4550 [max_children_per_face] = {
4612 if ((std_face_ref & face_refinement_case(ref_case, face)) ==
4613 face_refinement_case(ref_case, face))
4622 const unsigned int equivalent_iso_subface[4][4] = {
4628 const unsigned int equ_std_subface =
4629 equivalent_iso_subface[std_face_ref][std_subface];
4632 return iso_children[ref_case - 1][face][equ_std_subface];
4639 ExcMessage(
"The face RefineCase is too coarse "
4640 "for the given cell RefineCase."));
4667 const unsigned int line,
4685 const unsigned int line,
4686 const bool face_orientation,
4687 const bool face_flip,
4688 const bool face_rotation)
4693 const unsigned lines[faces_per_cell][lines_per_face] = {
4700 return lines[face][real_to_standard_face_line(
4701 line, face_orientation, face_flip, face_rotation)];
4736 const unsigned int vertex,
4737 const bool face_orientation,
4738 const bool face_flip,
4739 const bool face_rotation)
4765template <
typename Number>
4770 for (
unsigned int i = 0; i < dim; ++i)
4782 double result = 0.0;
4784 for (
unsigned int i = 0; i < dim; ++i)
4787 result =
std::max(result, p[i] - 1.);
4798 const unsigned int i)
4806 const double x = xi[0];
4819 const double x = xi[0];
4820 const double y = xi[1];
4824 return (1 - x) * (1 - y);
4837 const double x = xi[0];
4838 const double y = xi[1];
4839 const double z = xi[2];
4843 return (1 - x) * (1 - y) * (1 - z);
4845 return x * (1 - y) * (1 - z);
4847 return (1 - x) * y * (1 - z);
4849 return x * y * (1 - z);
4851 return (1 - x) * (1 - y) * z;
4853 return x * (1 - y) * z;
4855 return (1 - x) * y * z;
4873 const unsigned int i)
4893 const unsigned int i)
4897 const double x = xi[0];
4898 const double y = xi[1];
4902 return Point<2>(-(1 - y), -(1 - x));
4918 const unsigned int i)
4922 const double x = xi[0];
4923 const double y = xi[1];
4924 const double z = xi[2];
4928 return Point<3>(-(1 - y) * (1 - z),
4930 -(1 - x) * (1 - y));
4932 return Point<3>((1 - y) * (1 - z), -x * (1 - z), -x * (1 - y));
4934 return Point<3>(-y * (1 - z), (1 - x) * (1 - z), -(1 - x) * y);
4936 return Point<3>(y * (1 - z), x * (1 - z), -x * y);
4938 return Point<3>(-(1 - y) * z, -(1 - x) * z, (1 - x) * (1 - y));
4940 return Point<3>((1 - y) * z, -x * z, x * (1 - y));
4942 return Point<3>(-y * z, (1 - x) * z, (1 - x) * y);
4944 return Point<3>(y * z, x * z, x * y);
4970 namespace GeometryInfoHelper
4980 result[0] = derivative[0][1];
4981 result[1] = -derivative[0][0];
4992 return cross_product_3d(derivative[0], derivative[1]);
5004 for (
unsigned int i = 0; i < dim; ++i)
5005 jacobian[i] = derivative[i];
5014template <
int spacedim>
5017# ifndef DEAL_II_CXX14_CONSTEXPR_BUG
5019 Tensor<spacedim - dim, spacedim> (&forms)[vertices_per_cell])
5053 for (
unsigned int i = 0; i < vertices_per_cell; ++i)
5057 for (
unsigned int j = 0; j < vertices_per_cell; ++j)
5060 d_linear_shape_function_gradient(unit_cell_vertex(i), j);
5061 for (
unsigned int l = 0;
l < dim; ++
l)
5062 derivatives[l] +=
vertices[j] * grad_phi_j[l];
5065 forms[i] = internal::GeometryInfoHelper::wedge_product(derivatives);
GeometryPrimitive(const unsigned int object_dimension)
GeometryPrimitive(const Object object)
RefinementCase operator|(const RefinementCase &r) const
static std::size_t memory_consumption()
RefinementCase operator~() const
RefinementCase operator&(const RefinementCase &r) const
RefinementCase(const typename RefinementPossibilities< dim >::Possibilities refinement_case)
static constexpr unsigned int n_refinement_cases
static RefinementCase cut_axis(const unsigned int i)
static std::array< RefinementCase< dim >, n_refinement_cases > all_refinement_cases()
void serialize(Archive &ar, const unsigned int version)
RefinementCase(const std::uint8_t refinement_case)
static constexpr std::size_t memory_consumption()
SubfaceCase(const typename SubfacePossibilities< dim >::Possibilities subface_possibility)
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
#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)
#define DEAL_II_ASSERT_UNREACHABLE()
#define DEAL_II_NOT_IMPLEMENTED()
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)
static const 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
#define DEAL_II_HOST_DEVICE
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
DEAL_II_HOST constexpr Number determinant(const SymmetricTensor< 2, dim, Number > &)