Skip to content

Commit 27c16f2

Browse files
Include first law efficiency (average) in surface equipment simulation results. WIP - pending unit test updates
1 parent 5586099 commit 27c16f2

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

src/geophires_x/Outputs.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1912,6 +1912,12 @@ def PrintOutputs(self, model: Model):
19121912

19131913
f.write(f' Average Pumping Power: {np.average(model.wellbores.PumpingPower.value):10.2f} {model.wellbores.PumpingPower.CurrentUnits.value}{NL}')
19141914

1915+
if model.surfaceplant.FirstLawEfficiency is not None:
1916+
avg_efficiency = np.average(model.surfaceplant.FirstLawEfficiency.value) * 100
1917+
if avg_efficiency > 0: # 0 is presumed to mean N/A
1918+
f.write(
1919+
f' {model.surfaceplant.FirstLawEfficiency.Name}: {avg_efficiency:10.2f} {model.surfaceplant.FirstLawEfficiency.CurrentUnits.value}\n')
1920+
19151921
f.write(NL)
19161922
f.write(' ************************************************************\n')
19171923
f.write(' * HEATING, COOLING AND/OR ELECTRICITY PRODUCTION PROFILE *\n')

src/geophires_x/SurfacePlantSingleFlash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def Calculate(self, model: Model) -> None:
122122
self.NetElectricityProduced.value = self.ElectricityProduced.value - model.wellbores.PumpingPower.value
123123
self.FirstLawEfficiency.value = self.NetElectricityProduced.value/HeatExtractedTowardsElectricity
124124

125-
# Calculate annual electricity, pum;ping, and heat production
125+
# Calculate annual electricity, pumping, and heat production
126126
self.HeatkWhExtracted.value, self.PumpingkWh.value, self.TotalkWhProduced.value, self.NetkWhProduced.value, self.HeatkWhProduced.value = \
127127
SurfacePlant.annual_electricity_pumping_power(self, self.plant_lifetime.value, self.enduse_option.value,
128128
self.HeatExtracted.value, model.economics.timestepsperyear.value, self.utilization_factor.value,

src/geophires_x_client/geophires_x_result.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ class GeophiresXResult:
277277
'Maximum Peaking Boiler Heat Production',
278278
'Average Peaking Boiler Heat Production',
279279
'Minimum Peaking Boiler Heat Production',
280+
'First Law Efficiency',
280281
# AGS/CLGS
281282
'Surface Plant Cost',
282283
'Initial pumping power/net installed power',

0 commit comments

Comments
 (0)