Skip to content

Commit 1b0ba27

Browse files
instantiate sbtwellbores and sbteconomics when SBT reservoir specified
1 parent 9f440e3 commit 1b0ba27

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/geophires_x/Model.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
from geophires_x.TDPReservoir import TDPReservoir
1212
from geophires_x.WellBores import WellBores
1313
from geophires_x.SurfacePlant import SurfacePlant
14-
#from geophires_x.SBTEconomics import SBTEconomics
15-
#from geophires_x.SBTWellbores import SBTWellbores
14+
from geophires_x.SBTEconomics import SBTEconomics
15+
from geophires_x.SBTWellbores import SBTWellbores
1616
from geophires_x.SBTReservoir import SBTReservoir
1717
from geophires_x.SurfacePlantIndustrialHeat import SurfacePlantIndustrialHeat
1818
from geophires_x.SurfacePlantSubcriticalORC import SurfacePlantSubcriticalOrc
@@ -104,11 +104,9 @@ def __init__(self, enable_geophires_logging_config=True, input_file=None):
104104
self.reserv: TOUGH2Reservoir = TOUGH2Reservoir(self) # Tough2 is called
105105
elif self.InputParameters['Reservoir Model'].sValue == '7':
106106
self.reserv: SUTRAReservoir = SUTRAReservoir(self) # SUTRA output is created
107-
elif self.InputParameters['Reservoir Model'].sValue in ['8', 'SBT']:
107+
elif self.InputParameters['Reservoir Model'].sValue == '8':
108108
self.logger.info('Setup the SBT elements of the Model and instantiate new attributes as needed')
109109
self.reserv: SBTReservoir = SBTReservoir(self)
110-
# self.wellbores: SBTWellBores = SBTWellbores(self)
111-
# self.economics: SBTEconomics = SBTEconomics(self)
112110

113111
# initialize the default objects
114112
self.wellbores: WellBores = WellBores(self)
@@ -128,6 +126,9 @@ def __init__(self, enable_geophires_logging_config=True, input_file=None):
128126
self.surfaceplant: SurfacePlantSUTRA = SurfacePlantSUTRA(self)
129127
self.economics: SUTRAEconomics = SUTRAEconomics(self)
130128
self.outputs: SUTRAOutputs = SUTRAOutputs(self, output_file=output_file)
129+
if self.InputParameters['Reservoir Model'].sValue == '8':
130+
self.wellbores: SBTWellbores = SBTWellbores(self)
131+
self.economics: SBTEconomics = SBTEconomics(self)
131132

132133
if 'Is AGS' in self.InputParameters:
133134
if self.InputParameters['Is AGS'].sValue in ['True', 'true', 'TRUE', 'T', '1']:

src/geophires_x/SBTWellbores.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
import numpy as np
44
from pint.facets.plain import PlainQuantity
55

6-
from geophires_x.WellBores import WellBores, RameyCalc, WellPressureDrop, \
7-
ProdPressureDropsAndPumpingPowerUsingImpedenceModel, ProdPressureDropAndPumpingPowerUsingIndexes, \
8-
calculate_total_drilling_lengths_m
6+
from geophires_x.WellBores import (WellBores, RameyCalc, WellPressureDrop, \
7+
ProdPressureDropsAndPumpingPowerUsingImpedenceModel, ProdPressureDropAndPumpingPowerUsingIndexes)
8+
from geophires_x.Economics import calculate_total_drilling_lengths_m
99
from .Parameter import floatParameter, intParameter, boolParameter, OutputParameter, ReadParameter
1010
from geophires_x.GeoPHIRESUtils import vapor_pressure_water_kPa, quantity, static_pressure_MPa, \
1111
heat_capacity_water_J_per_kg_per_K

0 commit comments

Comments
 (0)