998 {
1000
1005 constexpr auto size_symm = (DIM * (DIM + 1)) / 2;
1008
1009 auto &locMat = AssemblyDomainEleOp::locMat;
1010
1011 const auto nb_integration_pts = AssemblyDomainEleOp::getGaussPts().size2();
1012 const auto nb_row_base_functions = row_data.getN().size2();
1013
1014 auto t_res_flow_dstrain =
1015 getFTensor4DdgFromMat<DIM, DIM>(
commonDataPtr->resFlowDstrain);
1016 auto t_res_flow_dplastic_strain =
1017 getFTensor4DdgFromMat<DIM, DIM>(
commonDataPtr->resFlowDstrainDot);
1019
1020 auto next = [&]() {
1021 ++t_res_flow_dstrain;
1022 ++t_res_flow_dplastic_strain;
1023 };
1024
1025 auto t_w = AssemblyDomainEleOp::getFTensor0IntegrationWeight();
1026 auto t_row_base = row_data.getFTensor0N();
1027 for (size_t gg = 0; gg != nb_integration_pts; ++gg) {
1028 double alpha = AssemblyDomainEleOp::getMeasure() * t_w;
1029 ++t_w;
1030
1032 t_res_mat(O, L) =
1033 alpha * (t_L(
i,
j, O) * ((t_res_flow_dplastic_strain(
i,
j,
k,
l) -
1034 t_res_flow_dstrain(
i,
j,
k,
l)) *
1036 next();
1037
1038 size_t rr = 0;
1039 for (; rr != AssemblyDomainEleOp::nbRows /
size_symm; ++rr) {
1042 auto t_col_base = col_data.getFTensor0N(gg, 0);
1043 for (
size_t cc = 0; cc != AssemblyDomainEleOp::nbCols /
size_symm; ++cc) {
1044 t_mat(O, L) += ((t_row_base * t_col_base) * t_res_mat(O, L));
1045 ++t_mat;
1046 ++t_col_base;
1047 }
1048
1049 ++t_row_base;
1050 }
1051
1052 for (; rr < nb_row_base_functions; ++rr)
1053 ++t_row_base;
1054 }
1055
1057}
#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 >)
auto symm_L_tensor(FTensor::Number< DIM >)