Skip to content

Commit

Permalink
changed following the review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Gennady Markelov committed May 17, 2024
1 parent ff1b41a commit f52e0c1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ void UPwSmallStrainElement<TDim, TNumNodes>::CalculateAndAddStiffnessMatrix(Matr
{
KRATOS_TRY

Matrix stiffness_matrix = GeoEquationOfMotionUtilities::CalculateStiffnessMatrixGPoint(
const auto stiffness_matrix = GeoEquationOfMotionUtilities::CalculateStiffnessMatrixGPoint(
rVariables.B, rVariables.ConstitutiveMatrix, rVariables.IntegrationCoefficient);
GeoElementUtilities::AssembleUUBlockMatrix(rLeftHandSideMatrix, stiffness_matrix);

Expand Down Expand Up @@ -1332,7 +1332,6 @@ void UPwSmallStrainElement<TDim, TNumNodes>::CalculateAndAddStiffnessForce(Vecto
noalias(rVariables.UVector) =
-1.0 * prod(trans(rVariables.B), mStressVector[GPoint]) * rVariables.IntegrationCoefficient;

// Distribute stiffness block vector into elemental vector
GeoElementUtilities::AssembleUBlockVector(rRightHandSideVector, rVariables.UVector);

KRATOS_CATCH("")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1717,10 +1717,9 @@ void SmallStrainUPwDiffOrderElement::CalculateAndAddStiffnessMatrix(MatrixType&
{
KRATOS_TRY

Matrix stiffness_matrix = GeoEquationOfMotionUtilities::CalculateStiffnessMatrixGPoint(
const auto stiffness_matrix = GeoEquationOfMotionUtilities::CalculateStiffnessMatrixGPoint(
rVariables.B, rVariables.ConstitutiveMatrix, rVariables.IntegrationCoefficient);

// Distribute stiffness block matrix into the elemental matrix
GeoElementUtilities::AssembleUUBlockMatrix(rLeftHandSideMatrix, stiffness_matrix);

KRATOS_CATCH("")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Where $M$ and $K$ are the mass and stiffness matrices respectively and $\alpha_
File equation_of_motion_utilities.h includes
- CalculateMassMatrix function
- CalculateStiffnessMatrixGPoint provides a stiffness matrix for a specific integration point
- CalculateStiffnessMatrix provides a stiffness matrix for all integration points
- CalculateStiffnessMatrix provides a stiffness matrix for an element
- CalculateDampingMatrix function
- CalculateIntegrationCoefficientsInitialConfiguration function that calculates integration coefficient for all integration points

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ class GeoEquationOfMotionUtilities
const Matrix& rConstitutiveMatrix,
double IntegrationCoefficient);

static Matrix CalculateStiffnessMatrix(const std::vector<Matrix>& b_matrices,
const std::vector<Matrix>& constitutive_matrices,
const std::vector<double>& integration_coefficients);
static Matrix CalculateStiffnessMatrix(const std::vector<Matrix>& rBs,
const std::vector<Matrix>& rConstitutiveMatrices,
const std::vector<double>& rIntegrationCoefficients);

}; /* Class GeoTransportEquationUtilities*/
} /* namespace Kratos.*/

0 comments on commit f52e0c1

Please sign in to comment.