[ConstitutiveLawsApplication] Double Exponential Hardening Curve for Isotropic Damage Constitutive Law#14280
Open
aslan1372-droid wants to merge 9 commits intomasterfrom
Open
[ConstitutiveLawsApplication] Double Exponential Hardening Curve for Isotropic Damage Constitutive Law#14280aslan1372-droid wants to merge 9 commits intomasterfrom
aslan1372-droid wants to merge 9 commits intomasterfrom
Conversation
This reverts commit e257419.
| const double max_stress = r_mat_props[MAXIMUM_STRESS]; | ||
| const double Gf = r_mat_props[FRACTURE_ENERGY]; | ||
| const double E = r_mat_props[YOUNG_MODULUS]; | ||
| const bool Max_Stress_Satisfied =r_mat_props[SATISFY_MAXIMUM_STRESS]; |
Member
There was a problem hiding this comment.
you can check if this variable is present in the properties and assign a default if it is not, more convenient. Something like:
const bool satisfy_max_stress = r_mat_props.Has(SATISFY_MAXIMUM_STRESS) ? r_mat_props[SATISFY_MAXIMUM_STRESS] : true;
|
|
||
| const double A = ((3.0*X+1.0)*initial_threshold*(UniaxialStress-initial_threshold))/((X+1.0)*(0.5*initial_threshold*initial_threshold-E*Gf)); | ||
|
|
||
| rDamage = 1-initial_threshold/(UniaxialStress*(X+1.0)) * (2.0*X*std::exp(A/2.0)+(1.0-X)*std::exp(A)); |
Member
There was a problem hiding this comment.
please make sure of format the code so you add all spaces between operations, it improves readability. besides better use 1.0.
|
|
||
| double X = 0.0; | ||
| if (Max_Stress_Satisfied) { | ||
| X = -std::sqrt(max_stress/(max_stress - initial_threshold)); |
Member
There was a problem hiding this comment.
we must check in advance that the denominator is not 0 to avoid nan
Member
| const double max_stress = r_mat_props[MAXIMUM_STRESS]; | ||
| const double Gf = r_mat_props[FRACTURE_ENERGY]; | ||
| const double E = r_mat_props[YOUNG_MODULUS]; | ||
| const bool Max_Stress_Satisfied =r_mat_props[SATISFY_MAXIMUM_STRESS]; |
Member
There was a problem hiding this comment.
Suggested change
| const bool Max_Stress_Satisfied =r_mat_props[SATISFY_MAXIMUM_STRESS]; | |
| const bool max_stress_satisfied =r_mat_props[SATISFY_MAXIMUM_STRESS]; |
To follow the style
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

📝 Description
This PR introduces a new Double Exponential Hardening Damage model within the damage framework of the ConstitutiveLawsApplication.
The implementation extends the existing damage integration scheme by adding a new softening type that allows representing damage evolution using a double exponential formulation.
The following modifications were implemented:
DoubleExponentialHardeningDamageto theSofteningTypeenumeration.CalculateDoubleExponentialHardeningDamagein the damage integrator.GenericConstitutiveLawIntegratorDamage.MAXIMUM_STRESSSATISFY_MAXIMUM_STRESSThe new formulation enables improved representation of nonlinear softening responses and allows better calibration of damage evolution for materials exhibiting complex fracture behavior.