971 const size_t nb_gauss_pts = AssemblyBoundaryEleOp::getGaussPts().size2();
972 auto &locMat = AssemblyBoundaryEleOp::locMat;
974 auto t_normal_at_pts = AssemblyBoundaryEleOp::getFTensor1NormalsAtGaussPts();
975 auto t_traction = getFTensor1FromMat<DIM>(
commonDataPtr->contactTraction);
976 auto t_coords = AssemblyBoundaryEleOp::getFTensor1CoordsAtGaussPts();
978 auto t_w = AssemblyBoundaryEleOp::getFTensor0IntegrationWeight();
979 auto t_row_base = row_data.getFTensor1N<3>();
980 size_t nb_face_functions = row_data.getN().size2() / 3;
985 BoundaryEleOp::getFTensor1CoordsAtGaussPts(),
986 getFTensor1FromMat<DIM>(
commonDataPtr->contactDisp), nb_gauss_pts);
988 BoundaryEleOp::getFTensor1NormalsAtGaussPts(), nb_gauss_pts);
990 auto t_normal = getFTensor1FromMat<3>(m_normals_at_pts);
992 auto ts_time = AssemblyBoundaryEleOp::getTStime();
993 auto ts_time_step = AssemblyBoundaryEleOp::getTStimeStep();
1000 m_spatial_coords, m_normals_at_pts, block_id);
1004 m_spatial_coords, m_normals_at_pts, block_id);
1008 m_spatial_coords, m_normals_at_pts, block_id);
1011 auto t_grad_sdf = getFTensor1FromMat<3>(m_grad_sdf);
1012 auto t_hess_sdf = getFTensor2SymmetricFromMat<3>(m_hess_sdf);
1014 for (
size_t gg = 0; gg != nb_gauss_pts; ++gg) {
1016 double jacobian = 1.;
1018 jacobian = 2. * M_PI * t_coords(0);
1020 const double alpha = t_w * jacobian * AssemblyBoundaryEleOp::getMeasure();
1022 auto tn = -t_traction(
i) * t_grad_sdf(
i);
1026 t_cP(
i,
j) = (
c * t_grad_sdf(
i)) * t_grad_sdf(
j);
1036 (t_hess_sdf(
i,
j) * (t_grad_sdf(
k) * t_traction(
k)) +
1037 t_grad_sdf(
i) * t_hess_sdf(
k,
j) * t_traction(
k)) +
1038 c * t_sdf * t_hess_sdf(
i,
j);
1042 for (; rr != AssemblyBoundaryEleOp::nbRows / DIM; ++rr) {
1044 auto t_mat = getFTensor2FromArray<DIM, DIM, DIM>(locMat, DIM * rr);
1046 const double row_base = t_row_base(
i) * t_normal(
i);
1048 auto t_col_base = col_data.getFTensor0N(gg, 0);
1049 for (
size_t cc = 0; cc != AssemblyBoundaryEleOp::nbCols / DIM; ++cc) {
1050 const double beta = alpha * row_base * t_col_base;
1052 t_mat(
i,
j) -= beta * t_res_dU(
i,
j);
1060 for (; rr < nb_face_functions; ++rr)