Class: OpenStudio::Model::ScheduleConstant

Inherits:
Object
  • Object
show all
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

Instance Method Details

#annual_equivalent_full_load_hrsObject

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

Author:

  • Andrew Parker, NREL



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_valueObject

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.

Author:

  • David Goldwasser, NREL.



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