858 const size_t nb_gauss_pts = AssemblyBoundaryEleOp::getGaussPts().size2();
860 auto &nf = AssemblyBoundaryEleOp::locF;
862 auto t_normal_at_pts = AssemblyBoundaryEleOp::getFTensor1NormalsAtGaussPts();
864 auto t_w = AssemblyBoundaryEleOp::getFTensor0IntegrationWeight();
865 auto t_disp = getFTensor1FromMat<DIM>(
commonDataPtr->contactDisp);
866 auto t_traction = getFTensor1FromMat<DIM>(
commonDataPtr->contactTraction);
867 auto t_coords = AssemblyBoundaryEleOp::getFTensor1CoordsAtGaussPts();
869 size_t nb_base_functions = data.getN().size2() / 3;
870 auto t_base = data.getFTensor1N<3>();
873 BoundaryEleOp::getFTensor1CoordsAtGaussPts(),
874 getFTensor1FromMat<DIM>(
commonDataPtr->contactDisp), nb_gauss_pts);
876 BoundaryEleOp::getFTensor1NormalsAtGaussPts(), nb_gauss_pts);
878 auto t_normal = getFTensor1FromMat<3>(m_normals_at_pts);
880 auto ts_time = AssemblyBoundaryEleOp::getTStime();
881 auto ts_time_step = AssemblyBoundaryEleOp::getTStimeStep();
888 m_spatial_coords, m_normals_at_pts, block_id);
892 m_spatial_coords, m_normals_at_pts, block_id);
895 auto t_grad_sdf = getFTensor1FromMat<3>(m_grad_sdf);
897 for (
size_t gg = 0; gg != nb_gauss_pts; ++gg) {
899 auto t_nf = getFTensor1FromPtr<DIM>(&nf[0]);
901 double jacobian = 1.;
903 jacobian = 2. * M_PI * t_coords(0);
905 const double alpha = t_w * jacobian * AssemblyBoundaryEleOp::getMeasure();
907 auto tn = -t_traction(
i) * t_grad_sdf(
i);
911 t_cP(
i,
j) = (
c * t_grad_sdf(
i)) * t_grad_sdf(
j);
922 t_cP(
i,
j) * t_disp(
j) +
923 c * (t_sdf * t_grad_sdf(
i));
926 for (; bb != AssemblyBoundaryEleOp::nbRows / DIM; ++bb) {
927 const double beta = alpha * (t_base(
i) * t_normal(
i));
928 t_nf(
i) -= beta * t_rhs(
i);
933 for (; bb < nb_base_functions; ++bb)