Class: OpenStudio::Model::ScheduleConstant
- Inherits:
-
Object
- Object
- OpenStudio::Model::ScheduleConstant
- Defined in:
- lib/openstudio-standards/standards/Standards.ScheduleConstant.rb
Overview
Reopen the OpenStudio class to add methods to apply standards to this object
Instance Method Summary collapse
-
#annual_equivalent_full_load_hrs ⇒ Object
Returns the equivalent full load hours (EFLH) for this schedule.
-
#annual_min_max_value ⇒ Object
Returns the min and max value for this schedule.
Instance Method Details
#annual_equivalent_full_load_hrs ⇒ Object
Returns the equivalent full load hours (EFLH) for this schedule. For example, an always-on fractional schedule (always 1.0, 24/7, 365) would return a value of 8760.
return [Double] The total number of full load hours for this schedule
10 11 12 13 14 |
# File 'lib/openstudio-standards/standards/Standards.ScheduleConstant.rb', line 10 def annual_equivalent_full_load_hrs OpenStudio.logFree(OpenStudio::Debug, 'openstudio.standards.ScheduleRuleset', "Calculating total annual EFLH for schedule: #{name}") return annual_flh = value * 8760 end |
#annual_min_max_value ⇒ Object
Returns the min and max value for this schedule. It doesn’t evaluate design days only run-period conditions
return [Hash] Hash has two keys, min and max.
21 22 23 24 25 |
# File 'lib/openstudio-standards/standards/Standards.ScheduleConstant.rb', line 21 def annual_min_max_value result = { 'min' => value, 'max' => value } return result end |