886 {
888
893 constexpr auto size_symm = (DIM * (DIM + 1)) / 2;
896
897 auto &locMat = AssemblyDomainEleOp::locMat;
898
899 const auto nb_integration_pts = AssemblyDomainEleOp::getGaussPts().size2();
900 const auto nb_row_base_functions = row_data.getN().size2();
901
902 auto t_res_flow_dstrain =
903 getFTensor4DdgFromMat<DIM, DIM>(
commonDataPtr->resFlowDstrain);
904 auto t_res_flow_dplastic_strain =
905 getFTensor4DdgFromMat<DIM, DIM>(
commonDataPtr->resFlowDstrainDot);
906 auto t_L = FTensor::symm_l_tensor<double, DIM>();
907
908 auto next = [&]() {
909 ++t_res_flow_dstrain;
910 ++t_res_flow_dplastic_strain;
911 };
912
913 auto t_w = AssemblyDomainEleOp::getFTensor0IntegrationWeight();
914 auto t_row_base = row_data.getFTensor0N();
915 for (size_t gg = 0; gg != nb_integration_pts; ++gg) {
916 double alpha = AssemblyDomainEleOp::getMeasure() * t_w;
917 ++t_w;
918
920 t_res_mat(O, L) =
921 alpha * (t_L(
i,
j, O) * ((t_res_flow_dplastic_strain(
i,
j,
k,
l) -
922 t_res_flow_dstrain(
i,
j,
k,
l)) *
924 next();
925
926 size_t rr = 0;
927 for (; rr != AssemblyDomainEleOp::nbRows /
size_symm; ++rr) {
930 auto t_col_base = col_data.getFTensor0N(gg, 0);
931 for (
size_t cc = 0; cc != AssemblyDomainEleOp::nbCols /
size_symm; ++cc) {
932 t_mat(O, L) += ((t_row_base * t_col_base) * t_res_mat(O, L));
933 ++t_mat;
934 ++t_col_base;
935 }
936
937 ++t_row_base;
938 }
939
940 for (; rr < nb_row_base_functions; ++rr)
941 ++t_row_base;
942 }
943
945}
#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< 'l', 3 > l
FTensor::Index< 'j', 3 > j
FTensor::Index< 'k', 3 > k
static auto get_mat_tensor_sym_dtensor_sym(size_t rr, MatrixDouble &mat, FTensor::Number< 2 >)