1028 {
1032 };
1036 int nb_integration_pts = getGaussPts().size2();
1037 auto t_w = getFTensor0IntegrationWeight();
1038 auto t_traction =
dataAtPts->getFTensorTraction(nb_integration_pts);
1039 auto t_coords = getFTensor1CoordsAtGaussPts();
1040 auto t_spatial_disp =
dataAtPts->getFTensorSmallWL2(nb_integration_pts);
1041
1045
1046 for (auto gg = 0; gg != nb_integration_pts; ++gg) {
1047 double a = t_w * getMeasure();
1048 loc_reaction_forces(
i) +=
a*t_traction(
i);
1049 t_coords_spatial(
i) = t_coords(
i) + t_spatial_disp(
i);
1050 loc_moment_forces(
i) +=
1051 (
a * (FTensor::levi_civita<double>(
i,
j,
k) * t_coords_spatial(
j))) *
1053 ++t_coords;
1054 ++t_spatial_disp;
1055 ++t_w;
1056 ++t_traction;
1057 }
1058
1065
1067}
#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