Skip to content

Commit 5aa60a7

Browse files
Don't output efficiency when not applicable
1 parent 70e0f61 commit 5aa60a7

File tree

8 files changed

+20
-25
lines changed

8 files changed

+20
-25
lines changed

src/geophires_x/Parameter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class OutputParameter(HasQuantity):
6363
"""
6464

6565
Name: str = ""
66-
value: int = 0
66+
value: Any = 0
6767
ToolTipText: str = ""
6868
UnitType: IntEnum = Units.NONE
6969
PreferredUnits: Enum = Units.NONE

src/geophires_x/SurfacePlant.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ def __init__(self, model: Model):
491491
)
492492
self.heat_to_power_conversion_efficiency = self.OutputParameterDict[self.heat_to_power_conversion_efficiency.Name] = OutputParameter(
493493
Name='Heat to Power Conversion Efficiency',
494+
value=None,
494495
UnitType=Units.PERCENT,
495496
PreferredUnits=PercentUnit.PERCENT,
496497
CurrentUnits=PercentUnit.PERCENT,

tests/examples/example10_HP.out

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
Simulation Metadata
66
----------------------
7-
GEOPHIRES Version: 3.7.1
7+
GEOPHIRES Version: 3.7.2
88
Simulation Date: 2025-01-22
9-
Simulation Time: 10:47
10-
Calculation Time: 0.109 sec
9+
Simulation Time: 11:01
10+
Calculation Time: 0.101 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -121,7 +121,6 @@ Simulation Metadata
121121
Average Annual Heat Production: 132.75 GWh
122122
Average Annual Heat Pump Electricity Use: 52.68 GWh/year
123123
Average Pumping Power: 0.45 MW
124-
Heat to Power Conversion Efficiency: 0.00 %
125124

126125
************************************************************
127126
* HEATING, COOLING AND/OR ELECTRICITY PRODUCTION PROFILE *

tests/examples/example11_AC.out

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
Simulation Metadata
66
----------------------
7-
GEOPHIRES Version: 3.7.1
7+
GEOPHIRES Version: 3.7.2
88
Simulation Date: 2025-01-22
9-
Simulation Time: 10:47
10-
Calculation Time: 0.101 sec
9+
Simulation Time: 11:01
10+
Calculation Time: 0.099 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -126,7 +126,6 @@ Simulation Metadata
126126
Initial Cooling Production: 5.80 MW
127127
Average Annual Cooling Production: 43.89 GWh/year
128128
Average Pumping Power: 0.20 MW
129-
Heat to Power Conversion Efficiency: 0.00 %
130129

131130
************************************************************
132131
* HEATING, COOLING AND/OR ELECTRICITY PRODUCTION PROFILE *

tests/examples/example12_DH.out

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
Simulation Metadata
66
----------------------
7-
GEOPHIRES Version: 3.7.1
7+
GEOPHIRES Version: 3.7.2
88
Simulation Date: 2025-01-22
9-
Simulation Time: 10:48
10-
Calculation Time: 0.615 sec
9+
Simulation Time: 11:01
10+
Calculation Time: 0.567 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -137,7 +137,6 @@ Simulation Metadata
137137
Average Peaking Boiler Heat Production: 15.27 MW
138138
Minimum Peaking Boiler Heat Production: 0.00 MW
139139
Average Pumping Power: 0.44 MW
140-
Heat to Power Conversion Efficiency: 0.00 %
141140

142141
************************************************************
143142
* HEATING, COOLING AND/OR ELECTRICITY PRODUCTION PROFILE *

tests/examples/example2.out

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
Simulation Metadata
66
----------------------
7-
GEOPHIRES Version: 3.7.1
7+
GEOPHIRES Version: 3.7.2
88
Simulation Date: 2025-01-22
9-
Simulation Time: 10:47
10-
Calculation Time: 0.214 sec
9+
Simulation Time: 11:01
10+
Calculation Time: 0.208 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -120,7 +120,6 @@ Simulation Metadata
120120
Initial Net Heat Production: 22.52 MW
121121
Average Annual Heat Production: 167.12 GWh
122122
Average Pumping Power: 0.80 MW
123-
Heat to Power Conversion Efficiency: 0.00 %
124123

125124
************************************************************
126125
* HEATING, COOLING AND/OR ELECTRICITY PRODUCTION PROFILE *

tests/examples/example5.out

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
Simulation Metadata
66
----------------------
7-
GEOPHIRES Version: 3.7.1
7+
GEOPHIRES Version: 3.7.2
88
Simulation Date: 2025-01-22
9-
Simulation Time: 10:47
10-
Calculation Time: 0.051 sec
9+
Simulation Time: 11:01
10+
Calculation Time: 0.047 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -116,7 +116,6 @@ Simulation Metadata
116116
Initial Net Heat Production: 24.29 MW
117117
Average Annual Heat Production: 153.95 GWh
118118
Average Pumping Power: 0.55 MW
119-
Heat to Power Conversion Efficiency: 0.00 %
120119

121120
************************************************************
122121
* HEATING, COOLING AND/OR ELECTRICITY PRODUCTION PROFILE *

tests/examples/example8.out

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
Simulation Metadata
66
----------------------
7-
GEOPHIRES Version: 3.7.1
7+
GEOPHIRES Version: 3.7.2
88
Simulation Date: 2025-01-22
9-
Simulation Time: 10:48
10-
Calculation Time: 0.791 sec
9+
Simulation Time: 11:01
10+
Calculation Time: 0.772 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -120,7 +120,6 @@ Simulation Metadata
120120
Initial Net Heat Production: 9.67 MW
121121
Average Annual Heat Production: 50.20 GWh
122122
Average Pumping Power: 0.09 MW
123-
Heat to Power Conversion Efficiency: 0.00 %
124123

125124
************************************************************
126125
* HEATING, COOLING AND/OR ELECTRICITY PRODUCTION PROFILE *

0 commit comments

Comments
 (0)