976 {
980 };
984 int nb_integration_pts = getGaussPts().size2();
985 auto t_w = getFTensor0IntegrationWeight();
986 auto t_traction =
dataAtPts->getFTensorTraction(nb_integration_pts);
987 auto t_coords = getFTensor1CoordsAtGaussPts();
988 auto t_spatial_disp =
dataAtPts->getFTensorSmallWL2(nb_integration_pts);
989
991
995
996 for (auto gg = 0; gg != nb_integration_pts; ++gg) {
997 double a = t_w * getMeasure();
998 loc_reaction_forces(
i) +=
a*t_traction(
i);
999 t_coords_spatial(
i) = t_coords(
i) + t_spatial_disp(
i);
1000
1001 loc_moment_forces(
i) +=
1002 (
a * (FTensor::levi_civita<double>(
i,
j,
k) * t_coords_spatial(
j))) *
1004 ++t_coords;
1005 ++t_spatial_disp;
1006 ++t_w;
1007 ++t_traction;
1008 }
1009
1016
1018}
#define FTENSOR_INDEX(DIM, I)
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
FTensor::Index< 'i', SPACE_DIM > i
FTensor::Index< 'j', 3 > j
FTensor::Index< 'k', 3 > k