Skip to content

Commit 333a7f9

Browse files
An PhamAn Pham
authored andcommitted
Update runtests.jl
1 parent 0847ebe commit 333a7f9

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

test/runtests.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2016,27 +2016,32 @@ else # run HiGHS tests
20162016

20172017
ghp_option_chosen = results["GHP"]["ghp_option_chosen"]
20182018
@test ghp_option_chosen == 2
2019+
@info "GHP test 1"
20192020

20202021
# Test GHP heating and cooling load reduced
20212022
hot_load_reduced_mmbtu = sum(results["GHP"]["space_heating_thermal_load_reduction_with_ghp_mmbtu_per_hour"])
20222023
cold_load_reduced_tonhour = sum(results["GHP"]["cooling_thermal_load_reduction_with_ghp_ton"])
20232024
@test hot_load_reduced_mmbtu 1440.00 atol=0.1
20242025
@test cold_load_reduced_tonhour 761382.78 atol=0.1
2026+
@info "GHP test 2,3"
20252027

20262028
# Test GHP serving space heating with VAV thermal efficiency improvements
20272029
heating_served_mmbtu = sum(s.ghp_option_list[ghp_option_chosen].heating_thermal_kw / REopt.KWH_PER_MMBTU)
20282030
expected_heating_served_mmbtu = 12000 * 0.8 * 0.85 # (fuel_mmbtu * boiler_effic * space_heating_efficiency_thermal_factor)
20292031
@test round(heating_served_mmbtu, digits=1) expected_heating_served_mmbtu atol=1.0
2032+
@info "GHP test 4"
20302033

20312034
# Boiler serves all of the DHW load, no DHW thermal reduction due to GHP retrofit
20322035
boiler_served_mmbtu = sum(results["ExistingBoiler"]["thermal_production_series_mmbtu_per_hour"])
20332036
expected_boiler_served_mmbtu = 3000 * 0.8 # (fuel_mmbtu * boiler_effic)
20342037
@test round(boiler_served_mmbtu, digits=1) expected_boiler_served_mmbtu atol=1.0
2038+
@info "GHP test 5"
20352039

20362040
# LoadProfileChillerThermal cooling thermal is 1/cooling_efficiency_thermal_factor of GHP cooling thermal production
20372041
bau_chiller_thermal_tonhour = sum(s.cooling_load.loads_kw_thermal / REopt.KWH_THERMAL_PER_TONHOUR)
20382042
ghp_cooling_thermal_tonhour = sum(inputs.ghp_cooling_thermal_load_served_kw[1,:] / REopt.KWH_THERMAL_PER_TONHOUR)
20392043
@test round(bau_chiller_thermal_tonhour) ghp_cooling_thermal_tonhour/0.6 atol=1.0
2044+
@info "GHP test 6"
20402045

20412046
# Custom heat pump COP map is used properly
20422047
ghp_option_chosen = results["GHP"]["ghp_option_chosen"]
@@ -2045,6 +2050,7 @@ else # run HiGHS tests
20452050
# Average COP which includes pump power should be lower than Heat Pump only COP specified by the map
20462051
@test heating_cop_avg <= 4.0
20472052
@test cooling_cop_avg <= 8.0
2053+
@info "GHP test 7,8"
20482054

20492055
# Check GHP LCC calculation for URBANopt
20502056
ghp_data = JSON.parsefile("scenarios/ghp_urbanopt.json")
@@ -2068,6 +2074,7 @@ else # run HiGHS tests
20682074
# GHX size must be 0
20692075
@test boreholes 0.0 atol = 0.01
20702076
@test boreholes_len 0.0 atol = 0.01
2077+
@info "GHP test 8-12"
20712078

20722079
# Check GHX LCC calculation for URBANopt
20732080
ghx_data = JSON.parsefile("scenarios/ghx_urbanopt.json")
@@ -2088,6 +2095,7 @@ else # run HiGHS tests
20882095
@test ghp_size 0.0 atol = 0.01
20892096
# LCCC should be around 52% of initial capital cost due to incentive and bonus
20902097
@test ghx_lccc/ghx_lccc_initial 0.518 atol = 0.01
2098+
@info "GHP test 12-15"
20912099

20922100
# User specified GHP size
20932101
input_presizedGHP = deepcopy(input_data)
@@ -2103,6 +2111,7 @@ else # run HiGHS tests
21032111
# GHP output size should equal user-defined GHP size
21042112
output_GHP_size = sum(results["GHP"]["size_heat_pump_ton"])
21052113
@test output_GHP_size 300.00 atol=0.1
2114+
@info "GHP test 16"
21062115

21072116
# User specified max GHP and GHX sizes
21082117
input_presizedGHPGHX = deepcopy(input_presizedGHP)
@@ -2116,6 +2125,7 @@ else # run HiGHS tests
21162125
# GHP output size should equal user-defined GHP size
21172126
output_GHX_size = results["GHP"]["ghpghx_chosen_outputs"]["number_of_boreholes"]
21182127
@test output_GHX_size 400.00 atol=0.9
2128+
@info "GHP test 17"
21192129

21202130
end
21212131

0 commit comments

Comments
 (0)