Skip to content

Commit

Permalink
Merge pull request #11525 from KratosMultiphysics/minor-femdem-correc…
Browse files Browse the repository at this point in the history
…tions

Minor femdem corrections
  • Loading branch information
AlejandroCornejo authored Aug 30, 2023
2 parents 4aa5c9c + 4f8b2cb commit 67cf489
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ class KRATOS_API(FEM_TO_DEM_APPLICATION) GenericTotalLagrangianFemDemElement
const ProcessInfo &rCurrentProcessInfo,
const Properties& rProperties)
{
const double max_damage = rCurrentProcessInfo["MAX_DAMAGE_ERASE"];
const double max_damage = 0.98;
if (mDamage >= max_damage) {
this->Set(ACTIVE, false);
mDamage = max_damage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def InitializeProcessesAndVariables(self):
self.CreateInitialSkin = femdem_custom_settings["create_initial_skin"].GetBool()
self.do_stabilization_solve = femdem_custom_settings["do_stabilization_solve"].GetBool()
process_info[KratosFemDem.SMOOTHING_OF_STRESSES] = femdem_custom_settings["smoothing_of_stresses"].GetBool()
process_info[KratosFemDem.MAX_DAMAGE_ERASE] = femdem_custom_settings["maximum_damage_erase"].GetInt()
process_info[KratosFemDem.MAX_DAMAGE_ERASE] = femdem_custom_settings["maximum_damage_erase"].GetDouble()

# Initialize IP variables to zero
self.InitializeIntegrationPointsVariables()
Expand Down

0 comments on commit 67cf489

Please sign in to comment.