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,
824 constexpr operator std::uint8_t()
const;
873 static constexpr std::size_t
881 template <
class Archive>
891 <<
"The refinement flags given (" << arg1
892 <<
") contain set bits that do not "
893 <<
"make sense for the space dimension of the object to which they are applied.");
900 std::uint8_t
value : (dim > 0 ? dim : 1);
1173 subface_possibility);
1186 operator std::uint8_t()
const;
1191 static constexpr std::size_t
1200 <<
"The subface case given (" << arg1 <<
") does not make sense "
1201 <<
"for the space dimension of the object to which they are applied.");
1208 std::uint8_t
value : (dim == 3 ? 4 : 1);
1272 static std::array<unsigned int, 0>
1315 static std::array<unsigned int, vertices_per_cell>
1343 const unsigned int vertex,
1344 const bool face_orientation =
true,
1345 const bool face_flip =
false,
1346 const bool face_rotation =
false);
1364 const unsigned int line,
1365 const bool face_orientation =
true,
1366 const bool face_flip =
false,
1367 const bool face_rotation =
false);
1419 static const std::array<unsigned int, vertices_per_cell>
ucd_to_deal;
1434 static const std::array<unsigned int, vertices_per_cell>
dx_to_deal;
2104 static constexpr std::array<unsigned int, vertices_per_cell>
ucd_to_deal =
2105 internal::GeometryInfoHelper::Initializers<dim>::ucd_to_deal();
2120 static constexpr std::array<unsigned int, vertices_per_cell>
dx_to_deal =
2121 internal::GeometryInfoHelper::Initializers<dim>::dx_to_deal();
2135 internal::GeometryInfoHelper::Initializers<dim>::vertex_to_face();
2162 const unsigned int subface_no);
2171 const unsigned int face_no,
2172 const bool face_orientation =
true,
2173 const bool face_flip =
false,
2174 const bool face_rotation =
false);
2184 const unsigned int face_no,
2185 const bool face_orientation =
true,
2186 const bool face_flip =
false,
2187 const bool face_rotation =
false);
2195 const unsigned int line_no);
2252 const unsigned int face,
2253 const unsigned int subface,
2254 const bool face_orientation =
true,
2255 const bool face_flip =
false,
2256 const bool face_rotation =
false,
2298 const unsigned int vertex,
2299 const bool face_orientation =
true,
2300 const bool face_flip =
false,
2301 const bool face_rotation =
false);
2316 const unsigned int line,
2317 const bool face_orientation =
true,
2318 const bool face_flip =
false,
2319 const bool face_rotation =
false);
2332 const bool face_orientation =
true,
2333 const bool face_flip =
false,
2334 const bool face_rotation =
false);
2347 const bool face_orientation =
true,
2348 const bool face_flip =
false,
2349 const bool face_rotation =
false);
2362 const bool face_orientation =
true,
2363 const bool face_flip =
false,
2364 const bool face_rotation =
false);
2373 const bool line_orientation =
true);
2382 static std::array<unsigned int, 2>
2392 static std::array<unsigned int, 2>
2402 static std::array<unsigned int, 2>
2416 const bool face_orientation =
true,
2417 const bool face_flip =
false,
2418 const bool face_rotation =
false);
2449 const unsigned int child_index,
2460 const unsigned int child_index,
2489 template <
typename Number =
double>
2566 template <
int spacedim>
2569#ifndef DEAL_II_CXX14_CONSTEXPR_BUG
2585 static constexpr std::array<unsigned int, faces_per_cell>
2587 internal::GeometryInfoHelper::Initializers<dim>::unit_normal_direction();
2606 internal::GeometryInfoHelper::Initializers<dim>::unit_normal_orientation();
2620 internal::GeometryInfoHelper::Initializers<dim>::unit_normal_vector();
2645 internal::GeometryInfoHelper::Initializers<dim>::opposite_face();
2653 <<
"The coordinates must satisfy 0 <= x_i <= 1, "
2654 <<
"but here we have x_i=" << arg1);
2663 <<
"RefinementCase<dim> " << arg1 <<
": face " << arg2
2664 <<
" has no subface " << arg3);
2678 const unsigned int i);
2682 const unsigned int i);
2686 const unsigned int i);
2700 : object(static_cast<Object>(object_dimension))
2704inline GeometryPrimitive::operator
unsigned int()
const
2706 return static_cast<unsigned int>(object);
2716 :
value(subface_possibility)
2721 inline SubfaceCase<dim>::operator std::uint8_t()
const
2735 return static_cast<std::uint8_t
>(-1);
2779inline constexpr std::array<RefinementCase<1>, 2>
2789inline constexpr std::array<RefinementCase<2>, 4>
2801inline constexpr std::array<RefinementCase<3>, 8>
2826 :
value(refinement_case)
2832 Assert((refinement_case &
2835 ExcInvalidRefinementCase(refinement_case));
2842 const std::uint8_t refinement_case)
2843 :
value(refinement_case)
2849 Assert((refinement_case &
2852 ExcInvalidRefinementCase(refinement_case));
2895inline constexpr std::size_t
2904template <
class Archive>
2910 std::uint8_t uchar_value =
value;
2912 value = uchar_value;
2923 return Point<1>(
static_cast<double>(vertex));
2934 return {
static_cast<double>(vertex % 2),
static_cast<double>(vertex / 2)};
2945 return {
static_cast<double>(vertex % 2),
2946 static_cast<double>(vertex / 2 % 2),
2947 static_cast<double>(vertex / 4)};
2952inline std::array<unsigned int, 0>
2960inline std::array<unsigned int, 1>
2973 0U, faces_per_cell);
2983 0U, vertices_per_cell);
3003 Assert((p[0] >= 0) && (p[0] <= 1), ExcInvalidCoordinate(p[0]));
3005 return (p[0] <= 0.5 ? 0 : 1);
3014 Assert((p[0] >= 0) && (p[0] <= 1), ExcInvalidCoordinate(p[0]));
3015 Assert((p[1] >= 0) && (p[1] <= 1), ExcInvalidCoordinate(p[1]));
3017 return (p[0] <= 0.5 ? (p[1] <= 0.5 ? 0 : 2) : (p[1] <= 0.5 ? 1 : 3));
3026 Assert((p[0] >= 0) && (p[0] <= 1), ExcInvalidCoordinate(p[0]));
3027 Assert((p[1] >= 0) && (p[1] <= 1), ExcInvalidCoordinate(p[1]));
3028 Assert((p[2] >= 0) && (p[2] <= 1), ExcInvalidCoordinate(p[2]));
3030 return (p[0] <= 0.5 ?
3031 (p[1] <= 0.5 ? (p[2] <= 0.5 ? 0 : 4) : (p[2] <= 0.5 ? 2 : 6)) :
3032 (p[1] <= 0.5 ? (p[2] <= 0.5 ? 1 : 5) : (p[2] <= 0.5 ? 3 : 7)));
3050 const unsigned int child_index,
3058 return Point<1>(p * 2.0 - unit_cell_vertex(child_index));
3066 const unsigned int child_index,
3073 switch (refine_case)
3077 if (child_index == 1)
3082 if (child_index == 1)
3087 point -= unit_cell_vertex(child_index);
3101 const unsigned int child_index,
3113 switch (refine_case)
3117 if (child_index == 1)
3122 if (child_index == 1)
3127 if (child_index == 1)
3133 if (child_index % 2 == 1)
3135 if (child_index / 2 == 1)
3145 if (child_index / 2 == 1)
3147 if (child_index % 2 == 1)
3153 if (child_index % 2 == 1)
3155 if (child_index / 2 == 1)
3160 point -= unit_cell_vertex(child_index);
3175 const unsigned int ,
3188 const unsigned int child_index,
3196 return (p + unit_cell_vertex(child_index)) * 0.5;
3204 const unsigned int child_index,
3216 switch (refine_case)
3219 if (child_index == 1)
3224 if (child_index == 1)
3229 if (child_index == 1)
3234 if (child_index % 2 == 1)
3236 if (child_index / 2 == 1)
3246 if (child_index / 2 == 1)
3248 if (child_index % 2 == 1)
3254 if (child_index % 2 == 1)
3256 if (child_index / 2 == 1)
3262 point += unit_cell_vertex(child_index);
3277 const unsigned int child_index,
3283 switch (refine_case)
3286 if (child_index == 1)
3291 if (child_index == 1)
3296 point += unit_cell_vertex(child_index);
3312 const unsigned int ,
3333 return (p[0] >= 0.) && (p[0] <= 1.);
3342 return (p[0] >= 0.) && (p[0] <= 1.) && (p[1] >= 0.) && (p[1] <= 1.);
3351 return (p[0] >= 0.) && (p[0] <= 1.) && (p[1] >= 0.) && (p[1] <= 1.) &&
3352 (p[2] >= 0.) && (p[2] <= 1.);
3369 return (p[0] >= -eps) && (p[0] <= 1. +
eps);
3378 const double l = -
eps, u = 1 +
eps;
3379 return (p[0] >= l) && (p[0] <= u) && (p[1] >= l) && (p[1] <= u);
3388 const double l = -
eps, u = 1.0 +
eps;
3389 return (p[0] >= l) && (p[0] <= u) && (p[1] >= l) && (p[1] <= u) &&
3390 (p[2] >= l) && (p[2] <= u);
3398 const unsigned int vertex)
3411 const unsigned int vertex)
3413 constexpr unsigned int cell_vertices[4][2] = {{0, 2}, {1, 3}, {0, 1}, {2, 3}};
3414 return cell_vertices[line][vertex];
3422 const unsigned int vertex)
3427 constexpr unsigned vertices[lines_per_cell][2] = {{0, 2},
3440 return vertices[line][vertex];
3455 const bool face_orientation,
3456 const bool face_flip,
3457 const bool face_rotation)
3479 constexpr unsigned int vertex_translation[4][2][2][2] = {
3501 return vertex_translation[vertex][face_orientation][face_flip][face_rotation];
3523 0, 2, 2, 4, 2, 4, 4, 8};
3525 return n_children[ref_case];
3560 0, 2, 3, 3, 4, 2, 3, 3, 4, 4};
3561 return nsubs[subface_case];
3590 switch (subface_case)
3627 const unsigned int subface_no)
3630 switch (subface_case)
3665 if (subface_no == 0)
3712 const unsigned int face_no,
3717 const unsigned int dim = 2;
3739 return ref_cases[cell_refinement_case][face_no / 2];
3747 const unsigned int face_no,
3748 const bool face_orientation,
3750 const bool face_rotation)
3752 const unsigned int dim = 3;
3798 ref_cases[cell_refinement_case][face_no / 2];
3818 return (face_orientation == face_rotation) ? flip[ref_case] : ref_case;
3836 const unsigned int line_no)
3839 const unsigned int dim = 1;
3845 return cell_refinement_case;
3853 const unsigned int line_no)
3856 return face_refinement_case(cell_refinement_case, line_no);
3864 const unsigned int line_no)
3866 const unsigned int dim = 3;
3887 const unsigned int direction[lines_per_cell] = {
3888 1, 1, 0, 0, 1, 1, 0, 0, 2, 2, 2, 2};
3890 return ((cell_refinement_case & cut_one[direction[line_no]]) ?
3920 const unsigned int dim = 1;
3931 const unsigned int face_no,
3936 const unsigned int dim = 2;
3953 const unsigned int face_no,
3954 const bool face_orientation,
3956 const bool face_rotation)
3958 const unsigned int dim = 3;
3982 (face_orientation == face_rotation) ? flip[face_refinement_case] :
3983 face_refinement_case;
4002 return face_to_cell[face_no / 2][std_face_ref];
4020 const unsigned int line_no)
4032 const unsigned int line_no)
4034 const unsigned int dim = 2;
4046 const unsigned int line_no)
4048 const unsigned int dim = 3;
4059 return ref_cases[line_no / 2];
4067 const bool face_orientation,
4068 const bool face_flip,
4069 const bool face_rotation)
4091 const unsigned int vertex_translation[4][2][2][2] = {
4113 return vertex_translation[vertex][face_orientation][face_flip][face_rotation];
4135 const bool face_orientation,
4136 const bool face_flip,
4137 const bool face_rotation)
4159 const unsigned int line_translation[4][2][2][2] = {
4181 return line_translation[line][face_orientation][face_flip][face_rotation];
4202 const bool line_orientation)
4204 return line_orientation ? vertex : (1 - vertex);
4221inline std::array<unsigned int, 2>
4223 const unsigned int vertex)
4225 return {{vertex % 2, vertex / 2}};
4231inline std::array<unsigned int, 2>
4233 const unsigned int vertex)
4243inline std::array<unsigned int, 2>
4267 return {{lookup_table[i][0], lookup_table[i][1]}};
4273inline std::array<unsigned int, 2>
4284inline std::array<unsigned int, 2>
4286 const unsigned int vertex)
4293 return {{4 + vertex / 4, vertex % 4}};
4299inline std::array<unsigned int, 2>
4301 const unsigned int vertex)
4313 const bool face_orientation,
4314 const bool face_flip,
4315 const bool face_rotation)
4337 const unsigned int line_translation[4][2][2][2] = {
4359 return line_translation[line][face_orientation][face_flip][face_rotation];
4380 const unsigned int face,
4381 const unsigned int subface,
4399 const unsigned int face,
4400 const unsigned int subface,
4401 const bool face_orientation,
4416 constexpr unsigned int
4422 {{0, 0}, {1, 1}, {1, 0}, {1, 0}},
4423 {{1, 0}, {1, 0}, {0, 0}, {1, 1}},
4424 {{2, 0}, {3, 1}, {1, 0}, {3, 2}}
4428 {{0, 0}, {1, 1}, {0, 1}, {0, 1}},
4429 {{0, 1}, {0, 1}, {0, 0}, {1, 1}},
4430 {{0, 2}, {1, 3}, {0, 1}, {2, 3}}
4433 return subcells[face_orientation][ref_case - 1][face][subface];
4441 const unsigned int face,
4442 const unsigned int subface,
4443 const bool face_orientation,
4444 const bool face_flip,
4445 const bool face_rotation,
4448 const unsigned int dim = 3;
4453 if (!(subface == 0 &&
4491 (face_orientation == face_rotation) ? flip[face_ref_case] : face_ref_case;
4503 const unsigned int subface_exchange[4][2][2][2][4] = {
4506 {{{{0,
e,
e,
e}, {0,
e,
e,
e}}, {{0,
e,
e,
e}, {0,
e,
e,
e}}},
4507 {{{0,
e,
e,
e}, {0,
e,
e,
e}}, {{0,
e,
e,
e}, {0,
e,
e,
e}}}},
4521 {{{{0, 1,
e,
e}, {0, 1,
e,
e}}, {{1, 0,
e,
e}, {1, 0,
e,
e}}},
4522 {{{0, 1,
e,
e}, {0, 1,
e,
e}}, {{1, 0,
e,
e}, {1, 0,
e,
e}}}},
4525 {{{{0, 1,
e,
e}, {1, 0,
e,
e}}, {{1, 0,
e,
e}, {0, 1,
e,
e}}},
4526 {{{0, 1,
e,
e}, {1, 0,
e,
e}}, {{1, 0,
e,
e}, {0, 1,
e,
e}}}},
4548 const unsigned int std_subface =
4549 subface_exchange[face_ref_case][face_orientation][face_flip][face_rotation]
4561 [max_children_per_face] = {
4623 if ((std_face_ref & face_refinement_case(ref_case, face)) ==
4624 face_refinement_case(ref_case, face))
4633 const unsigned int equivalent_iso_subface[4][4] = {
4639 const unsigned int equ_std_subface =
4640 equivalent_iso_subface[std_face_ref][std_subface];
4643 return iso_children[ref_case - 1][face][equ_std_subface];
4650 ExcMessage(
"The face RefineCase is too coarse "
4651 "for the given cell RefineCase."));
4678 const unsigned int line,
4696 const unsigned int line,
4697 const bool face_orientation,
4698 const bool face_flip,
4699 const bool face_rotation)
4704 const unsigned lines[faces_per_cell][lines_per_face] = {
4711 return lines[face][real_to_standard_face_line(
4712 line, face_orientation, face_flip, face_rotation)];
4747 const unsigned int vertex,
4748 const bool face_orientation,
4749 const bool face_flip,
4750 const bool face_rotation)
4776template <
typename Number>
4781 for (
unsigned int i = 0; i < dim; ++i)
4793 double result = 0.0;
4795 for (
unsigned int i = 0; i < dim; ++i)
4798 result =
std::max(result, p[i] - 1.);
4809 const unsigned int i)
4817 const double x = xi[0];
4830 const double x = xi[0];
4831 const double y = xi[1];
4835 return (1 - x) * (1 - y);
4848 const double x = xi[0];
4849 const double y = xi[1];
4850 const double z = xi[2];
4854 return (1 - x) * (1 - y) * (1 - z);
4856 return x * (1 - y) * (1 - z);
4858 return (1 - x) * y * (1 - z);
4860 return x * y * (1 - z);
4862 return (1 - x) * (1 - y) * z;
4864 return x * (1 - y) * z;
4866 return (1 - x) * y * z;
4884 const unsigned int i)
4904 const unsigned int i)
4908 const double x = xi[0];
4909 const double y = xi[1];
4913 return Point<2>(-(1 - y), -(1 - x));
4929 const unsigned int i)
4933 const double x = xi[0];
4934 const double y = xi[1];
4935 const double z = xi[2];
4939 return Point<3>(-(1 - y) * (1 - z),
4941 -(1 - x) * (1 - y));
4943 return Point<3>((1 - y) * (1 - z), -x * (1 - z), -x * (1 - y));
4945 return Point<3>(-y * (1 - z), (1 - x) * (1 - z), -(1 - x) * y);
4947 return Point<3>(y * (1 - z), x * (1 - z), -x * y);
4949 return Point<3>(-(1 - y) * z, -(1 - x) * z, (1 - x) * (1 - y));
4951 return Point<3>((1 - y) * z, -x * z, x * (1 - y));
4953 return Point<3>(-y * z, (1 - x) * z, (1 - x) * y);
4955 return Point<3>(y * z, x * z, x * y);
4981 namespace GeometryInfoHelper
4991 result[0] = derivative[0][1];
4992 result[1] = -derivative[0][0];
5003 return cross_product_3d(derivative[0], derivative[1]);
5015 for (
unsigned int i = 0; i < dim; ++i)
5016 jacobian[i] = derivative[i];
5025template <
int spacedim>
5028# ifndef DEAL_II_CXX14_CONSTEXPR_BUG
5030 Tensor<spacedim - dim, spacedim> (&forms)[vertices_per_cell])
5064 for (
unsigned int i = 0; i < vertices_per_cell; ++i)
5068 for (
unsigned int j = 0; j < vertices_per_cell; ++j)
5071 d_linear_shape_function_gradient(unit_cell_vertex(i), j);
5072 for (
unsigned int l = 0;
l < dim; ++
l)
5073 derivatives[l] += vertices[j] * grad_phi_j[l];
5076 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 > &)