Skip to content

Commit

Permalink
Fixing python scripts in tutorials (#3211)
Browse files Browse the repository at this point in the history
  • Loading branch information
castelletto1 authored and Algiane committed Jul 30, 2024
1 parent c741ad3 commit f23e708
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 @@ -90,7 +90,7 @@ def getHydromechanicalParametersFromXML(xmlFilePath):
G = hydromechanicalParameters["shearModulus"]
E = (9.0 * K * G) / (3.0 * K + G)
nu = E / (2.0 * G) - 1.0
Ks = float(param2.get("grainBulkModulus"))
Ks = float(param2.get("defaultGrainBulkModulus"))

hydromechanicalParameters["biotCoefficient"] = 1.0 - K / Ks
hydromechanicalParameters["porosity"] = float(param2.get("defaultReferencePorosity"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def getHydromechanicalParametersFromXML(xmlFilePath):
E = hydromechanicalParameters["youngModulus"]
nu = hydromechanicalParameters["poissonRation"]
K = E / 3.0 / (1.0 - 2.0 * nu)
Kg = float(param2.get("grainBulkModulus"))
Kg = float(param2.get("defaultGrainBulkModulus"))

hydromechanicalParameters["biotCoefficient"] = 1.0 - K / Kg
hydromechanicalParameters["porosity"] = float(param2.get("defaultReferencePorosity"))
Expand Down

0 comments on commit f23e708

Please sign in to comment.