Skip to content

Commit 4a3d8c5

Browse files
tonne instead of tonnes for avoided carbon emissions for consistency/compatibility with other unit output
1 parent ddf491f commit 4a3d8c5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/geophires_x/Outputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1605,7 +1605,7 @@ def PrintOutputs(self, model: Model):
16051605
f.write(f' Segment {str(i):s} Thickness: {model.reserv.layerthickness.value[i-1]:10.0f} ' + model.reserv.layerthickness.CurrentUnits.value + NL)
16061606
f.write(f' Segment {str(i+1):s} Geothermal gradient: {model.reserv.gradient.value[i]:10.4g} ' + model.reserv.gradient.CurrentUnits.value + NL)
16071607
if model.economics.DoCarbonCalculations.value:
1608-
f.write(f' Total Avoided Carbon Emissions: {model.economics.CarbonThatWouldHaveBeenProducedTotal.value*0.000453592:10.2f} tonnes' + NL)
1608+
f.write(f' Total Avoided Carbon Emissions: {model.economics.CarbonThatWouldHaveBeenProducedTotal.value*0.000453592:10.2f} tonne' + NL)
16091609

16101610
f.write(NL)
16111611
f.write(NL)

tests/example1_addons.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SUMMARY OF RESULTS,Number of injection wells,,2,count
77
SUMMARY OF RESULTS,Flowrate per production well,,55.0,kg/sec
88
SUMMARY OF RESULTS,"Well depth (or total length\, if not vertical)",,3.0,kilometer
99
SUMMARY OF RESULTS,Geothermal gradient,,50,degC/km
10-
SUMMARY OF RESULTS,Total Avoided Carbon Emissions,,472017.81,tonnes
10+
SUMMARY OF RESULTS,Total Avoided Carbon Emissions,,472017.81,tonne
1111
ECONOMIC PARAMETERS,Economic Model,,Fixed Charge Rate (FCR),
1212
ECONOMIC PARAMETERS,Accrued financing during construction,,0.0,
1313
ECONOMIC PARAMETERS,Project lifetime,,30,yr

tests/examples/example1_addons.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Simulation Metadata
1919
Flowrate per production well: 55.0 kg/sec
2020
Well depth (or total length, if not vertical): 3.0 kilometer
2121
Geothermal gradient: 50 degC/km
22-
Total Avoided Carbon Emissions: 472017.81 tonnes
22+
Total Avoided Carbon Emissions: 472017.81 tonne
2323

2424

2525
***ECONOMIC PARAMETERS***

0 commit comments

Comments
 (0)