Sha256: c5eef11adf9652255272795f776084812199ab5d49483dc612d553c8bbcf09f4
Contents?: true
Size: 1.75 KB
Versions: 4
Compression:
Stored size: 1.75 KB
Contents
# ********************************************************************************* # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC. # See also https://github.com/urbanopt/urbanopt-cli/blob/develop/LICENSE.md # ********************************************************************************* require 'urbanopt/reporting' require_relative 'Baseline' require 'json' module URBANopt module Scenario class FlexibleHotWaterMapper < BaselineMapper def create_osw(scenario, features, feature_names) osw = super(scenario, features, feature_names) feature = features[0] building_type = feature.building_type # Only apply to commercial buildings, not residential models if commercial_building_types.include? building_type OpenStudio::Extension.set_measure_argument(osw, 'add_hpwh', '__SKIP__', false) # Add a sizing multiplier to the tank capacity to cover flex periods OpenStudio::Extension.set_measure_argument(osw, 'add_hpwh', 'vol', 2) # Update maximum tank and minimum temperature setpoints OpenStudio::Extension.set_measure_argument(osw, 'add_hpwh', 'max_temp', 185) OpenStudio::Extension.set_measure_argument(osw, 'add_hpwh', 'min_temp', 125) # Manage water heat charge float periods by building OpenStudio::Extension.set_measure_argument(osw, 'add_hpwh', 'flex0', 'Charge - Heat Pump') OpenStudio::Extension.set_measure_argument(osw, 'add_hpwh', 'flex_hrs0', '16:00-17:00') OpenStudio::Extension.set_measure_argument(osw, 'add_hpwh', 'flex1', 'Float') OpenStudio::Extension.set_measure_argument(osw, 'add_hpwh', 'flex_hrs1', '17:01-19:00') end return osw end end end end
Version data entries
4 entries across 4 versions & 1 rubygems