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 neigbor_cell_id = neighbor_cell_at_face->id();
88 if (((nn + f) % 2 == 0) && this_cell_id < neigbor_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;
177template <
int dim,
int spacedim>
181 const std::vector<bool> & restriction_is_additive_flags,
182 const std::vector<ComponentMask> &nonzero_components)
184 restriction_is_additive_flags,
187 , poly_space(polynomials.clone())
189 cached_point(0) = -1;
197 for (
unsigned int comp = 0; comp < this->n_components(); ++comp)
198 this->component_to_base_table[comp].
first.second = comp;
202 adjust_quad_dof_sign_for_face_orientation_table.resize(
203 this->n_unique_2d_subobjects());
205 for (
unsigned int f = 0; f < this->n_unique_2d_subobjects(); ++f)
207 adjust_quad_dof_sign_for_face_orientation_table[f] =
210 adjust_quad_dof_sign_for_face_orientation_table[f].fill(
false);
217template <
int dim,
int spacedim>
220 , mapping_kind(fe.mapping_kind)
221 , adjust_quad_dof_sign_for_face_orientation_table(
222 fe.adjust_quad_dof_sign_for_face_orientation_table)
223 , poly_space(fe.poly_space->clone())
224 , inverse_node_matrix(fe.inverse_node_matrix)
229template <
int dim,
int spacedim>
233 return mapping_kind.size() == 1;
237template <
int dim,
int spacedim>
240 const unsigned int index,
241 const unsigned int face,
242 const bool face_orientation,
243 const bool face_flip,
244 const bool face_rotation)
const
257 Assert(adjust_quad_dof_sign_for_face_orientation_table
258 [this->n_unique_2d_subobjects() == 1 ? 0 : face]
261 this->n_dofs_per_quad(face),
264 return adjust_quad_dof_sign_for_face_orientation_table
265 [this->n_unique_2d_subobjects() == 1 ? 0 : face](
267 4 *
static_cast<int>(face_orientation) + 2 *
static_cast<int>(face_flip) +
268 static_cast<int>(face_rotation));
272template <
int dim,
int spacedim>
276 if (single_mapping_kind())
277 return mapping_kind[0];
280 return mapping_kind[i];
285template <
int dim,
int spacedim>
297template <
int dim,
int spacedim>
300 const unsigned int i,
302 const unsigned int component)
const
307 std::lock_guard<std::mutex> lock(cache_mutex);
309 if (cached_point != p || cached_values.size() == 0)
312 cached_values.resize(poly_space->n());
314 std::vector<Tensor<4, dim>> dummy1;
315 std::vector<Tensor<5, dim>> dummy2;
316 poly_space->evaluate(
317 p, cached_values, cached_grads, cached_grad_grads, dummy1, dummy2);
321 if (inverse_node_matrix.n_cols() == 0)
322 return cached_values[i][component];
324 for (
unsigned int j = 0; j < inverse_node_matrix.n_cols(); ++j)
325 s += inverse_node_matrix(j, i) * cached_values[j][component];
331template <
int dim,
int spacedim>
342template <
int dim,
int spacedim>
345 const unsigned int i,
347 const unsigned int component)
const
352 std::lock_guard<std::mutex> lock(cache_mutex);
354 if (cached_point != p || cached_grads.size() == 0)
357 cached_grads.resize(poly_space->n());
359 std::vector<Tensor<4, dim>> dummy1;
360 std::vector<Tensor<5, dim>> dummy2;
361 poly_space->evaluate(
362 p, cached_values, cached_grads, cached_grad_grads, dummy1, dummy2);
366 if (inverse_node_matrix.n_cols() == 0)
367 return cached_grads[i][component];
369 for (
unsigned int j = 0; j < inverse_node_matrix.n_cols(); ++j)
370 s += inverse_node_matrix(j, i) * cached_grads[j][component];
377template <
int dim,
int spacedim>
388template <
int dim,
int spacedim>
391 const unsigned int i,
393 const unsigned int component)
const
398 std::lock_guard<std::mutex> lock(cache_mutex);
400 if (cached_point != p || cached_grad_grads.size() == 0)
403 cached_grad_grads.resize(poly_space->n());
405 std::vector<Tensor<4, dim>> dummy1;
406 std::vector<Tensor<5, dim>> dummy2;
407 poly_space->evaluate(
408 p, cached_values, cached_grads, cached_grad_grads, dummy1, dummy2);
412 if (inverse_node_matrix.n_cols() == 0)
413 return cached_grad_grads[i][component];
415 for (
unsigned int j = 0; j < inverse_node_matrix.n_cols(); ++j)
416 s += inverse_node_matrix(i, j) * cached_grad_grads[j][component];
426template <
int dim,
int spacedim>
445 Assert(
dynamic_cast<const InternalData *
>(&fe_internal) !=
nullptr,
447 const InternalData &fe_data =
static_cast<const InternalData &
>(fe_internal);
449 const unsigned int n_q_points = quadrature.
size();
452 fe_data.shape_values.size()[0] == this->n_dofs_per_cell(),
454 this->n_dofs_per_cell()));
456 fe_data.shape_values.size()[1] == n_q_points,
464 std::fill(fe_data.dof_sign_change.begin(),
465 fe_data.dof_sign_change.end(),
467 internal::FE_PolyTensor::get_dof_sign_change_nedelec(cell,
470 fe_data.dof_sign_change);
476 internal::FE_PolyTensor::get_dof_sign_change_h_div(cell,
479 fe_data.dof_sign_change);
482 const unsigned int first_quad_index = this->get_first_quad_index();
484 const unsigned int n_dofs_per_quad = this->n_dofs_per_quad();
485 const unsigned int n_quad_dofs =
488 for (
unsigned int dof_index = 0; dof_index < this->n_dofs_per_cell();
495 const bool is_quad_dof =
497 (first_quad_index <= dof_index) &&
498 (dof_index < first_quad_index + n_quad_dofs));
508 double dof_sign = 1.0;
511 dof_sign = fe_data.dof_sign_change[dof_index];
519 const unsigned int face_index_from_dof_index =
520 (dof_index - first_quad_index) / (n_dofs_per_quad);
522 const unsigned int local_quad_dof_index = dof_index % n_dofs_per_quad;
525 if (adjust_quad_dof_sign_for_face_orientation(
526 local_quad_dof_index,
527 face_index_from_dof_index,
528 cell->face_orientation(face_index_from_dof_index),
529 cell->face_flip(face_index_from_dof_index),
530 cell->face_rotation(face_index_from_dof_index)))
534 const MappingKind mapping_kind = get_mapping_kind(dof_index);
536 const unsigned int first =
537 output_data.shape_function_to_row_table
538 [dof_index * this->n_components() +
539 this->get_nonzero_components(dof_index).first_selected_component()];
553 switch (mapping_kind)
557 for (
unsigned int k = 0; k < n_q_points; ++k)
558 for (
unsigned int d = 0;
d < dim; ++
d)
559 output_data.shape_values(
first + d, k) =
560 fe_data.shape_values[dof_index][k][
d];
573 for (
unsigned int k = 0; k < n_q_points; ++k)
574 for (
unsigned int d = 0;
d < dim; ++
d)
575 output_data.shape_values(
first + d, k) =
576 fe_data.transformed_shape_values[k][
d];
589 for (
unsigned int k = 0; k < n_q_points; ++k)
590 for (
unsigned int d = 0;
d < dim; ++
d)
591 output_data.shape_values(
first + d, k) =
592 dof_sign * fe_data.transformed_shape_values[k][
d];
604 for (
unsigned int k = 0; k < n_q_points; ++k)
605 for (
unsigned int d = 0;
d < dim; ++
d)
606 output_data.shape_values(
first + d, k) =
607 dof_sign * fe_data.transformed_shape_values[k][
d];
625 switch (mapping_kind)
634 for (
unsigned int k = 0; k < n_q_points; ++k)
635 for (
unsigned int d = 0;
d < dim; ++
d)
636 output_data.shape_gradients[
first + d][k] =
637 fe_data.transformed_shape_grads[k][d];
648 for (
unsigned int k = 0; k < n_q_points; ++k)
649 for (
unsigned int d = 0;
d < spacedim; ++
d)
650 for (
unsigned int n = 0; n < spacedim; ++n)
651 fe_data.transformed_shape_grads[k][d] -=
652 output_data.shape_values(
first + n, k) *
655 for (
unsigned int k = 0; k < n_q_points; ++k)
656 for (
unsigned int d = 0;
d < dim; ++
d)
657 output_data.shape_gradients[
first + d][k] =
658 fe_data.transformed_shape_grads[k][d];
664 for (
unsigned int k = 0; k < n_q_points; ++k)
665 fe_data.untransformed_shape_grads[k] =
666 fe_data.shape_grads[dof_index][k];
673 for (
unsigned int k = 0; k < n_q_points; ++k)
674 for (
unsigned int d = 0;
d < spacedim; ++
d)
675 for (
unsigned int n = 0; n < spacedim; ++n)
676 fe_data.transformed_shape_grads[k][d] +=
677 output_data.shape_values(
first + n, k) *
681 for (
unsigned int k = 0; k < n_q_points; ++k)
682 for (
unsigned int d = 0;
d < dim; ++
d)
683 output_data.shape_gradients[
first + d][k] =
684 fe_data.transformed_shape_grads[k][d];
691 for (
unsigned int k = 0; k < n_q_points; ++k)
692 fe_data.untransformed_shape_grads[k] =
693 fe_data.shape_grads[dof_index][k];
700 for (
unsigned int k = 0; k < n_q_points; ++k)
701 for (
unsigned int d = 0;
d < spacedim; ++
d)
702 for (
unsigned int n = 0; n < spacedim; ++n)
703 fe_data.transformed_shape_grads[k][d] +=
704 (output_data.shape_values(
first + n, k) *
707 (output_data.shape_values(
first + d, k) *
710 for (
unsigned int k = 0; k < n_q_points; ++k)
711 for (
unsigned int d = 0;
d < dim; ++
d)
712 output_data.shape_gradients[
first + d][k] =
713 dof_sign * fe_data.transformed_shape_grads[k][d];
730 for (
unsigned int k = 0; k < n_q_points; ++k)
731 fe_data.untransformed_shape_grads[k] =
732 fe_data.shape_grads[dof_index][k];
740 for (
unsigned int k = 0; k < n_q_points; ++k)
741 for (
unsigned int d = 0;
d < spacedim; ++
d)
742 for (
unsigned int n = 0; n < spacedim; ++n)
743 fe_data.transformed_shape_grads[k][d] -=
744 output_data.shape_values(
first + n, k) *
747 for (
unsigned int k = 0; k < n_q_points; ++k)
748 for (
unsigned int d = 0;
d < dim; ++
d)
749 output_data.shape_gradients[
first + d][k] =
750 dof_sign * fe_data.transformed_shape_grads[k][d];
768 switch (mapping_kind)
778 for (
unsigned int k = 0; k < n_q_points; ++k)
779 for (
unsigned int d = 0;
d < spacedim; ++
d)
780 for (
unsigned int n = 0; n < spacedim; ++n)
781 fe_data.transformed_shape_hessians[k][d] -=
782 output_data.shape_gradients[
first + d][k][n] *
785 for (
unsigned int k = 0; k < n_q_points; ++k)
786 for (
unsigned int d = 0;
d < dim; ++
d)
787 output_data.shape_hessians[
first + d][k] =
788 fe_data.transformed_shape_hessians[k][d];
794 for (
unsigned int k = 0; k < n_q_points; ++k)
795 fe_data.untransformed_shape_hessian_tensors[k] =
796 fe_data.shape_grad_grads[dof_index][k];
800 fe_data.untransformed_shape_hessian_tensors),
805 for (
unsigned int k = 0; k < n_q_points; ++k)
806 for (
unsigned int d = 0;
d < spacedim; ++
d)
807 for (
unsigned int n = 0; n < spacedim; ++n)
808 for (
unsigned int i = 0; i < spacedim; ++i)
809 for (
unsigned int j = 0; j < spacedim; ++j)
811 fe_data.transformed_shape_hessians[k][
d][i][j] -=
812 (output_data.shape_values(
first + n, k) *
816 (output_data.shape_gradients[
first + d][k][n] *
819 (output_data.shape_gradients[
first + n][k][i] *
822 (output_data.shape_gradients[
first + n][k][j] *
827 for (
unsigned int k = 0; k < n_q_points; ++k)
828 for (
unsigned int d = 0;
d < dim; ++
d)
829 output_data.shape_hessians[
first + d][k] =
830 fe_data.transformed_shape_hessians[k][d];
836 for (
unsigned int k = 0; k < n_q_points; ++k)
837 fe_data.untransformed_shape_hessian_tensors[k] =
838 fe_data.shape_grad_grads[dof_index][k];
842 fe_data.untransformed_shape_hessian_tensors),
847 for (
unsigned int k = 0; k < n_q_points; ++k)
848 for (
unsigned int d = 0;
d < spacedim; ++
d)
849 for (
unsigned int n = 0; n < spacedim; ++n)
850 for (
unsigned int i = 0; i < spacedim; ++i)
851 for (
unsigned int j = 0; j < spacedim; ++j)
853 fe_data.transformed_shape_hessians[k][
d][i][j] +=
854 (output_data.shape_values(
first + n, k) *
858 (output_data.shape_gradients[
first + n][k][i] *
861 (output_data.shape_gradients[
first + n][k][j] *
864 (output_data.shape_gradients[
first + d][k][n] *
867 for (
unsigned int m = 0; m < spacedim; ++m)
869 .transformed_shape_hessians[k][d][i][j] -=
871 .jacobian_pushed_forward_grads[k][d][i]
874 .jacobian_pushed_forward_grads[k][m][n]
876 output_data.shape_values(
first + n, k)) +
878 .jacobian_pushed_forward_grads[k][d][m]
881 .jacobian_pushed_forward_grads[k][m][i]
883 output_data.shape_values(
first + n, k));
886 for (
unsigned int k = 0; k < n_q_points; ++k)
887 for (
unsigned int d = 0;
d < dim; ++
d)
888 output_data.shape_hessians[
first + d][k] =
889 fe_data.transformed_shape_hessians[k][d];
896 for (
unsigned int k = 0; k < n_q_points; ++k)
897 fe_data.untransformed_shape_hessian_tensors[k] =
898 fe_data.shape_grad_grads[dof_index][k];
902 fe_data.untransformed_shape_hessian_tensors),
907 for (
unsigned int k = 0; k < n_q_points; ++k)
908 for (
unsigned int d = 0;
d < spacedim; ++
d)
909 for (
unsigned int n = 0; n < spacedim; ++n)
910 for (
unsigned int i = 0; i < spacedim; ++i)
911 for (
unsigned int j = 0; j < spacedim; ++j)
913 fe_data.transformed_shape_hessians[k][
d][i][j] +=
914 (output_data.shape_values(
first + n, k) *
918 (output_data.shape_gradients[
first + n][k][i] *
921 (output_data.shape_gradients[
first + n][k][j] *
924 (output_data.shape_gradients[
first + d][k][n] *
928 fe_data.transformed_shape_hessians[k][
d][i][j] -=
929 (output_data.shape_values(
first + d, k) *
933 (output_data.shape_gradients[
first + d][k][i] *
936 (output_data.shape_gradients[
first +
d][k][j] *
940 for (
unsigned int m = 0; m < spacedim; ++m)
943 .transformed_shape_hessians[k][
d][i][j] -=
950 output_data.shape_values(
first + n, k)) +
952 .jacobian_pushed_forward_grads[k][d][m]
955 .jacobian_pushed_forward_grads[k][m][i]
957 output_data.shape_values(
first + n, k));
960 .transformed_shape_hessians[k][
d][i][j] +=
967 output_data.shape_values(
first + d, k)) +
969 .jacobian_pushed_forward_grads[k][n][m]
972 .jacobian_pushed_forward_grads[k][m][i]
974 output_data.shape_values(
first + d, k));
978 for (
unsigned int k = 0; k < n_q_points; ++k)
979 for (
unsigned int d = 0;
d < dim; ++
d)
980 output_data.shape_hessians[
first + d][k] =
981 dof_sign * fe_data.transformed_shape_hessians[k][d];
988 for (
unsigned int k = 0; k < n_q_points; ++k)
989 fe_data.untransformed_shape_hessian_tensors[k] =
990 fe_data.shape_grad_grads[dof_index][k];
994 fe_data.untransformed_shape_hessian_tensors),
999 for (
unsigned int k = 0; k < n_q_points; ++k)
1000 for (
unsigned int d = 0;
d < spacedim; ++
d)
1001 for (
unsigned int n = 0; n < spacedim; ++n)
1002 for (
unsigned int i = 0; i < spacedim; ++i)
1003 for (
unsigned int j = 0; j < spacedim; ++j)
1005 fe_data.transformed_shape_hessians[k][
d][i][j] -=
1006 (output_data.shape_values(
first + n, k) *
1010 (output_data.shape_gradients[
first + d][k][n] *
1013 (output_data.shape_gradients[
first + n][k][i] *
1016 (output_data.shape_gradients[
first + n][k][j] *
1021 for (
unsigned int k = 0; k < n_q_points; ++k)
1022 for (
unsigned int d = 0;
d < dim; ++
d)
1023 output_data.shape_hessians[
first + d][k] =
1024 dof_sign * fe_data.transformed_shape_hessians[k][d];
1048template <
int dim,
int spacedim>
1052 const unsigned int face_no,
1069 Assert(
dynamic_cast<const InternalData *
>(&fe_internal) !=
nullptr,
1071 const InternalData &fe_data =
static_cast<const InternalData &
>(fe_internal);
1073 const unsigned int n_q_points = quadrature[0].
size();
1081 cell->face_orientation(face_no),
1082 cell->face_flip(face_no),
1083 cell->face_rotation(face_no),
1093 std::fill(fe_data.dof_sign_change.begin(),
1094 fe_data.dof_sign_change.end(),
1096 internal::FE_PolyTensor::get_dof_sign_change_nedelec(cell,
1099 fe_data.dof_sign_change);
1105 internal::FE_PolyTensor::get_dof_sign_change_h_div(cell,
1108 fe_data.dof_sign_change);
1111 const unsigned int first_quad_index = this->get_first_quad_index();
1113 const unsigned int n_dofs_per_quad = this->n_dofs_per_quad();
1114 const unsigned int n_quad_dofs =
1117 for (
unsigned int dof_index = 0; dof_index < this->n_dofs_per_cell();
1124 const bool is_quad_dof =
1126 (first_quad_index <= dof_index) &&
1127 (dof_index < first_quad_index + n_quad_dofs));
1137 double dof_sign = 1.0;
1140 dof_sign = fe_data.dof_sign_change[dof_index];
1148 unsigned int face_index_from_dof_index =
1149 (dof_index - first_quad_index) / (n_dofs_per_quad);
1151 unsigned int local_quad_dof_index = dof_index % n_dofs_per_quad;
1154 if (adjust_quad_dof_sign_for_face_orientation(
1155 local_quad_dof_index,
1156 face_index_from_dof_index,
1157 cell->face_orientation(face_index_from_dof_index),
1158 cell->face_flip(face_index_from_dof_index),
1159 cell->face_rotation(face_index_from_dof_index)))
1163 const MappingKind mapping_kind = get_mapping_kind(dof_index);
1165 const unsigned int first =
1166 output_data.shape_function_to_row_table
1167 [dof_index * this->n_components() +
1168 this->get_nonzero_components(dof_index).first_selected_component()];
1172 switch (mapping_kind)
1176 for (
unsigned int k = 0; k < n_q_points; ++k)
1177 for (
unsigned int d = 0;
d < dim; ++
d)
1178 output_data.shape_values(
first + d, k) =
1179 fe_data.shape_values[dof_index][k + offset][
d];
1187 transformed_shape_values =
1197 transformed_shape_values);
1199 for (
unsigned int k = 0; k < n_q_points; ++k)
1200 for (
unsigned int d = 0;
d < dim; ++
d)
1201 output_data.shape_values(
first + d, k) =
1202 transformed_shape_values[k][
d];
1210 transformed_shape_values =
1220 transformed_shape_values);
1221 for (
unsigned int k = 0; k < n_q_points; ++k)
1222 for (
unsigned int d = 0;
d < dim; ++
d)
1223 output_data.shape_values(
first + d, k) =
1224 dof_sign * transformed_shape_values[k][
d];
1231 transformed_shape_values =
1241 transformed_shape_values);
1243 for (
unsigned int k = 0; k < n_q_points; ++k)
1244 for (
unsigned int d = 0;
d < dim; ++
d)
1245 output_data.shape_values(
first + d, k) =
1246 dof_sign * transformed_shape_values[k][
d];
1258 switch (mapping_kind)
1272 transformed_shape_grads);
1273 for (
unsigned int k = 0; k < n_q_points; ++k)
1274 for (
unsigned int d = 0;
d < dim; ++
d)
1275 output_data.shape_gradients[
first + d][k] =
1276 transformed_shape_grads[k][d];
1292 transformed_shape_grads);
1294 for (
unsigned int k = 0; k < n_q_points; ++k)
1295 for (
unsigned int d = 0;
d < spacedim; ++
d)
1296 for (
unsigned int n = 0; n < spacedim; ++n)
1297 transformed_shape_grads[k][d] -=
1298 output_data.shape_values(
first + n, k) *
1301 for (
unsigned int k = 0; k < n_q_points; ++k)
1302 for (
unsigned int d = 0;
d < dim; ++
d)
1303 output_data.shape_gradients[
first + d][k] =
1304 transformed_shape_grads[k][d];
1314 for (
unsigned int k = 0; k < n_q_points; ++k)
1315 fe_data.untransformed_shape_grads[k + offset] =
1316 fe_data.shape_grads[dof_index][k + offset];
1323 transformed_shape_grads);
1325 for (
unsigned int k = 0; k < n_q_points; ++k)
1326 for (
unsigned int d = 0;
d < spacedim; ++
d)
1327 for (
unsigned int n = 0; n < spacedim; ++n)
1328 transformed_shape_grads[k][d] +=
1329 output_data.shape_values(
first + n, k) *
1332 for (
unsigned int k = 0; k < n_q_points; ++k)
1333 for (
unsigned int d = 0;
d < dim; ++
d)
1334 output_data.shape_gradients[
first + d][k] =
1335 transformed_shape_grads[k][d];
1347 for (
unsigned int k = 0; k < n_q_points; ++k)
1348 fe_data.untransformed_shape_grads[k + offset] =
1349 fe_data.shape_grads[dof_index][k + offset];
1356 transformed_shape_grads);
1358 for (
unsigned int k = 0; k < n_q_points; ++k)
1359 for (
unsigned int d = 0;
d < spacedim; ++
d)
1360 for (
unsigned int n = 0; n < spacedim; ++n)
1361 transformed_shape_grads[k][d] +=
1362 (output_data.shape_values(
first + n, k) *
1365 (output_data.shape_values(
first + d, k) *
1368 for (
unsigned int k = 0; k < n_q_points; ++k)
1369 for (
unsigned int d = 0;
d < dim; ++
d)
1370 output_data.shape_gradients[
first + d][k] =
1371 dof_sign * transformed_shape_grads[k][d];
1388 for (
unsigned int k = 0; k < n_q_points; ++k)
1389 fe_data.untransformed_shape_grads[k + offset] =
1390 fe_data.shape_grads[dof_index][k + offset];
1402 transformed_shape_grads);
1404 for (
unsigned int k = 0; k < n_q_points; ++k)
1405 for (
unsigned int d = 0;
d < spacedim; ++
d)
1406 for (
unsigned int n = 0; n < spacedim; ++n)
1407 transformed_shape_grads[k][d] -=
1408 output_data.shape_values(
first + n, k) *
1411 for (
unsigned int k = 0; k < n_q_points; ++k)
1412 for (
unsigned int d = 0;
d < dim; ++
d)
1413 output_data.shape_gradients[
first + d][k] =
1414 dof_sign * transformed_shape_grads[k][d];
1426 switch (mapping_kind)
1431 transformed_shape_hessians =
1441 transformed_shape_hessians);
1443 for (
unsigned int k = 0; k < n_q_points; ++k)
1444 for (
unsigned int d = 0;
d < spacedim; ++
d)
1445 for (
unsigned int n = 0; n < spacedim; ++n)
1446 transformed_shape_hessians[k][d] -=
1447 output_data.shape_gradients[
first + d][k][n] *
1450 for (
unsigned int k = 0; k < n_q_points; ++k)
1451 for (
unsigned int d = 0;
d < dim; ++
d)
1452 output_data.shape_hessians[
first + d][k] =
1453 transformed_shape_hessians[k][d];
1459 for (
unsigned int k = 0; k < n_q_points; ++k)
1460 fe_data.untransformed_shape_hessian_tensors[k + offset] =
1461 fe_data.shape_grad_grads[dof_index][k + offset];
1464 transformed_shape_hessians =
1474 transformed_shape_hessians);
1476 for (
unsigned int k = 0; k < n_q_points; ++k)
1477 for (
unsigned int d = 0;
d < spacedim; ++
d)
1478 for (
unsigned int n = 0; n < spacedim; ++n)
1479 for (
unsigned int i = 0; i < spacedim; ++i)
1480 for (
unsigned int j = 0; j < spacedim; ++j)
1482 transformed_shape_hessians[k][
d][i][j] -=
1483 (output_data.shape_values(
first + n, k) *
1487 (output_data.shape_gradients[
first + d][k][n] *
1490 (output_data.shape_gradients[
first + n][k][i] *
1493 (output_data.shape_gradients[
first + n][k][j] *
1498 for (
unsigned int k = 0; k < n_q_points; ++k)
1499 for (
unsigned int d = 0;
d < dim; ++
d)
1500 output_data.shape_hessians[
first + d][k] =
1501 transformed_shape_hessians[k][d];
1508 for (
unsigned int k = 0; k < n_q_points; ++k)
1509 fe_data.untransformed_shape_hessian_tensors[k + offset] =
1510 fe_data.shape_grad_grads[dof_index][k + offset];
1513 transformed_shape_hessians =
1523 transformed_shape_hessians);
1525 for (
unsigned int k = 0; k < n_q_points; ++k)
1526 for (
unsigned int d = 0;
d < spacedim; ++
d)
1527 for (
unsigned int n = 0; n < spacedim; ++n)
1528 for (
unsigned int i = 0; i < spacedim; ++i)
1529 for (
unsigned int j = 0; j < spacedim; ++j)
1531 transformed_shape_hessians[k][
d][i][j] +=
1532 (output_data.shape_values(
first + n, k) *
1536 (output_data.shape_gradients[
first + n][k][i] *
1539 (output_data.shape_gradients[
first + n][k][j] *
1542 (output_data.shape_gradients[
first + d][k][n] *
1545 for (
unsigned int m = 0; m < spacedim; ++m)
1546 transformed_shape_hessians[k][d][i][j] -=
1548 .jacobian_pushed_forward_grads[k][d][i]
1551 .jacobian_pushed_forward_grads[k][m][n]
1553 output_data.shape_values(
first + n, k)) +
1555 .jacobian_pushed_forward_grads[k][d][m]
1558 .jacobian_pushed_forward_grads[k][m][i]
1560 output_data.shape_values(
first + n, k));
1563 for (
unsigned int k = 0; k < n_q_points; ++k)
1564 for (
unsigned int d = 0;
d < dim; ++
d)
1565 output_data.shape_hessians[
first + d][k] =
1566 transformed_shape_hessians[k][d];
1574 for (
unsigned int k = 0; k < n_q_points; ++k)
1575 fe_data.untransformed_shape_hessian_tensors[k + offset] =
1576 fe_data.shape_grad_grads[dof_index][k + offset];
1579 transformed_shape_hessians =
1589 transformed_shape_hessians);
1591 for (
unsigned int k = 0; k < n_q_points; ++k)
1592 for (
unsigned int d = 0;
d < spacedim; ++
d)
1593 for (
unsigned int n = 0; n < spacedim; ++n)
1594 for (
unsigned int i = 0; i < spacedim; ++i)
1595 for (
unsigned int j = 0; j < spacedim; ++j)
1597 transformed_shape_hessians[k][
d][i][j] +=
1598 (output_data.shape_values(
first + n, k) *
1602 (output_data.shape_gradients[
first + n][k][i] *
1605 (output_data.shape_gradients[
first + n][k][j] *
1608 (output_data.shape_gradients[
first + d][k][n] *
1612 transformed_shape_hessians[k][
d][i][j] -=
1613 (output_data.shape_values(
first + d, k) *
1617 (output_data.shape_gradients[
first + d][k][i] *
1620 (output_data.shape_gradients[
first +
d][k][j] *
1624 for (
unsigned int m = 0; m < spacedim; ++m)
1626 transformed_shape_hessians[k][
d][i][j] -=
1633 output_data.shape_values(
first + n, k)) +
1635 .jacobian_pushed_forward_grads[k][d][m]
1638 .jacobian_pushed_forward_grads[k][m][i]
1640 output_data.shape_values(
first + n, k));
1642 transformed_shape_hessians[k][
d][i][j] +=
1649 output_data.shape_values(
first + d, k)) +
1651 .jacobian_pushed_forward_grads[k][n][m]
1654 .jacobian_pushed_forward_grads[k][m][i]
1656 output_data.shape_values(
first + d, k));
1660 for (
unsigned int k = 0; k < n_q_points; ++k)
1661 for (
unsigned int d = 0;
d < dim; ++
d)
1662 output_data.shape_hessians[
first + d][k] =
1663 dof_sign * transformed_shape_hessians[k][d];
1670 for (
unsigned int k = 0; k < n_q_points; ++k)
1671 fe_data.untransformed_shape_hessian_tensors[k + offset] =
1672 fe_data.shape_grad_grads[dof_index][k + offset];
1675 transformed_shape_hessians =
1685 transformed_shape_hessians);
1687 for (
unsigned int k = 0; k < n_q_points; ++k)
1688 for (
unsigned int d = 0;
d < spacedim; ++
d)
1689 for (
unsigned int n = 0; n < spacedim; ++n)
1690 for (
unsigned int i = 0; i < spacedim; ++i)
1691 for (
unsigned int j = 0; j < spacedim; ++j)
1693 transformed_shape_hessians[k][
d][i][j] -=
1694 (output_data.shape_values(
first + n, k) *
1698 (output_data.shape_gradients[
first + d][k][n] *
1701 (output_data.shape_gradients[
first + n][k][i] *
1704 (output_data.shape_gradients[
first + n][k][j] *
1709 for (
unsigned int k = 0; k < n_q_points; ++k)
1710 for (
unsigned int d = 0;
d < dim; ++
d)
1711 output_data.shape_hessians[
first + d][k] =
1712 dof_sign * transformed_shape_hessians[k][d];
1732template <
int dim,
int spacedim>
1736 const unsigned int face_no,
1737 const unsigned int sub_no,
1752 Assert(
dynamic_cast<const InternalData *
>(&fe_internal) !=
nullptr,
1754 const InternalData &fe_data =
static_cast<const InternalData &
>(fe_internal);
1756 const unsigned int n_q_points = quadrature.
size();
1765 cell->face_orientation(face_no),
1766 cell->face_flip(face_no),
1767 cell->face_rotation(face_no),
1769 cell->subface_case(face_no));
1778 std::fill(fe_data.dof_sign_change.begin(),
1779 fe_data.dof_sign_change.end(),
1781 internal::FE_PolyTensor::get_dof_sign_change_nedelec(cell,
1784 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< typename std::remove_reference< typename std::iterator_traits< Iterator >::reference >::type, 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 bool face_orientation=true, const bool face_flip=false, const bool face_rotation=false) 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
static ::ExceptionBase & ExcNotImplemented()
#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
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)