Skip to content

Commit 783ea75

Browse files
Total surface equipment costs as derived output
1 parent c6106bc commit 783ea75

3 files changed

Lines changed: 18 additions & 2 deletions

File tree

src/geophires_x/Economics.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2115,6 +2115,15 @@ def __init__(self, model: Model):
21152115
'user or a district-heating system. These costs are estimated at $750 per meter pipeline '
21162116
'length and can be manually added by the user to the pipeline distribution costs.'
21172117
)
2118+
2119+
self.surface_equipment_costs_total = self.OutputParameterDict[self.surface_equipment_costs_total.Name] = OutputParameter(
2120+
Name='Total surface equipment costs',
2121+
UnitType=Units.CURRENCY,
2122+
PreferredUnits=CurrencyUnit.MDOLLARS,
2123+
CurrentUnits=CurrencyUnit.MDOLLARS,
2124+
ToolTipText=f'{self.Cplant.Name} plus {self.Cgath.Name}.'
2125+
)
2126+
21182127
self.Cpiping = self.OutputParameterDict[self.Cpiping.Name] = OutputParameter(
21192128
Name="Transmission pipeline costs",
21202129
display_name='Transmission pipeline cost',
@@ -3843,6 +3852,9 @@ def _calculate_derived_outputs(self, model: Model) -> None:
38433852
.to(convertible_unit(self.chp_percent_cost_allocation_for_electrical_plant.CurrentUnits)).magnitude
38443853
)
38453854

3855+
self.surface_equipment_costs_total.value = (self.Cplant.quantity() + self.Cgath.quantity()).to(
3856+
self.surface_equipment_costs_total.CurrentUnits).magnitude
3857+
38463858

38473859
@property
38483860
def has_production_based_royalties(self):

src/geophires_x/Outputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def PrintOutputs(self, model: Model):
511511
if model.surfaceplant.plant_type.value == PlantType.DISTRICT_HEATING:
512512
f.write(f' District Heating System Cost: {model.economics.dhdistrictcost.value:10.2f} {model.economics.dhdistrictcost.CurrentUnits.value}\n')
513513

514-
f.write(f' Total surface equipment costs: {(model.economics.Cplant.value+model.economics.Cgath.value):10.2f} ' + model.economics.Cplant.CurrentUnits.value + NL)
514+
f.write(f' {econ.surface_equipment_costs_total.display_name}: {econ.surface_equipment_costs_total.value:10.2f} {econ.surface_equipment_costs_total.CurrentUnits.value}\n')
515515

516516
if model.economics.totalcapcost.Valid and model.wellbores.redrill.value > 0:
517517
f.write(f' Drilling and completion costs (for redrilling):{econ.Cwell.value:10.2f} {econ.Cwell.CurrentUnits.value}\n')

src/geophires_x_schema_generator/geophires-result.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,11 @@
460460
"description": "Field gathering system cost. The built-in cost correlation for estimating the field gathering system cost includes the cost for surface piping from each well to the plant and pumps for production and injection wells. The length of the surface piping is assumed 750 m per well at a cost of $500 per meter. The pumping cost for each pump in the production wells (line-shaft pumps) and a single pump for the injection wells is calculated with the same correlation as GETEM. Contingency (default: 15%). and indirect costs (default: 12%) are added. The built-in cost correlation does not include the cost of pipelines to an off-site heat user or a district-heating system. These costs are estimated at $750 per meter pipeline length and can be manually added by the user to the pipeline distribution costs.",
461461
"units": "MUSD"
462462
},
463-
"Total surface equipment costs": {},
463+
"Total surface equipment costs": {
464+
"type": "number",
465+
"description": "Surface Plant cost plus Field gathering system cost.",
466+
"units": "MUSD"
467+
},
464468
"Investment Tax Credit": {
465469
"type": "number",
466470
"description": "Investment Tax Credit Value. Represents the total undiscounted ITC sum. For SAM Economic Models, this accounts for the standard Year 1 Federal ITC as well as any applicable State ITCs or multi-year credit schedules.",

0 commit comments

Comments
 (0)