Sha256: e21e44038a9e8709eafadacf59db1d5744fa425b315c8e84de4fdede9efba29e

Contents?: true

Size: 1.19 KB

Versions: 6

Compression:

Stored size: 1.19 KB

Contents

class Standard
  # @!group ScheduleConstant

  # 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.
  #
  # @author Andrew Parker, NREL
  # @param schedule_constant [OpenStudio::Model::ScheduleConstant] constant schedule object
  # return [Double] The total number of full load hours for this schedule
  def schedule_constant_annual_equivalent_full_load_hrs(schedule_constant)
    OpenStudio.logFree(OpenStudio::Debug, 'openstudio.standards.ScheduleConstant', "Calculating total annual EFLH for schedule: #{schedule_constant.name}")

    return annual_flh = schedule_constant.value * 8760
  end

  # Returns the min and max value for this schedule.
  # It doesn't evaluate design days only run-period conditions
  #
  # @author David Goldwasser, NREL.
  # @param schedule_constant [OpenStudio::Model::ScheduleConstant] constant schedule object
  # return [Hash] Hash has two keys, min and max.
  def schedule_constant_annual_min_max_value(schedule_constant)
    result = { 'min' => schedule_constant.value, 'max' => schedule_constant.value }

    return result
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
openstudio-standards-0.2.16 lib/openstudio-standards/standards/Standards.ScheduleConstant.rb
openstudio-standards-0.2.16.rc2 lib/openstudio-standards/standards/Standards.ScheduleConstant.rb
openstudio-standards-0.2.16.rc1 lib/openstudio-standards/standards/Standards.ScheduleConstant.rb
openstudio-standards-0.2.15 lib/openstudio-standards/standards/Standards.ScheduleConstant.rb
openstudio-standards-0.2.15.pre.rc2 lib/openstudio-standards/standards/Standards.ScheduleConstant.rb
openstudio-standards-0.2.15.pre.rc1 lib/openstudio-standards/standards/Standards.ScheduleConstant.rb