diff --git a/model/simulationtests/autosize_hvac.rb b/model/simulationtests/autosize_hvac.rb index 3d570901..ad461a6b 100644 --- a/model/simulationtests/autosize_hvac.rb +++ b/model/simulationtests/autosize_hvac.rb @@ -391,8 +391,16 @@ def make_tes_coil(model) wwhp = OpenStudio::Model::HeatPumpWaterToWaterEquationFitCooling.new(model) chw_loop.addSupplyBranchForComponent(wwhp) cw_loop.addDemandBranchForComponent(wwhp) + chw_storage = OpenStudio::Model::ThermalStorageChilledWaterStratified.new(model) chw_storage.setSetpointTemperatureSchedule(chw_temp_sch) +chw_storage.setTankRecoveryTime(4.0) +chw_storage.waterHeaterSizing.setTimeforTankRecovery(4.0) +chw_storage.autosizeSourceSideDesignFlowRate +chw_storage.autosizeNominalCoolingCapacity +chw_storage.autosizeUseSideDesignFlowRate +chw_storage.autocalculateSourceSideOutletHeight +chw_storage.autocalculateUseSideInletHeight chw_loop.addSupplyBranchForComponent(chw_storage) storage_loop.addDemandBranchForComponent(chw_storage) diff --git a/test_helpers.rb b/test_helpers.rb index 320d2b3e..e926af6e 100644 --- a/test_helpers.rb +++ b/test_helpers.rb @@ -176,15 +176,15 @@ def get_cli_subcommand_from_env(sdk_version_str, debug: false) $IntersectDir = File.join($RootDir, 'model/intersectiontests/') $IntersectFile = File.join($RootDir, 'intersect.rb.erb') -if !ENV['TEST_DIR'].nil? +if ENV['TEST_DIR'].nil? + $TestDir = File.join($RootDir, 'testruns') +else $TestDir = ENV.fetch('TEST_DIR', 'testruns') # If it's a relative path, make it absolute if File.expand_path($TestDir) != $TestDir $TestDir = File.join($RootDir, $TestDir) end puts "Setting TestDir to #{$TestDir}" -else - $TestDir = File.join($RootDir, 'testruns') end $SddSimDir = File.join($RootDir, 'model/sddtests/') @@ -982,7 +982,18 @@ def autosizing_test(filename, weather_file = nil, model_measures = [], energyplu ], 'OS:HeatPump:AirToWater:FuelFired:Heating' => [ 'autosizedDesignTemperatureLift' # E+ is missing it - ] + ], + 'OS:EvaporativeFluidCooler:SingleSpeed' => [ + 'autosizedDesignEnteringWaterTemperature' # E+ is missing it + ], + 'OS:EvaporativeFluidCooler:TwoSpeed' => [ + 'autosizedDesignEnteringWaterTemperature' # E+ is missing it + ], + # TODO: temp + 'OS:HeatPump:AirToWater:Heating' => 'all', # Not in test model + 'OS:HeatPump:AirToWater:Cooling' => 'all', # Not in test model + 'OS:HeatPump:AirToWater:Heating:SpeedData' => 'all', # Not in test model + 'OS:HeatPump:AirToWater:Cooling:SpeedData' => 'all' # Not in test model } # Aliases for some OS onjects