I have been experiencing an error that only seems to affect PTAC/HP systems when the model_run_sizing_run causes the system to be small. This is the complete traceback that I get when trying to run model_apply_hvac_efficiency_standard on this type of system:
I tried many things to address the error but the only thing that could really get it to go away is if I somehow increased the loads during the sizing run so that the system became larger.
... and you can run the following Standards gem routine to do a sizing run and then try to apply the efficiency standard:
require 'openstudio-standards'
building = model.getBuilding
standard_id = building.standardsTemplate.get
standard = Standard.build(standard_id)
# Set the heating and cooling sizing parameters
standard.model_apply_prm_sizing_parameters(model)
# Perform a sizing run
if standard.model_run_sizing_run(model, "#{Dir.pwd}/SR1") == false
log_messages_to_runner(runner, debug = true)
return false
end
# If there are any multizone systems, reset damper positions
# to achieve a 60% ventilation effectiveness minimum for the system
# following the ventilation rate procedure from 62.1
standard.model_apply_multizone_vav_outdoor_air_sizing(model)
# get the climate zone
climate_zone_obj = model.getClimateZones.getClimateZone('ASHRAE', 2006)
if climate_zone_obj.empty
climate_zone_obj = model.getClimateZones.getClimateZone('ASHRAE', 2013)
end
climate_zone = climate_zone_obj.value
# get the building type
bldg_type = nil
unless building.standardsBuildingType.empty?
bldg_type = building.standardsBuildingType.get
end
# Apply the prototype HVAC assumptions
standard.model_apply_prototype_hvac_assumptions(model, bldg_type, climate_zone)
# Apply the HVAC efficiency standard
standard.model_apply_hvac_efficiency_standard(model, climate_zone)
This is effectively the same routine that runs in the "create typical building" measure.
I have been experiencing an error that only seems to affect PTAC/HP systems when the
model_run_sizing_run
causes the system to be small. This is the complete traceback that I get when trying to runmodel_apply_hvac_efficiency_standard
on this type of system:I tried many things to address the error but the only thing that could really get it to go away is if I somehow increased the loads during the sizing run so that the system became larger.
I think you should be able to recreate the error using the following simple single-zone model: https://drive.google.com/file/d/1o30QydyJK8y6iCC5GmEd97eet7k8q9wC/view?usp=sharing
... and you can run the following Standards gem routine to do a sizing run and then try to apply the efficiency standard:
This is effectively the same routine that runs in the "create typical building" measure.