From f23e708c57fedbe7d1de9e8991d813c1745188df Mon Sep 17 00:00:00 2001 From: Nicola Castelletto <38361926+castelletto1@users.noreply.github.com> Date: Sat, 6 Jul 2024 07:21:55 +0100 Subject: [PATCH] Fixing python scripts in tutorials (#3211) --- .../validationStudies/poromechanics/mandel/mandelFigure.py | 2 +- .../sphinx/basicExamples/poromechanics/poromechanicsFigure.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/docs/sphinx/advancedExamples/validationStudies/poromechanics/mandel/mandelFigure.py b/src/docs/sphinx/advancedExamples/validationStudies/poromechanics/mandel/mandelFigure.py index c031d6ab19a..b484b5bda99 100644 --- a/src/docs/sphinx/advancedExamples/validationStudies/poromechanics/mandel/mandelFigure.py +++ b/src/docs/sphinx/advancedExamples/validationStudies/poromechanics/mandel/mandelFigure.py @@ -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")) diff --git a/src/docs/sphinx/basicExamples/poromechanics/poromechanicsFigure.py b/src/docs/sphinx/basicExamples/poromechanics/poromechanicsFigure.py index b7eb23d2e91..a1936cfc4ed 100644 --- a/src/docs/sphinx/basicExamples/poromechanics/poromechanicsFigure.py +++ b/src/docs/sphinx/basicExamples/poromechanics/poromechanicsFigure.py @@ -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"))