From 769a21d177eea24197a1e7bad9d0cd6625044740 Mon Sep 17 00:00:00 2001 From: Malcolm Ross Date: Mon, 2 Sep 2024 14:41:00 -0500 Subject: [PATCH] SBT for GEOPHIRES Complete. Added tests from paper Techno-Economic Performance of Eavor-Loop 2.0 Koenraad F. Beckers, Henry E. Johnston (2022) --- src/geophires_x/SBTReservoir.py | 13 +- tests/examples/example_SBT_Hi_T.out | 224 ++++++++++++++++++++++++++++ tests/examples/example_SBT_Hi_T.txt | 48 ++++++ tests/examples/example_SBT_Lo_T.out | 224 ++++++++++++++++++++++++++++ tests/examples/example_SBT_Lo_T.txt | 50 +++++++ 5 files changed, 556 insertions(+), 3 deletions(-) create mode 100644 tests/examples/example_SBT_Hi_T.out create mode 100644 tests/examples/example_SBT_Hi_T.txt create mode 100644 tests/examples/example_SBT_Lo_T.out create mode 100644 tests/examples/example_SBT_Lo_T.txt diff --git a/src/geophires_x/SBTReservoir.py b/src/geophires_x/SBTReservoir.py index 6821aed4..41856951 100644 --- a/src/geophires_x/SBTReservoir.py +++ b/src/geophires_x/SBTReservoir.py @@ -10,7 +10,7 @@ import geophires_x.Model as Model from .CylindricalReservoir import CylindricalReservoir from .OptionList import FlowrateModel, InjectionTemperatureModel, Configuration -from .Parameter import intParameter, floatParameter, OutputParameter, ReadParameter, strParameter +from .Parameter import intParameter, floatParameter, OutputParameter, ReadParameter, strParameter, boolParameter from .Reservoir import Reservoir from .Units import * import sys @@ -267,7 +267,14 @@ def __init__(self, model: Model): PreferredUnits=TimeUnit.SECOND, CurrentUnits=TimeUnit.SECOND, ErrMessage='assume default for Initial to Final Timestep Transition (9900 seconds)', - ToolTipText='The time in secs at which the time arrays switches from closely spaced linear to logrithmatic' + ToolTipText='The time in secs at which the time arrays switches from closely spaced linear to logarithmic' + ) + self.generate_wireframe_graphics = self.ParameterDict[self.generate_wireframe_graphics.Name] = boolParameter( + 'SBT Generate Wireframe Graphics', + DefaultValue=False, + UnitType=Units.NONE, + ErrMessage='assume default for SBT Generate Wireframe Graphics (False)', + ToolTipText='Switch to control the generation of a wireframe drawing of a SBT wells configuration' ) sclass = str(__class__).replace("