lib/measures/tbd/resources/conditioned.rb
##
# Validate if model has zones with valid heating temperature setpoints
#
# @param [OpenStudio::Model::Model] model An OS model
#
# @return [Bool] Returns true if valid heating temperature setpoints
Validate if model has zones with valid heating temperature setpoints
Validate if model has zones with valid heating temperature setpoints
def heatingTemperatureSetpoints?(model)
  answer = false
  unless model && model.is_a?(OpenStudio::Model::Model)
    TBD.log(TBD::DEBUG,
      "Can't find or validate OSM (argument) for heating setpoints - skipping")
    return answer
  end
  model.getThermalZones.each do |zone|
    next if answer
    max, _ = maxHeatScheduledSetpoint(zone)
    return true if max
  end
  answer
end
def heatingTemperatureSetpoints? ( model ) answer = false unless model && model . is_a? ( OpenStudio :: Model :: Model ) TBD . log ( TBD :: DEBUG , "Can't find or validate OSM (argument) for heating setpoints - skipping" ) return answer end model . getThermalZones . each do | zone | next if answer max , _ = maxHeatScheduledSetpoint ( zone ) return true if max end answer end
Validate if model has zones with valid heating temperature setpoints
Validate if model has zones with valid heating temperature setpoints
Returns true if valid heating temperature setpoints
Returns true if valid heating temperature setpoints
Bool
model
model An OS model
model An OS model