class DEER2007
This class holds methods that apply DEER
2007 to a given model. @ref [References::DEERMASControl]
Attributes
template[R]
Public Class Methods
new()
click to toggle source
Calls superclass method
DEER::new
# File lib/openstudio-standards/standards/deer/deer_2007/deer_2007.rb, line 8 def initialize super() @template = 'DEER 2007' load_standards_database end
Public Instance Methods
load_standards_database(data_directories = [])
click to toggle source
Loads the openstudio standards dataset for this standard.
@param data_directories [Array<String>] array of file paths that contain standards data @return [Hash] a hash of standards data
Calls superclass method
DEER#load_standards_database
# File lib/openstudio-standards/standards/deer/deer_2007/deer_2007.rb, line 18 def load_standards_database(data_directories = []) super([__dir__] + data_directories) end
thermal_zone_demand_control_ventilation_limits(thermal_zone)
click to toggle source
Determine the area and occupancy level limits for demand control ventilation.
@param thermal_zone [OpenStudio::Model::ThermalZone] the thermal zone @return [Array<Double>] the minimum area, in m^2 and the minimum occupancy density in m^2/person. Returns nil if there is no requirement.
# File lib/openstudio-standards/standards/deer/deer_2007/deer_2007.ThermalZone.rb, line 11 def thermal_zone_demand_control_ventilation_limits(thermal_zone) min_area_ft2 = nil # No minimum area min_ft2_per_occ = 40 # Convert to SI min_area_m2 = min_area_ft2 min_m2_per_occ = OpenStudio.convert(min_ft2_per_occ, 'ft^2', 'm^2').get return [min_area_m2, min_m2_per_occ] end