Skip to content

Commit adc7c09

Browse files
added some parameters to surface plant that will be needed and calculated an average depth for an SBT reservoir for hydrostatic pressure calculation
1 parent 8f2eda9 commit adc7c09

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

src/geophires_x/SBTReservoir.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,12 @@ def Calculate(self, model):
349349
"""
350350
model.logger.info(f'Init {str(__class__)}: {sys._getframe().f_code.co_name}')
351351

352+
# calculate the reservoir depth because there is no one single depth as there are for other reservoirs.
353+
# Make the depth at which this pressure is calculates to be the average of the junction box depth and
354+
# the lateral endpoint depths
355+
self.depth.value = (model.wellbores.junction_depth.quantity().to('km').magnitude +
356+
model.wellbores.lateral_endpoint_depth.quantity().to('km').magnitude) / 2.0
357+
352358
if model.wellbores.Configuration.value in [Configuration.ULOOP, Configuration.EAVORLOOP]:
353359
self.Calculate_Uloop(model)
354360
elif model.wellbores.Configuration.value == Configuration.COAXIAL:

src/geophires_x/SurfacePlant.py

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,50 @@ def __init__(self, model: Model):
384384
ErrMessage="assume default number of years in construction (1)",
385385
ToolTipText="Number of years spent in construction (assumes whole years, no fractions)"
386386
)
387+
self.cp_fluid = self.ParameterDict[self.cp_fluid.Name] = floatParameter(
388+
"Working Fluid Heat Capacity",
389+
UnitType=Units.HEAT_CAPACITY,
390+
PreferredUnits=HeatCapacityUnit.JPERKGPERK,
391+
CurrentUnits=HeatCapacityUnit.JPERKGPERK,
392+
DefaultValue=4200.0,
393+
Min=0.0,
394+
Max=10_000.0,
395+
ErrMessage="assume default working fluid heat capacity (4200)",
396+
ToolTipText="Heat capacity of the working fluid"
397+
)
398+
self.rho_fluid = self.ParameterDict[self.rho_fluid.Name] = floatParameter(
399+
"Working Fluid Density",
400+
UnitType=Units.DENSITY,
401+
PreferredUnits=DensityUnit.KGPERMETERS3,
402+
CurrentUnits=DensityUnit.KGPERMETERS3,
403+
DefaultValue=1000.0,
404+
Min=0.0,
405+
Max=10_000.0,
406+
ErrMessage="assume default working fluid density (1000)",
407+
ToolTipText="Density of the working fluid"
408+
)
409+
self.k_fluid = self.ParameterDict[self.k_fluid.Name] = floatParameter(
410+
"Working Fluid Thermal Conductivity",
411+
UnitType=Units.THERMAL_CONDUCTIVITY,
412+
PreferredUnits=ThermalConductivityUnit.WPERMPERK,
413+
CurrentUnits=ThermalConductivityUnit.WPERMPERK,
414+
DefaultValue=0.68,
415+
Min=0.0,
416+
Max=10.0,
417+
ErrMessage="assume default working fluid thermal conductivity (0.68)",
418+
ToolTipText="Thermal conductivity of the working fluid"
419+
)
420+
self.mu_fluid = self.ParameterDict[self.mu_fluid.Name] = floatParameter(
421+
"Working Fluid Dynamic Viscosity",
422+
UnitType=Units.DYNAMIC_VISCOSITY,
423+
PreferredUnits=Dynamic_ViscosityUnit.PASCALSEC,
424+
CurrentUnits=Dynamic_ViscosityUnit.PASCALSEC,
425+
DefaultValue=600*10**-6,
426+
Min=0.0,
427+
Max=1,
428+
ErrMessage="assume default fluid dynamic density (600*10**-6)",
429+
ToolTipText="Dynamic viscosity of the working fluid"
430+
)
387431

388432
# local variable initialization
389433
self.setinjectionpressurefixed = False

0 commit comments

Comments
 (0)