Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLApp] Registering Plane Strain iso+kin plasticity #11999

Merged
merged 7 commits into from
Jan 31, 2024

Conversation

AlejandroCornejo
Copy link
Member

@AlejandroCornejo AlejandroCornejo commented Jan 31, 2024

📝 Description
That's it. Just registering the plane strain version of the plasticity laws. Some minor optimizations in cls.

@SergioJimenezReyes @rubenzorrilla

@@ -101,6 +101,30 @@ void KratosConstitutiveLawsApplication::Register()
KRATOS_REGISTER_CONSTITUTIVE_LAW("SmallStrainIsotropicPlasticity3DTrescaMohrCoulomb", mSmallStrainIsotropicPlasticity3DTrescaMohrCoulomb);
KRATOS_REGISTER_CONSTITUTIVE_LAW("SmallStrainIsotropicPlasticity3DDruckerPragerMohrCoulomb", mSmallStrainIsotropicPlasticity3DDruckerPragerMohrCoulomb);

KRATOS_REGISTER_CONSTITUTIVE_LAW("SmallStrainIsotropicPlasticityPlaneStrainVonMisesVonMises", mSmallStrainIsotropicPlasticityPlaneStrainVonMisesVonMises);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MOAR LAWS!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

People are asking for them!

@@ -279,8 +279,8 @@ class GenericConstitutiveLawIntegratorKinematicPlasticity
const Vector& rBackStressVector
)
{
BoundedArrayType deviator = ZeroVector(6);
BoundedArrayType h_capa = ZeroVector(6);
BoundedArrayType deviator = ZeroVector(VoigtSize);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:)

array_1d<double, VoigtSize> f_flux; // DF/DS
array_1d<double, VoigtSize> g_flux; // DG/DS
array_1d<double, VoigtSize> plastic_strain_increment;
f_flux.clear();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I always have doubts what is faster to clear or manually assign values

@AlejandroCornejo AlejandroCornejo merged commit d2386bc into master Jan 31, 2024
17 checks passed
@AlejandroCornejo AlejandroCornejo deleted the adding-plane-strain-iso-plasticity branch January 31, 2024 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants