Skip to content

Commit f524a67

Browse files
committed
Add it to autosize_hvac: with #5524 it works
NatLabRockies/OpenStudio#5524
1 parent d0e814a commit f524a67

2 files changed

Lines changed: 16 additions & 5 deletions

File tree

model/simulationtests/autosize_hvac.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,15 @@ def make_tes_coil(model)
434434
ffhp_airsource_clg.setNominalAuxiliaryElectricPower(500)
435435
chw_loop.addSupplyBranchForComponent(ffhp_airsource_clg)
436436

437+
awhp = OpenStudio::Model::HeatPumpAirToWater.new(model)
438+
439+
awhp_cc = OpenStudio::Model::HeatPumpAirToWaterCooling.new(model)
440+
awhp.setCoolingOperationMode(awhp_cc)
441+
awhp_cc_low_speed = OpenStudio::Model::HeatPumpAirToWaterCoolingSpeedData.new(model)
442+
awhp_cc_low_speed.autosizeRatedCoolingCapacity
443+
awhp_cc.addSpeed(awhp_cc_low_speed)
444+
chw_loop.addSupplyBranchForComponent(awhp_cc)
445+
437446
# chw_loop.addSupplyBranchForComponent(OpenStudio::Model::ChillerHeaterPerformanceElectricEIR.new(model))
438447

439448
### Hot water loop ###
@@ -520,6 +529,13 @@ def make_tes_coil(model)
520529
ffhp_airsource_clg.setCompanionHeatingHeatPump(ffhp_airsource_htg)
521530
ffhp_airsource_htg.setCompanionCoolingHeatPump(ffhp_airsource_clg)
522531

532+
awhp_hc = OpenStudio::Model::HeatPumpAirToWaterHeating.new(model)
533+
awhp.setHeatingOperationMode(awhp_hc)
534+
awhp_hc_low_speed = OpenStudio::Model::HeatPumpAirToWaterHeatingSpeedData.new(model)
535+
awhp_hc_low_speed.autosizeRatedHeatingCapacity
536+
awhp_hc.addSpeed(awhp_hc_low_speed)
537+
hw_loop.addSupplyBranchForComponent(awhp_hc)
538+
523539
# This is an Uncontrolled component, should be last
524540
hw_loop.addSupplyBranchForComponent(OpenStudio::Model::PlantComponentTemperatureSource.new(model))
525541
# hw_loop.addSupplyBranchForComponent(OpenStudio::Model::SolarCollectorFlatPlatePhotovoltaicThermal.new(model))

test_helpers.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -989,11 +989,6 @@ def autosizing_test(filename, weather_file = nil, model_measures = [], energyplu
989989
'OS:EvaporativeFluidCooler:TwoSpeed' => [
990990
'autosizedDesignEnteringWaterTemperature' # E+ is missing it
991991
],
992-
# TODO: temp
993-
'OS:HeatPump:AirToWater:Heating' => 'all', # Not in test model
994-
'OS:HeatPump:AirToWater:Cooling' => 'all', # Not in test model
995-
'OS:HeatPump:AirToWater:Heating:SpeedData' => 'all', # Not in test model
996-
'OS:HeatPump:AirToWater:Cooling:SpeedData' => 'all' # Not in test model
997992
}
998993

999994
# Aliases for some OS onjects

0 commit comments

Comments
 (0)