Skip to content

Commit 643c38d

Browse files
Redrilling costs tooltip text (still WIP to update affected unit tests)
1 parent 0224932 commit 643c38d

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

src/geophires_x/Economics.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1782,7 +1782,11 @@ def __init__(self, model: Model):
17821782
UnitType=Units.CURRENCYFREQUENCY,
17831783
PreferredUnits=CurrencyFrequencyUnit.MDOLLARSPERYEAR,
17841784
CurrentUnits=CurrencyFrequencyUnit.MDOLLARSPERYEAR,
1785-
# FIXME WIP TooltipText
1785+
ToolTipText=f'Total redrilling costs over the {model.surfaceplant.plant_lifetime.Name} are calculated as '
1786+
f'({self.Cwell.display_name} + {self.Cstim.display_name}) '
1787+
f'× {model.wellbores.redrill.display_name}. '
1788+
f'The total is then divided over {model.surfaceplant.plant_lifetime.Name} years to calculate '
1789+
f'Redrilling costs per year.'
17861790
)
17871791
self.Cplant = self.OutputParameterDict[self.Cplant.Name] = OutputParameter(
17881792
Name="Surface Plant cost",

src/geophires_x/Outputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def PrintOutputs(self, model: Model):
325325
f.write(f' Flowrate per production well: {model.wellbores.prodwellflowrate.value:10.1f} ' + model.wellbores.prodwellflowrate.CurrentUnits.value + NL)
326326
f.write(f' Injection well casing ID: {model.wellbores.injwelldiam.value:10.3f} ' + model.wellbores.injwelldiam.CurrentUnits.value + NL)
327327
f.write(f' Production well casing ID: {model.wellbores.prodwelldiam.value:10.3f} ' + model.wellbores.prodwelldiam.CurrentUnits.value + NL)
328-
f.write(f' Number of times redrilling: {model.wellbores.redrill.value:10.0f}'+NL)
328+
f.write(f' {model.wellbores.redrill.display_name}: {model.wellbores.redrill.value:10.0f}\n')
329329
if model.surfaceplant.enduse_option.value in [EndUseOptions.ELECTRICITY, EndUseOptions.COGENERATION_TOPPING_EXTRA_HEAT, EndUseOptions.COGENERATION_TOPPING_EXTRA_ELECTRICITY, EndUseOptions.COGENERATION_BOTTOMING_EXTRA_ELECTRICITY, EndUseOptions.COGENERATION_BOTTOMING_EXTRA_HEAT, EndUseOptions.COGENERATION_PARALLEL_EXTRA_HEAT, EndUseOptions.COGENERATION_PARALLEL_EXTRA_ELECTRICITY]:
330330
f.write(' Power plant type: ' + str(model.surfaceplant.plant_type.value.value) + NL)
331331
f.write(NL)

src/geophires_x/WellBores.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,6 +1120,7 @@ def __init__(self, model: Model):
11201120
)
11211121
self.redrill = self.OutputParameterDict[self.redrill.Name] = OutputParameter(
11221122
Name="redrill",
1123+
display_name='Number of times redrilling',
11231124
UnitType=Units.NONE
11241125
)
11251126
self.PumpingPowerProd = self.OutputParameterDict[self.PumpingPowerProd.Name] = OutputParameter(

src/geophires_x_schema_generator/geophires-result.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,11 @@
197197
"Flowrate per production well": {},
198198
"Injection well casing ID": {},
199199
"Production well casing ID": {},
200-
"Number of times redrilling": {},
200+
"Number of times redrilling": {
201+
"type": "number",
202+
"description": "redrill",
203+
"units": null
204+
},
201205
"Power plant type": {},
202206
"Fluid": {},
203207
"Design": {},
@@ -440,6 +444,11 @@
440444
"OPEX": {},
441445
"Average annual auxiliary fuel cost": {},
442446
"Average annual pumping cost": {},
447+
"Redrilling costs": {
448+
"type": "number",
449+
"description": "Total redrilling costs over the Plant Lifetime are calculated as (Drilling and completion costs + Stimulation costs) \u00d7 Number of times redrilling. The total is then divided over Plant Lifetime years to calculate Redrilling costs per year.",
450+
"units": "MUSD/yr"
451+
},
443452
"Total average annual O&M costs": {}
444453
}
445454
},

0 commit comments

Comments
 (0)