Skip to content

Commit

Permalink
Update material_mechanicalnonlinear.py
Browse files Browse the repository at this point in the history
  • Loading branch information
FEA-eng authored Mar 2, 2024
1 parent d3e8dd0 commit 2f6219a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Mod/Fem/femobjects/material_mechanicalnonlinear.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ def add_properties(self, obj):
obj.MaterialModelNonlinearity = choices_nonlinear_material_models
obj.MaterialModelNonlinearity = choices_nonlinear_material_models[0]

if hasattr(obj, "MaterialModelNonlinearity") and obj.MaterialModelNonlinearity == "simple hardening":

Check warning on line 94 in src/Mod/Fem/femobjects/material_mechanicalnonlinear.py

View workflow job for this annotation

GitHub Actions / Lint / Lint

Line too long (109/100) (line-too-long)
updated_choices_nonlinear_material_models = ["isotropic hardening", "kinematic hardening"]

Check warning on line 95 in src/Mod/Fem/femobjects/material_mechanicalnonlinear.py

View workflow job for this annotation

GitHub Actions / Lint / Lint

Line too long (102/100) (line-too-long)
obj.MaterialModelNonlinearity = updated_choices_nonlinear_material_models
obj.MaterialModelNonlinearity = updated_choices_nonlinear_material_models[0]

if not hasattr(obj, "YieldPoints"):
obj.addProperty(
"App::PropertyStringList",
Expand Down

0 comments on commit 2f6219a

Please sign in to comment.