Skip to content

Commit

Permalink
Output pumping power with current units (instead of preferred units, …
Browse files Browse the repository at this point in the history
…which could theoretically mismatch)
  • Loading branch information
softwareengineerprogrammer committed Mar 11, 2024
1 parent 48f15b4 commit 3d3b99f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/geophires_x/Outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def PrintOutputs(self, model: Model):
f.write(f" Average Peaking Boiler Heat Production: {np.average(model.surfaceplant.dh_natural_gas_heating.value):10.2f} " + model.surfaceplant.dh_natural_gas_heating.PreferredUnits.value + NL)
f.write(f" Minimum Peaking Boiler Heat Production: {np.min(model.surfaceplant.dh_natural_gas_heating.value):10.2f} " + model.surfaceplant.dh_natural_gas_heating.PreferredUnits.value + NL)

f.write(f" Average Pumping Power: {np.average(model.wellbores.PumpingPower.value):10.2f} " + model.wellbores.PumpingPower.PreferredUnits.value + NL)
f.write(f" Average Pumping Power: {np.average(model.wellbores.PumpingPower.value):10.2f} {model.wellbores.PumpingPower.CurrentUnits.value}{NL}")


f.write(NL)
Expand Down
2 changes: 1 addition & 1 deletion src/geophires_x/SUTRAOutputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def PrintOutputs(self, model: Model):
f.write(f" Average Annual RTES Heating Production: {np.average(model.surfaceplant.AnnualHeatProduced.value):10.2f} " + model.surfaceplant.AnnualHeatProduced.PreferredUnits.value + NL)
f.write(f" Average Annual Auxiliary Heating Production: {np.average(model.surfaceplant.AnnualAuxiliaryHeatProduced.value):10.2f} " + model.surfaceplant.AnnualAuxiliaryHeatProduced.PreferredUnits.value + NL)
f.write(f" Average Annual Total Heating Production: {np.average(model.surfaceplant.AnnualTotalHeatProduced.value):10.2f} " + model.surfaceplant.AnnualTotalHeatProduced.PreferredUnits.value + NL)
f.write(f" Average Pumping Power: {np.average(model.wellbores.PumpingPower.value):10.2f} " + model.wellbores.PumpingPower.PreferredUnits.value + NL)
f.write(f" Average Pumping Power: {np.average(model.wellbores.PumpingPower.value):10.2f} {model.wellbores.PumpingPower.CurrentUnits.value}{NL}")
f.write(f" Average Annual Electricity Use for Pumping: {np.average(model.surfaceplant.PumpingkWh.value):10.2f} " + model.surfaceplant.PumpingkWh.PreferredUnits.value + NL)
f.write(NL)
f.write(NL)
Expand Down

0 comments on commit 3d3b99f

Please sign in to comment.