cooling_heating
¶
Modules:
Functions:
-
air_cooling_wenzel2025–Simulate an air-cooling system based on ERA5 weather data.
-
air_source_heat_pump–Simulate an air-source heat pump based on ERA5 weather data.
-
calculate_relative_humidity–Function to calculate the relative humidity from dewpoint temperature and air temperature using the Sonntag formula.
-
calculate_wet_bulb_temperature–Function to calculate the wet bulb temperature from air temperature and relative humidity.
-
evaporative_cooling_wortmann2025–Simulate an evaporative-cooling system based on ERA5 weather data.
air_cooling_wenzel2025
¶
air_cooling_wenzel2025(
placements: DataFrame,
era5_path: str,
temperatureCoolant: int | float,
designTemperature: int | float,
heatTransferDelta: int | float = 5,
efficiencyFan: int | float = 0.7,
pressureDropAir: int | float = 261,
efficiencyPump: int | float = 0.7,
pressureDropWater: int | float = 200000,
output_netcdf_path: str = None,
output_variables: List[str] = None,
)
Simulate an air-cooling system based on ERA5 weather data.
This function calculates the fan and pump power requirements, capacity factor, and total electricity demand for air-cooling systems at varying ambient temperatures. Results can be saved to a NetCDF file.
Parameters:
-
(placements¶DataFrame) –DataFrame specifying the plant locations and their capacities.
-
(era5_path¶str) –Path to the ERA5 weather data source.
-
(temperatureCoolant¶float) –Temperature of the heat load to be cooled [°C].
-
(designTemperature¶float) –Temperature for the nominal design point of the air cooling system [°C].
-
(heatTransferDelta¶float, default:5) –Temperature difference required for heat transfer from air to coolant [K]. Default is 5.
-
(efficiencyFan¶float, default:0.7) –Efficiency of the fan system [0, 1]. Default is 0.7.
-
(pressureDropAir¶float, default:261) –Pressure drop of air through the cooling frame channels [Pa]. Default is 261.
-
(efficiencyPump¶float, default:0.7) –Efficiency of the pump system [0, 1]. Default is 0.7.
-
(pressureDropWater¶float, default:200000) –Pressure drop of water through the circuit [Pa]. Default is 200000.
-
(output_netcdf_path¶str, default:None) –Path to save the output NetCDF file. Default is None.
-
(output_variables¶list of str, default:None) –List of simulation variables to save to the NetCDF file. If None, all variables are saved.
Returns:
-
Dataset–Simulation results, including capacity factor, fan/pump/electricity inputs, and cooling output. Can be limited to
output_variablesif specified.
Notes
- Calculates fan and pump power using
calculate_fan_power_air_coolingandcalculate_pump_power_air_cooling. - Computes the system capacity factor relative to the design temperature using
calculate_capacity_factor_air_cooling. - Total electricity input includes contributions from both fan and pump.
- Stores all relevant units in
wf.unitsfor reference.
Raises:
-
AssertionError–If input parameters are not of expected type or if efficiency values are not within (0, 1].
Source code in reskit/cooling_heating/workflows/workflows.py
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 | |
air_source_heat_pump
¶
air_source_heat_pump(
placements: DataFrame,
era5_path: str,
targetTemperature: int | float = 100,
secondLawEfficiency: int | float = 0.5,
output_netcdf_path: str = None,
output_variables: List[str] = None,
)
Simulate an air-source heat pump based on ERA5 weather data.
This function calculates the coefficient of performance (COP) and electricity demand of an air-source heat pump at varying ambient temperatures. Results can be saved to a NetCDF file.
Parameters:
-
(placements¶DataFrame) –DataFrame specifying plant locations and capacities.
-
(era5_path¶str) –Path to the ERA5 weather data source.
-
(targetTemperature¶float, default:100) –Temperature at which the heat pump should supply the heat [°C]. Default is 100.
-
(secondLawEfficiency¶float, default:0.5) –Second law efficiency of the heat pump [0,1]. Default is 0.5.
-
(output_netcdf_path¶str, default:None) –Path to save the output NetCDF file. Default is None.
-
(output_variables¶list of str, default:None) –List of simulation variables to save to the NetCDF file. If None, all variables are saved.
Returns:
-
Dataset–Simulation results including COP, electricity conversion factor, and electricity input. Can be limited to
output_variablesif specified.
Raises:
-
AssertionError–If
targetTemperatureorsecondLawEfficiencyare not numeric or ifsecondLawEfficiencyis not within (0, 1].
Notes
- The electricity conversion factor is calculated as -1/COP [kWh_el/kWh_th].
- Electricity input is computed for each plant based on its capacity and the COP.
- Units are stored in
wf.unitsfor reference.
Source code in reskit/cooling_heating/workflows/workflows.py
calculate_relative_humidity
¶
calculate_relative_humidity(
dewpoint_temperature, air_temperature
)
Function to calculate the relative humidity from dewpoint temperature and air temperature using the Sonntag formula.
Parameters:
References
[1] https://www.npl.co.uk/resources/q-a/dew-point-and-relative-humidity
Source code in reskit/util/relative_humidity.py
calculate_wet_bulb_temperature
¶
calculate_wet_bulb_temperature(
air_temperature, relative_humidity
)
Function to calculate the wet bulb temperature from air temperature and relative humidity.
Parameters:
References
[1] Roland Stull. Wet-bulb temperature from relative humidity and air temperature. Journal of Applied Meteorology and Climatology, 50:2267–2269, 11 2011.
Source code in reskit/util/wet_bulb_temperature.py
evaporative_cooling_wortmann2025
¶
evaporative_cooling_wortmann2025(
placements: DataFrame,
era5_path: str,
temperatureCoolant: int | float,
heatTransferDelta: int | float,
efficiencyCoolingTower: int | float,
factorDriftLosses: float | int = 0.001,
typical_cycles_blowdown: int = 5,
output_netcdf_path: str = None,
output_variables: List[str] = None,
)
Simulate an evaporative-cooling system based on ERA5 weather data.
This function calculates the water losses of an evaporative-cooling systems at varying ambient conditions (temperature, humidity). Results can be saved to a NetCDF file.
Parameters:
-
(placements¶DataFrame) –DataFrame specifying the plant locations and their capacities.
-
(era5_path¶str) –Path to the ERA5 weather data source.
-
(temperatureCoolant¶float | int) –Temperature of the cooling load (lower temperature if sensible heat transfer) in °C.
-
(heatTransferDelta¶float | int) –Temperature difference required for heat transfer from air to coolant [K]
-
(efficiencyCoolingTower¶float | int) –Efficiency of the cooling tower system [0, 1]
-
(factorDriftLosses¶float | int, default:0.001) –Drift losses by small water droplets carried away by the exhaust air. Defaults to 0.001.
-
(typical_cycles_blowdown¶int, default:5) –after how many cycles the blowdown occurs to prevent accumulation of impurities. Defaults to 5.
-
(output_netcdf_path¶str, default:None) –Path to save the output NetCDF file. Default is None.
-
(output_variables¶list of str, default:None) –List of simulation variables to save to the NetCDF file. If None, all variables are saved.
Returns:
-
Dataset–Simulation results, including water losses. Can be limited to
output_variablesif specified.
Notes
- Stores all relevant units in
wf.unitsfor reference.
Raises:
-
AssertionError–If input parameters are not of expected type or if efficiency values are not within (0, 1].
Source code in reskit/cooling_heating/workflows/workflows.py
315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 | |