Skip to content

Commit

Permalink
used SetConstitutiveParameters in CalculateAnyOfMaterialResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
Gennady Markelov committed May 16, 2024
1 parent 7717dc0 commit ce42098
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1877,12 +1877,10 @@ void UPwSmallStrainElement<TDim, TNumNodes>::CalculateAnyOfMaterialResponse(
GeoMechanicsMathUtilities::CalculateDeterminants(rDeformationGradients);

for (unsigned int GPoint = 0; GPoint < rDeformationGradients.size(); ++GPoint) {
rConstitutiveParameters.SetConstitutiveMatrix(rConstitutiveMatrices[GPoint]);
rConstitutiveParameters.SetStrainVector(rStrainVectors[GPoint]);
rConstitutiveParameters.SetShapeFunctionsDerivatives(rDNu_DXContainer[GPoint]);
rConstitutiveParameters.SetShapeFunctionsValues(row(rNuContainer, GPoint));
rConstitutiveParameters.SetDeformationGradientF(rDeformationGradients[GPoint]);
rConstitutiveParameters.SetDeterminantF(determinants_of_deformation_gradients[GPoint]);
ConstitutiveLawUtilities::SetConstitutiveParameters(
rConstitutiveParameters, rStrainVectors[GPoint], rConstitutiveMatrices[GPoint],
row(rNuContainer, GPoint), rDNu_DXContainer[GPoint], rDeformationGradients[GPoint],
determinants_of_deformation_gradients[GPoint]);
rConstitutiveParameters.SetStressVector(rStressVectors[GPoint]);

mConstitutiveLawVector[GPoint]->CalculateMaterialResponseCauchy(rConstitutiveParameters);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2149,12 +2149,10 @@ void SmallStrainUPwDiffOrderElement::CalculateAnyOfMaterialResponse(
GeoMechanicsMathUtilities::CalculateDeterminants(rDeformationGradients);

for (unsigned int GPoint = 0; GPoint < rDeformationGradients.size(); ++GPoint) {
rConstitutiveParameters.SetConstitutiveMatrix(rConstitutiveMatrices[GPoint]);
rConstitutiveParameters.SetStrainVector(rStrainVectors[GPoint]);
rConstitutiveParameters.SetShapeFunctionsDerivatives(rDNu_DXContainer[GPoint]);
rConstitutiveParameters.SetShapeFunctionsValues(row(rNuContainer, GPoint));
rConstitutiveParameters.SetDeformationGradientF(rDeformationGradients[GPoint]);
rConstitutiveParameters.SetDeterminantF(determinants_of_deformation_gradients[GPoint]);
ConstitutiveLawUtilities::SetConstitutiveParameters(
rConstitutiveParameters, rStrainVectors[GPoint], rConstitutiveMatrices[GPoint],
row(rNuContainer, GPoint), rDNu_DXContainer[GPoint], rDeformationGradients[GPoint],
determinants_of_deformation_gradients[GPoint]);
rConstitutiveParameters.SetStressVector(rStressVectors[GPoint]);

mConstitutiveLawVector[GPoint]->CalculateMaterialResponseCauchy(rConstitutiveParameters);
Expand Down

0 comments on commit ce42098

Please sign in to comment.