Skip to content

Commit 4ab2cb7

Browse files
Include first law efficiency (average) in surface equipment simulation results. WIP - pending unit test updates
1 parent 9bb1310 commit 4ab2cb7

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
@@ -1910,6 +1910,12 @@ def PrintOutputs(self, model: Model):
19101910

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

1913+
if model.surfaceplant.FirstLawEfficiency is not None:
1914+
avg_efficiency = np.average(model.surfaceplant.FirstLawEfficiency.value) * 100
1915+
if avg_efficiency > 0: # 0 is presumed to mean N/A
1916+
f.write(
1917+
f' {model.surfaceplant.FirstLawEfficiency.Name}: {avg_efficiency:10.2f} {model.surfaceplant.FirstLawEfficiency.CurrentUnits.value}\n')
1918+
19131919
f.write(NL)
19141920
f.write(' ************************************************************\n')
19151921
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
@@ -276,6 +276,7 @@ class GeophiresXResult:
276276
'Maximum Peaking Boiler Heat Production',
277277
'Average Peaking Boiler Heat Production',
278278
'Minimum Peaking Boiler Heat Production',
279+
'First Law Efficiency',
279280
# AGS/CLGS
280281
'Surface Plant Cost',
281282
'Initial pumping power/net installed power',

0 commit comments

Comments
 (0)