42 template <
int spacedim>
44 get_dof_sign_change_h_div(
45 const typename ::Triangulation<1, spacedim>::cell_iterator &,
47 const std::vector<MappingKind> &,
48 std::vector<double> &)
61 template <
int spacedim>
63 get_dof_sign_change_h_div(
64 const typename ::Triangulation<2, spacedim>::cell_iterator &cell,
66 const std::vector<MappingKind> &mapping_kind,
67 std::vector<double> &face_sign)
69 const unsigned int dim = 2;
72 const CellId this_cell_id = cell->id();
74 for (
unsigned int f = 0; f < GeometryInfo<dim>::faces_per_cell; ++f)
76 typename ::Triangulation<dim, spacedim>::face_iterator face =
78 if (!face->at_boundary())
80 const unsigned int nn = cell->neighbor_face_no(f);
81 const typename ::Triangulation<dim,
82 spacedim>::cell_iterator
83 neighbor_cell_at_face = cell->neighbor(f);
84 const CellId neighbor_cell_id = neighbor_cell_at_face->id();
88 if (((nn + f) % 2 == 0) && this_cell_id < neighbor_cell_id)
95 Assert(mapping_kind.size() == 1 ||
96 cell_j < mapping_kind.size(),
101 if ((mapping_kind.size() > 1 ?
102 mapping_kind[cell_j] :
112 template <
int spacedim>
114 get_dof_sign_change_h_div(
115 const typename ::Triangulation<3, spacedim>::cell_iterator
118 const std::vector<MappingKind> & ,
119 std::vector<double> & )
125 template <
int spacedim>
127 get_dof_sign_change_nedelec(
128 const typename ::Triangulation<1, spacedim>::cell_iterator
131 const std::vector<MappingKind> & ,
132 std::vector<double> & )
139 template <
int spacedim>
141 get_dof_sign_change_nedelec(
142 const typename ::Triangulation<2, spacedim>::cell_iterator &cell,
144 const std::vector<MappingKind> &mapping_kind,
145 std::vector<double> &line_dof_sign)
147 const unsigned int dim = 2;
149 for (
unsigned int l = 0; l < GeometryInfo<dim>::lines_per_cell; ++l)
150 if (!(cell->line_orientation(l)) &&
152 line_dof_sign[l] = -1.0;
156 template <
int spacedim>
158 get_dof_sign_change_nedelec(
159 const typename ::Triangulation<3, spacedim>::cell_iterator &cell,
161 const std::vector<MappingKind> &mapping_kind,
162 std::vector<double> &line_dof_sign)
164 const unsigned int dim = 3;
167 for (
unsigned int l = 0; l < GeometryInfo<dim>::lines_per_cell; ++l)
168 if (!(cell->line_orientation(l)) &&
170 line_dof_sign[l] = -1.0;
178template <
int dim,
int spacedim>
182 const std::vector<bool> &restriction_is_additive_flags,
183 const std::vector<ComponentMask> &nonzero_components)
185 restriction_is_additive_flags,
188 , poly_space(polynomials.clone())
190 cached_point[0] = -1;
198 for (
unsigned int comp = 0; comp < this->n_components(); ++comp)
199 this->component_to_base_table[comp].
first.second = comp;
203 adjust_quad_dof_sign_for_face_orientation_table.resize(
204 this->n_unique_2d_subobjects());
206 for (
unsigned int f = 0; f < this->n_unique_2d_subobjects(); ++f)
208 adjust_quad_dof_sign_for_face_orientation_table[f] =
211 adjust_quad_dof_sign_for_face_orientation_table[f].fill(
false);
218template <
int dim,
int spacedim>
221 , mapping_kind(fe.mapping_kind)
222 , adjust_quad_dof_sign_for_face_orientation_table(
223 fe.adjust_quad_dof_sign_for_face_orientation_table)
224 , poly_space(fe.poly_space->clone())
225 , inverse_node_matrix(fe.inverse_node_matrix)
230template <
int dim,
int spacedim>
234 return mapping_kind.size() == 1;
238template <
int dim,
int spacedim>
241 const unsigned int index,
242 const unsigned int face,
243 const bool face_orientation,
244 const bool face_flip,
245 const bool face_rotation)
const
258 Assert(adjust_quad_dof_sign_for_face_orientation_table
259 [this->n_unique_2d_subobjects() == 1 ? 0 : face]
262 this->n_dofs_per_quad(face),
265 return adjust_quad_dof_sign_for_face_orientation_table
266 [this->n_unique_2d_subobjects() == 1 ? 0 : face](
274template <
int dim,
int spacedim>
278 if (single_mapping_kind())
279 return mapping_kind[0];
282 return mapping_kind[i];
287template <
int dim,
int spacedim>
299template <
int dim,
int spacedim>
302 const unsigned int i,
304 const unsigned int component)
const
309 std::lock_guard<std::mutex> lock(cache_mutex);
311 if (cached_point != p || cached_values.empty())
314 cached_values.resize(poly_space->n());
316 std::vector<Tensor<4, dim>> dummy1;
317 std::vector<Tensor<5, dim>> dummy2;
318 poly_space->evaluate(
319 p, cached_values, cached_grads, cached_grad_grads, dummy1, dummy2);
323 if (inverse_node_matrix.n_cols() == 0)
324 return cached_values[i][component];
326 for (
unsigned int j = 0; j < inverse_node_matrix.n_cols(); ++j)
327 s += inverse_node_matrix(j, i) * cached_values[j][component];
333template <
int dim,
int spacedim>
344template <
int dim,
int spacedim>
347 const unsigned int i,
349 const unsigned int component)
const
354 std::lock_guard<std::mutex> lock(cache_mutex);
356 if (cached_point != p || cached_grads.empty())
359 cached_grads.resize(poly_space->n());
361 std::vector<Tensor<4, dim>> dummy1;
362 std::vector<Tensor<5, dim>> dummy2;
363 poly_space->evaluate(
364 p, cached_values, cached_grads, cached_grad_grads, dummy1, dummy2);
368 if (inverse_node_matrix.n_cols() == 0)
369 return cached_grads[i][component];
371 for (
unsigned int j = 0; j < inverse_node_matrix.n_cols(); ++j)
372 s += inverse_node_matrix(j, i) * cached_grads[j][component];
379template <
int dim,
int spacedim>
390template <
int dim,
int spacedim>
393 const unsigned int i,
395 const unsigned int component)
const
400 std::lock_guard<std::mutex> lock(cache_mutex);
402 if (cached_point != p || cached_grad_grads.empty())
405 cached_grad_grads.resize(poly_space->n());
407 std::vector<Tensor<4, dim>> dummy1;
408 std::vector<Tensor<5, dim>> dummy2;
409 poly_space->evaluate(
410 p, cached_values, cached_grads, cached_grad_grads, dummy1, dummy2);
414 if (inverse_node_matrix.n_cols() == 0)
415 return cached_grad_grads[i][component];
417 for (
unsigned int j = 0; j < inverse_node_matrix.n_cols(); ++j)
418 s += inverse_node_matrix(i, j) * cached_grad_grads[j][component];
428template <
int dim,
int spacedim>
447 Assert(
dynamic_cast<const InternalData *
>(&fe_internal) !=
nullptr,
449 const InternalData &fe_data =
static_cast<const InternalData &
>(fe_internal);
451 const unsigned int n_q_points = quadrature.
size();
454 fe_data.shape_values.size()[0] == this->n_dofs_per_cell(),
456 this->n_dofs_per_cell()));
458 fe_data.shape_values.size()[1] == n_q_points,
466 std::fill(fe_data.dof_sign_change.begin(),
467 fe_data.dof_sign_change.end(),
470 internal::FE_PolyTensor::get_dof_sign_change_nedelec(
471 cell, *
this, this->mapping_kind, fe_data.dof_sign_change);
478 internal::FE_PolyTensor::get_dof_sign_change_h_div(cell,
481 fe_data.dof_sign_change);
484 const unsigned int first_quad_index = this->get_first_quad_index();
486 const unsigned int n_dofs_per_quad = this->n_dofs_per_quad();
487 const unsigned int n_quad_dofs =
490 for (
unsigned int dof_index = 0; dof_index < this->n_dofs_per_cell();
497 const bool is_quad_dof =
499 (first_quad_index <= dof_index) &&
500 (dof_index < first_quad_index + n_quad_dofs));
510 double dof_sign = 1.0;
513 dof_sign = fe_data.dof_sign_change[dof_index];
521 const unsigned int face_index_from_dof_index =
522 (dof_index - first_quad_index) / (n_dofs_per_quad);
524 const unsigned int local_quad_dof_index = dof_index % n_dofs_per_quad;
527 if (adjust_quad_dof_sign_for_face_orientation(
528 local_quad_dof_index,
529 face_index_from_dof_index,
530 cell->face_orientation(face_index_from_dof_index),
531 cell->face_flip(face_index_from_dof_index),
532 cell->face_rotation(face_index_from_dof_index)))
536 const MappingKind mapping_kind = get_mapping_kind(dof_index);
538 const unsigned int first =
539 output_data.shape_function_to_row_table
540 [dof_index * this->n_components() +
541 this->get_nonzero_components(dof_index).first_selected_component()];
555 switch (mapping_kind)
559 for (
unsigned int k = 0; k < n_q_points; ++k)
560 for (
unsigned int d = 0;
d < dim; ++
d)
561 output_data.shape_values(
first + d, k) =
562 fe_data.shape_values[dof_index][k][
d];
575 for (
unsigned int k = 0; k < n_q_points; ++k)
576 for (
unsigned int d = 0;
d < dim; ++
d)
577 output_data.shape_values(
first + d, k) =
578 fe_data.transformed_shape_values[k][
d];
591 for (
unsigned int k = 0; k < n_q_points; ++k)
592 for (
unsigned int d = 0;
d < dim; ++
d)
593 output_data.shape_values(
first + d, k) =
594 dof_sign * fe_data.transformed_shape_values[k][
d];
606 for (
unsigned int k = 0; k < n_q_points; ++k)
607 for (
unsigned int d = 0;
d < dim; ++
d)
608 output_data.shape_values(
first + d, k) =
609 dof_sign * fe_data.transformed_shape_values[k][
d];
627 switch (mapping_kind)
636 for (
unsigned int k = 0; k < n_q_points; ++k)
637 for (
unsigned int d = 0;
d < dim; ++
d)
638 output_data.shape_gradients[
first + d][k] =
639 fe_data.transformed_shape_grads[k][d];
650 for (
unsigned int k = 0; k < n_q_points; ++k)
651 for (
unsigned int d = 0;
d < spacedim; ++
d)
652 for (
unsigned int n = 0; n < spacedim; ++n)
653 fe_data.transformed_shape_grads[k][d] -=
654 output_data.shape_values(
first + n, k) *
657 for (
unsigned int k = 0; k < n_q_points; ++k)
658 for (
unsigned int d = 0;
d < dim; ++
d)
659 output_data.shape_gradients[
first + d][k] =
660 fe_data.transformed_shape_grads[k][d];
666 for (
unsigned int k = 0; k < n_q_points; ++k)
667 fe_data.untransformed_shape_grads[k] =
668 fe_data.shape_grads[dof_index][k];
675 for (
unsigned int k = 0; k < n_q_points; ++k)
676 for (
unsigned int d = 0;
d < spacedim; ++
d)
677 for (
unsigned int n = 0; n < spacedim; ++n)
678 fe_data.transformed_shape_grads[k][d] +=
679 output_data.shape_values(
first + n, k) *
683 for (
unsigned int k = 0; k < n_q_points; ++k)
684 for (
unsigned int d = 0;
d < dim; ++
d)
685 output_data.shape_gradients[
first + d][k] =
686 fe_data.transformed_shape_grads[k][d];
693 for (
unsigned int k = 0; k < n_q_points; ++k)
694 fe_data.untransformed_shape_grads[k] =
695 fe_data.shape_grads[dof_index][k];
702 for (
unsigned int k = 0; k < n_q_points; ++k)
703 for (
unsigned int d = 0;
d < spacedim; ++
d)
704 for (
unsigned int n = 0; n < spacedim; ++n)
705 fe_data.transformed_shape_grads[k][d] +=
706 (output_data.shape_values(
first + n, k) *
709 (output_data.shape_values(
first + d, k) *
712 for (
unsigned int k = 0; k < n_q_points; ++k)
713 for (
unsigned int d = 0;
d < dim; ++
d)
714 output_data.shape_gradients[
first + d][k] =
715 dof_sign * fe_data.transformed_shape_grads[k][d];
732 for (
unsigned int k = 0; k < n_q_points; ++k)
733 fe_data.untransformed_shape_grads[k] =
734 fe_data.shape_grads[dof_index][k];
742 for (
unsigned int k = 0; k < n_q_points; ++k)
743 for (
unsigned int d = 0;
d < spacedim; ++
d)
744 for (
unsigned int n = 0; n < spacedim; ++n)
745 fe_data.transformed_shape_grads[k][d] -=
746 output_data.shape_values(
first + n, k) *
749 for (
unsigned int k = 0; k < n_q_points; ++k)
750 for (
unsigned int d = 0;
d < dim; ++
d)
751 output_data.shape_gradients[
first + d][k] =
752 dof_sign * fe_data.transformed_shape_grads[k][d];
770 switch (mapping_kind)
780 for (
unsigned int k = 0; k < n_q_points; ++k)
781 for (
unsigned int d = 0;
d < spacedim; ++
d)
782 for (
unsigned int n = 0; n < spacedim; ++n)
783 fe_data.transformed_shape_hessians[k][d] -=
784 output_data.shape_gradients[
first + d][k][n] *
787 for (
unsigned int k = 0; k < n_q_points; ++k)
788 for (
unsigned int d = 0;
d < dim; ++
d)
789 output_data.shape_hessians[
first + d][k] =
790 fe_data.transformed_shape_hessians[k][d];
796 for (
unsigned int k = 0; k < n_q_points; ++k)
797 fe_data.untransformed_shape_hessian_tensors[k] =
798 fe_data.shape_grad_grads[dof_index][k];
802 fe_data.untransformed_shape_hessian_tensors),
807 for (
unsigned int k = 0; k < n_q_points; ++k)
808 for (
unsigned int d = 0;
d < spacedim; ++
d)
809 for (
unsigned int n = 0; n < spacedim; ++n)
810 for (
unsigned int i = 0; i < spacedim; ++i)
811 for (
unsigned int j = 0; j < spacedim; ++j)
813 fe_data.transformed_shape_hessians[k][
d][i][j] -=
814 (output_data.shape_values(
first + n, k) *
818 (output_data.shape_gradients[
first + d][k][n] *
821 (output_data.shape_gradients[
first + n][k][i] *
824 (output_data.shape_gradients[
first + n][k][j] *
829 for (
unsigned int k = 0; k < n_q_points; ++k)
830 for (
unsigned int d = 0;
d < dim; ++
d)
831 output_data.shape_hessians[
first + d][k] =
832 fe_data.transformed_shape_hessians[k][d];
838 for (
unsigned int k = 0; k < n_q_points; ++k)
839 fe_data.untransformed_shape_hessian_tensors[k] =
840 fe_data.shape_grad_grads[dof_index][k];
844 fe_data.untransformed_shape_hessian_tensors),
849 for (
unsigned int k = 0; k < n_q_points; ++k)
850 for (
unsigned int d = 0;
d < spacedim; ++
d)
851 for (
unsigned int n = 0; n < spacedim; ++n)
852 for (
unsigned int i = 0; i < spacedim; ++i)
853 for (
unsigned int j = 0; j < spacedim; ++j)
855 fe_data.transformed_shape_hessians[k][
d][i][j] +=
856 (output_data.shape_values(
first + n, k) *
860 (output_data.shape_gradients[
first + n][k][i] *
863 (output_data.shape_gradients[
first + n][k][j] *
866 (output_data.shape_gradients[
first + d][k][n] *
869 for (
unsigned int m = 0; m < spacedim; ++m)
871 .transformed_shape_hessians[k][d][i][j] -=
873 .jacobian_pushed_forward_grads[k][d][i]
876 .jacobian_pushed_forward_grads[k][m][n]
878 output_data.shape_values(
first + n, k)) +
880 .jacobian_pushed_forward_grads[k][d][m]
883 .jacobian_pushed_forward_grads[k][m][i]
885 output_data.shape_values(
first + n, k));
888 for (
unsigned int k = 0; k < n_q_points; ++k)
889 for (
unsigned int d = 0;
d < dim; ++
d)
890 output_data.shape_hessians[
first + d][k] =
891 fe_data.transformed_shape_hessians[k][d];
898 for (
unsigned int k = 0; k < n_q_points; ++k)
899 fe_data.untransformed_shape_hessian_tensors[k] =
900 fe_data.shape_grad_grads[dof_index][k];
904 fe_data.untransformed_shape_hessian_tensors),
909 for (
unsigned int k = 0; k < n_q_points; ++k)
910 for (
unsigned int d = 0;
d < spacedim; ++
d)
911 for (
unsigned int n = 0; n < spacedim; ++n)
912 for (
unsigned int i = 0; i < spacedim; ++i)
913 for (
unsigned int j = 0; j < spacedim; ++j)
915 fe_data.transformed_shape_hessians[k][
d][i][j] +=
916 (output_data.shape_values(
first + n, k) *
920 (output_data.shape_gradients[
first + n][k][i] *
923 (output_data.shape_gradients[
first + n][k][j] *
926 (output_data.shape_gradients[
first + d][k][n] *
930 fe_data.transformed_shape_hessians[k][
d][i][j] -=
931 (output_data.shape_values(
first + d, k) *
935 (output_data.shape_gradients[
first + d][k][i] *
938 (output_data.shape_gradients[
first +
d][k][j] *
942 for (
unsigned int m = 0; m < spacedim; ++m)
945 .transformed_shape_hessians[k][
d][i][j] -=
952 output_data.shape_values(
first + n, k)) +
954 .jacobian_pushed_forward_grads[k][d][m]
957 .jacobian_pushed_forward_grads[k][m][i]
959 output_data.shape_values(
first + n, k));
962 .transformed_shape_hessians[k][
d][i][j] +=
969 output_data.shape_values(
first + d, k)) +
971 .jacobian_pushed_forward_grads[k][n][m]
974 .jacobian_pushed_forward_grads[k][m][i]
976 output_data.shape_values(
first + d, k));
980 for (
unsigned int k = 0; k < n_q_points; ++k)
981 for (
unsigned int d = 0;
d < dim; ++
d)
982 output_data.shape_hessians[
first + d][k] =
983 dof_sign * fe_data.transformed_shape_hessians[k][d];
990 for (
unsigned int k = 0; k < n_q_points; ++k)
991 fe_data.untransformed_shape_hessian_tensors[k] =
992 fe_data.shape_grad_grads[dof_index][k];
996 fe_data.untransformed_shape_hessian_tensors),
1001 for (
unsigned int k = 0; k < n_q_points; ++k)
1002 for (
unsigned int d = 0;
d < spacedim; ++
d)
1003 for (
unsigned int n = 0; n < spacedim; ++n)
1004 for (
unsigned int i = 0; i < spacedim; ++i)
1005 for (
unsigned int j = 0; j < spacedim; ++j)
1007 fe_data.transformed_shape_hessians[k][
d][i][j] -=
1008 (output_data.shape_values(
first + n, k) *
1012 (output_data.shape_gradients[
first + d][k][n] *
1015 (output_data.shape_gradients[
first + n][k][i] *
1018 (output_data.shape_gradients[
first + n][k][j] *
1023 for (
unsigned int k = 0; k < n_q_points; ++k)
1024 for (
unsigned int d = 0;
d < dim; ++
d)
1025 output_data.shape_hessians[
first + d][k] =
1026 dof_sign * fe_data.transformed_shape_hessians[k][d];
1050template <
int dim,
int spacedim>
1054 const unsigned int face_no,
1071 Assert(
dynamic_cast<const InternalData *
>(&fe_internal) !=
nullptr,
1073 const InternalData &fe_data =
static_cast<const InternalData &
>(fe_internal);
1075 const unsigned int n_q_points = quadrature[0].
size();
1083 cell->combined_face_orientation(
1094 std::fill(fe_data.dof_sign_change.begin(),
1095 fe_data.dof_sign_change.end(),
1098 internal::FE_PolyTensor::get_dof_sign_change_nedelec(
1099 cell, *
this, this->mapping_kind, fe_data.dof_sign_change);
1106 internal::FE_PolyTensor::get_dof_sign_change_h_div(cell,
1109 fe_data.dof_sign_change);
1112 const unsigned int first_quad_index = this->get_first_quad_index();
1114 const unsigned int n_dofs_per_quad = this->n_dofs_per_quad();
1115 const unsigned int n_quad_dofs =
1118 for (
unsigned int dof_index = 0; dof_index < this->n_dofs_per_cell();
1125 const bool is_quad_dof =
1127 (first_quad_index <= dof_index) &&
1128 (dof_index < first_quad_index + n_quad_dofs));
1138 double dof_sign = 1.0;
1141 dof_sign = fe_data.dof_sign_change[dof_index];
1149 unsigned int face_index_from_dof_index =
1150 (dof_index - first_quad_index) / (n_dofs_per_quad);
1152 unsigned int local_quad_dof_index = dof_index % n_dofs_per_quad;
1155 if (adjust_quad_dof_sign_for_face_orientation(
1156 local_quad_dof_index,
1157 face_index_from_dof_index,
1158 cell->face_orientation(face_index_from_dof_index),
1159 cell->face_flip(face_index_from_dof_index),
1160 cell->face_rotation(face_index_from_dof_index)))
1164 const MappingKind mapping_kind = get_mapping_kind(dof_index);
1166 const unsigned int first =
1167 output_data.shape_function_to_row_table
1168 [dof_index * this->n_components() +
1169 this->get_nonzero_components(dof_index).first_selected_component()];
1173 switch (mapping_kind)
1177 for (
unsigned int k = 0; k < n_q_points; ++k)
1178 for (
unsigned int d = 0;
d < dim; ++
d)
1179 output_data.shape_values(
first + d, k) =
1180 fe_data.shape_values[dof_index][k + offset][
d];
1188 transformed_shape_values =
1198 transformed_shape_values);
1200 for (
unsigned int k = 0; k < n_q_points; ++k)
1201 for (
unsigned int d = 0;
d < dim; ++
d)
1202 output_data.shape_values(
first + d, k) =
1203 transformed_shape_values[k][
d];
1211 transformed_shape_values =
1221 transformed_shape_values);
1222 for (
unsigned int k = 0; k < n_q_points; ++k)
1223 for (
unsigned int d = 0;
d < dim; ++
d)
1224 output_data.shape_values(
first + d, k) =
1225 dof_sign * transformed_shape_values[k][
d];
1232 transformed_shape_values =
1242 transformed_shape_values);
1244 for (
unsigned int k = 0; k < n_q_points; ++k)
1245 for (
unsigned int d = 0;
d < dim; ++
d)
1246 output_data.shape_values(
first + d, k) =
1247 dof_sign * transformed_shape_values[k][
d];
1259 switch (mapping_kind)
1273 transformed_shape_grads);
1274 for (
unsigned int k = 0; k < n_q_points; ++k)
1275 for (
unsigned int d = 0;
d < dim; ++
d)
1276 output_data.shape_gradients[
first + d][k] =
1277 transformed_shape_grads[k][d];
1293 transformed_shape_grads);
1295 for (
unsigned int k = 0; k < n_q_points; ++k)
1296 for (
unsigned int d = 0;
d < spacedim; ++
d)
1297 for (
unsigned int n = 0; n < spacedim; ++n)
1298 transformed_shape_grads[k][d] -=
1299 output_data.shape_values(
first + n, k) *
1302 for (
unsigned int k = 0; k < n_q_points; ++k)
1303 for (
unsigned int d = 0;
d < dim; ++
d)
1304 output_data.shape_gradients[
first + d][k] =
1305 transformed_shape_grads[k][d];
1315 for (
unsigned int k = 0; k < n_q_points; ++k)
1316 fe_data.untransformed_shape_grads[k + offset] =
1317 fe_data.shape_grads[dof_index][k + offset];
1324 transformed_shape_grads);
1326 for (
unsigned int k = 0; k < n_q_points; ++k)
1327 for (
unsigned int d = 0;
d < spacedim; ++
d)
1328 for (
unsigned int n = 0; n < spacedim; ++n)
1329 transformed_shape_grads[k][d] +=
1330 output_data.shape_values(
first + n, k) *
1333 for (
unsigned int k = 0; k < n_q_points; ++k)
1334 for (
unsigned int d = 0;
d < dim; ++
d)
1335 output_data.shape_gradients[
first + d][k] =
1336 transformed_shape_grads[k][d];
1348 for (
unsigned int k = 0; k < n_q_points; ++k)
1349 fe_data.untransformed_shape_grads[k + offset] =
1350 fe_data.shape_grads[dof_index][k + offset];
1357 transformed_shape_grads);
1359 for (
unsigned int k = 0; k < n_q_points; ++k)
1360 for (
unsigned int d = 0;
d < spacedim; ++
d)
1361 for (
unsigned int n = 0; n < spacedim; ++n)
1362 transformed_shape_grads[k][d] +=
1363 (output_data.shape_values(
first + n, k) *
1366 (output_data.shape_values(
first + d, k) *
1369 for (
unsigned int k = 0; k < n_q_points; ++k)
1370 for (
unsigned int d = 0;
d < dim; ++
d)
1371 output_data.shape_gradients[
first + d][k] =
1372 dof_sign * transformed_shape_grads[k][d];
1389 for (
unsigned int k = 0; k < n_q_points; ++k)
1390 fe_data.untransformed_shape_grads[k + offset] =
1391 fe_data.shape_grads[dof_index][k + offset];
1403 transformed_shape_grads);
1405 for (
unsigned int k = 0; k < n_q_points; ++k)
1406 for (
unsigned int d = 0;
d < spacedim; ++
d)
1407 for (
unsigned int n = 0; n < spacedim; ++n)
1408 transformed_shape_grads[k][d] -=
1409 output_data.shape_values(
first + n, k) *
1412 for (
unsigned int k = 0; k < n_q_points; ++k)
1413 for (
unsigned int d = 0;
d < dim; ++
d)
1414 output_data.shape_gradients[
first + d][k] =
1415 dof_sign * transformed_shape_grads[k][d];
1427 switch (mapping_kind)
1432 transformed_shape_hessians =
1442 transformed_shape_hessians);
1444 for (
unsigned int k = 0; k < n_q_points; ++k)
1445 for (
unsigned int d = 0;
d < spacedim; ++
d)
1446 for (
unsigned int n = 0; n < spacedim; ++n)
1447 transformed_shape_hessians[k][d] -=
1448 output_data.shape_gradients[
first + d][k][n] *
1451 for (
unsigned int k = 0; k < n_q_points; ++k)
1452 for (
unsigned int d = 0;
d < dim; ++
d)
1453 output_data.shape_hessians[
first + d][k] =
1454 transformed_shape_hessians[k][d];
1460 for (
unsigned int k = 0; k < n_q_points; ++k)
1461 fe_data.untransformed_shape_hessian_tensors[k + offset] =
1462 fe_data.shape_grad_grads[dof_index][k + offset];
1465 transformed_shape_hessians =
1475 transformed_shape_hessians);
1477 for (
unsigned int k = 0; k < n_q_points; ++k)
1478 for (
unsigned int d = 0;
d < spacedim; ++
d)
1479 for (
unsigned int n = 0; n < spacedim; ++n)
1480 for (
unsigned int i = 0; i < spacedim; ++i)
1481 for (
unsigned int j = 0; j < spacedim; ++j)
1483 transformed_shape_hessians[k][
d][i][j] -=
1484 (output_data.shape_values(
first + n, k) *
1488 (output_data.shape_gradients[
first + d][k][n] *
1491 (output_data.shape_gradients[
first + n][k][i] *
1494 (output_data.shape_gradients[
first + n][k][j] *
1499 for (
unsigned int k = 0; k < n_q_points; ++k)
1500 for (
unsigned int d = 0;
d < dim; ++
d)
1501 output_data.shape_hessians[
first + d][k] =
1502 transformed_shape_hessians[k][d];
1509 for (
unsigned int k = 0; k < n_q_points; ++k)
1510 fe_data.untransformed_shape_hessian_tensors[k + offset] =
1511 fe_data.shape_grad_grads[dof_index][k + offset];
1514 transformed_shape_hessians =
1524 transformed_shape_hessians);
1526 for (
unsigned int k = 0; k < n_q_points; ++k)
1527 for (
unsigned int d = 0;
d < spacedim; ++
d)
1528 for (
unsigned int n = 0; n < spacedim; ++n)
1529 for (
unsigned int i = 0; i < spacedim; ++i)
1530 for (
unsigned int j = 0; j < spacedim; ++j)
1532 transformed_shape_hessians[k][
d][i][j] +=
1533 (output_data.shape_values(
first + n, k) *
1537 (output_data.shape_gradients[
first + n][k][i] *
1540 (output_data.shape_gradients[
first + n][k][j] *
1543 (output_data.shape_gradients[
first + d][k][n] *
1546 for (
unsigned int m = 0; m < spacedim; ++m)
1547 transformed_shape_hessians[k][d][i][j] -=
1549 .jacobian_pushed_forward_grads[k][d][i]
1552 .jacobian_pushed_forward_grads[k][m][n]
1554 output_data.shape_values(
first + n, k)) +
1556 .jacobian_pushed_forward_grads[k][d][m]
1559 .jacobian_pushed_forward_grads[k][m][i]
1561 output_data.shape_values(
first + n, k));
1564 for (
unsigned int k = 0; k < n_q_points; ++k)
1565 for (
unsigned int d = 0;
d < dim; ++
d)
1566 output_data.shape_hessians[
first + d][k] =
1567 transformed_shape_hessians[k][d];
1575 for (
unsigned int k = 0; k < n_q_points; ++k)
1576 fe_data.untransformed_shape_hessian_tensors[k + offset] =
1577 fe_data.shape_grad_grads[dof_index][k + offset];
1580 transformed_shape_hessians =
1590 transformed_shape_hessians);
1592 for (
unsigned int k = 0; k < n_q_points; ++k)
1593 for (
unsigned int d = 0;
d < spacedim; ++
d)
1594 for (
unsigned int n = 0; n < spacedim; ++n)
1595 for (
unsigned int i = 0; i < spacedim; ++i)
1596 for (
unsigned int j = 0; j < spacedim; ++j)
1598 transformed_shape_hessians[k][
d][i][j] +=
1599 (output_data.shape_values(
first + n, k) *
1603 (output_data.shape_gradients[
first + n][k][i] *
1606 (output_data.shape_gradients[
first + n][k][j] *
1609 (output_data.shape_gradients[
first + d][k][n] *
1613 transformed_shape_hessians[k][
d][i][j] -=
1614 (output_data.shape_values(
first + d, k) *
1618 (output_data.shape_gradients[
first + d][k][i] *
1621 (output_data.shape_gradients[
first +
d][k][j] *
1625 for (
unsigned int m = 0; m < spacedim; ++m)
1627 transformed_shape_hessians[k][
d][i][j] -=
1634 output_data.shape_values(
first + n, k)) +
1636 .jacobian_pushed_forward_grads[k][d][m]
1639 .jacobian_pushed_forward_grads[k][m][i]
1641 output_data.shape_values(
first + n, k));
1643 transformed_shape_hessians[k][
d][i][j] +=
1650 output_data.shape_values(
first + d, k)) +
1652 .jacobian_pushed_forward_grads[k][n][m]
1655 .jacobian_pushed_forward_grads[k][m][i]
1657 output_data.shape_values(
first + d, k));
1661 for (
unsigned int k = 0; k < n_q_points; ++k)
1662 for (
unsigned int d = 0;
d < dim; ++
d)
1663 output_data.shape_hessians[
first + d][k] =
1664 dof_sign * transformed_shape_hessians[k][d];
1671 for (
unsigned int k = 0; k < n_q_points; ++k)
1672 fe_data.untransformed_shape_hessian_tensors[k + offset] =
1673 fe_data.shape_grad_grads[dof_index][k + offset];
1676 transformed_shape_hessians =
1686 transformed_shape_hessians);
1688 for (
unsigned int k = 0; k < n_q_points; ++k)
1689 for (
unsigned int d = 0;
d < spacedim; ++
d)
1690 for (
unsigned int n = 0; n < spacedim; ++n)
1691 for (
unsigned int i = 0; i < spacedim; ++i)
1692 for (
unsigned int j = 0; j < spacedim; ++j)
1694 transformed_shape_hessians[k][
d][i][j] -=
1695 (output_data.shape_values(
first + n, k) *
1699 (output_data.shape_gradients[
first + d][k][n] *
1702 (output_data.shape_gradients[
first + n][k][i] *
1705 (output_data.shape_gradients[
first + n][k][j] *
1710 for (
unsigned int k = 0; k < n_q_points; ++k)
1711 for (
unsigned int d = 0;
d < dim; ++
d)
1712 output_data.shape_hessians[
first + d][k] =
1713 dof_sign * transformed_shape_hessians[k][d];
1733template <
int dim,
int spacedim>
1737 const unsigned int face_no,
1738 const unsigned int sub_no,
1753 Assert(
dynamic_cast<const InternalData *
>(&fe_internal) !=
nullptr,
1755 const InternalData &fe_data =
static_cast<const InternalData &
>(fe_internal);
1757 const unsigned int n_q_points = quadrature.
size();
1766 cell->combined_face_orientation(
1769 cell->subface_case(face_no));
1778 std::fill(fe_data.dof_sign_change.begin(),
1779 fe_data.dof_sign_change.end(),
1782 internal::FE_PolyTensor::get_dof_sign_change_nedelec(
1783 cell, *
this, this->mapping_kind, fe_data.dof_sign_change);
1790 internal::FE_PolyTensor::get_dof_sign_change_h_div(cell,
1793 fe_data.dof_sign_change);
1796 const unsigned int first_quad_index = this->get_first_quad_index();
1798 const unsigned int n_dofs_per_quad = this->n_dofs_per_quad();
1799 const unsigned int n_quad_dofs =
1802 for (
unsigned int dof_index = 0; dof_index < this->n_dofs_per_cell();
1809 const bool is_quad_dof =
1811 (first_quad_index <= dof_index) &&
1812 (dof_index < first_quad_index + n_quad_dofs));
1822 double dof_sign = 1.0;
1825 dof_sign = fe_data.dof_sign_change[dof_index];
1833 unsigned int face_index_from_dof_index =
1834 (dof_index - first_quad_index) / (n_dofs_per_quad);
1836 unsigned int local_quad_dof_index = dof_index % n_dofs_per_quad;
1839 if (adjust_quad_dof_sign_for_face_orientation(
1840 local_quad_dof_index,
1841 face_index_from_dof_index,
1842 cell->face_orientation(face_index_from_dof_index),
1843 cell->face_flip(face_index_from_dof_index),
1844 cell->face_rotation(face_index_from_dof_index)))
1848 const MappingKind mapping_kind = get_mapping_kind(dof_index);
1850 const unsigned int first =
1851 output_data.shape_function_to_row_table
1852 [dof_index * this->n_components() +
1853 this->get_nonzero_components(dof_index).first_selected_component()];
1857 switch (mapping_kind)
1861 for (
unsigned int k = 0; k < n_q_points; ++k)
1862 for (
unsigned int d = 0;
d < dim; ++
d)
1863 output_data.shape_values(
first + d, k) =
1864 fe_data.shape_values[dof_index][k + offset][
d];
1872 transformed_shape_values =
1882 transformed_shape_values);
1884 for (
unsigned int k = 0; k < n_q_points; ++k)
1885 for (
unsigned int d = 0;
d < dim; ++
d)
1886 output_data.shape_values(
first + d, k) =
1887 transformed_shape_values[k][
d];
1896 transformed_shape_values =
1907 transformed_shape_values);
1908 for (
unsigned int k = 0; k < n_q_points; ++k)
1909 for (
unsigned int d = 0;
d < dim; ++
d)
1910 output_data.shape_values(
first + d, k) =
1911 dof_sign * transformed_shape_values[k][
d];
1918 transformed_shape_values =
1929 transformed_shape_values);
1931 for (
unsigned int k = 0; k < n_q_points; ++k)
1932 for (
unsigned int d = 0;
d < dim; ++
d)
1933 output_data.shape_values(
first + d, k) =
1934 dof_sign * transformed_shape_values[k][
d];
1950 switch (mapping_kind)
1960 transformed_shape_grads);
1961 for (
unsigned int k = 0; k < n_q_points; ++k)
1962 for (
unsigned int d = 0;
d < dim; ++
d)
1963 output_data.shape_gradients[
first + d][k] =
1964 transformed_shape_grads[k][d];
1976 transformed_shape_grads);
1978 for (
unsigned int k = 0; k < n_q_points; ++k)
1979 for (
unsigned int d = 0;
d < spacedim; ++
d)
1980 for (
unsigned int n = 0; n < spacedim; ++n)
1981 transformed_shape_grads[k][d] -=
1982 output_data.shape_values(
first + n, k) *
1985 for (
unsigned int k = 0; k < n_q_points; ++k)
1986 for (
unsigned int d = 0;
d < dim; ++
d)
1987 output_data.shape_gradients[
first + d][k] =
1988 transformed_shape_grads[k][d];
1995 for (
unsigned int k = 0; k < n_q_points; ++k)
1996 fe_data.untransformed_shape_grads[k + offset] =
1997 fe_data.shape_grads[dof_index][k + offset];
2005 transformed_shape_grads);
2007 for (
unsigned int k = 0; k < n_q_points; ++k)
2008 for (
unsigned int d = 0;
d < spacedim; ++
d)
2009 for (
unsigned int n = 0; n < spacedim; ++n)
2010 transformed_shape_grads[k][d] +=
2011 output_data.shape_values(
first + n, k) *
2014 for (
unsigned int k = 0; k < n_q_points; ++k)
2015 for (
unsigned int d = 0;
d < dim; ++
d)
2016 output_data.shape_gradients[
first + d][k] =
2017 transformed_shape_grads[k][d];
2025 for (
unsigned int k = 0; k < n_q_points; ++k)
2026 fe_data.untransformed_shape_grads[k + offset] =
2027 fe_data.shape_grads[dof_index][k + offset];
2035 transformed_shape_grads);
2037 for (
unsigned int k = 0; k < n_q_points; ++k)
2038 for (
unsigned int d = 0;
d < spacedim; ++
d)
2039 for (
unsigned int n = 0; n < spacedim; ++n)
2040 transformed_shape_grads[k][d] +=
2041 (output_data.shape_values(
first + n, k) *
2044 (output_data.shape_values(
first + d, k) *
2047 for (
unsigned int k = 0; k < n_q_points; ++k)
2048 for (
unsigned int d = 0;
d < dim; ++
d)
2049 output_data.shape_gradients[
first + d][k] =
2050 dof_sign * transformed_shape_grads[k][d];
2066 for (
unsigned int k = 0; k < n_q_points; ++k)
2067 fe_data.untransformed_shape_grads[k + offset] =
2068 fe_data.shape_grads[dof_index][k + offset];
2076 transformed_shape_grads);
2078 for (
unsigned int k = 0; k < n_q_points; ++k)
2079 for (
unsigned int d = 0;
d < spacedim; ++
d)
2080 for (
unsigned int n = 0; n < spacedim; ++n)
2081 transformed_shape_grads[k][d] -=
2082 output_data.shape_values(
first + n, k) *
2085 for (
unsigned int k = 0; k < n_q_points; ++k)
2086 for (
unsigned int d = 0;
d < dim; ++
d)
2087 output_data.shape_gradients[
first + d][k] =
2088 dof_sign * transformed_shape_grads[k][d];
2100 switch (mapping_kind)
2105 transformed_shape_hessians =
2115 transformed_shape_hessians);
2117 for (
unsigned int k = 0; k < n_q_points; ++k)
2118 for (
unsigned int d = 0;
d < spacedim; ++
d)
2119 for (
unsigned int n = 0; n < spacedim; ++n)
2120 transformed_shape_hessians[k][d] -=
2121 output_data.shape_gradients[
first + d][k][n] *
2124 for (
unsigned int k = 0; k < n_q_points; ++k)
2125 for (
unsigned int d = 0;
d < dim; ++
d)
2126 output_data.shape_hessians[
first + d][k] =
2127 transformed_shape_hessians[k][d];
2133 for (
unsigned int k = 0; k < n_q_points; ++k)
2134 fe_data.untransformed_shape_hessian_tensors[k + offset] =
2135 fe_data.shape_grad_grads[dof_index][k + offset];
2138 transformed_shape_hessians =
2148 transformed_shape_hessians);
2150 for (
unsigned int k = 0; k < n_q_points; ++k)
2151 for (
unsigned int d = 0;
d < spacedim; ++
d)
2152 for (
unsigned int n = 0; n < spacedim; ++n)
2153 for (
unsigned int i = 0; i < spacedim; ++i)
2154 for (
unsigned int j = 0; j < spacedim; ++j)
2156 transformed_shape_hessians[k][
d][i][j] -=
2157 (output_data.shape_values(
first + n, k) *
2161 (output_data.shape_gradients[
first + d][k][n] *
2164 (output_data.shape_gradients[
first + n][k][i] *
2167 (output_data.shape_gradients[
first + n][k][j] *
2172 for (
unsigned int k = 0; k < n_q_points; ++k)
2173 for (
unsigned int d = 0;
d < dim; ++
d)
2174 output_data.shape_hessians[
first + d][k] =
2175 transformed_shape_hessians[k][d];
2182 for (
unsigned int k = 0; k < n_q_points; ++k)
2183 fe_data.untransformed_shape_hessian_tensors[k + offset] =
2184 fe_data.shape_grad_grads[dof_index][k + offset];
2187 transformed_shape_hessians =
2197 transformed_shape_hessians);
2199 for (
unsigned int k = 0; k < n_q_points; ++k)
2200 for (
unsigned int d = 0;
d < spacedim; ++
d)
2201 for (
unsigned int n = 0; n < spacedim; ++n)
2202 for (
unsigned int i = 0; i < spacedim; ++i)
2203 for (
unsigned int j = 0; j < spacedim; ++j)
2205 transformed_shape_hessians[k][
d][i][j] +=
2206 (output_data.shape_values(
first + n, k) *
2210 (output_data.shape_gradients[
first + n][k][i] *
2213 (output_data.shape_gradients[
first + n][k][j] *
2216 (output_data.shape_gradients[
first + d][k][n] *
2219 for (
unsigned int m = 0; m < spacedim; ++m)
2220 transformed_shape_hessians[k][d][i][j] -=
2222 .jacobian_pushed_forward_grads[k][d][i]
2225 .jacobian_pushed_forward_grads[k][m][n]
2227 output_data.shape_values(
first + n, k)) +
2229 .jacobian_pushed_forward_grads[k][d][m]
2232 .jacobian_pushed_forward_grads[k][m][i]
2234 output_data.shape_values(
first + n, k));
2237 for (
unsigned int k = 0; k < n_q_points; ++k)
2238 for (
unsigned int d = 0;
d < dim; ++
d)
2239 output_data.shape_hessians[
first + d][k] =
2240 transformed_shape_hessians[k][d];
2248 for (
unsigned int k = 0; k < n_q_points; ++k)
2249 fe_data.untransformed_shape_hessian_tensors[k + offset] =
2250 fe_data.shape_grad_grads[dof_index][k + offset];
2253 transformed_shape_hessians =
2263 transformed_shape_hessians);
2265 for (
unsigned int k = 0; k < n_q_points; ++k)
2266 for (
unsigned int d = 0;
d < spacedim; ++
d)
2267 for (
unsigned int n = 0; n < spacedim; ++n)
2268 for (
unsigned int i = 0; i < spacedim; ++i)
2269 for (
unsigned int j = 0; j < spacedim; ++j)
2271 transformed_shape_hessians[k][
d][i][j] +=
2272 (output_data.shape_values(
first + n, k) *
2276 (output_data.shape_gradients[
first + n][k][i] *
2279 (output_data.shape_gradients[
first + n][k][j] *
2282 (output_data.shape_gradients[
first + d][k][n] *
2286 transformed_shape_hessians[k][
d][i][j] -=
2287 (output_data.shape_values(
first + d, k) *
2291 (output_data.shape_gradients[
first + d][k][i] *
2294 (output_data.shape_gradients[
first +
d][k][j] *
2297 for (
unsigned int m = 0; m < spacedim; ++m)
2299 transformed_shape_hessians[k][
d][i][j] -=
2306 output_data.shape_values(
first + n, k)) +
2308 .jacobian_pushed_forward_grads[k][d][m]
2311 .jacobian_pushed_forward_grads[k][m][i]
2313 output_data.shape_values(
first + n, k));
2315 transformed_shape_hessians[k][
d][i][j] +=
2322 output_data.shape_values(
first + d, k)) +
2324 .jacobian_pushed_forward_grads[k][n][m]
2327 .jacobian_pushed_forward_grads[k][m][i]
2329 output_data.shape_values(
first + d, k));
2333 for (
unsigned int k = 0; k < n_q_points; ++k)
2334 for (
unsigned int d = 0;
d < dim; ++
d)
2335 output_data.shape_hessians[
first + d][k] =
2336 dof_sign * transformed_shape_hessians[k][d];
2343 for (
unsigned int k = 0; k < n_q_points; ++k)
2344 fe_data.untransformed_shape_hessian_tensors[k + offset] =
2345 fe_data.shape_grad_grads[dof_index][k + offset];
2348 transformed_shape_hessians =
2358 transformed_shape_hessians);
2360 for (
unsigned int k = 0; k < n_q_points; ++k)
2361 for (
unsigned int d = 0;
d < spacedim; ++
d)
2362 for (
unsigned int n = 0; n < spacedim; ++n)
2363 for (
unsigned int i = 0; i < spacedim; ++i)
2364 for (
unsigned int j = 0; j < spacedim; ++j)
2366 transformed_shape_hessians[k][
d][i][j] -=
2367 (output_data.shape_values(
first + n, k) *
2371 (output_data.shape_gradients[
first + d][k][n] *
2374 (output_data.shape_gradients[
first + n][k][i] *
2377 (output_data.shape_gradients[
first + n][k][j] *
2382 for (
unsigned int k = 0; k < n_q_points; ++k)
2383 for (
unsigned int d = 0;
d < dim; ++
d)
2384 output_data.shape_hessians[
first + d][k] =
2385 dof_sign * transformed_shape_hessians[k][d];
2405template <
int dim,
int spacedim>
2412 for (
unsigned int i = 0; i < this->n_dofs_per_cell(); ++i)
2414 const MappingKind mapping_kind = get_mapping_kind(i);
2416 switch (mapping_kind)
2507#include "fe_poly_tensor.inst"
ArrayView< std::remove_reference_t< typename std::iterator_traits< Iterator >::reference >, MemorySpaceType > make_array_view(const Iterator begin, const Iterator end)
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) const override
virtual Tensor< 1, dim > shape_grad(const unsigned int i, const Point< dim > &p) const override
virtual Tensor< 2, dim > shape_grad_grad_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const override
virtual double shape_value_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const override
virtual Tensor< 2, dim > shape_grad_grad(const unsigned int i, const Point< dim > &p) 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 Mapping< dim, spacedim > &mapping, const typename Mapping< dim, spacedim >::InternalDataBase &mapping_internal, const internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &mapping_data, const typename FiniteElement< dim, spacedim >::InternalDataBase &fe_internal, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const override
virtual double shape_value(const unsigned int i, const Point< dim > &p) const override
virtual void fill_fe_values(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const CellSimilarity::Similarity cell_similarity, const Quadrature< dim > &quadrature, const Mapping< dim, spacedim > &mapping, const typename Mapping< dim, spacedim >::InternalDataBase &mapping_internal, const internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &mapping_data, const typename FiniteElement< dim, spacedim >::InternalDataBase &fe_internal, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const override
bool adjust_quad_dof_sign_for_face_orientation(const unsigned int index, const unsigned int face_no, const bool face_orientation, const bool face_flip, const bool face_rotation) const
virtual void fill_fe_subface_values(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const unsigned int face_no, const unsigned int sub_no, const Quadrature< dim - 1 > &quadrature, const Mapping< dim, spacedim > &mapping, const typename Mapping< dim, spacedim >::InternalDataBase &mapping_internal, const internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &mapping_data, const typename FiniteElement< dim, spacedim >::InternalDataBase &fe_internal, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const override
MappingKind get_mapping_kind(const unsigned int i) const
FE_PolyTensor(const TensorPolynomialsBase< dim > &polynomials, const FiniteElementData< dim > &fe_data, const std::vector< bool > &restriction_is_additive_flags, const std::vector< ComponentMask > &nonzero_components)
bool single_mapping_kind() const
virtual Tensor< 1, dim > shape_grad_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const override
unsigned int n_dofs_per_face(unsigned int face_no=0, unsigned int child=0) const
virtual unsigned int face_to_cell_index(const unsigned int face_dof_index, const unsigned int face, const unsigned char combined_orientation=ReferenceCell::default_combined_face_orientation()) const
Abstract base class for mapping classes.
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 =0
static DataSetDescriptor subface(const ReferenceCell &reference_cell, const unsigned int face_no, const unsigned int subface_no, const bool face_orientation, const bool face_flip, const bool face_rotation, const unsigned int n_quadrature_points, const internal::SubfaceCase< dim > ref_case=internal::SubfaceCase< dim >::case_isotropic)
static DataSetDescriptor face(const ReferenceCell &reference_cell, const unsigned int face_no, const bool face_orientation, const bool face_flip, const bool face_rotation, const unsigned int n_quadrature_points)
unsigned int size() const
unsigned int size() const
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
#define Assert(cond, exc)
#define AssertDimension(dim1, dim2)
#define AssertIndexRange(index, range)
static ::ExceptionBase & ExcInternalError()
static ::ExceptionBase & ExcDimensionMismatch(std::size_t arg1, std::size_t arg2)
@ update_jacobian_pushed_forward_2nd_derivatives
@ update_contravariant_transformation
Contravariant transformation.
@ update_jacobian_pushed_forward_grads
@ update_hessians
Second derivatives of shape functions.
@ update_values
Shape function values.
@ update_3rd_derivatives
Third derivatives of shape functions.
@ update_covariant_transformation
Covariant transformation.
@ update_gradients
Shape function gradients.
@ update_default
No update.
@ update_piola
Values needed for Piola transform.
@ mapping_covariant_gradient
@ mapping_contravariant_hessian
@ mapping_covariant_hessian
@ mapping_contravariant_gradient
#define DEAL_II_NOT_IMPLEMENTED()
void reference_cell(Triangulation< dim, spacedim > &tria, const ReferenceCell &reference_cell)
SymmetricTensor< 2, dim, Number > d(const Tensor< 2, dim, Number > &F, const Tensor< 2, dim, Number > &dF_dt)
unsigned char combined_face_orientation(const bool face_orientation, const bool face_rotation, const bool face_flip)