From 4d9a1769f34545bf7b73d09b03f070048090229a Mon Sep 17 00:00:00 2001 From: JieXiong9119 <69597597+JieXiong9119@users.noreply.github.com> Date: Tue, 17 Nov 2026 23:52:41 -0700 Subject: [PATCH 01/12] helpers, external sources, reader accessor --- config/external_measure_repos.yml | 13 +++ .../buildingsync_reader.rb | 5 + lib/BOSS/external_measure_repo_manager.rb | 40 ++++++- lib/BOSS/osw_arg_populator.rb | 53 +++++---- spec/tests/unit/buildingsync_reader_spec.rb | 19 ++++ .../external_measure_repo_manager_spec.rb | 106 ++++++++++++++++++ spec/tests/unit/osw_arg_populator_spec.rb | 93 +++++++++++++++ 7 files changed, 307 insertions(+), 22 deletions(-) create mode 100644 spec/tests/unit/osw_arg_populator_spec.rb diff --git a/config/external_measure_repos.yml b/config/external_measure_repos.yml index 212bbcd..1ce9655 100644 --- a/config/external_measure_repos.yml +++ b/config/external_measure_repos.yml @@ -14,7 +14,12 @@ local_measure_roots: # - name: local checkout folder name under vendor/external_measures # - url: git repository URL # - ref: pinned tag/branch/commit to checkout +# - local_path (instead of url/ref): existing local checkout, relative to this file. +# BOSS uses it in place and never runs Git against it; a missing path is an error. # - measure_roots: one or more paths inside the repo that contain measure directories +# - scenario_only (optional, default false): when true, measure roots are added only to +# workflows that opt in (baseline/in.osw with a detailed HVAC topology); fallback +# baselines omit them, so they do not require this checkout # # The below measures are needed for the BOSS L200 workflow. @@ -25,3 +30,11 @@ repos: measure_roots: - measures - resources/measures + + # BuildingSync HVAC topology measures. Not released as a gem, so BOSS + # loads the sibling checkout ../buildingsync-measures-gem (CI pins its commit). + - name: buildingsync-measures-gem + local_path: ../../buildingsync-measures-gem + measure_roots: + - lib/measures + scenario_only: true diff --git a/lib/BOSS/buildingsync_reader/buildingsync_reader.rb b/lib/BOSS/buildingsync_reader/buildingsync_reader.rb index 0b9f29b..91ce430 100644 --- a/lib/BOSS/buildingsync_reader/buildingsync_reader.rb +++ b/lib/BOSS/buildingsync_reader/buildingsync_reader.rb @@ -360,6 +360,11 @@ def get_aspect_ratio return aspect_ratio.to_f end + # @return [REXML::Element, nil] the facility HVACSystems element + def get_hvac_systems_xml + @facility_xml.elements["#{@ns}Systems/#{@ns}HVACSystems"] + end + # get principal hvac system type # @return [String] def get_principal_HVAC_system_type diff --git a/lib/BOSS/external_measure_repo_manager.rb b/lib/BOSS/external_measure_repo_manager.rb index c4aa967..62ada89 100644 --- a/lib/BOSS/external_measure_repo_manager.rb +++ b/lib/BOSS/external_measure_repo_manager.rb @@ -47,15 +47,24 @@ def install_all install_repo(repo_entry) end - resolved_measure_directories + resolved_measure_directories(include_scenario_only: true) end - def resolved_measure_directories + # Repos marked scenario_only: true are omitted by default (fallback baselines) and are + # only returned when include_scenario_only is true (e.g. HVAC topology baselines). + def resolved_measure_directories(include_scenario_only: false) return [] if !manifest_exists? directories = [] repo_entries.each do |repo_entry| + next if repo_entry['scenario_only'] && !include_scenario_only + repo_root = repo_checkout_dir(repo_entry) + if local_repo?(repo_entry) && !Dir.exist?(repo_root) + raise StandardError, "Local measure repository '#{repo_entry['name']}' not found at #{repo_root}. " \ + "Check out the repository there or update local_path in #{@manifest_path}." + end + if !Dir.exist?(repo_root) message = "Repository '#{repo_entry['name']}' is not installed at #{repo_root}. Run rake measures:install_external." if defined?(OpenStudio) && OpenStudio.respond_to?(:logFree) @@ -110,7 +119,7 @@ def validate_repo_entry(repo) raise StandardError, "Each repo entry in #{@manifest_path} must be a map" end - required = %w[name url ref measure_roots] + required = repo.key?('local_path') ? %w[name local_path measure_roots] : %w[name url ref measure_roots] missing = required.select { |key| repo[key].nil? || repo[key].to_s.empty? } if !missing.empty? raise StandardError, "Repo entry is missing required keys #{missing.join(', ')} in #{@manifest_path}" @@ -124,10 +133,29 @@ def validate_repo_entry(repo) if !repo['measure_roots'].is_a?(Array) || repo['measure_roots'].empty? raise StandardError, "Repo '#{repo['name']}' must define a non-empty measure_roots array" end + + if repo.key?('local_path') && (repo.key?('url') || repo.key?('ref')) + raise StandardError, "Repo '#{repo['name']}' must use either local_path or url/ref, not both" + end + + if repo.key?('scenario_only') && ![true, false].include?(repo['scenario_only']) + raise StandardError, "Repo '#{repo['name']}' scenario_only must be true or false" + end + repo end + # Local checkouts are used in place; BOSS never runs Git against them. def install_repo(repo_entry) + if local_repo?(repo_entry) + repo_dir = repo_checkout_dir(repo_entry) + if !Dir.exist?(repo_dir) + raise StandardError, "Local measure repository '#{repo_entry['name']}' not found at #{repo_dir}. " \ + "Check out the repository there or update local_path in #{@manifest_path}." + end + return + end + repo_dir = repo_checkout_dir(repo_entry) measure_roots = repo_entry['measure_roots'] @@ -144,7 +172,13 @@ def install_repo(repo_entry) run_git(%W[-C #{repo_dir} checkout --force FETCH_HEAD]) end + def local_repo?(repo_entry) + repo_entry.key?('local_path') + end + def repo_checkout_dir(repo_entry) + return File.expand_path(repo_entry['local_path'], File.dirname(File.expand_path(@manifest_path))) if local_repo?(repo_entry) + File.join(@install_dir, repo_entry['name']) end diff --git a/lib/BOSS/osw_arg_populator.rb b/lib/BOSS/osw_arg_populator.rb index 46ac09b..b6acea3 100644 --- a/lib/BOSS/osw_arg_populator.rb +++ b/lib/BOSS/osw_arg_populator.rb @@ -8,10 +8,32 @@ require 'BOSS/boss_logger' class OSWArgPopulator + # Inserts a deep copy of step before the first before_measure step, or appends it. + # Returns the inserted step. + def self.append_step(osw, step, before_measure: nil) + new_step = Marshal.load(Marshal.dump(step)) + new_step[:arguments] ||= {} + steps = osw[:steps] + index = before_measure && steps.index { |existing| existing[:measure_dir_name] == before_measure } + steps.insert(index || steps.length, new_step) + new_step + end + + # Sets one argument on this step only. set_measure_argument updates every step with the + # same measure_dir_name, so it is given a one-step workflow. + def self.set_step_argument(step, name, value) + OpenStudio::Extension.set_measure_argument({ steps: [step] }, step[:measure_dir_name], name, value) + step + end + + def self.step_argument_setter(osw, measure_dir_name) + step = append_step(osw, { measure_dir_name:, arguments: {} }) + ->(key, value) { set_step_argument(step, key, value) } + end + def self.populate_set_run_period_args(osw, bsync_reader) BOSS.BOSS_logger.info("+++++++++++++++++++++++++++ populating measure set_run_period +++++++++++++++++++++++") - osw[:steps].append({"measure_dir_name": "set_run_period", "arguments": {}}) - set_measure_argument = lambda {| key, value | OpenStudio::Extension.set_measure_argument(osw, "set_run_period", key, value) } + set_measure_argument = step_argument_setter(osw, "set_run_period") # Add args # - __SKIP__ @@ -35,8 +57,7 @@ def self.populate_set_run_period_args(osw, bsync_reader) def self.populate_change_building_location_args(osw, bsync_reader) BOSS.BOSS_logger.info("+++++++++++++++++++++ populating measure ChangeBuildingLocation +++++++++++++++++++++") - osw[:steps].append({"measure_dir_name": "ChangeBuildingLocation", "arguments": {}}) - set_measure_argument = lambda {| key, value | OpenStudio::Extension.set_measure_argument(osw, "ChangeBuildingLocation", key, value) } + set_measure_argument = step_argument_setter(osw, "ChangeBuildingLocation") # - __SKIP__ set_measure_argument.call("__SKIP__", false) @@ -57,8 +78,7 @@ def self.populate_change_building_location_args(osw, bsync_reader) def self.populate_create_bar_from_building_type_ratios_args(osw, bsync_reader) BOSS.BOSS_logger.info("++++ populating measure create_bar_from_building_type_ratios ++++++++++++++") - osw[:steps].append({"measure_dir_name": "create_bar_from_building_type_ratios", "arguments": {}}) - set_measure_argument = lambda {| key, value | OpenStudio::Extension.set_measure_argument(osw, "create_bar_from_building_type_ratios", key, value) } + set_measure_argument = step_argument_setter(osw, "create_bar_from_building_type_ratios") @@ -125,10 +145,9 @@ def self.populate_create_bar_from_building_type_ratios_args(osw, bsync_reader) BOSS.BOSS_logger.info("") end - def self.populate_create_typical_building_from_model_args(osw, bsync_reader) + def self.populate_create_typical_building_from_model_args(osw, bsync_reader, add_hvac: true) BOSS.BOSS_logger.info("+++++ populating measure create_typical_building_from_model +++++++++++++++") - osw[:steps].append({"measure_dir_name": "create_typical_building_from_model", "arguments": {}}) - set_measure_argument = lambda {| key, value | OpenStudio::Extension.set_measure_argument(osw, "create_typical_building_from_model", key, value) } + set_measure_argument = step_argument_setter(osw, "create_typical_building_from_model") # Add args # - __SKIP__ @@ -164,8 +183,8 @@ def self.populate_create_typical_building_from_model_args(osw, bsync_reader) # add_thermostat # add_hvac BOSS.BOSS_logger.info("|\t- setting arg 'add_hvac'...") - BOSS.BOSS_logger.info("|\t defaults to 'true'") - set_measure_argument.call("add_hvac", true) + BOSS.BOSS_logger.info("|\t set to '#{add_hvac}'") + set_measure_argument.call("add_hvac", add_hvac) # add_refrigeration # modify_wkdy_op_hrs # wkdy_op_hrs_start_time @@ -187,8 +206,7 @@ def self.populate_create_typical_building_from_model_args(osw, bsync_reader) def self.populate_set_lighting_loads_by_LPD_args(osw, bsync_reader) BOSS.BOSS_logger.info("++++++++++++++++++++++ populating measure SetLightingLoadsByLPD ++++++++++++++++++++") - osw[:steps].append({"measure_dir_name": "SetLightingLoadsByLPD", "arguments": {}}) - set_measure_argument = lambda {| key, value | OpenStudio::Extension.set_measure_argument(osw, "SetLightingLoadsByLPD", key, value) } + set_measure_argument = step_argument_setter(osw, "SetLightingLoadsByLPD") # skip if no total_installed_power or no usable floor area BOSS.BOSS_logger.info("|\t- gathering measure requirements...") @@ -229,8 +247,7 @@ def self.populate_set_lighting_loads_by_LPD_args(osw, bsync_reader) def self.populate_set_electric_equipment_loads_by_epd_args(osw, bsync_reader) BOSS.BOSS_logger.info("+++++ populating measure set_electric_equipment_loads_by_epd ++++++++++++++") - osw[:steps].append({"measure_dir_name": "set_electric_equipment_loads_by_epd", "arguments": {}}) - set_measure_argument = lambda {| key, value | OpenStudio::Extension.set_measure_argument(osw, "set_electric_equipment_loads_by_epd", key, value) } + set_measure_argument = step_argument_setter(osw, "set_electric_equipment_loads_by_epd") # skip if no total_weighted_average_load or no usable floor area BOSS.BOSS_logger.info("|\t- gathering measure requirements...") @@ -269,8 +286,7 @@ def self.populate_set_electric_equipment_loads_by_epd_args(osw, bsync_reader) end def self.populate_replace_baseline_windows_args(osw, bsync_reader) - osw[:steps].append({"measure_dir_name": "replace_baseline_windows", "arguments": {}}) - set_measure_argument = lambda {| key, value | OpenStudio::Extension.set_measure_argument(osw, "replace_baseline_windows", key, value) } + set_measure_argument = step_argument_setter(osw, "replace_baseline_windows") # skip if no window_data window_data = bsync_reader.get_window_data @@ -292,8 +308,7 @@ def self.populate_replace_baseline_windows_args(osw, bsync_reader) def self.populate_openstudio_results_args(osw, bsync_reader) BOSS.BOSS_logger.info("+++++++++++++++++++++++++ populating measure openstudio_results +++++++++++++++++++++") - osw[:steps].append({"measure_dir_name": "openstudio_results", "arguments": {}}) - set_measure_argument = lambda {| key, value | OpenStudio::Extension.set_measure_argument(osw, "openstudio_results", key, value) } + set_measure_argument = step_argument_setter(osw, "openstudio_results") # Add args # - __SKIP__ diff --git a/spec/tests/unit/buildingsync_reader_spec.rb b/spec/tests/unit/buildingsync_reader_spec.rb index edc2e9b..4cdb132 100644 --- a/spec/tests/unit/buildingsync_reader_spec.rb +++ b/spec/tests/unit/buildingsync_reader_spec.rb @@ -330,6 +330,25 @@ def site_with_building(site_xml, building_xml) describe 'get_principal_HVAC_system_type should' do end + describe 'get_hvac_systems_xml should' do + def reader_for(file_name) + path = File.expand_path("../../files/v2.7.0/#{file_name}", __dir__) + doc = REXML::Document.new(File.read(path), ignore_whitespace_nodes: :all) + BOSS::BuildingSyncReader.new(doc, nil, ASHRAE90_1) + end + + it 'return the facility HVACSystems element' do + hvac_systems = reader_for('example-smalloffice-level2.xml').get_hvac_systems_xml + expect(hvac_systems.name).to eq 'HVACSystems' + expect(hvac_systems.elements.to_a.map(&:name).uniq).to eq ['HVACSystem'] + end + + it 'return nil when the facility has no HVACSystems' do + reader = BOSS::BuildingSyncReader.new(REXML::Document.new(wrap_in_site('')), nil, ASHRAE90_1) + expect(reader.get_hvac_systems_xml).to be_nil + end + end + describe 'get_total_installed_power should' do def wrap_in_systems(xml) <<~XML diff --git a/spec/tests/unit/external_measure_repo_manager_spec.rb b/spec/tests/unit/external_measure_repo_manager_spec.rb index 035248f..1df4e57 100644 --- a/spec/tests/unit/external_measure_repo_manager_spec.rb +++ b/spec/tests/unit/external_measure_repo_manager_spec.rb @@ -166,6 +166,53 @@ def manager_for(manifest_path, install_dir) end end + it 'leaves scenario_only repos out unless include_scenario_only is true' do + Dir.mktmpdir do |dir| + install_dir = File.join(dir, 'vendor') + shared_root = File.join(install_dir, 'shared_repo', 'measures') + scenario_root = File.join(install_dir, 'scenario_repo', 'lib', 'measures') + FileUtils.mkdir_p(shared_root) + FileUtils.mkdir_p(scenario_root) + + yaml = <<~YAML + repos: + - name: scenario_repo + url: https://example.com/scenario.git + ref: abc123 + measure_roots: + - lib/measures + scenario_only: true + - name: shared_repo + url: https://example.com/shared.git + ref: main + measure_roots: + - measures + scenario_only: false + YAML + mgr = manager_for(write_manifest(dir, yaml), install_dir) + + expect(mgr.resolved_measure_directories).to eq [shared_root] + expect(mgr.resolved_measure_directories(include_scenario_only: true)).to eq [scenario_root, shared_root] + end + end + + it 'rejects a non-boolean scenario_only value' do + Dir.mktmpdir do |dir| + yaml = <<~YAML + repos: + - name: my_repo + url: https://example.com/repo.git + ref: main + measure_roots: + - measures + scenario_only: "yes" + YAML + mgr = manager_for(write_manifest(dir, yaml), dir) + + expect { mgr.resolved_measure_directories }.to raise_error(StandardError, /scenario_only must be true or false/) + end + end + it 'skips repo if checkout directory does not exist' do Dir.mktmpdir do |dir| install_dir = File.join(dir, 'vendor') @@ -308,5 +355,64 @@ def manager_for(manifest_path, install_dir) expect { manager_for(path, dir).configured? }.to raise_error(StandardError, /must be a map/) end end + + it 'raises when a repo entry sets both local_path and url' do + Dir.mktmpdir do |dir| + yaml = <<~YAML + repos: + - name: my_repo + local_path: ../my_repo + url: https://example.com/repo.git + measure_roots: [lib/measures] + YAML + path = write_manifest(dir, yaml) + expect { manager_for(path, dir).configured? }.to raise_error(StandardError, /either local_path or url/) + end + end + end + + # --------------------------------------------------------------------------- + describe 'local_path repos' do + def local_manifest(dir, scenario_only: false) + config_dir = File.join(dir, 'config') + FileUtils.mkdir_p(config_dir) + yaml = <<~YAML + repos: + - name: sibling + local_path: ../sibling + scenario_only: #{scenario_only} + measure_roots: [lib/measures] + YAML + write_manifest(config_dir, yaml) + end + + it 'resolves measure roots relative to the manifest without running git' do + Dir.mktmpdir do |dir| + mroot = File.join(dir, 'sibling', 'lib', 'measures') + FileUtils.mkdir_p(mroot) + mgr = manager_for(local_manifest(dir), File.join(dir, 'vendor')) + expect(mgr).not_to receive(:run_git) + + mgr.install_all + expect(mgr.resolved_measure_directories).to eq([File.expand_path(mroot)]) + end + end + + it 'raises an actionable error when the local checkout is missing' do + Dir.mktmpdir do |dir| + mgr = manager_for(local_manifest(dir), File.join(dir, 'vendor')) + expect(mgr).not_to receive(:run_git) + + expect { mgr.install_all }.to raise_error(StandardError, /Local measure repository 'sibling' not found/) + expect { mgr.resolved_measure_directories }.to raise_error(StandardError, /local_path/) + end + end + + it 'skips a missing scenario-only local checkout for baseline resolution' do + Dir.mktmpdir do |dir| + mgr = manager_for(local_manifest(dir, scenario_only: true), File.join(dir, 'vendor')) + expect(mgr.resolved_measure_directories).to eq([]) + end + end end end diff --git a/spec/tests/unit/osw_arg_populator_spec.rb b/spec/tests/unit/osw_arg_populator_spec.rb new file mode 100644 index 0000000..2205bc5 --- /dev/null +++ b/spec/tests/unit/osw_arg_populator_spec.rb @@ -0,0 +1,93 @@ +# ******************************************************************************* +# OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC. +# BuildingSync(R), Copyright (c) Alliance for Energy Innovation, LLC. +# See also https://github.com/BuildingSync/BOSS/blob/develop/LICENSE.md +# ******************************************************************************* + +require 'json' +require 'BOSS/osw_arg_populator' + +RSpec.describe OSWArgPopulator do + def round_trip(osw) + JSON.parse(JSON.pretty_generate(osw), symbolize_names: true) + end + + def results_step + { measure_dir_name: 'openstudio_results', arguments: { __SKIP__: false } } + end + + describe '.set_step_argument' do + it 'serializes boolean, numeric, and string arguments without coercion' do + osw = { steps: [] } + step = described_class.append_step(osw, { measure_dir_name: 'm', arguments: {} }) + { + 'on' => true, 'off' => false, 'zero' => 0, 'count' => 4, 'ratio' => 0.6, + 'text' => 'Inferred', 'empty' => '', 'numeric_text' => '4', 'boolean_text' => 'false' + }.each { |name, value| described_class.set_step_argument(step, name, value) } + + arguments = round_trip(osw)[:steps].first[:arguments] + expect(arguments).to eq( + on: true, off: false, zero: 0, count: 4, ratio: 0.6, + text: 'Inferred', empty: '', numeric_text: '4', boolean_text: 'false' + ) + expect(arguments[:count]).to be_an Integer + expect(arguments[:ratio]).to be_a Float + end + + it 'updates only the given step when other steps share its measure_dir_name' do + osw = { steps: [] } + baseline = described_class.append_step(osw, { measure_dir_name: 'SetLightingLoadsByLPD', arguments: { lpd: 1.0 } }) + first = described_class.append_step(osw, { measure_dir_name: 'SetLightingLoadsByLPD', arguments: { lpd: 0.6 } }) + described_class.append_step(osw, { measure_dir_name: 'SetLightingLoadsByLPD', arguments: { lpd: 0.5 } }) + + described_class.set_step_argument(first, 'lpd', 0.4) + described_class.set_step_argument(baseline, '__SKIP__', false) + + expect(osw[:steps].map { |step| step[:arguments] }).to eq [ + { lpd: 1.0, __SKIP__: false }, { lpd: 0.4 }, { lpd: 0.5 } + ] + expect(osw[:steps].map { |step| step.key?(:name) }).to all(be false) + end + end + + describe '.append_step' do + it 'appends at the end by default and keeps prepopulated argument types' do + osw = { steps: [results_step] } + described_class.append_step(osw, { measure_dir_name: 'm', arguments: { flag: true, n: 2, x: 1.5, s: '0.50' } }) + + steps = round_trip(osw)[:steps] + expect(steps.map { |step| step[:measure_dir_name] }).to eq ['openstudio_results', 'm'] + expect(steps.last[:arguments]).to eq(flag: true, n: 2, x: 1.5, s: '0.50') + end + + it 'inserts before the named measure in call order, or appends when it is absent' do + osw = { steps: [{ measure_dir_name: 'a', arguments: {} }, results_step] } + described_class.append_step(osw, { measure_dir_name: 'b', arguments: {} }, before_measure: 'openstudio_results') + described_class.append_step(osw, { measure_dir_name: 'c', arguments: {} }, before_measure: 'openstudio_results') + described_class.append_step(osw, { measure_dir_name: 'd', arguments: {} }, before_measure: 'missing') + + expect(osw[:steps].map { |step| step[:measure_dir_name] }).to eq ['a', 'b', 'c', 'openstudio_results', 'd'] + end + + it 'adds an arguments hash when the step has none' do + osw = { steps: [] } + expect(described_class.append_step(osw, { measure_dir_name: 'm' })).to eq(measure_dir_name: 'm', arguments: {}) + end + + it 'stores independent copies of the source step' do + source = { measure_dir_name: 'm', arguments: { s: 'value' } } + osw = { steps: [] } + first = described_class.append_step(osw, source) + second = described_class.append_step(osw, source) + + first[:arguments][:s] << '-changed' + described_class.set_step_argument(second, 'n', 1) + + expect(source).to eq(measure_dir_name: 'm', arguments: { s: 'value' }) + expect(osw[:steps]).to eq [ + { measure_dir_name: 'm', arguments: { s: 'value-changed' } }, + { measure_dir_name: 'm', arguments: { s: 'value', n: 1 } } + ] + end + end +end From cdebafc386b5b87a02bfcf9b8dbbb7a145969d11 Mon Sep 17 00:00:00 2001 From: JieXiong9119 <69597597+JieXiong9119@users.noreply.github.com> Date: Tue, 17 Nov 2026 23:53:58 -0700 Subject: [PATCH 02/12] HVAC selection, planning, wiring --- lib/BOSS/baseline_hvac_planner.rb | 148 + lib/BOSS/boss.rb | 86 +- lib/BOSS/hvac_target_binder.rb | 67 + lib/BOSS/hvac_topology_selector.rb | 765 +++++ .../example-smalloffice-level2-built-2012.xml | 2733 +++++++++++++++++ .../v2.7.0/example-smalloffice-level2.xml | 2733 +++++++++++++++++ spec/tests/unit/baseline_hvac_planner_spec.rb | 189 ++ spec/tests/unit/boss_spec.rb | 322 +- spec/tests/unit/hvac_target_binder_spec.rb | 107 + .../tests/unit/hvac_topology_selector_spec.rb | 335 ++ 10 files changed, 7442 insertions(+), 43 deletions(-) create mode 100644 lib/BOSS/baseline_hvac_planner.rb create mode 100644 lib/BOSS/hvac_target_binder.rb create mode 100644 lib/BOSS/hvac_topology_selector.rb create mode 100644 spec/files/v2.7.0/example-smalloffice-level2-built-2012.xml create mode 100644 spec/files/v2.7.0/example-smalloffice-level2.xml create mode 100644 spec/tests/unit/baseline_hvac_planner_spec.rb create mode 100644 spec/tests/unit/hvac_target_binder_spec.rb create mode 100644 spec/tests/unit/hvac_topology_selector_spec.rb diff --git a/lib/BOSS/baseline_hvac_planner.rb b/lib/BOSS/baseline_hvac_planner.rb new file mode 100644 index 0000000..a1e9666 --- /dev/null +++ b/lib/BOSS/baseline_hvac_planner.rb @@ -0,0 +1,148 @@ +# frozen_string_literal: true + +# ******************************************************************************* +# OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC. +# BuildingSync(R), Copyright (c) Alliance for Energy Innovation, LLC. +# See also https://github.com/BuildingSync/BOSS/blob/develop/LICENSE.md +# ******************************************************************************* + +require 'rexml/document' +require 'BOSS/hvac_topology_selector' +require 'BOSS/hvac_target_binder' + +module BOSS + # Decides whether the baseline builds HVAC from split topology measures or keeps + # create_typical_building_from_model HVAC. + # + # Every binder step resolves to all model zones, so a topology plan allows one + # conditioning configuration plus, for zone-equipment configurations only, one + # ventilation configuration (DOAS create rejects zones already on an air loop). + # Results with the same measure and measure arguments are one configuration. Its + # Section links count as whole-building when they cover the building's sections. + class BaselineHvacPlanner + SIZING_MEASURE = 'apply_standard_hvac_sizing_and_efficiency' + VENTILATION_MEASURES = HvacTopologySelector::VENTILATION_MEASURES.values.map(&:last).freeze + ZONE_EQUIPMENT_MEASURES = ['hvac_ptac', 'hvac_pthp', 'hvac_four_pipe_fan_coil', 'hvac_vrf'].freeze + + Plan = Struct.new(:status, :steps, :messages, keyword_init: true) do + def topology? = status == :topology + end + + def initialize(selector: HvacTopologySelector.new, binder: HvacTargetBinder.new) + @selector = selector + @binder = binder + end + + # @param hvac_systems [REXML::Element, nil] the facility HVACSystems element + # @param standards_template [String] baseline create_typical template + # @param operation [String] binder operation for the conditioning step; ventilation is always created + # @param include_system_ids [Array, nil] when given, only these HVACSystems are planned + # @param exclude_system_ids [Array] HVACSystems left out, such as proposed scenario systems + # @return [Plan] :topology with ordered OSW steps, or :fallback with the reasons + def plan(hvac_systems, standards_template, operation: 'create', include_system_ids: nil, exclude_system_ids: []) + return fallback(['No HVACSystems in the facility.']) if hvac_systems.nil? + + if !HvacTargetBinder::STANDARDS_TEMPLATES.include?(standards_template) + return fallback(["Template '#{standards_template}' is not supported by the split HVAC measures " \ + "(#{HvacTargetBinder::STANDARDS_TEMPLATES.join(', ')})."]) + end + + results = @selector.select(hvac_systems).select do |result| + (include_system_ids.nil? || include_system_ids.include?(result.hvac_system_id)) && + !exclude_system_ids.include?(result.hvac_system_id) + end + return fallback(['No HVACSystem records.']) if results.empty? + + unmatched = results.reject { |result| result.status == :match } + return fallback(unmatched.map { |result| describe(result, result.status, result.messages) }) if !unmatched.empty? + + groups = results.group_by { |result| [result.measure, result.measure_arguments || {}] }.values + .map { |members| merge(members, hvac_systems) } + ventilation, conditioning = groups.partition { |result| VENTILATION_MEASURES.include?(result.measure) } + problems = [] + if conditioning.length != 1 + problems << "Expected one conditioning configuration, found #{conditioning.length}; " \ + 'zone-level binding is not supported.' + end + problems << "Expected at most one ventilation configuration, found #{ventilation.length}." if ventilation.length > 1 + if !ventilation.empty? && conditioning.length == 1 && !ZONE_EQUIPMENT_MEASURES.include?(conditioning.first.measure) + problems << "#{ventilation.first.configuration} cannot be added to zones served by " \ + "#{conditioning.first.configuration} air loops." + end + return fallback(problems) if !problems.empty? + + bindings = conditioning.map { |result| [result, @binder.bind(result, operation:, standards_template:)] } + + ventilation.map { |result| [result, @binder.bind(result, operation: 'create', standards_template:)] } + unbound = bindings.reject { |_, binding| binding.status == :bound } + return fallback(unbound.map { |result, binding| describe(result, binding.status, binding.messages) }) if !unbound.empty? + + sizing_step = { measure_dir_name: SIZING_MEASURE, arguments: { standards_template: } } + Plan.new(status: :topology, steps: bindings.map { |_, binding| binding.step } + [sizing_step], messages: []) + end + + # @return [Array] HVACSystem IDs that measures name as alternatives or modified systems + def self.proposed_system_ids(hvac_systems) + return [] if hvac_systems.nil? + + system_ids = _system_ids(hvac_systems) + refs = REXML::XPath.match( + hvac_systems.document, + "//*[local-name()='Measure']/*[local-name()='TypeOfMeasure']//" \ + "*[local-name()='AlternativeSystemReplacement' or local-name()='ModifiedSystem']/@IDref" + ).map(&:value) + refs.uniq & system_ids + end + + def self._system_ids(hvac_systems) + REXML::XPath.match(hvac_systems, "*[local-name()='HVACSystem']/@ID").map(&:value) + end + + # @return [Array] premises, or one Building premise when Section links cover the building + def self.normalize_premises(premises, document) + building_id = covered_building_id(premises, document) + building_id ? [{ type: 'Building', id: building_id }] : premises + end + + # @return [String, nil] the building ID when every premise is a Section of the one + # building and they include its 'Whole building' section or all of its other + # non-empty sections + def self.covered_building_id(premises, document) + return nil if premises.empty? || !premises.all? { |premise| premise[:type] == 'Section' } + + buildings = REXML::XPath.match(document, "//*[local-name()='Building'][@ID]") + return nil if buildings.length != 1 + + sections = REXML::XPath.match(buildings.first, "*[local-name()='Sections']/*[local-name()='Section'][@ID]") + section_ids = sections.map { |section| section.attributes['ID'] } + linked = premises.map { |premise| premise[:id] } + return nil if !(linked - section_ids).empty? + + whole, parts = sections.partition do |section| + REXML::XPath.first(section, "*[local-name()='SectionType']")&.text == 'Whole building' + end + whole_linked = whole.any? { |section| linked.include?(section.attributes['ID']) } + parts_linked = !parts.empty? && parts.all? do |section| + section.elements.empty? || linked.include?(section.attributes['ID']) + end + whole_linked || parts_linked ? buildings.first.attributes['ID'] : nil + end + + private + + def merge(members, hvac_systems) + merged = members.first.dup + merged.premises = self.class.normalize_premises(members.flat_map { |member| member.premises || [] }.uniq, + hvac_systems.document) + merged + end + + def fallback(messages) + Plan.new(status: :fallback, steps: [], messages:) + end + + def describe(result, status, messages) + label = result.configuration || result.hvac_system_id || 'HVACSystem' + "#{label} (#{status}): #{messages.join(' ')}" + end + end +end diff --git a/lib/BOSS/boss.rb b/lib/BOSS/boss.rb index f998e7f..69a1085 100644 --- a/lib/BOSS/boss.rb +++ b/lib/BOSS/boss.rb @@ -10,6 +10,7 @@ require 'BOSS/buildingsync_reader/buildingsync_reader' require 'BOSS/osw_arg_populator' require 'BOSS/external_measure_repo_manager' +require 'BOSS/baseline_hvac_planner' require 'openstudio/common_measures' require 'openstudio/model_articulation' @@ -35,6 +36,43 @@ def write_baseline_osw(xml_file_path, output_dir, epw_file_path, standard_to_be_ bsync_doc = REXML::Document.new(xml_data, ignore_whitespace_nodes: :all) bsync_reader = BOSS::BuildingSyncReader.new(bsync_doc, epw_file_path, standard_to_be_used) + baseline_osw = build_baseline_osw(bsync_reader) + + # write to file + workflow_dir = File.join(output_dir, 'baseline') + FileUtils.mkdir_p(workflow_dir) + osw_path = File.join(workflow_dir, 'in.osw') + File.open(osw_path, 'w') do |file| + file << JSON.pretty_generate(baseline_osw) + end + osw_path + end + + # @param osw_dir [String] path to osws + def run_baseline_osw(osw_dir) + # assert we have a baseline osm + baseline_osw_path = File.join(osw_dir, 'baseline', 'in.osw') + + # assert baseline exist + if !File.file?(baseline_osw_path) + error_message = ( + "this function requires #{baseline_osw_path}, which does not exist. "\ + "Create #{baseline_osw_path} with `write_baseline_osw` and try again." + ) + OpenStudio.logFree(OpenStudio::Error, 'BOSS.Boss.run_baseline_osw', error_message) + raise StandardError, "BOSS.Boss.run_baseline_osw: #{error_message}" + end + + runner = OpenStudio::Extension::Runner.new(dirname = Dir.pwd, bundle_without = [], options = { run_simulations: true, verbose: false, num_parallel: 7, max_to_run: Float::INFINITY }) + + # run the baseline osm + return runner.run_osws([baseline_osw_path]) + end + + private + + # Returns a new, unsaved baseline OSW hash for the given reader. + def build_baseline_osw(bsync_reader) # start with an empty baseline workflow file = File.read(EMPTY_BASELINE_OSW_PATH) baseline_osw = JSON.parse(file, symbolize_names: true) @@ -44,7 +82,18 @@ def write_baseline_osw(xml_file_path, output_dir, epw_file_path, standard_to_be_ OSWArgPopulator::populate_change_building_location_args(baseline_osw, bsync_reader) OSWArgPopulator::populate_create_bar_from_building_type_ratios_args(baseline_osw, bsync_reader) - OSWArgPopulator::populate_create_typical_building_from_model_args(baseline_osw, bsync_reader) + hvac_systems = bsync_reader.get_hvac_systems_xml + hvac_plan = BaselineHvacPlanner.new.plan(hvac_systems, bsync_reader.get_standard_template, + exclude_system_ids: BaselineHvacPlanner.proposed_system_ids(hvac_systems)) + OSWArgPopulator::populate_create_typical_building_from_model_args(baseline_osw, bsync_reader, + add_hvac: !hvac_plan.topology?) + if hvac_plan.topology? + hvac_plan.steps.each { |step| OSWArgPopulator.append_step(baseline_osw, step) } + else + hvac_plan.messages.each do |message| + BOSS.BOSS_logger.warn("BOSS.Boss: Keeping create_typical_building_from_model HVAC: #{message}") + end + end OSWArgPopulator::populate_set_lighting_loads_by_LPD_args(baseline_osw, bsync_reader) OSWArgPopulator::populate_set_electric_equipment_loads_by_epd_args(baseline_osw, bsync_reader) @@ -58,7 +107,8 @@ def write_baseline_osw(xml_file_path, output_dir, epw_file_path, standard_to_be_ # Force ordering: local BOSS measures, extension-discovered (gems), then external repos. manager = ExternalMeasureRepoManager.new local_measure_dirs = manager.local_measure_directories - external_measure_dirs = manager.resolved_measure_directories + # Topology HVAC steps need buildingsync-measures-gem, which fallback baselines omit. + external_measure_dirs = manager.resolved_measure_directories(include_scenario_only: hvac_plan.topology?) discovered_measure_dirs = baseline_osw[:measure_paths] || [] discovered_nonlocal_nonexternal = discovered_measure_dirs.reject do |path| @@ -77,39 +127,9 @@ def write_baseline_osw(xml_file_path, output_dir, epw_file_path, standard_to_be_ baseline_osw[:file_paths] = ordered_unique(local_file_paths + discovered_file_nonlocal_nonexternal + external_file_paths) - # write to file - workflow_dir = File.join(output_dir, 'baseline') - FileUtils.mkdir_p(workflow_dir) - osw_path = File.join(workflow_dir, 'in.osw') - File.open(osw_path, 'w') do |file| - file << JSON.pretty_generate(baseline_osw) - end - osw_path + baseline_osw end - # @param osw_dir [String] path to osws - def run_baseline_osw(osw_dir) - # assert we have a baseline osm - baseline_osw_path = File.join(osw_dir, 'baseline', 'in.osw') - - # assert baseline exist - if !File.file?(baseline_osw_path) - error_message = ( - "this function requires #{baseline_osw_path}, which does not exist. "\ - "Create #{baseline_osw_path} with `write_baseline_osw` and try again." - ) - OpenStudio.logFree(OpenStudio::Error, 'BOSS.Boss.run_baseline_osw', error_message) - raise StandardError, "BOSS.Boss.run_baseline_osw: #{error_message}" - end - - runner = OpenStudio::Extension::Runner.new(dirname = Dir.pwd, bundle_without = [], options = { run_simulations: true, verbose: false, num_parallel: 7, max_to_run: Float::INFINITY }) - - # run the baseline osm - return runner.run_osws([baseline_osw_path]) - end - - private - def measure_path_to_files_path(measure_path) path = measure_path.to_s replaced = path.sub(%r{/measures/?$}, '/files') diff --git a/lib/BOSS/hvac_target_binder.rb b/lib/BOSS/hvac_target_binder.rb new file mode 100644 index 0000000..a5270d2 --- /dev/null +++ b/lib/BOSS/hvac_target_binder.rb @@ -0,0 +1,67 @@ +# frozen_string_literal: true + +# ******************************************************************************* +# OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC. +# BuildingSync(R), Copyright (c) Alliance for Energy Innovation, LLC. +# See also https://github.com/BuildingSync/BOSS/blob/develop/LICENSE.md +# ******************************************************************************* + +require 'json' + +module BOSS + # Binds a matched HvacTopologySelector result to model zones. + # + # BOSS baseline geometry is generated (create_bar_from_building_type_ratios), so model zones + # have no BuildingSync IDs. Whole-building premises resolve to every model zone at run time + # through buildingsync-measures-gem apply_hvac_topology_to_zone_scope. Other premises bind only + # when the caller passes the exact model zone names; otherwise they return :missing_input. + class HvacTargetBinder + BINDING_MEASURE = 'apply_hvac_topology_to_zone_scope' + WHOLE_BUILDING_PREMISES = ['Building', 'Site', 'Facility'].freeze + STANDARDS_TEMPLATES = ['DOE Ref Pre-1980', 'DOE Ref 1980-2004', '90.1-2004', '90.1-2007', '90.1-2010', + '90.1-2013', '90.1-2016', '90.1-2019'].freeze + OPERATIONS = ['create', 'replace'].freeze + + Binding = Struct.new(:status, :step, :messages, keyword_init: true) + + # @param result [HvacTopologySelector::Result] + # @param operation [String] 'create' or 'replace' + # @param standards_template [String] one of STANDARDS_TEMPLATES + # @param zone_names [Array, nil] exact model zone names for the result's premises; + # when given, the step uses zone_scope explicit_zone_names instead of all_model_zones + # @return [Binding] status :bound with an OSW step spec, or the reason it cannot bind + def bind(result, operation:, standards_template:, zone_names: nil) + raise ArgumentError, "Unsupported operation '#{operation}'" if !OPERATIONS.include?(operation) + if !STANDARDS_TEMPLATES.include?(standards_template) + raise ArgumentError, "Unsupported standards_template '#{standards_template}'" + end + if !zone_names.nil? && (zone_names.empty? || !zone_names.all? { |name| name.is_a?(String) && !name.strip.empty? }) + raise ArgumentError, 'zone_names must be a non-empty array of non-empty strings' + end + return Binding.new(status: result.status, step: nil, messages: result.messages) if result.status != :match + return Binding.new(status: :bound, step: step(result, operation, standards_template, zone_names), messages: []) if zone_names + + unbound = result.premises.reject { |premise| WHOLE_BUILDING_PREMISES.include?(premise[:type]) } + if result.premises.empty? || !unbound.empty? + refs = unbound.map { |premise| "#{premise[:type]} #{premise[:id]}" } + return Binding.new( + status: :missing_input, step: nil, + messages: ["#{result.configuration} links #{refs.empty? ? 'no premises' : refs.join(', ')}; " \ + 'only whole-building premises can be bound to generated baseline zones.'] + ) + end + + Binding.new(status: :bound, step: step(result, operation, standards_template, nil), messages: []) + end + + private + + def step(result, operation, standards_template, zone_names) + scope = zone_names ? { zone_scope: 'explicit_zone_names', zone_names_json: JSON.generate(zone_names.uniq) } : { zone_scope: 'all_model_zones' } + arguments = { topology_measure: result.measure, operation: operation, **scope, standards_template: standards_template } + extra = result.measure_arguments || {} + arguments[:topology_arguments_json] = JSON.generate(extra) if !extra.empty? + { measure_dir_name: BINDING_MEASURE, arguments: arguments } + end + end +end diff --git a/lib/BOSS/hvac_topology_selector.rb b/lib/BOSS/hvac_topology_selector.rb new file mode 100644 index 0000000..a3dc8f1 --- /dev/null +++ b/lib/BOSS/hvac_topology_selector.rb @@ -0,0 +1,765 @@ +# frozen_string_literal: true + +# ******************************************************************************* +# OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC. +# BuildingSync(R), Copyright (c) Alliance for Energy Innovation, LLC. +# See also https://github.com/BuildingSync/BOSS/blob/develop/LICENSE.md +# ******************************************************************************* + +require 'rexml/document' + +module BOSS + # Selects split HVAC topology measures from detailed BuildingSync HVACSystem data using + # the predicates in buildingsync-measures-gem docs/HVAC_MAPPING_AND_MIGRATION.md. + # + # Every conditioning Delivery and every OtherHVACSystem yields exactly one Result, so no + # constituent is dropped. Model zone resolution, call grouping, and quantity-vs-zone-count + # guards need the model crosswalk and are left to later steps; results carry the + # LinkedPremises references and a group_key for that work. + class HvacTopologySelector + STATUSES = [:match, :mapping_gap, :not_mappable, :missing_input, :conflicting_input, :no_hvac, :integrated].freeze + + # measure_arguments holds topology-measure arguments derived from the data (beyond operation, + # zones, and template), e.g. { 'supplemental_heating_fuel' => 'NaturalGas' }. + Result = Struct.new(:status, :configuration, :measure, :hvac_system_id, :record_ids, :premises, + :group_key, :messages, :measure_arguments, keyword_init: true) + + # Element accessors and predicates for one Delivery. Paths are '/'-separated local names, + # so namespace prefixes do not matter. + class Context + attr_reader :sys, :d, :hs, :cs, :conflicts + + def initialize(sys, delivery, index) + @sys = sys + @d = delivery + @index = index + @conflicts = [] + @hs = resolve_one(delivery, 'HeatingSourceID', :heating_source) + @cs = resolve_one(delivery, 'CoolingSourceID', :cooling_source) + end + + def self.nodes(el, path) + return [] if el.nil? + + path.split('/').reduce([el]) do |current, name| + current.flat_map { |node| node.elements.to_a.select { |child| child.name == name } } + end + end + + def self.texts(el, path) + nodes(el, path).map { |node| node.text.to_s.strip } + end + + def nodes(el, path) = self.class.nodes(el, path) + def node(el, path) = nodes(el, path).first + def exists(el, path) = !nodes(el, path).empty? + def absent(el, path) = nodes(el, path).empty? + + def eq(el, path, value) + values = self.class.texts(el, path) + !values.empty? && values.all? { |v| v == value } + end + + def one_of(el, path, allowed) + values = self.class.texts(el, path) + !values.empty? && values.all? { |v| allowed.include?(v) } + end + + # Guards are optional: they pass when the element is absent. + def guard(el, path, allowed) + values = self.class.texts(el, path) + values.empty? || values.all? { |v| Array(allowed).include?(v) } + end + + def quantity_guard(el, path) + values = self.class.texts(el, path) + values.empty? || values.all? { |v| Integer(v, exception: false) == 1 } + end + + def ref_ids(el, path) + nodes(el, path).map { |n| n.attributes['IDref'] } + end + + # Exactly one reference resolving to a record of the given kind, else nil plus a conflict. + def resolve_one(el, path, kind) + ids = ref_ids(el, path) + return nil if ids.empty? + + if ids.length > 1 + @conflicts << "#{el.attributes['ID'] || el.name}/#{path} has #{ids.length} references; expected one" + return nil + end + record = @index.dig(kind, ids.first) + @conflicts << "#{el.attributes['ID'] || el.name}/#{path} '#{ids.first}' does not resolve to a #{kind}" if record.nil? + record + end + + def hc = node(@sys, 'HeatingAndCoolingSystems') + def z = node(@d, 'DeliveryType/ZoneEquipment') + def a = node(@d, 'DeliveryType/CentralAirDistribution') + def h = node(@hs, 'HeatingSourceType') + def c = node(@cs, 'CoolingSourceType') + def dx = node(c, 'DX') + def fc = node(z, 'FanBased/FanBasedDistributionType/FanCoil') + def mv(other) = node(other, 'OtherHVACType/MechanicalVentilation') + + def hp = memo(:hp) { h && resolve_one(h, 'SourceHeatingPlantID', :heating_plant) } + def cp = memo(:cp) { c && resolve_one(c, 'CoolingPlantID', :cooling_plant) } + def cn_dx = memo(:cn_dx) { dx && resolve_one(dx, 'CondenserPlantIDs/CondenserPlantID', :condenser_plant) } + + def cn_chiller + memo(:cn_chiller) do + chiller = node(cp, 'Chiller') + chiller && resolve_one(chiller, 'CondenserPlantIDs/CondenserPlantID', :condenser_plant) + end + end + + # Resolves each reference once so a broken reference is reported once. + def memo(key) + @memo ||= {} + @memo[key] = yield unless @memo.key?(key) + @memo[key] + end + + def cs_id = @cs&.attributes&.[]('ID') + + def heat_pump_shares_cs + ids = ref_ids(h, 'HeatPump/CoolingSourceID') + ids.length == 1 && !cs_id.nil? && ids.first == cs_id + end + + def air_cooled_dx + cn = cn_dx + !cn.nil? && exists(cn, 'AirCooled') && absent(cn, 'AirCooled/EvaporativelyCooledCondenser') + end + + # Packaged and terminal DX units are self-contained air-cooled units, so an omitted + # condenser reference reads as air-cooled. VRF keeps the strict air_cooled_dx check. + def packaged_air_cooled_dx + absent(dx, 'CondenserPlantIDs') || air_cooled_dx + end + + def gas_hot_water_plant + eq(hs, 'HeatingMedium', 'Hot water') && !hp.nil? && + eq(hp, 'Boiler/BoilerType', 'Hot water') && eq(hp, 'PrimaryFuel', 'Natural gas') + end + + def tower_chiller_plant + eq(cs, 'CoolingMedium', 'Chilled water') && !cp.nil? && + eq(cp, 'Chiller/ChillerType', 'Vapor compression') && + eq(cp, 'Chiller/ChillerCompressorDriver', 'Electric Motor') && !cn_chiller.nil? && + eq(cn_chiller, 'WaterCooled/WaterCooledCondenserType', 'Cooling tower') && + absent(cn_chiller, 'WaterCooled/WaterSideEconomizer') + end + + def single_zone_cav + exists(@d, 'DeliveryType/CentralAirDistribution') && eq(a, 'AirDeliveryType', 'Central fan') && + eq(a, 'TerminalUnit', 'CAV terminal box no reheat') && eq(a, 'ReheatSource', 'None') && + eq(hc, 'ZoningSystemType', 'Single zone') + end + + def multizone_vav(terminal, reheat) + exists(@d, 'DeliveryType/CentralAirDistribution') && eq(a, 'AirDeliveryType', 'Central fan') && + eq(a, 'TerminalUnit', terminal) && eq(hc, 'ZoningSystemType', 'Multi zone') && + eq(a, 'ReheatSource', reheat) + end + + # An empty FanBasedDistributionType (no child elements) counts as absent. + def fan_based_distribution(el) + nodes(el, 'FanBased/FanBasedDistributionType').any? { |n| !n.elements.to_a.empty? } + end + + def gas_air_furnace + exists(h, 'Furnace') && eq(hs, 'PrimaryFuel', 'Natural gas') && eq(hs, 'HeatingMedium', 'Air') + end + + def zone_equipment_only + !z.nil? && ['Convection', 'Radiant', 'Other'].all? { |n| absent(z, n) } + end + + def plant_quantities_one(*plants) + plants.compact.all? do |plant| + quantity_guard(plant, 'Quantity') && ['Boiler', 'Chiller'].all? { |eq_name| quantity_guard(plant, "#{eq_name}/Quantity") } + end + end + + def conditioned + ['ElectricResistance', 'Furnace', 'HeatPump', 'SourceHeatingPlantID'].any? { |n| exists(h, n) } || + ['DX', 'CoolingPlantID', 'EvaporativeCooler'].any? { |n| exists(c, n) } + end + end + + ELECTRIC = 'Electricity' + AIR_REFRIGERANT = ['Air', 'Refrigerant'].freeze + FURNACE_TYPES = ['Warm air', 'Other'].freeze + # HeatPumpBackupSystemFuel => hvac_packaged_rooftop_heat_pump supplemental_heating_fuel + BACKUP_FUELS = { 'Electricity' => 'Electricity', 'Natural gas' => 'NaturalGas' }.freeze + + # Exact rows and mapping-gap rows. :required, :absent, and :guards take a Context. + # :absent and :guards return descriptions of failed checks. + DELIVERY_RULES = [ + { + configuration: 'Packaged Terminal Air Conditioner', measure: 'hvac_ptac', status: :match, group: :delivery, + required: lambda { |x| + x.zone_equipment_only && x.exists(x.h, 'ElectricResistance') && + x.eq(x.dx, 'DXSystemType', 'Packaged terminal air conditioner (PTAC)') && x.packaged_air_cooled_dx + }, + absent: ->(x) { x.fan_based_distribution(x.z) ? ['Z/FanBased/FanBasedDistributionType'] : [] }, + guards: lambda { |x| + [ + ['HS/PrimaryFuel', x.guard(x.hs, 'PrimaryFuel', ELECTRIC)], + ['CS/PrimaryFuel', x.guard(x.cs, 'PrimaryFuel', ELECTRIC)], + ['HS/HeatingMedium', x.guard(x.hs, 'HeatingMedium', 'Air')], + ['CS/CoolingMedium', x.guard(x.cs, 'CoolingMedium', AIR_REFRIGERANT)] + ] + } + }, + { + configuration: 'Four Pipe Fan Coil Unit', measure: 'hvac_four_pipe_fan_coil', status: :match, group: :plants, + required: lambda { |x| + x.zone_equipment_only && x.eq(x.fc, 'FanCoilType', 'Fan coil 4 pipe') && + x.gas_hot_water_plant && x.tower_chiller_plant + }, + absent: ->(_x) { [] }, + guards: lambda { |x| + [ + ['FC/HVACPipeConfiguration', x.guard(x.fc, 'HVACPipeConfiguration', '4 pipe')], + ['HS/PrimaryFuel', x.guard(x.hs, 'PrimaryFuel', 'Natural gas')], + ['CS/PrimaryFuel', x.guard(x.cs, 'PrimaryFuel', ELECTRIC)], + ['CP/PrimaryFuel', x.guard(x.cp, 'PrimaryFuel', ELECTRIC)], + ['CP/CondenserType', x.guard(x.cp, 'CondenserType', 'Water Cooled')], + ['plant quantities', x.plant_quantities_one(x.hp, x.cp, x.cn_chiller)] + ] + } + }, + { + configuration: 'Packaged Terminal Heat Pump', measure: 'hvac_pthp', status: :match, group: :delivery, + required: lambda { |x| + x.zone_equipment_only && x.eq(x.h, 'HeatPump/HeatPumpType', 'Packaged Terminal') && x.heat_pump_shares_cs && + x.eq(x.h, 'HeatPump/HeatPumpBackupSystemFuel', ELECTRIC) && x.absent(x.h, 'HeatPump/LinkedHeatingPlantID') && + x.eq(x.dx, 'DXSystemType', 'Packaged terminal heat pump (PTHP)') && x.packaged_air_cooled_dx + }, + absent: ->(x) { x.fan_based_distribution(x.z) ? ['Z/FanBased/FanBasedDistributionType'] : [] }, + guards: lambda { |x| + [ + ['HS/PrimaryFuel', x.guard(x.hs, 'PrimaryFuel', ELECTRIC)], + ['CS/PrimaryFuel', x.guard(x.cs, 'PrimaryFuel', ELECTRIC)], + ['HS/HeatingMedium', x.guard(x.hs, 'HeatingMedium', AIR_REFRIGERANT)], + ['CS/CoolingMedium', x.guard(x.cs, 'CoolingMedium', AIR_REFRIGERANT)] + ] + } + }, + { + configuration: 'Packaged Rooftop Air Conditioner', measure: 'hvac_packaged_rooftop_ac', status: :match, group: :delivery, + required: lambda { |x| + x.single_zone_cav && x.gas_air_furnace && + x.eq(x.dx, 'DXSystemType', 'Packaged/unitary direct expansion/RTU') && x.packaged_air_cooled_dx + }, + absent: ->(x) { central_air_absent(x) }, + guards: lambda { |x| + [ + ['H/Furnace/FurnaceType', x.guard(x.h, 'Furnace/FurnaceType', FURNACE_TYPES)], + ['CS/PrimaryFuel', x.guard(x.cs, 'PrimaryFuel', ELECTRIC)], + ['CS/CoolingMedium', x.guard(x.cs, 'CoolingMedium', AIR_REFRIGERANT)] + ] + } + }, + { + configuration: 'Packaged Rooftop Heat Pump', measure: 'hvac_packaged_rooftop_heat_pump', status: :match, group: :delivery, + required: lambda { |x| + x.single_zone_cav && x.eq(x.h, 'HeatPump/HeatPumpType', 'Packaged Unitary') && x.heat_pump_shares_cs && + x.one_of(x.h, 'HeatPump/HeatPumpBackupSystemFuel', BACKUP_FUELS.keys) && + x.absent(x.h, 'HeatPump/LinkedHeatingPlantID') && + x.eq(x.dx, 'DXSystemType', 'Packaged/unitary heat pump') && x.packaged_air_cooled_dx + }, + arguments: lambda { |x| + { 'supplemental_heating_fuel' => BACKUP_FUELS[x.class.texts(x.h, 'HeatPump/HeatPumpBackupSystemFuel').first] } + }, + absent: ->(x) { central_air_absent(x) }, + guards: lambda { |x| + [ + ['HS/PrimaryFuel', x.guard(x.hs, 'PrimaryFuel', ELECTRIC)], + ['CS/PrimaryFuel', x.guard(x.cs, 'PrimaryFuel', ELECTRIC)], + ['HS/HeatingMedium', x.guard(x.hs, 'HeatingMedium', AIR_REFRIGERANT)], + ['CS/CoolingMedium', x.guard(x.cs, 'CoolingMedium', AIR_REFRIGERANT)] + ] + } + }, + { + configuration: 'Packaged Rooftop VAV with Hot Water Reheat', measure: 'hvac_packaged_rooftop_vav_hw_reheat', + status: :match, group: :cooling_source, + required: lambda { |x| + x.multizone_vav('VAV terminal box not fan powered with reheat', 'Heating plant') && x.gas_hot_water_plant && + x.ref_ids(x.a, 'ReheatPlantID') == [x.hp.attributes['ID']] && + x.eq(x.dx, 'DXSystemType', 'Packaged/unitary direct expansion/RTU') && x.packaged_air_cooled_dx + }, + absent: ->(x) { x.fan_based_distribution(x.a) ? ['A/FanBased/FanBasedDistributionType'] : [] }, + guards: lambda { |x| + [ + ['HS/PrimaryFuel', x.guard(x.hs, 'PrimaryFuel', 'Natural gas')], + ['CS/PrimaryFuel', x.guard(x.cs, 'PrimaryFuel', ELECTRIC)], + ['CS/CoolingMedium', x.guard(x.cs, 'CoolingMedium', AIR_REFRIGERANT)], + ['CS/Quantity', x.quantity_guard(x.cs, 'Quantity')], + ['plant quantities', x.plant_quantities_one(x.hp)] + ] + } + }, + { + configuration: 'Packaged Rooftop VAV with Electric Reheat', measure: 'hvac_packaged_rooftop_vav_electric_reheat', + status: :mapping_gap, group: :cooling_source, + gap: 'The terminal enum combines parallel and series fan-powered boxes; the measure builds only parallel boxes.', + required: lambda { |x| + x.multizone_vav('VAV terminal box fan powered with reheat', 'Local electric resistance') && + x.exists(x.h, 'ElectricResistance') && + x.eq(x.dx, 'DXSystemType', 'Packaged/unitary direct expansion/RTU') && x.packaged_air_cooled_dx + } + }, + { + configuration: 'VAV with Hot Water Reheat', measure: 'hvac_vav_hw_reheat', status: :match, group: :cooling_source, + required: lambda { |x| + x.multizone_vav('VAV terminal box not fan powered with reheat', 'Heating plant') && x.gas_hot_water_plant && + x.ref_ids(x.a, 'ReheatPlantID') == [x.hp.attributes['ID']] && x.tower_chiller_plant + }, + absent: ->(x) { x.fan_based_distribution(x.a) ? ['A/FanBased/FanBasedDistributionType'] : [] }, + guards: lambda { |x| + [ + ['HS/PrimaryFuel', x.guard(x.hs, 'PrimaryFuel', 'Natural gas')], + ['CS/PrimaryFuel', x.guard(x.cs, 'PrimaryFuel', ELECTRIC)], + ['CS/Quantity', x.quantity_guard(x.cs, 'Quantity')], + ['CP/PrimaryFuel', x.guard(x.cp, 'PrimaryFuel', ELECTRIC)], + ['CP/CondenserType', x.guard(x.cp, 'CondenserType', 'Water Cooled')], + ['plant quantities', x.plant_quantities_one(x.hp, x.cp, x.cn_chiller)] + ] + } + }, + { + configuration: 'VAV with Electric Reheat', measure: 'hvac_vav_electric_reheat', status: :mapping_gap, group: :cooling_source, + gap: 'The terminal enum combines parallel and series fan-powered boxes; the measure builds only parallel boxes.', + required: lambda { |x| + x.multizone_vav('VAV terminal box fan powered with reheat', 'Local electric resistance') && + x.exists(x.h, 'ElectricResistance') && x.tower_chiller_plant + } + }, + { + configuration: 'Warm Air Furnace', measure: 'hvac_warm_air_furnace', status: :match, group: :delivery, + required: lambda { |x| + x.single_zone_cav && x.gas_air_furnace && x.exists(x.c, 'NoCooling') + }, + absent: ->(x) { central_air_absent(x) }, + guards: ->(x) { [['H/Furnace/FurnaceType', x.guard(x.h, 'Furnace/FurnaceType', FURNACE_TYPES)]] } + }, + { + configuration: 'Water Loop Heat Pump', measure: 'hvac_water_loop_heat_pump', status: :mapping_gap, group: :delivery, + gap: 'BuildingSync does not uniquely encode the generated terminal, shared loop, and fluid-cooler arrangement.', + required: lambda { |x| + !x.z.nil? && x.exists(x.h, 'HeatPump') && x.heat_pump_shares_cs && !x.dx.nil? && + !x.cn_dx.nil? && x.exists(x.cn_dx, 'WaterCooled') + } + }, + { + configuration: 'Ground Source Heat Pump', measure: 'hvac_ground_source_heat_pump', status: :mapping_gap, group: :delivery, + gap: 'The measure approximates the ground loop and creates no well or borefield geometry.', + required: lambda { |x| + !x.z.nil? && x.exists(x.h, 'HeatPump') && x.heat_pump_shares_cs && !x.cn_dx.nil? && + x.exists(x.cn_dx, 'GroundSource') + } + }, + { + configuration: 'VRF Terminal Unit', measure: 'hvac_vrf', status: :match, group: :cooling_source, + required: lambda { |x| + x.zone_equipment_only && x.eq(x.fc, 'FanCoilType', 'VRF terminal units') && x.exists(x.h, 'HeatPump') && + x.heat_pump_shares_cs && x.absent(x.h, 'HeatPump/LinkedHeatingPlantID') && + x.absent(x.h, 'HeatPump/HeatPumpBackupSystemFuel') && + x.eq(x.dx, 'DXSystemType', 'Variable refrigerant flow') && x.air_cooled_dx + }, + absent: ->(x) { x.exists(x.fc, 'HVACPipeConfiguration') ? ['FC/HVACPipeConfiguration'] : [] }, + guards: lambda { |x| + [ + ['HS/PrimaryFuel', x.guard(x.hs, 'PrimaryFuel', ELECTRIC)], + ['CS/PrimaryFuel', x.guard(x.cs, 'PrimaryFuel', ELECTRIC)], + ['HS/HeatingMedium', x.guard(x.hs, 'HeatingMedium', AIR_REFRIGERANT)], + ['CS/CoolingMedium', x.guard(x.cs, 'CoolingMedium', AIR_REFRIGERANT)], + ['CS/Quantity', x.quantity_guard(x.cs, 'Quantity')] + ] + } + }, + { + configuration: 'Chilled Beam', measure: 'hvac_chilled_beam', status: :mapping_gap, group: :plants, + gap: 'BuildingSync has no active/passive or beam pipe-arrangement selector; the measure builds active four-pipe beams.', + required: lambda { |x| + x.eq(x.z, 'Convection/ConvectionType', 'Chilled beam') && x.gas_hot_water_plant && x.tower_chiller_plant + } + }, + { + configuration: 'Hydronic radiant floor / ceiling', measure: 'hvac_radiant', status: :mapping_gap, group: :plants, + gap: 'BuildingSync combines floor and ceiling radiant; the measure builds floors only.', + required: lambda { |x| + x.eq(x.z, 'Radiant/RadiantType', 'Radiant floor or ceiling') && x.gas_hot_water_plant && x.tower_chiller_plant + } + } + ].freeze + + # Configurations the gem cannot generate. Each takes a Context and returns true on a hit. + NOT_MAPPABLE_DELIVERY = [ + ['Split DX air conditioner', ->(x) { x.eq(x.dx, 'DXSystemType', 'Split DX air conditioner') }], + ['Split / mini-split / multi-split heat pump', lambda { |x| + x.eq(x.dx, 'DXSystemType', 'Split heat pump') || x.one_of(x.fc, 'FanCoilType', ['Mini-split', 'Multi-split']) + }], + ['Single-package vertical AC / heat pump', lambda { |x| + x.one_of(x.dx, 'DXSystemType', ['Single package vertical air conditioner', 'Single package vertical heat pump']) + }], + ['Field-assembled DX system', ->(x) { x.eq(x.dx, 'DXSystemType', 'Field-assembled DX system') }], + ['Two-pipe / changeover fan coil', lambda { |x| + x.eq(x.fc, 'FanCoilType', 'Fan coil 2 pipe') || + (x.eq(x.fc, 'HVACPipeConfiguration', '2 pipe') && + (x.eq(x.hs, 'HeatingMedium', 'Hot water') || x.eq(x.cs, 'CoolingMedium', 'Chilled water'))) + }], + ['Baseboard / radiator', lambda { |x| + x.eq(x.z, 'Convection/ConvectionType', 'Perimeter baseboard') || x.eq(x.z, 'Radiant/RadiantType', 'Radiator') + }], + ['Heating-only or cooling-only paired system', lambda { |x| + paired = x.eq(x.dx, 'DXSystemType', 'Packaged terminal air conditioner (PTAC)') || + x.one_of(x.fc, 'FanCoilType', ['Fan coil 4 pipe', 'VRF terminal units']) || + x.eq(x.z, 'Radiant/RadiantType', 'Radiant floor or ceiling') + hydronic = x.eq(x.fc, 'FanCoilType', 'Fan coil 4 pipe') || x.eq(x.z, 'Radiant/RadiantType', 'Radiant floor or ceiling') + (x.exists(x.h, 'NoHeating') && paired) || (x.exists(x.c, 'NoCooling') && hydronic) + }], + ['Multizone CAV / CAV with terminal reheat', lambda { |x| + x.eq(x.a, 'TerminalUnit', 'CAV terminal box with reheat') || + (x.eq(x.hc, 'ZoningSystemType', 'Multi zone') && x.eq(x.a, 'TerminalUnit', 'CAV terminal box no reheat') && x.conditioned) + }], + ['VAV without terminal reheat', lambda { |x| + x.one_of(x.a, 'TerminalUnit', ['VAV terminal box fan powered no reheat', 'VAV terminal box not fan powered no reheat']) + }], + ['Unsupported VAV terminal / reheat pairing', lambda { |x| + (x.eq(x.a, 'TerminalUnit', 'VAV terminal box not fan powered with reheat') && + x.one_of(x.a, 'ReheatSource', ['Local electric resistance', 'Local gas'])) || + (x.eq(x.a, 'TerminalUnit', 'VAV terminal box fan powered with reheat') && + x.one_of(x.a, 'ReheatSource', ['Heating plant', 'Local gas'])) + }], + ['Underfloor air distribution', ->(x) { x.eq(x.a, 'AirDeliveryType', 'Low pressure under floor') }], + ['Evaporative cooling', lambda { |x| + x.one_of(x.c, 'EvaporativeCooler/EvaporativeCoolingType', ['Direct', 'Direct indirect', 'Indirect', 'Other']) + }], + ['Steam / district / solar-thermal heating', lambda { |x| + !x.hp.nil? && (x.eq(x.hp, 'Boiler/BoilerType', 'Steam') || x.exists(x.hp, 'DistrictHeating') || x.exists(x.hp, 'SolarThermal')) + }], + ['Absorption / non-electric chiller or district cooling', lambda { |x| + !x.cp.nil? && (x.eq(x.cp, 'Chiller/ChillerType', 'Absorption') || + x.one_of(x.cp, 'Chiller/ChillerCompressorDriver', ['Steam', 'Gas Turbine', 'Gas Engine']) || + x.exists(x.cp, 'DistrictChilledWater')) + }], + ['Air-cooled chiller', ->(x) { !x.cn_chiller.nil? && x.exists(x.cn_chiller, 'AirCooled') }] + ].freeze + + NOT_MAPPABLE_OTHER = { + 'Heat recovery ventilator' => 'Heat-recovery / energy-recovery ventilation', + 'Energy recovery ventilator' => 'Heat-recovery / energy-recovery ventilation', + 'Exhaust only' => 'Exhaust-only / spot exhaust' + }.freeze + + OTHER_EQUIPMENT_NOT_MAPPABLE = { + 'SpotExhaust' => 'Exhaust-only / spot exhaust', + 'Humidifier' => 'Humidification / dehumidification / air cleaning', + 'Dehumidifier' => 'Humidification / dehumidification / air cleaning', + 'AirCleaner' => 'Humidification / dehumidification / air cleaning', + 'NaturalVentilation' => 'Natural ventilation' + }.freeze + + VENTILATION_MEASURES = { + 'Supply only' => ['Ventilation Only', 'hvac_ventilation_only'], + 'Dedicated outdoor air system' => ['Dedicated Outdoor Air System', 'hvac_doas'] + }.freeze + + INTEGRATED = ['Integrated with central air distribution', 'Integrated with local air distribution'].freeze + + def self.central_air_absent(x) + failed = x.exists(x.a, 'ReheatPlantID') ? ['A/ReheatPlantID'] : [] + failed << 'A/FanBased/FanBasedDistributionType' if x.fan_based_distribution(x.a) + failed + end + + # @param hvac_systems [REXML::Element] an HVACSystems element (or any parent of HVACSystem elements) + # @return [Array] + def select(hvac_systems) + Context.nodes(hvac_systems, 'HVACSystem').flat_map { |sys| _select_system(sys) } + end + + private + + def _select_system(sys) + index, duplicates = _index(sys) + sys_id = sys.attributes['ID'] + deliveries = Context.nodes(sys, 'HeatingAndCoolingSystems/Deliveries/Delivery') + others = Context.nodes(sys, 'OtherHVACSystems/OtherHVACSystem') + + if deliveries.empty? && others.empty? + principal = Context.texts(sys, 'PrimaryHVACSystemType') + Context.texts(sys, 'PrincipalHVACSystemType') + message = if principal.empty? + 'HVACSystem has no Delivery or OtherHVACSystem records.' + else + "Only family-level data (#{principal.join(', ')}); detailed records are required to select a topology." + end + return [_result(:missing_input, sys_id, [sys_id], [], nil, [message])] + end + + unless duplicates.empty? + return [_result(:conflicting_input, sys_id, [sys_id], [], nil, ["Duplicate IDs: #{duplicates.join(', ')}"])] + end + + ventilation_links = Hash.new { |h, k| h[k] = [] } + others.each do |other| + next unless _consumes_deliveries?(sys, other, index) + + Context.nodes(other, 'LinkedDeliveryIDs/LinkedDeliveryID').each do |link| + ventilation_links[link.attributes['IDref']] << other.attributes['ID'] + end + end + + results = deliveries.reject { |d| ventilation_links.key?(d.attributes['ID']) }.map do |delivery| + _select_delivery(sys, delivery, index) + end + results + others.map { |other| _select_other(sys, other, index, ventilation_links) } + end + + # A record whose only content is MechanicalVentilation with VentilationType None or no type + # (optionally DemandControlVentilation) names no ventilation equipment. + def _ventilation_annotation?(other) + type_node = Context.nodes(other, 'OtherHVACType').first + return false if type_node.nil? || type_node.elements.to_a.map(&:name) != ['MechanicalVentilation'] + + mv = type_node.elements.to_a.first + (mv.elements.to_a.map(&:name) - ['VentilationType', 'DemandControlVentilation']).empty? && + [[], ['None']].include?(Context.texts(mv, 'VentilationType')) + end + + # Outdoor air delivered through the linked deliveries' own air system, not separate equipment. + def _integrated?(other) + texts = Context.texts(other, 'Integration') + !texts.empty? && texts.all? { |t| INTEGRATED.include?(t) } + end + + def _explicit_no_hvac?(x) + !x.d.nil? && x.exists(x.h, 'NoHeating') && x.exists(x.c, 'NoCooling') && x.absent(x.d, 'DeliveryType') + end + + # Ventilation annotations own their linked deliveries only when every one is explicitly + # unconditioned; otherwise those deliveries are still evaluated as conditioning deliveries. + def _consumes_deliveries?(sys, other, index) + return false if _integrated?(other) + return true unless _ventilation_annotation?(other) + + ids = Context.nodes(other, 'LinkedDeliveryIDs/LinkedDeliveryID').map { |l| l.attributes['IDref'] } + !ids.empty? && ids.all? { |id| _explicit_no_hvac?(Context.new(sys, index[:delivery][id], index)) } + end + + def _index(sys) + kinds = { + delivery: 'HeatingAndCoolingSystems/Deliveries/Delivery', + heating_source: 'HeatingAndCoolingSystems/HeatingSources/HeatingSource', + cooling_source: 'HeatingAndCoolingSystems/CoolingSources/CoolingSource', + heating_plant: 'Plants/HeatingPlants/HeatingPlant', + cooling_plant: 'Plants/CoolingPlants/CoolingPlant', + condenser_plant: 'Plants/CondenserPlants/CondenserPlant', + other: 'OtherHVACSystems/OtherHVACSystem' + } + seen = Hash.new(0) + index = kinds.transform_values do |path| + Context.nodes(sys, path).each_with_object({}) do |el, by_id| + id = el.attributes['ID'] + next if id.nil? + + seen[id] += 1 + by_id[id] = el + end + end + [index, seen.select { |_, count| count > 1 }.keys] + end + + def _select_delivery(sys, delivery, index) + x = Context.new(sys, delivery, index) + ids = [delivery, x.hs, x.cs].compact.map { |el| el.attributes['ID'] } + premises = _premises(delivery, sys) + + missing = [] + missing << 'Delivery/HeatingSourceID' if x.ref_ids(delivery, 'HeatingSourceID').empty? + missing << 'Delivery/CoolingSourceID' if x.ref_ids(delivery, 'CoolingSourceID').empty? + missing << 'LinkedPremises on Delivery or HVACSystem' if premises.empty? + return _result(:conflicting_input, sys.attributes['ID'], ids, premises, nil, x.conflicts) unless x.conflicts.empty? + return _result(:missing_input, sys.attributes['ID'], ids, premises, nil, missing.map { |m| "Missing #{m}" }) unless missing.empty? + + hits = DELIVERY_RULES.select { |rule| rule[:required].call(x) } + not_mappable = NOT_MAPPABLE_DELIVERY.select { |_, test| test.call(x) }.map(&:first) + return _result(:conflicting_input, sys.attributes['ID'], ids, premises, nil, x.conflicts) unless x.conflicts.empty? + + if hits.length + not_mappable.length > 1 + names = hits.map { |r| r[:configuration] } + not_mappable + return _result(:conflicting_input, sys.attributes['ID'], ids, premises, nil, + ["Delivery matches more than one configuration: #{names.join(', ')}"]) + end + + if not_mappable.length == 1 + return _result(:not_mappable, sys.attributes['ID'], ids, premises, nil, + ["#{not_mappable.first}: no buildingsync-measures-gem measure for this configuration."], + configuration: not_mappable.first) + end + + rule = hits.first + if rule.nil? + return _result(:missing_input, sys.attributes['ID'], ids, premises, nil, + ['Detailed HVAC data does not identify a supported or known configuration.']) + end + + group_key = _group_key(rule[:group], x) + if rule[:status] == :mapping_gap + return _result(:mapping_gap, sys.attributes['ID'], ids, premises, group_key, [rule[:gap]], + configuration: rule[:configuration], measure: rule[:measure]) + end + + failures = rule[:absent].call(x).map { |p| "#{p} must be absent" } + + rule[:guards].call(x).reject { |_, ok| ok }.map { |name, _| "Guard failed: #{name}" } + unless failures.empty? + return _result(:conflicting_input, sys.attributes['ID'], ids, premises, group_key, failures, + configuration: rule[:configuration]) + end + + _result(:match, sys.attributes['ID'], ids, premises, group_key, [], + configuration: rule[:configuration], measure: rule[:measure], + measure_arguments: rule[:arguments] ? rule[:arguments].call(x) : {}) + end + + def _select_other(sys, other, index, ventilation_links) + sys_id = sys.attributes['ID'] + other_id = other.attributes['ID'] + linked_ids = Context.nodes(other, 'LinkedDeliveryIDs/LinkedDeliveryID').map { |l| l.attributes['IDref'] } + ids = [other_id] + linked_ids + premises = _premises(other, sys) + type_node = Context.nodes(other, 'OtherHVACType').first + equipment = type_node.nil? ? [] : type_node.elements.to_a.map(&:name) + + unsupported = equipment.filter_map { |name| OTHER_EQUIPMENT_NOT_MAPPABLE[name] }.uniq + unless unsupported.empty? + return _result(:not_mappable, sys_id, ids, premises, nil, + unsupported.map { |c| "#{c}: no buildingsync-measures-gem measure for this configuration." }, + configuration: unsupported.join(', ')) + end + + x_probe = Context.new(sys, other, index) + ventilation_type = Context.texts(x_probe.mv(other), 'VentilationType') + if ventilation_type.empty? + return _result(:missing_input, sys_id, ids, premises, nil, + ['OtherHVACSystem does not identify a supported ventilation configuration.']) + end + if ventilation_type.length > 1 + return _result(:conflicting_input, sys_id, ids, premises, nil, ['Multiple VentilationType values.']) + end + + ventilation_type = ventilation_type.first + if NOT_MAPPABLE_OTHER.key?(ventilation_type) + configuration = NOT_MAPPABLE_OTHER[ventilation_type] + return _result(:not_mappable, sys_id, ids, premises, nil, + ["#{configuration}: no buildingsync-measures-gem measure creates this equipment."], + configuration: configuration) + end + + if _integrated?(other) + return _result(:integrated, sys_id, ids, premises, nil, + ['Outdoor air is integrated with the linked deliveries; they are selected as conditioning deliveries.'], + configuration: 'Integrated outdoor air') + end + + return _result(:missing_input, sys_id, ids, premises, nil, ['Missing LinkedDeliveryIDs.']) if linked_ids.empty? + + shared = linked_ids.select { |id| ventilation_links[id].length > 1 } + broken = linked_ids.reject { |id| index[:delivery].key?(id) } + conflicts = broken.map { |id| "LinkedDeliveryID '#{id}' does not resolve to a Delivery" } + + shared.map { |id| "Delivery '#{id}' is linked by more than one OtherHVACSystem" } + return _result(:conflicting_input, sys_id, ids, premises, nil, conflicts) unless conflicts.empty? + + contexts = linked_ids.map { |id| Context.new(sys, index[:delivery][id], index) } + linked_conflicts = contexts.flat_map(&:conflicts) + return _result(:conflicting_input, sys_id, ids, premises, nil, linked_conflicts) unless linked_conflicts.empty? + + if ventilation_type == 'None' + explicit = contexts.all? do |x| + x.exists(x.h, 'NoHeating') && x.exists(x.c, 'NoCooling') && x.absent(x.d, 'DeliveryType') + end + return _result(:no_hvac, sys_id, ids, premises, nil, [], configuration: 'Explicitly no HVAC') if explicit + + if _ventilation_annotation?(other) && contexts.none? { |x| _explicit_no_hvac?(x) } + return _result(:no_hvac, sys_id, ids, premises, nil, + ['VentilationType None names no ventilation equipment; linked deliveries are selected as conditioning deliveries.'], + configuration: 'No separate ventilation equipment') + end + + return _result(:missing_input, sys_id, ids, premises, nil, + ['VentilationType None requires linked deliveries with NoHeating, NoCooling, and no DeliveryType.']) + end + + configuration, measure = VENTILATION_MEASURES[ventilation_type] + if configuration.nil? + return _result(:missing_input, sys_id, ids, premises, nil, + ["VentilationType '#{ventilation_type}' does not identify a supported configuration."]) + end + + if contexts.any?(&:conditioned) + return _result(:not_mappable, sys_id, ids, premises, nil, + ['Conditioned DOAS / makeup-air unit: neither ventilation measure creates conditioning coils.'], + configuration: 'Conditioned DOAS / heated or cooled makeup-air unit') + end + + required = contexts.all? do |x| + x.exists(x.d, 'DeliveryType/CentralAirDistribution') && x.eq(x.a, 'AirDeliveryType', 'Central fan') && + x.eq(x.a, 'TerminalUnit', 'CAV terminal box no reheat') && x.eq(x.a, 'ReheatSource', 'None') && + x.exists(x.h, 'NoHeating') && x.exists(x.c, 'NoCooling') + end && Context.texts(other, 'Integration') == ['Stand-alone'] + unless required + return _result(:missing_input, sys_id, ids, premises, nil, + ["#{configuration} requires Stand-alone integration and unconditioned single-duct CAV deliveries."]) + end + + mv = x_probe.mv(other) + failures = contexts.flat_map { |x| self.class.central_air_absent(x) }.uniq.map { |p| "#{p} must be absent" } + failures += ['MakeupAirSourceID', 'VentilationControlMethods', 'VentilationZoneControl'] + .select { |p| x_probe.exists(mv, p) }.map { |p| "MV/#{p} must be absent" } + failures << 'Guard failed: MV/DemandControlVentilation' unless x_probe.guard(mv, 'DemandControlVentilation', ['false', '0']) + failures << 'Guard failed: O/PrimaryFuel' unless x_probe.guard(other, 'PrimaryFuel', ELECTRIC) + failures << 'Guard failed: O/Quantity' unless x_probe.quantity_guard(other, 'Quantity') + return _result(:conflicting_input, sys_id, ids, premises, nil, failures, configuration: configuration) unless failures.empty? + + _result(:match, sys_id, ids, premises, [:other, other_id], [], configuration: configuration, measure: measure) + end + + def _group_key(group, x) + case group + when :delivery then [:delivery, x.d.attributes['ID']] + when :cooling_source then [:cooling_source, x.cs_id] + when :plants then [:plants, x.hp&.attributes&.[]('ID'), x.cp&.attributes&.[]('ID'), x.cn_chiller&.attributes&.[]('ID')] + end + end + + # LinkedPremises references as [{ type: 'ThermalZone', id: 'ThermalZone-1' }, ...]. A record + # without its own links inherits the parent HVACSystem's links. + def _premises(record, sys) + own = _linked_premises(record) + own.empty? ? _linked_premises(sys) : own + end + + def _linked_premises(record) + Context.nodes(record, 'LinkedPremises').flat_map do |linked| + linked.elements.to_a.flat_map do |premise_type| + premise_type.elements.to_a.filter_map do |link| + id = link.attributes['IDref'] + { type: premise_type.name, id: id } if id + end + end + end + end + + def _result(status, sys_id, ids, premises, group_key, messages, configuration: nil, measure: nil, measure_arguments: {}) + Result.new(status: status, configuration: configuration, measure: measure, hvac_system_id: sys_id, + record_ids: ids.compact.uniq, premises: premises, group_key: group_key, messages: messages, + measure_arguments: measure_arguments) + end + end +end diff --git a/spec/files/v2.7.0/example-smalloffice-level2-built-2012.xml b/spec/files/v2.7.0/example-smalloffice-level2-built-2012.xml new file mode 100644 index 0000000..5af7ad4 --- /dev/null +++ b/spec/files/v2.7.0/example-smalloffice-level2-built-2012.xml @@ -0,0 +1,2733 @@ + + + + + + + + + Prototype Small Office in Denver + Here we record general problems / issues identified in a walkthrough survey. + + + City Custom Building ID + some ID + + + Custom ID 1 + some other ID + + +
+ + + Some address + + + Denver + CO + 80014 +
+ -104.830000 + 39.660000 + Commercial + Office + + 1 + 0 + 1 + 0 + true + false + + + Gross + 5500.000000 + + + + + + Conditioned + 5500.000000 + + + + + + 6500.000000 + 0.000000 + 0.213300 + 0.050000 + 2012 + 2000 + 2010 + 2020-03-01 + 2012 + +
+ Space function + Office + Office + + + Peak total occupants + 31.000000 + + + + + 40.000000 + Hours per week + + + 50.000000 + Weeks per year + + + + + Gross + 5500.000000 + + + Conditioned + 5500.000000 + + + Single zone +
+
+ Whole building + Rectangular + + + A1 + + + 909.012230 + + + + + 180.187860 + + + + + 42.086890 + + + + + B1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + C1 + + + 909.012230 + + + + + 180.187860 + + + + + 0.000000 + + + + + D1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + + + + 6444.999000 + Good + + + + + + + 3891.153600 + + + +
+
+ + + + + + + + + + Single zone + + + + + Packaged Unitary + Natural gas + 0.000000 + + + + 3.010000 + COP + 10311.100000 + 10311.100000 + W + Good + + + + + + + + + + 2000 + + + + + Packaged Unitary + Natural gas + 0.000000 + + + + 3.010000 + COP + 9801.300000 + 9801.300000 + W + Good + + + + + + + + + + 2000 + + + + + Packaged Unitary + Natural gas + 0.000000 + + + + 3.010000 + COP + 7858.100000 + 7858.100000 + W + Good + + + + + + + + + + 2000 + + + + + Packaged Unitary + Natural gas + 0.000000 + + + + 3.010000 + COP + 9067.800000 + 9067.800000 + W + Good + + + + + + + + + + 2000 + + + + + Packaged Unitary + Natural gas + 0.000000 + + + + 3.010000 + COP + 9855.400000 + 9855.400000 + W + Good + + + + + + + + + + 2000 + + + + + + + Packaged/unitary heat pump + Reciprocating + Single stage + + + 2.610000 + COP + 10198.900000 + W + Good + + + + + + + + + + 2000 + + + + + Packaged/unitary heat pump + Reciprocating + Single stage + + + 2.610000 + COP + 9847.200000 + W + Good + + + + + + + + + + 2000 + + + + + Packaged/unitary heat pump + Reciprocating + Single stage + + + 2.610000 + COP + 7737.100000 + W + Good + + + + + + + + + + 2000 + + + + + Packaged/unitary heat pump + Reciprocating + Single stage + + + 2.610000 + COP + 9143.800000 + W + Good + + + + + + + + + + 2000 + + + + + Packaged/unitary heat pump + Reciprocating + Single stage + + + 2.610000 + COP + 9847.200000 + W + Good + + + + + + + + + + 2000 + + + + + + + Central fan + CAV terminal box no reheat + None + + + None + Fixed + + + + + + + + + + + + + + + + 2000 + 1 + Good + + + + + Central fan + CAV terminal box no reheat + None + + + None + Fixed + + + + + + + + + + + + + + + + 2000 + 1 + Good + + + + + Central fan + CAV terminal box no reheat + None + + + None + Fixed + + + + + + + + + + + + + + + + 2000 + 1 + Good + + + + + Central fan + CAV terminal box no reheat + None + + + None + Fixed + + + + + + + + + + + + + + + + 2000 + 1 + Good + + + + + Central fan + CAV terminal box no reheat + None + + + None + Fixed + + + + + + + + + + + + + + + + 2000 + 1 + Good + + + + + + Single + Good + + + + + Single + Good + + + + + Single + Good + + + + + Single + Good + + + + + Single + Good + + + + + + Digital + + +
+ + + + + +
+
+
+
+ + + + + T8 + + + Standard Electronic + + 0.200000 + + 100.000000 + 5.500000 + 32.000000 + 4 + 1.000000 + 43 + false + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + T12 + + + Standard Electronic + 100.000000 + 1.582575 + 316.516000 + 1 + 1.000000 + 5 + true + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + LED + + + Standard Electronic + + 0.100000 + + 100.000000 + 2.752000 + 16.000000 + 4 + 1.000000 + 43 + false + + + + + + + Photocell + Continuous + + + + false + +
+ + + + + +
+
+
+
+ + + + + + + + 40.000000 + 123.000000 + + + Notes + + 1 + 3.600000 + Continuous + 123.000000 + 1.870180 + + Looped + Thermal Efficiency + 1.000000 + 40.000000 + 140.000000 + 1950.520000 + 11722.840000 + W + + + + + + + + + + 2000 + Electricity + Good + + + + +
+ +
+
+ 1 +
+
+ + + 0.536000 + 880.000000 + 880.000000 + Constant Volume + + + + + + 0.536000 + 872.000000 + 872.000000 + Variable Volume + + + + + + 0.536000 + 836.000000 + 836.000000 + Constant Volume + + + + + + 0.536000 + 830.000000 + 830.000000 + Variable Volume + + + + + + 0.536000 + 671.000000 + 671.000000 + Constant Volume + + + + + + 0.536000 + 664.000000 + 664.000000 + Variable Volume + + + + + + 0.536000 + 774.000000 + 774.000000 + Constant Volume + + + + + + 0.536000 + 766.000000 + 766.000000 + Variable Volume + + + + + + 0.536000 + 841.000000 + 841.000000 + Constant Volume + + + + + + 0.536000 + 833.000000 + 833.000000 + Variable Volume + + + + + + + + Wood frame + 0.547000 + + + + + Wood frame + 4.706000 + + + + + + + + Vinyl + Clear uncoated + Single pane + 3.241000 + 0.391000 + 0.391000 + + + + + + Vinyl + Low e + Triple pane + 0.300000 + 0.391000 + 0.391000 + + + + + Insulated metal + 0.500000 + + + Steel + 2.839000 + + + + + + + + 0.345000 + + + + Concrete poured + + + + + Miscellaneous Electric Load + 0.630000 + +
+ + + + + +
+
+
+
+ + + Notes on test + Tight + 0.151000 + ACHnatural + Blower door + +
+ +
+
+
+
+ + + Notes on test + +
+ +
+
+
+
+
+ + + + + Weekday + Occupied + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + Occupied + 06:00:00 + 07:00:00 + 11.000000 + + + Weekday + Occupied + 07:00:00 + 08:00:00 + 21.000000 + + + Weekday + Occupied + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Occupied + 12:00:00 + 13:00:00 + 53.000000 + + + Weekday + Occupied + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Occupied + 17:00:00 + 18:00:00 + 32.000000 + + + Weekday + Occupied + 18:00:00 + 22:00:00 + 11.000000 + + + Weekday + Occupied + 22:00:00 + 23:00:00 + 5.000000 + + + Weekday + Occupied + 23:00:00 + 23:59:59 + 0.000000 + + + Weekend + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + + + + +
+ +
+
+
+ + + + Weekday + Lighting + 00:00:00 + 05:00:00 + 18.000000 + + + Weekday + Lighting + 05:00:00 + 07:00:00 + 23.000000 + + + Weekday + Lighting + 07:00:00 + 08:00:00 + 42.000000 + + + Weekday + Lighting + 08:00:00 + 12:00:00 + 90.000000 + + + Weekday + Lighting + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + Lighting + 13:00:00 + 17:00:00 + 90.000000 + + + Weekday + Lighting + 17:00:00 + 18:00:00 + 61.000000 + + + Weekday + Lighting + 18:00:00 + 20:00:00 + 42.000000 + + + Weekday + Lighting + 20:00:00 + 22:00:00 + 32.000000 + + + Weekday + Lighting + 22:00:00 + 23:00:00 + 23.000000 + + + Weekday + Lighting + 23:00:00 + 23:59:59 + 18.000000 + + + Weekend + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + Holiday + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + + + + + + + + + + Weekday + Miscellaneous equipment + 00:00:00 + 08:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 12:00:00 + 13:00:00 + 94.000000 + + + Weekday + Miscellaneous equipment + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 17:00:00 + 18:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 18:00:00 + 23:59:59 + 20.000000 + + + Weekend + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + Holiday + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 19:00:00 + 100.000000 + + + Weekday + HVAC equipment + 19:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 07:00:00 + 60.000000 + + + Weekday + HVAC equipment + 07:00:00 + 12:00:00 + 100.000000 + + + Weekday + HVAC equipment + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + HVAC equipment + 13:00:00 + 18:00:00 + 100.000000 + + + Weekday + HVAC equipment + 18:00:00 + 20:00:00 + 60.000000 + + + Weekday + HVAC equipment + 20:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + +
+ + + + + + + + + + + Lighting + + + + Retrofit with light emitting diode technologies + + + + Individual system + This measure is designed to replace all fluorescent bulbs with LEDs + 1 + 50.000000 + 774.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + Fan + + + + Add VSD motor controller + + + + Individual system + This measure is designed to retrofit all RTU fans with a VSD + 1 + 750.000000 + 1250.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + + + + + + Electricity + This is required to document irregularities in monthly energy patterns (Std 211 6.1.2.1.j). No irregularities found. + kWh + All end uses + 67334.150000 + 229.753657 + + + + + + + + + + + + + + + kW + 26.040000 + 26.040000 + 4613.820000 + + + + + + Natural gas + No irregularities in monthly energy consumption found. + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + + + + + + 540.830000 + + + + + + Electricity + kWh + Interior lighting + 28.705000 + 20062.690000 + 68.453898 + + + + Electricity + kWh + Heating + 6.722000 + 4698.230000 + 16.030361 + + + + Electricity + kWh + Cooling + 8.769000 + 6128.870000 + 20.911704 + + + + Electricity + kWh + Domestic hot water + 10.281000 + 7185.370000 + 24.516482 + + + + Electricity + kWh + Plug load + 21.379000 + 14942.150000 + 50.982616 + + + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 5933.100000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 5446.100000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 5736.490000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 4980.500000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 5187.210000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 5842.950000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 5801.730000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 6220.160000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 5682.870000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 5571.930000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 5525.150000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 5405.940000 + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 1.720000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 1.250000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.430000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.010000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.200000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.400000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 4.300000 + + + + Peak + On-peak + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 23.580000 + + + + Peak + On-peak + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 25.380000 + + + + Peak + On-peak + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 26.040000 + + + + Peak + On-peak + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 24.450000 + + + + Peak + On-peak + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 17.030000 + + + + Peak + On-peak + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 22.710000 + + + + Peak + On-peak + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 22.010000 + + + + Peak + On-peak + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 21.810000 + + + + Peak + On-peak + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 20.630000 + + + + Peak + On-peak + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 21.870000 + + + + Peak + On-peak + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 21.630000 + + + + Peak + On-peak + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 21.780000 + + + + Load factor + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 0.320000 + + + + Load factor + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.300000 + + + + Load factor + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.280000 + + + + Load factor + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Load factor + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.360000 + + + + Load factor + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 0.330000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 332.160000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 306.290000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 321.720000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 281.540000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 292.530000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 534.100000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 530.450000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 567.490000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 519.930000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 312.970000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 310.490000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 304.150000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 46.690000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 45.930000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 44.550000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 44.580000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 43.900000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 44.210000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 44.530000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 50.920000 + + + + + + 238473.656550 + 43.358800 + 737088.900000 + 134.000000 + 238473.656550 + 43.358800 + 238.473657 + 0.000000 + 0.000000 + 0.000000 + 4952.480000 + 0.900000 + + + + + + + + + + + + + + 2022-06-01 + + + Portfolio Manager + 2019 + 80.000000 + + + + + 238473.656550 + 43.358800 + 4952.480000 + + + + + + + + + + + + + 39070.530000 + 995 + 89.000000 + + + + + 190348.600000 + 34.600000 + 4846.040000 + 0.881000 + + + + + + + + + + + + + + TMY3 + Finished + + + + + + + Electricity + kWh + All end uses + 67334.150000 + 229.753657 + kW + 26.040000 + 26.040000 + + + Natural gas + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + POM-LEDs + + + + + + + Capital + 35.713000 + 772 + + + Electricity + kWh + 11524.540000 + + + Natural gas + MMBtu + 0.000000 + + + 3.220000 + 0 + 0.000000 + 0.000000 + 1 + 824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 1.070000 + 0.000000 + + + + + + + + + + POM-VSDs + + + + + + + Capital + 5.175000 + 9 + + + Electricity + kWh + 207.240000 + + + Natural gas + MMBtu + 4.460000 + + + 0.420000 + 0 + 0.000000 + 0.000000 + 1 + 2000.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 230.150000 + 0.000000 + + + + + + + + + + POM-LEDs-VSDs + + + + + + + + Capital + 41.827000 + 781 + + + Electricity + kWh + 11701.620000 + + + Natural gas + MMBtu + 1.890000 + + + 4.700000 + 0 + 0.000000 + 0.000000 + 1 + 2824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 3.620000 + 0.000000 + + + + + + + + + + Level 2: Energy Survey and Analysis + + + + + + + + + --06-01 + --09-30 + --06-01 + --09-30 + 0.088520 + 0.000000 + + + --01-01 + --05-31 + --01-01 + --05-31 + 0.053140 + 0.000000 + + + --10-01 + --12-31 + --10-01 + --12-31 + 0.053140 + 0.000000 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 16.880000 + + + 12345 + Xcel Energy + + Some-meter-ID + + some-account-number + Building Owner + + + + + + + + + --01-01 + --12-31 + 0.163600 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 43.880000 + + + Xcel Energy + + Some-meter-ID + + some-other-account-number + Building Owner + + + + + + + + + + + + + + Owner + + The dude + Some big company + + + 123-456-7890 + + + + + the.dude@somebigco.net + + + + + + Energy Auditor + + The lady + Auditeers + + + 123-456-7890 + + + + + the.lady@the-three-auditeers.com + + + + + + + diff --git a/spec/files/v2.7.0/example-smalloffice-level2.xml b/spec/files/v2.7.0/example-smalloffice-level2.xml new file mode 100644 index 0000000..c7ef53c --- /dev/null +++ b/spec/files/v2.7.0/example-smalloffice-level2.xml @@ -0,0 +1,2733 @@ + + + + + + + + + Prototype Small Office in Denver + Here we record general problems / issues identified in a walkthrough survey. + + + City Custom Building ID + some ID + + + Custom ID 1 + some other ID + + +
+ + + Some address + + + Denver + CO + 80014 +
+ -104.830000 + 39.660000 + Commercial + Office + + 1 + 0 + 1 + 0 + true + false + + + Gross + 5500.000000 + + + + + + Conditioned + 5500.000000 + + + + + + 6500.000000 + 0.000000 + 0.213300 + 0.050000 + 2000 + 2000 + 2010 + 2020-03-01 + 2000 + +
+ Space function + Office + Office + + + Peak total occupants + 31.000000 + + + + + 40.000000 + Hours per week + + + 50.000000 + Weeks per year + + + + + Gross + 5500.000000 + + + Conditioned + 5500.000000 + + + Single zone +
+
+ Whole building + Rectangular + + + A1 + + + 909.012230 + + + + + 180.187860 + + + + + 42.086890 + + + + + B1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + C1 + + + 909.012230 + + + + + 180.187860 + + + + + 0.000000 + + + + + D1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + + + + 6444.999000 + Good + + + + + + + 3891.153600 + + + +
+
+ + + + + + + + + + Single zone + + + + + Packaged Unitary + Natural gas + 0.000000 + + + + 3.010000 + COP + 10311.100000 + 10311.100000 + W + Good + + + + + + + + + + 2000 + + + + + Packaged Unitary + Natural gas + 0.000000 + + + + 3.010000 + COP + 9801.300000 + 9801.300000 + W + Good + + + + + + + + + + 2000 + + + + + Packaged Unitary + Natural gas + 0.000000 + + + + 3.010000 + COP + 7858.100000 + 7858.100000 + W + Good + + + + + + + + + + 2000 + + + + + Packaged Unitary + Natural gas + 0.000000 + + + + 3.010000 + COP + 9067.800000 + 9067.800000 + W + Good + + + + + + + + + + 2000 + + + + + Packaged Unitary + Natural gas + 0.000000 + + + + 3.010000 + COP + 9855.400000 + 9855.400000 + W + Good + + + + + + + + + + 2000 + + + + + + + Packaged/unitary heat pump + Reciprocating + Single stage + + + 2.610000 + COP + 10198.900000 + W + Good + + + + + + + + + + 2000 + + + + + Packaged/unitary heat pump + Reciprocating + Single stage + + + 2.610000 + COP + 9847.200000 + W + Good + + + + + + + + + + 2000 + + + + + Packaged/unitary heat pump + Reciprocating + Single stage + + + 2.610000 + COP + 7737.100000 + W + Good + + + + + + + + + + 2000 + + + + + Packaged/unitary heat pump + Reciprocating + Single stage + + + 2.610000 + COP + 9143.800000 + W + Good + + + + + + + + + + 2000 + + + + + Packaged/unitary heat pump + Reciprocating + Single stage + + + 2.610000 + COP + 9847.200000 + W + Good + + + + + + + + + + 2000 + + + + + + + Central fan + CAV terminal box no reheat + None + + + None + Fixed + + + + + + + + + + + + + + + + 2000 + 1 + Good + + + + + Central fan + CAV terminal box no reheat + None + + + None + Fixed + + + + + + + + + + + + + + + + 2000 + 1 + Good + + + + + Central fan + CAV terminal box no reheat + None + + + None + Fixed + + + + + + + + + + + + + + + + 2000 + 1 + Good + + + + + Central fan + CAV terminal box no reheat + None + + + None + Fixed + + + + + + + + + + + + + + + + 2000 + 1 + Good + + + + + Central fan + CAV terminal box no reheat + None + + + None + Fixed + + + + + + + + + + + + + + + + 2000 + 1 + Good + + + + + + Single + Good + + + + + Single + Good + + + + + Single + Good + + + + + Single + Good + + + + + Single + Good + + + + + + Digital + + +
+ + + + + +
+
+
+
+ + + + + T8 + + + Standard Electronic + + 0.200000 + + 100.000000 + 5.500000 + 32.000000 + 4 + 1.000000 + 43 + false + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + T12 + + + Standard Electronic + 100.000000 + 1.582575 + 316.516000 + 1 + 1.000000 + 5 + true + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + LED + + + Standard Electronic + + 0.100000 + + 100.000000 + 2.752000 + 16.000000 + 4 + 1.000000 + 43 + false + + + + + + + Photocell + Continuous + + + + false + +
+ + + + + +
+
+
+
+ + + + + + + + 40.000000 + 123.000000 + + + Notes + + 1 + 3.600000 + Continuous + 123.000000 + 1.870180 + + Looped + Thermal Efficiency + 1.000000 + 40.000000 + 140.000000 + 1950.520000 + 11722.840000 + W + + + + + + + + + + 2000 + Electricity + Good + + + + +
+ +
+
+ 1 +
+
+ + + 0.536000 + 880.000000 + 880.000000 + Constant Volume + + + + + + 0.536000 + 872.000000 + 872.000000 + Variable Volume + + + + + + 0.536000 + 836.000000 + 836.000000 + Constant Volume + + + + + + 0.536000 + 830.000000 + 830.000000 + Variable Volume + + + + + + 0.536000 + 671.000000 + 671.000000 + Constant Volume + + + + + + 0.536000 + 664.000000 + 664.000000 + Variable Volume + + + + + + 0.536000 + 774.000000 + 774.000000 + Constant Volume + + + + + + 0.536000 + 766.000000 + 766.000000 + Variable Volume + + + + + + 0.536000 + 841.000000 + 841.000000 + Constant Volume + + + + + + 0.536000 + 833.000000 + 833.000000 + Variable Volume + + + + + + + + Wood frame + 0.547000 + + + + + Wood frame + 4.706000 + + + + + + + + Vinyl + Clear uncoated + Single pane + 3.241000 + 0.391000 + 0.391000 + + + + + + Vinyl + Low e + Triple pane + 0.300000 + 0.391000 + 0.391000 + + + + + Insulated metal + 0.500000 + + + Steel + 2.839000 + + + + + + + + 0.345000 + + + + Concrete poured + + + + + Miscellaneous Electric Load + 0.630000 + +
+ + + + + +
+
+
+
+ + + Notes on test + Tight + 0.151000 + ACHnatural + Blower door + +
+ +
+
+
+
+ + + Notes on test + +
+ +
+
+
+
+
+ + + + + Weekday + Occupied + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + Occupied + 06:00:00 + 07:00:00 + 11.000000 + + + Weekday + Occupied + 07:00:00 + 08:00:00 + 21.000000 + + + Weekday + Occupied + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Occupied + 12:00:00 + 13:00:00 + 53.000000 + + + Weekday + Occupied + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Occupied + 17:00:00 + 18:00:00 + 32.000000 + + + Weekday + Occupied + 18:00:00 + 22:00:00 + 11.000000 + + + Weekday + Occupied + 22:00:00 + 23:00:00 + 5.000000 + + + Weekday + Occupied + 23:00:00 + 23:59:59 + 0.000000 + + + Weekend + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + + + + +
+ +
+
+
+ + + + Weekday + Lighting + 00:00:00 + 05:00:00 + 18.000000 + + + Weekday + Lighting + 05:00:00 + 07:00:00 + 23.000000 + + + Weekday + Lighting + 07:00:00 + 08:00:00 + 42.000000 + + + Weekday + Lighting + 08:00:00 + 12:00:00 + 90.000000 + + + Weekday + Lighting + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + Lighting + 13:00:00 + 17:00:00 + 90.000000 + + + Weekday + Lighting + 17:00:00 + 18:00:00 + 61.000000 + + + Weekday + Lighting + 18:00:00 + 20:00:00 + 42.000000 + + + Weekday + Lighting + 20:00:00 + 22:00:00 + 32.000000 + + + Weekday + Lighting + 22:00:00 + 23:00:00 + 23.000000 + + + Weekday + Lighting + 23:00:00 + 23:59:59 + 18.000000 + + + Weekend + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + Holiday + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + + + + + + + + + + Weekday + Miscellaneous equipment + 00:00:00 + 08:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 12:00:00 + 13:00:00 + 94.000000 + + + Weekday + Miscellaneous equipment + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 17:00:00 + 18:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 18:00:00 + 23:59:59 + 20.000000 + + + Weekend + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + Holiday + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 19:00:00 + 100.000000 + + + Weekday + HVAC equipment + 19:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 07:00:00 + 60.000000 + + + Weekday + HVAC equipment + 07:00:00 + 12:00:00 + 100.000000 + + + Weekday + HVAC equipment + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + HVAC equipment + 13:00:00 + 18:00:00 + 100.000000 + + + Weekday + HVAC equipment + 18:00:00 + 20:00:00 + 60.000000 + + + Weekday + HVAC equipment + 20:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + +
+ + + + + + + + + + + Lighting + + + + Retrofit with light emitting diode technologies + + + + Individual system + This measure is designed to replace all fluorescent bulbs with LEDs + 1 + 50.000000 + 774.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + Fan + + + + Add VSD motor controller + + + + Individual system + This measure is designed to retrofit all RTU fans with a VSD + 1 + 750.000000 + 1250.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + + + + + + Electricity + This is required to document irregularities in monthly energy patterns (Std 211 6.1.2.1.j). No irregularities found. + kWh + All end uses + 67334.150000 + 229.753657 + + + + + + + + + + + + + + + kW + 26.040000 + 26.040000 + 4613.820000 + + + + + + Natural gas + No irregularities in monthly energy consumption found. + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + + + + + + 540.830000 + + + + + + Electricity + kWh + Interior lighting + 28.705000 + 20062.690000 + 68.453898 + + + + Electricity + kWh + Heating + 6.722000 + 4698.230000 + 16.030361 + + + + Electricity + kWh + Cooling + 8.769000 + 6128.870000 + 20.911704 + + + + Electricity + kWh + Domestic hot water + 10.281000 + 7185.370000 + 24.516482 + + + + Electricity + kWh + Plug load + 21.379000 + 14942.150000 + 50.982616 + + + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 5933.100000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 5446.100000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 5736.490000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 4980.500000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 5187.210000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 5842.950000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 5801.730000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 6220.160000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 5682.870000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 5571.930000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 5525.150000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 5405.940000 + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 1.720000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 1.250000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.430000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.010000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.200000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.400000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 4.300000 + + + + Peak + On-peak + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 23.580000 + + + + Peak + On-peak + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 25.380000 + + + + Peak + On-peak + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 26.040000 + + + + Peak + On-peak + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 24.450000 + + + + Peak + On-peak + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 17.030000 + + + + Peak + On-peak + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 22.710000 + + + + Peak + On-peak + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 22.010000 + + + + Peak + On-peak + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 21.810000 + + + + Peak + On-peak + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 20.630000 + + + + Peak + On-peak + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 21.870000 + + + + Peak + On-peak + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 21.630000 + + + + Peak + On-peak + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 21.780000 + + + + Load factor + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 0.320000 + + + + Load factor + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.300000 + + + + Load factor + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.280000 + + + + Load factor + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Load factor + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.360000 + + + + Load factor + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 0.330000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 332.160000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 306.290000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 321.720000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 281.540000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 292.530000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 534.100000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 530.450000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 567.490000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 519.930000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 312.970000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 310.490000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 304.150000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 46.690000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 45.930000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 44.550000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 44.580000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 43.900000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 44.210000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 44.530000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 50.920000 + + + + + + 238473.656550 + 43.358800 + 737088.900000 + 134.000000 + 238473.656550 + 43.358800 + 238.473657 + 0.000000 + 0.000000 + 0.000000 + 4952.480000 + 0.900000 + + + + + + + + + + + + + + 2022-06-01 + + + Portfolio Manager + 2019 + 80.000000 + + + + + 238473.656550 + 43.358800 + 4952.480000 + + + + + + + + + + + + + 39070.530000 + 995 + 89.000000 + + + + + 190348.600000 + 34.600000 + 4846.040000 + 0.881000 + + + + + + + + + + + + + + TMY3 + Finished + + + + + + + Electricity + kWh + All end uses + 67334.150000 + 229.753657 + kW + 26.040000 + 26.040000 + + + Natural gas + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + POM-LEDs + + + + + + + Capital + 35.713000 + 772 + + + Electricity + kWh + 11524.540000 + + + Natural gas + MMBtu + 0.000000 + + + 3.220000 + 0 + 0.000000 + 0.000000 + 1 + 824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 1.070000 + 0.000000 + + + + + + + + + + POM-VSDs + + + + + + + Capital + 5.175000 + 9 + + + Electricity + kWh + 207.240000 + + + Natural gas + MMBtu + 4.460000 + + + 0.420000 + 0 + 0.000000 + 0.000000 + 1 + 2000.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 230.150000 + 0.000000 + + + + + + + + + + POM-LEDs-VSDs + + + + + + + + Capital + 41.827000 + 781 + + + Electricity + kWh + 11701.620000 + + + Natural gas + MMBtu + 1.890000 + + + 4.700000 + 0 + 0.000000 + 0.000000 + 1 + 2824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 3.620000 + 0.000000 + + + + + + + + + + Level 2: Energy Survey and Analysis + + + + + + + + + --06-01 + --09-30 + --06-01 + --09-30 + 0.088520 + 0.000000 + + + --01-01 + --05-31 + --01-01 + --05-31 + 0.053140 + 0.000000 + + + --10-01 + --12-31 + --10-01 + --12-31 + 0.053140 + 0.000000 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 16.880000 + + + 12345 + Xcel Energy + + Some-meter-ID + + some-account-number + Building Owner + + + + + + + + + --01-01 + --12-31 + 0.163600 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 43.880000 + + + Xcel Energy + + Some-meter-ID + + some-other-account-number + Building Owner + + + + + + + + + + + + + + Owner + + The dude + Some big company + + + 123-456-7890 + + + + + the.dude@somebigco.net + + + + + + Energy Auditor + + The lady + Auditeers + + + 123-456-7890 + + + + + the.lady@the-three-auditeers.com + + + + + + + diff --git a/spec/tests/unit/baseline_hvac_planner_spec.rb b/spec/tests/unit/baseline_hvac_planner_spec.rb new file mode 100644 index 0000000..70f0e77 --- /dev/null +++ b/spec/tests/unit/baseline_hvac_planner_spec.rb @@ -0,0 +1,189 @@ +# frozen_string_literal: true + +# ******************************************************************************* +# OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC. +# BuildingSync(R), Copyright (c) Alliance for Energy Innovation, LLC. +# See also https://github.com/BuildingSync/BOSS/blob/develop/LICENSE.md +# ******************************************************************************* + +require 'rexml/document' +require 'BOSS/baseline_hvac_planner' +require 'BOSS/boss_logger' +require 'BOSS/buildingsync_reader/buildingsync_reader' + +RSpec.describe BOSS::BaselineHvacPlanner do + building = [{ type: 'Building', id: 'B-1' }] + result = lambda do |status: :match, measure: 'hvac_ptac', configuration: 'PTAC', group_key: [:delivery, 'D-1'], premises: building, messages: []| + BOSS::HvacTopologySelector::Result.new(status:, configuration:, measure:, hvac_system_id: 'HVAC-1', + record_ids: [], premises:, group_key:, messages:) + end + hvac_systems = REXML::Document.new('').root + + def plan_for(results, systems, template = '90.1-2019') + selector = instance_double(BOSS::HvacTopologySelector, select: results) + described_class.new(selector:).plan(systems, template) + end + + it 'plans whole-building create steps, ventilation last, then sizing' do + doas = result.call(measure: 'hvac_doas', configuration: 'DOAS', group_key: [:other, 'O-1']) + plan = plan_for([doas, result.call, result.call(group_key: [:delivery, 'D-1'])], hvac_systems, '90.1-2016') + + expect(plan.status).to eq(:topology) + expect(plan.steps.map { |step| step[:measure_dir_name] }).to eq( + ['apply_hvac_topology_to_zone_scope', 'apply_hvac_topology_to_zone_scope', 'apply_standard_hvac_sizing_and_efficiency'] + ) + expect(plan.steps.map { |step| step[:arguments][:topology_measure] }.compact).to eq(['hvac_ptac', 'hvac_doas']) + expect(plan.steps.map { |step| step[:arguments][:operation] }.compact).to eq(['create', 'create']) + expect(plan.steps.map { |step| step[:arguments][:standards_template] }.uniq).to eq(['90.1-2016']) + end + + { + 'no HVACSystems' => [[], nil, '90.1-2019', /No HVACSystems/], + 'an unsupported template' => [[], :systems, 'DEER 2017', /Template 'DEER 2017'/], + 'family-only data' => [[{ status: :missing_input, messages: ['Only family-level data'] }], :systems, '90.1-2019', + /missing_input.*family-level/], + 'two conditioning configurations' => [[{}, { measure: 'hvac_pthp', group_key: [:delivery, 'D-2'] }], :systems, '90.1-2019', + /one conditioning configuration, found 2/], + 'ventilation on air-loop HVAC' => [[{ measure: 'hvac_warm_air_furnace', configuration: 'Furnace' }, + { measure: 'hvac_doas', configuration: 'DOAS', group_key: [:other, 'O-1'] }], + :systems, '90.1-2019', /DOAS cannot be added.*Furnace/], + 'zone-linked premises' => [[{ premises: [{ type: 'ThermalZone', id: 'TZ-1' }] }], :systems, '90.1-2019', + /only whole-building premises/] + }.each do |label, (specs, systems, template, message)| + it "falls back for #{label}" do + plan = plan_for(specs.map { |spec| result.call(**spec) }, systems && hvac_systems, template) + + expect(plan.status).to eq(:fallback) + expect(plan.steps).to be_empty + expect(plan.messages.join("\n")).to match(message) + end + end + + it 'plans a building-linked PTAC from BuildingSync XML' do + xml = '' \ + '' \ + 'Packaged terminal air conditioner (PTAC)' \ + '' \ + '' \ + '' \ + '' \ + '' + plan = described_class.new.plan(REXML::Document.new(xml).root, '90.1-2019') + + expect(plan.status).to eq(:topology), plan.messages.join("\n") + expect(plan.steps.first[:arguments][:topology_measure]).to eq('hvac_ptac') + end + + sectioned = REXML::Document.new( + '' \ + '
Space function
' \ + '
Space function
' \ + '
' + ) + sectioned_systems = REXML::XPath.first(sectioned, '//HVACSystems') + section = ->(id) { [{ type: 'Section', id: }] } + + it 'merges same-configuration deliveries whose Section links cover the building' do + results = [result.call(premises: section.call('S-1')), + result.call(premises: section.call('S-2'), group_key: [:delivery, 'D-2'])] + plan = plan_for(results, sectioned_systems) + + expect(plan.status).to eq(:topology), plan.messages.join("\n") + expect(plan.steps.map { |step| step[:arguments][:topology_measure] }.compact).to eq(['hvac_ptac']) + expect(plan.steps.first[:arguments][:zone_scope]).to eq('all_model_zones') + end + + it 'falls back when Section links leave part of the building unserved' do + plan = plan_for([result.call(premises: section.call('S-1'))], sectioned_systems) + + expect(plan.status).to eq(:fallback) + expect(plan.messages.join("\n")).to match(/Section S-1.*only whole-building premises/) + end + + it 'keeps different measure arguments as separate configurations' do + results = [['D-1', 'NaturalGas'], ['D-2', 'Electricity']].map do |id, fuel| + result.call(measure: 'hvac_packaged_rooftop_heat_pump', group_key: [:delivery, id]) + .tap { |r| r.measure_arguments = { 'supplemental_heating_fuel' => fuel } } + end + plan = plan_for(results, hvac_systems) + + expect(plan.messages.join("\n")).to match(/one conditioning configuration, found 2/) + end + + { + 'example-smalloffice-level2.xml' => 'DOE Ref 1980-2004', + 'example-smalloffice-level2-built-2012.xml' => '90.1-2013' + }.each do |file_name, template| + it "plans topology HVAC for #{file_name} with #{template}" do + path = File.expand_path("../../files/v2.7.0/#{file_name}", __dir__) + doc = REXML::Document.new(File.read(path), ignore_whitespace_nodes: :all) + reader = BOSS::BuildingSyncReader.new(doc, nil, ASHRAE90_1) + plan = described_class.new.plan(reader.get_hvac_systems_xml, reader.get_standard_template) + + expect(plan.status).to eq(:topology), plan.messages.join("\n") + step = plan.steps.first[:arguments] + expect(step).to include(topology_measure: 'hvac_packaged_rooftop_heat_pump', zone_scope: 'all_model_zones', + standards_template: template, + topology_arguments_json: '{"supplemental_heating_fuel":"NaturalGas"}') + expect(plan.steps.last).to eq(measure_dir_name: 'apply_standard_hvac_sizing_and_efficiency', + arguments: { standards_template: template }) + end + end + + describe '.proposed_system_ids' do + def systems_with_measures(measure_xml) + xml = <<~XML + + + + + + #{measure_xml} + + + XML + REXML::XPath.first(REXML::Document.new(xml), "//*[local-name()='HVACSystems']") + end + + it 'returns no IDs without HVACSystems or measure references' do + expect(described_class.proposed_system_ids(nil)).to eq([]) + expect(described_class.proposed_system_ids(systems_with_measures(''))).to eq([]) + end + + it 'returns unique HVACSystem IDs named as alternatives or modified systems, without changing the XML' do + systems = systems_with_measures(<<~XML) + + + + + + + + + + XML + before = systems.document.to_s + + expect(described_class.proposed_system_ids(systems)).to eq(['Alt', 'Mod']) + expect(systems.document.to_s).to eq(before) + end + end + + it 'plans the existing system when an unmappable proposed HVACSystem is excluded' do + path = File.expand_path('../../files/v2.7.0/example-smalloffice-level2.xml', __dir__) + doc = REXML::Document.new(File.read(path), ignore_whitespace_nodes: :all) + hvac_systems = REXML::XPath.first(doc, "//*[local-name()='HVACSystems']") + prefix = hvac_systems.prefix.empty? ? '' : "#{hvac_systems.prefix}:" + hvac_systems.add_element("#{prefix}HVACSystem", 'ID' => 'Proposed-HVAC') + measure = hvac_systems.parent.parent.add_element("#{prefix}Measures").add_element("#{prefix}Measure", 'ID' => 'M-1') + ["#{prefix}TypeOfMeasure", "#{prefix}Replacements", "#{prefix}Replacement"] + .reduce(measure) { |parent, name| parent.add_element(name) } + .add_element("#{prefix}AlternativeSystemReplacement", 'IDref' => 'Proposed-HVAC') + + expect(described_class.new.plan(hvac_systems, 'DOE Ref 1980-2004').status).to eq(:fallback) + plan = described_class.new.plan(hvac_systems, 'DOE Ref 1980-2004', + exclude_system_ids: described_class.proposed_system_ids(hvac_systems)) + expect(plan.status).to eq(:topology), plan.messages.join("\n") + expect(plan.steps.first[:arguments]).to include(topology_measure: 'hvac_packaged_rooftop_heat_pump', operation: 'create') + end +end diff --git a/spec/tests/unit/boss_spec.rb b/spec/tests/unit/boss_spec.rb index a7f9baa..0a55741 100644 --- a/spec/tests/unit/boss_spec.rb +++ b/spec/tests/unit/boss_spec.rb @@ -24,21 +24,283 @@ allow(BOSS::BCLWeatherFileDownloader) .to receive(:download_weather_file_from_city_name) .and_return(openstudio_weather_file_path) + end + + def stub_measure_dirs(local:, external:, discovered:, scenario_only: []) + allow(OpenStudio::Extension).to receive(:configure_osw) do |osw| + osw[:measure_paths] = discovered + end + + fake_manager = instance_double(BOSS::ExternalMeasureRepoManager) + allow(BOSS::ExternalMeasureRepoManager).to receive(:new).and_return(fake_manager) + allow(fake_manager).to receive(:local_measure_directories).and_return(local) + allow(fake_manager).to receive(:resolved_measure_directories).and_return(external) + allow(fake_manager).to receive(:resolved_measure_directories) + .with(include_scenario_only: true).and_return(external + scenario_only) + end + + def build_reader(xml_file_name) + xml = File.read(File.join(BOSS_SPEC_FILES_DIR, 'v2.7.0', xml_file_name)) + doc = REXML::Document.new(xml, ignore_whitespace_nodes: :all) + BOSS::BuildingSyncReader.new(doc, openstudio_weather_file_path, ASHRAE90_1) + end + + def common_steps(climate_zone) + { + run_period: { + measure_dir_name: 'set_run_period', + arguments: { __SKIP__: false, timesteps_per_hour: '4', begin_date: '2019-01-01', end_date: '2019-12-31' } + }, + location: { + measure_dir_name: 'ChangeBuildingLocation', + arguments: { __SKIP__: false, weather_file_name: File.expand_path(openstudio_weather_file_path), climate_zone: } + }, + results: { measure_dir_name: 'openstudio_results', arguments: { __SKIP__: false, reg_monthly_details: true } } + } + end + + let(:building_151_steps) do + common = common_steps('ASHRAE 169-2013-3C') + [ + common[:run_period], + common[:location], + { + measure_dir_name: 'create_bar_from_building_type_ratios', + arguments: { + __SKIP__: false, bldg_type_a: 'RetailStandalone', total_bldg_floor_area: 69452.0, floor_height: 0.0, + num_stories_above_grade: 1.0, num_stories_below_grade: 0.0, template: 'DOE Ref 1980-2004', + ns_to_ew_ratio: 3.6732677131179763, story_multiplier_method: 'None' + } + }, + { + measure_dir_name: 'create_typical_building_from_model', + arguments: { __SKIP__: false, template: 'DOE Ref 1980-2004', system_type: 'Inferred', add_swh: true, add_hvac: true, use_upstream_args: false } + }, + { measure_dir_name: 'SetLightingLoadsByLPD', arguments: { __SKIP__: true } }, + { measure_dir_name: 'set_electric_equipment_loads_by_epd', arguments: { __SKIP__: true } }, + { measure_dir_name: 'replace_baseline_windows', arguments: { __SKIP__: true } }, + common[:results] + ] + end - # Stub all OSWArgPopulator class methods so they are no-ops; we only care - # about measure_paths ordering, not the steps payload. + let(:all_measures_steps) do + common = common_steps('ASHRAE 169-2013-5B') [ - :populate_set_run_period_args, - :populate_change_building_location_args, - :populate_create_bar_from_building_type_ratios_args, - :populate_create_typical_building_from_model_args, - :populate_set_lighting_loads_by_LPD_args, - :populate_set_electric_equipment_loads_by_epd_args, - :populate_openstudio_results_args - ].each { |m| allow(OSWArgPopulator).to receive(m) } + common[:run_period], + common[:location], + { + measure_dir_name: 'create_bar_from_building_type_ratios', + arguments: { + __SKIP__: false, bldg_type_a: 'SmallOffice', total_bldg_floor_area: 15000.0, floor_height: 10.0, + num_stories_above_grade: 2.0, num_stories_below_grade: 0.0, template: 'DOE Ref 1980-2004', + ns_to_ew_ratio: 1.5, story_multiplier_method: 'None' + } + }, + { + measure_dir_name: 'create_typical_building_from_model', + arguments: { + __SKIP__: false, template: 'DOE Ref 1980-2004', system_type: 'PSZ-AC with gas unit heaters', + add_swh: true, add_hvac: true, use_upstream_args: false + } + }, + { measure_dir_name: 'SetLightingLoadsByLPD', arguments: { __SKIP__: false, lpd: 1.0 } }, + { measure_dir_name: 'set_electric_equipment_loads_by_epd', arguments: { __SKIP__: false, epd: 1.0 } }, + { + measure_dir_name: 'replace_baseline_windows', + arguments: { __SKIP__: false, window_pane_type: 'Double - No LowE - Clear - Aluminum', u_value_ip: '0.50', shgc: '0.39', vlt: '0.39' } + }, + common[:results] + ] + end + + describe '.write_baseline_osw generated baseline' do + before do + stub_measure_dirs(local: [LOCAL_MEASURES_DIR], external: [external_measure_dir], discovered: [gem_measure_dir]) + end + + { + 'building_151.xml' => :building_151_steps, + 'all_measures_applied_example.xml' => :all_measures_steps + }.each do |xml_file_name, expected_steps| + it "keeps every baseline step and argument for #{xml_file_name}" do + Dir.mktmpdir do |output_dir| + xml = File.join(BOSS_SPEC_FILES_DIR, 'v2.7.0', xml_file_name) + osw_path = described_class.write_baseline_osw(xml, output_dir, openstudio_weather_file_path, ASHRAE90_1) + + expect(osw_path).to eq File.join(output_dir, 'baseline', 'in.osw') + expect(Dir.children(output_dir)).to eq ['baseline'] + expect(Dir.children(File.join(output_dir, 'baseline'))).to eq ['in.osw'] + + osw = JSON.parse(File.read(osw_path), symbolize_names: true) + expect(osw[:steps]).to eq send(expected_steps) + expect(osw.keys).to eq [:seed_file, :weather_file, :measure_paths, :file_paths, :run_directory, :steps, :name, :description] + expect(osw.values_at(:seed_file, :weather_file, :run_directory, :name, :description)).to all(be_nil) + end + end + end + + it 'raises the existing error for a missing XML file without writing output' do + Dir.mktmpdir do |output_dir| + missing = File.join(output_dir, 'missing.xml') + expect { described_class.write_baseline_osw(missing, output_dir, nil, ASHRAE90_1) } + .to raise_error(RuntimeError, "File '#{missing}' does not exist") + expect(Dir.children(output_dir)).to be_empty + end + end + + it 'writes into nested output paths with spaces' do + Dir.mktmpdir do |tmp| + output_dir = File.join(tmp, 'nested dir', 'out') + osw_path = described_class.write_baseline_osw( + File.join(BOSS_SPEC_FILES_DIR, 'v2.7.0', 'building_151.xml'), output_dir, nil, ASHRAE90_1 + ) + expect(osw_path).to eq File.join(output_dir, 'baseline', 'in.osw') + expect(File.file?(osw_path)).to be true + end + end + + it 'does not run workflows while writing' do + expect(OpenStudio::Extension::Runner).not_to receive(:new) + Dir.mktmpdir do |output_dir| + described_class.write_baseline_osw(File.join(BOSS_SPEC_FILES_DIR, 'v2.7.0', 'building_151.xml'), output_dir, nil, ASHRAE90_1) + end + end + end + + describe '.build_baseline_osw' do + before do + stub_measure_dirs(local: [LOCAL_MEASURES_DIR], external: [external_measure_dir], discovered: [gem_measure_dir]) + end + + it 'is private while the public API stays public' do + expect(described_class.private_methods).to include(:build_baseline_osw) + expect(described_class.public_methods).to include(:write_baseline_osw, :run_baseline_osw) + expect(described_class.method(:write_baseline_osw).arity).to eq 4 + expect(described_class.method(:run_baseline_osw).arity).to eq 1 + end + + it 'returns the same steps as the writer without writing files' do + Dir.mktmpdir do |output_dir| + Dir.chdir(output_dir) do + osw = described_class.send(:build_baseline_osw, build_reader('all_measures_applied_example.xml')) + expect(osw[:steps]).to eq all_measures_steps + expect(Dir.children(output_dir)).to be_empty + end + end + end + + it 'returns a fresh workflow on every call' do + reader = build_reader('all_measures_applied_example.xml') + first = described_class.send(:build_baseline_osw, reader) + first[:steps].first[:arguments][:timesteps_per_hour] = '1' + first[:steps] << { measure_dir_name: 'extra', arguments: {} } + first[:measure_paths] << '/mutated' + first[:file_paths] << '/mutated' + + second = described_class.send(:build_baseline_osw, reader) + expect(second[:steps]).to eq all_measures_steps + expect(second[:measure_paths]).not_to include('/mutated') + expect(second[:file_paths]).not_to include('/mutated') + end + + it 'replaces create_typical HVAC with planned topology steps and adds gated topology measure paths' do + stub_measure_dirs(local: [LOCAL_MEASURES_DIR], external: [external_measure_dir], discovered: [gem_measure_dir], + scenario_only: ['/bsync/measures']) + steps = [{ measure_dir_name: 'apply_hvac_topology_to_zone_scope', arguments: { topology_measure: 'hvac_ptac' } }, + { measure_dir_name: 'apply_standard_hvac_sizing_and_efficiency', arguments: {} }] + plan = BOSS::BaselineHvacPlanner::Plan.new(status: :topology, steps: steps, messages: []) + allow_any_instance_of(BOSS::BaselineHvacPlanner).to receive(:plan).and_return(plan) + + osw = described_class.send(:build_baseline_osw, build_reader('all_measures_applied_example.xml')) + names = osw[:steps].map { |step| step[:measure_dir_name] } + typical = names.index('create_typical_building_from_model') + + expect(osw[:steps][typical][:arguments][:add_hvac]).to be false + expect(names[typical + 1, 2]).to eq(steps.map { |step| step[:measure_dir_name] }) + expect(names - steps.map { |step| step[:measure_dir_name] }).to eq(all_measures_steps.map { |step| step[:measure_dir_name] }) + expect(osw[:measure_paths]).to include('/bsync/measures') + end + + it 'keeps fallback measure paths free of gated topology repos' do + stub_measure_dirs(local: [LOCAL_MEASURES_DIR], external: [external_measure_dir], discovered: [gem_measure_dir], + scenario_only: ['/bsync/measures']) + + osw = described_class.send(:build_baseline_osw, build_reader('all_measures_applied_example.xml')) + expect(osw[:steps]).to eq all_measures_steps + expect(osw[:measure_paths]).not_to include('/bsync/measures') + end + + it 'builds a PSZ-HP topology baseline for the small office level 2 example' do + stub_measure_dirs(local: [LOCAL_MEASURES_DIR], external: [external_measure_dir], discovered: [gem_measure_dir]) + + osw = described_class.send(:build_baseline_osw, build_reader('example-smalloffice-level2.xml')) + names = osw[:steps].map { |step| step[:measure_dir_name] } + typical = names.index('create_typical_building_from_model') + + expect(osw[:steps][typical][:arguments][:add_hvac]).to be false + expect(names[typical + 1, 2]).to eq %w[apply_hvac_topology_to_zone_scope apply_standard_hvac_sizing_and_efficiency] + expect(osw[:steps][typical + 1][:arguments]).to include(zone_scope: 'all_model_zones', operation: 'create') + end + + it 'plans baseline HVAC without systems that measures propose' do + stub_measure_dirs(local: [LOCAL_MEASURES_DIR], external: [external_measure_dir], discovered: [gem_measure_dir]) + planner = instance_double(BOSS::BaselineHvacPlanner) + allow(BOSS::BaselineHvacPlanner).to receive(:new).and_return(planner) + allow(BOSS::BaselineHvacPlanner).to receive(:proposed_system_ids).and_return(['Proposed']) + allow(planner).to receive(:plan) + .and_return(BOSS::BaselineHvacPlanner::Plan.new(status: :fallback, steps: [], messages: [])) + + described_class.send(:build_baseline_osw, build_reader('all_measures_applied_example.xml')) + expect(planner).to have_received(:plan).with(anything, 'DOE Ref 1980-2004', exclude_system_ids: ['Proposed']) + end + + it 'does not load scenario planning code' do + expect(defined?(BOSS::ScenarioHvacPlanner)).to be_nil + expect(defined?(BOSS::ScenarioMeasureMapper)).to be_nil + end end describe '.write_baseline_osw measure_paths ordering' do + before do + # Steps are covered above; these examples only check path ordering. + [ + :populate_set_run_period_args, + :populate_change_building_location_args, + :populate_create_bar_from_building_type_ratios_args, + :populate_create_typical_building_from_model_args, + :populate_set_lighting_loads_by_LPD_args, + :populate_set_electric_equipment_loads_by_epd_args, + :populate_replace_baseline_windows_args, + :populate_openstudio_results_args + ].each { |m| allow(OSWArgPopulator).to receive(m) } + end + + it 'orders measure_paths and file_paths exactly as local, gem, then external' do + Dir.mktmpdir do |output_dir| + stub_measure_dirs(local: ['/fake/local/measures'], external: [external_measure_dir], discovered: [gem_measure_dir]) + + osw_path = described_class.write_baseline_osw(xml_path, output_dir, nil, ASHRAE90_1) + osw = JSON.parse(File.read(osw_path), symbolize_names: true) + + expect(osw[:measure_paths]).to eq ['/fake/local/measures', gem_measure_dir, external_measure_dir] + expect(osw[:file_paths]).to eq ['/fake/local/files', '/fake/external/files'] + end + end + + it 'drops nil, empty, and cross-tier duplicate paths without reordering' do + Dir.mktmpdir do |output_dir| + stub_measure_dirs( + local: ['/fake/local/measures'], + external: [external_measure_dir], + discovered: [external_measure_dir, nil, '', '/fake/local/measures', gem_measure_dir, gem_measure_dir] + ) + + osw_path = described_class.write_baseline_osw(xml_path, output_dir, nil, ASHRAE90_1) + osw = JSON.parse(File.read(osw_path), symbolize_names: true) + + expect(osw[:measure_paths]).to eq ['/fake/local/measures', gem_measure_dir, external_measure_dir] + end + end it 'places local measures first, then gem-provided measures, then external repo measures' do Dir.mktmpdir do |output_dir| @@ -112,4 +374,44 @@ end end end + + describe 'running OSWs' do + let(:runner) { instance_double(OpenStudio::Extension::Runner, run_osws: []) } + let(:runner_options) { { run_simulations: true, verbose: false, num_parallel: 7, max_to_run: Float::INFINITY } } + + before do + allow(OpenStudio::Extension::Runner).to receive(:new).and_return(runner) + allow(BOSS.BOSS_logger).to receive(:warn) + allow(OpenStudio).to receive(:logFree) + end + + def touch_osw(*parts) + path = File.join(*parts, 'in.osw') + FileUtils.mkdir_p(File.dirname(path)) + File.write(path, '{}') + path + end + + describe '.run_baseline_osw' do + it 'runs only baseline/in.osw with the existing runner options and returns failures' do + Dir.mktmpdir do |dir| + baseline = touch_osw(dir, 'baseline') + touch_osw(dir, 'scenarios', 'Scenario1') + allow(runner).to receive(:run_osws).and_return(['failed']) + + expect(described_class.run_baseline_osw(dir)).to eq ['failed'] + expect(OpenStudio::Extension::Runner).to have_received(:new).with(Dir.pwd, [], runner_options) + expect(runner).to have_received(:run_osws).with([baseline]) + end + end + + it 'raises the existing error without building a runner when the baseline is missing' do + Dir.mktmpdir do |dir| + expect { described_class.run_baseline_osw(dir) } + .to raise_error(StandardError, /BOSS\.Boss\.run_baseline_osw: .*write_baseline_osw/) + expect(OpenStudio::Extension::Runner).not_to have_received(:new) + end + end + end + end end diff --git a/spec/tests/unit/hvac_target_binder_spec.rb b/spec/tests/unit/hvac_target_binder_spec.rb new file mode 100644 index 0000000..e853bd2 --- /dev/null +++ b/spec/tests/unit/hvac_target_binder_spec.rb @@ -0,0 +1,107 @@ +# frozen_string_literal: true + +# ******************************************************************************* +# OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC. +# BuildingSync(R), Copyright (c) Alliance for Energy Innovation, LLC. +# See also https://github.com/BuildingSync/BOSS/blob/develop/LICENSE.md +# ******************************************************************************* + +require 'json' +require 'BOSS/constants' +require 'BOSS/external_measure_repo_manager' +require 'BOSS/hvac_topology_selector' +require 'BOSS/hvac_target_binder' + +RSpec.describe BOSS::HvacTargetBinder do + def match_result(premises, measure: 'hvac_ptac') + BOSS::HvacTopologySelector::Result.new( + status: :match, configuration: 'Packaged Terminal Air Conditioner', measure: measure, + hvac_system_id: 'HVAC-1', record_ids: ['D-1'], premises: premises, group_key: [:delivery, 'D-1'], messages: [] + ) + end + + let(:binder) { described_class.new } + + ['Building', 'Site', 'Facility'].each do |type| + it "binds #{type} premises to all model zones through the runtime binding measure" do + binding = binder.bind(match_result([{ type: type, id: "#{type}-1" }]), + operation: 'replace', standards_template: '90.1-2016') + expect(binding.status).to eq(:bound) + expect(binding.step).to eq( + measure_dir_name: 'apply_hvac_topology_to_zone_scope', + arguments: { topology_measure: 'hvac_ptac', operation: 'replace', zone_scope: 'all_model_zones', + standards_template: '90.1-2016' } + ) + end + end + + it 'returns missing input for zone or space premises instead of guessing names' do + premises = [{ type: 'Building', id: 'B-1' }, { type: 'ThermalZone', id: 'TZ-1' }] + binding = binder.bind(match_result(premises), operation: 'create', standards_template: '90.1-2019') + expect(binding.status).to eq(:missing_input) + expect(binding.step).to be_nil + expect(binding.messages.first).to include('ThermalZone TZ-1') + end + + it 'binds any premises to explicit zone names as a JSON array' do + premises = [{ type: 'ThermalZone', id: 'TZ-1' }] + binding = binder.bind(match_result(premises), operation: 'replace', standards_template: '90.1-2019', + zone_names: ['Office, East', 'Core', 'Core']) + expect(binding.status).to eq(:bound) + expect(binding.step[:arguments]).to eq( + topology_measure: 'hvac_ptac', operation: 'replace', zone_scope: 'explicit_zone_names', + zone_names_json: '["Office, East","Core"]', standards_template: '90.1-2019' + ) + end + + it 'rejects empty or blank explicit zone names' do + result = match_result([{ type: 'Building', id: 'B-1' }]) + [[], [''], [nil]].each do |names| + expect { binder.bind(result, operation: 'create', standards_template: '90.1-2019', zone_names: names) } + .to raise_error(ArgumentError, /zone_names/) + end + end + + it 'forwards selector measure arguments as topology_arguments_json' do + result = match_result([{ type: 'Building', id: 'B-1' }], measure: 'hvac_packaged_rooftop_heat_pump') + result.measure_arguments = { 'supplemental_heating_fuel' => 'NaturalGas' } + binding = binder.bind(result, operation: 'create', standards_template: '90.1-2019') + expect(binding.step[:arguments][:topology_arguments_json]).to eq('{"supplemental_heating_fuel":"NaturalGas"}') + end + + it 'returns missing input when no premises are linked' do + binding = binder.bind(match_result([]), operation: 'create', standards_template: '90.1-2019') + expect(binding.status).to eq(:missing_input) + end + + it 'passes non-match selector results through unchanged' do + result = match_result([{ type: 'Building', id: 'B-1' }]).dup + result.status = :mapping_gap + result.messages = ['gap'] + binding = binder.bind(result, operation: 'create', standards_template: '90.1-2019') + expect(binding).to have_attributes(status: :mapping_gap, step: nil, messages: ['gap']) + end + + it 'rejects templates and operations the topology measures do not support' do + result = match_result([{ type: 'Building', id: 'B-1' }]) + expect { binder.bind(result, operation: 'create', standards_template: 'DEER 2017') } + .to raise_error(ArgumentError, /standards_template/) + expect { binder.bind(result, operation: 'delete', standards_template: '90.1-2019') } + .to raise_error(ArgumentError, /operation/) + end + + it 'matches the binding measure arguments in the configured measure source' do + dirs = BOSS::ExternalMeasureRepoManager.new.resolved_measure_directories(include_scenario_only: true) + xml_path = dirs.map { |dir| File.join(dir, described_class::BINDING_MEASURE, 'measure.xml') }.find { |p| File.file?(p) } + skip 'apply_hvac_topology_to_zone_scope is not in the configured measure source' if xml_path.nil? + + doc = REXML::Document.new(File.read(xml_path)) + names = doc.get_elements('measure/arguments/argument/name').map(&:text) + expect(names).to eq(['topology_measure', 'operation', 'zone_scope', 'zone_names_json', 'standards_template', + 'topology_arguments_json']) + scopes = doc.get_elements("measure/arguments/argument[name='zone_scope']/choices/choice/value").map(&:text) + expect(scopes).to eq(['all_model_zones', 'explicit_zone_names']) + topologies = doc.get_elements("measure/arguments/argument[name='topology_measure']/choices/choice/value").map(&:text) + expect(topologies).to include('hvac_ptac', 'hvac_doas', 'hvac_vav_hw_reheat') + end +end diff --git a/spec/tests/unit/hvac_topology_selector_spec.rb b/spec/tests/unit/hvac_topology_selector_spec.rb new file mode 100644 index 0000000..cad4f29 --- /dev/null +++ b/spec/tests/unit/hvac_topology_selector_spec.rb @@ -0,0 +1,335 @@ +# frozen_string_literal: true + +# ******************************************************************************* +# OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC. +# BuildingSync(R), Copyright (c) Alliance for Energy Innovation, LLC. +# See also https://github.com/BuildingSync/BOSS/blob/develop/LICENSE.md +# ******************************************************************************* + +require 'rexml/document' +require 'BOSS/hvac_topology_selector' + +RSpec.describe BOSS::HvacTopologySelector do + dx = lambda do |type, condenser = 'CN-AIR'| + "#{type}" \ + "" + end + heat_pump = lambda do |type, backup = 'Electricity'| + backup_xml = backup ? "#{backup}" : '' + "#{type ? "#{type}" : ''}" \ + "#{backup_xml}" + end + central_air = lambda do |terminal, reheat, extra = ''| + "Central fan#{terminal}" \ + "#{reheat}#{extra}" + end + + electric_resistance = '' + gas_furnace = 'Natural gasAirWarm air' + hot_water = 'Hot water' + chilled_water = 'Chilled water' + no_cooling = '' + no_heating = '' + single_zone_cav = central_air.call('CAV terminal box no reheat', 'None') + vav_hw = central_air.call('VAV terminal box not fan powered with reheat', 'Heating plant', '') + fan_coil = ->(type) { "#{type}" } + + air_condenser = '' + hydronic_plants = 'Hot water' \ + 'Natural gas' \ + 'Vapor compression' \ + 'Electric Motor' \ + '' \ + '' \ + 'Cooling tower' + all_plants = hydronic_plants + air_condenser + premises = '' + + # One HVACSystem with a single HS/CS/Delivery triple plus optional plants and other systems. + system_xml = lambda do |delivery:, heating:, cooling:, zoning: nil, plants: all_plants, others: '', delivery_refs: nil, + delivery_premises: premises, cooling_extra: ''| + refs = delivery_refs || '' + zoning_xml = zoning ? "#{zoning}" : '' + '' \ + "#{zoning_xml}#{heating}" \ + "#{cooling}#{cooling_extra}" \ + "#{delivery_premises}#{delivery}#{refs}" \ + "#{plants}#{others}" + end + + def select_from(body, prefix: nil) + ns = prefix ? "xmlns:#{prefix}=\"http://buildingsync.net/schemas/bedes-auc/2019\"" : '' + xml = "#{body}" + xml = xml.gsub(%r{<(/?)([A-Za-z])}, "<\\1#{prefix}:\\2") if prefix + doc = REXML::Document.new(xml) + described_class.new.select(doc.root.elements.to_a.first) + end + + exact_cases = { + 'Packaged Terminal Air Conditioner' => ['hvac_ptac', { delivery: '', heating: electric_resistance, + cooling: dx.call('Packaged terminal air conditioner (PTAC)') }], + 'Packaged Terminal Heat Pump' => ['hvac_pthp', { delivery: '', heating: heat_pump.call('Packaged Terminal'), + cooling: dx.call('Packaged terminal heat pump (PTHP)') }], + 'Packaged Rooftop Air Conditioner' => ['hvac_packaged_rooftop_ac', { delivery: single_zone_cav, heating: gas_furnace, + cooling: dx.call('Packaged/unitary direct expansion/RTU'), + zoning: 'Single zone' }], + 'Packaged Rooftop Heat Pump' => ['hvac_packaged_rooftop_heat_pump', { delivery: single_zone_cav, + heating: heat_pump.call('Packaged Unitary'), + cooling: dx.call('Packaged/unitary heat pump'), + zoning: 'Single zone' }], + 'Warm Air Furnace' => ['hvac_warm_air_furnace', { delivery: single_zone_cav, heating: gas_furnace, cooling: no_cooling, + zoning: 'Single zone' }], + 'Four Pipe Fan Coil Unit' => ['hvac_four_pipe_fan_coil', { delivery: fan_coil.call('Fan coil 4 pipe'), heating: hot_water, + cooling: chilled_water }], + 'VAV with Hot Water Reheat' => ['hvac_vav_hw_reheat', { delivery: vav_hw, heating: hot_water, cooling: chilled_water, + zoning: 'Multi zone', cooling_extra: '1' }], + 'Packaged Rooftop VAV with Hot Water Reheat' => ['hvac_packaged_rooftop_vav_hw_reheat', { + delivery: vav_hw, heating: hot_water, cooling: dx.call('Packaged/unitary direct expansion/RTU'), zoning: 'Multi zone', + cooling_extra: '1' + }], + 'VRF Terminal Unit' => ['hvac_vrf', { delivery: fan_coil.call('VRF terminal units'), heating: heat_pump.call(nil, nil), + cooling: dx.call('Variable refrigerant flow'), cooling_extra: '1' }] + } + + describe 'exact matches' do + exact_cases.each do |configuration, (measure, args)| + it "selects #{measure} for #{configuration}" do + results = select_from(system_xml.call(**args)) + expect(results.length).to eq(1) + result = results.first + expect(result.messages).to eq([]) + expect(result).to have_attributes(status: :match, configuration: configuration, measure: measure, + hvac_system_id: 'HVAC-1', premises: [{ type: 'ThermalZone', id: 'TZ-1' }]) + end + end + + it 'groups VAV by cooling source and fan coils by plant tuple' do + vav = select_from(system_xml.call(**exact_cases['VAV with Hot Water Reheat'][1])).first + fcu = select_from(system_xml.call(**exact_cases['Four Pipe Fan Coil Unit'][1])).first + expect(vav.group_key).to eq([:cooling_source, 'CS-1']) + expect(fcu.group_key).to eq([:plants, 'HP-1', 'CP-1', 'CN-TOWER']) + end + + it 'treats an empty FanBasedDistributionType as absent' do + args = exact_cases['Packaged Terminal Air Conditioner'][1] + delivery = '' + expect(select_from(system_xml.call(**args, delivery:)).first.status).to eq(:match) + end + + it 'accepts FurnaceType Other or absent and rejects other furnace types' do + args = exact_cases['Warm Air Furnace'][1] + other = select_from(system_xml.call(**args, heating: gas_furnace.sub('Warm air', 'Other'))).first + absent = select_from(system_xml.call(**args, heating: gas_furnace.sub('Warm air', ''))).first + steam = select_from(system_xml.call(**args, heating: gas_furnace.sub('Warm air', 'Steam'))).first + expect([other.status, absent.status, steam.status]).to eq([:match, :match, :conflicting_input]) + end + + it 'passes the heat pump backup fuel as a measure argument' do + args = exact_cases['Packaged Rooftop Heat Pump'][1] + electric = select_from(system_xml.call(**args)).first + gas = select_from(system_xml.call(**args, heating: heat_pump.call('Packaged Unitary', 'Natural gas'))).first + expect(electric.measure_arguments).to eq('supplemental_heating_fuel' => 'Electricity') + expect(gas).to have_attributes(status: :match, measure_arguments: { 'supplemental_heating_fuel' => 'NaturalGas' }) + end + + it 'treats CS/Quantity as a guard on VAV and VRF rows' do + ['VAV with Hot Water Reheat', 'VRF Terminal Unit'].each do |configuration| + args = exact_cases[configuration][1] + expect(select_from(system_xml.call(**args, cooling_extra: '')).first.status).to eq(:match) + expect(select_from(system_xml.call(**args, cooling_extra: '2')).first.status).to eq(:conflicting_input) + end + end + + it 'reads an omitted condenser reference as air-cooled for packaged DX but not VRF' do + strip = ->(xml) { xml.sub(%r{.*?}, '') } + ['Packaged Terminal Air Conditioner', 'Packaged Rooftop Heat Pump', 'Packaged Rooftop VAV with Hot Water Reheat'].each do |configuration| + args = exact_cases[configuration][1] + expect(select_from(system_xml.call(**args, cooling: strip.call(args[:cooling]))).first.status).to eq(:match) + end + vrf = exact_cases['VRF Terminal Unit'][1] + expect(select_from(system_xml.call(**vrf, cooling: strip.call(vrf[:cooling]))).first.status).not_to eq(:match) + end + + it 'ignores namespace prefixes' do + result = select_from(system_xml.call(**exact_cases['Packaged Terminal Air Conditioner'][1]), prefix: 'auc').first + expect(result).to have_attributes(status: :match, measure: 'hvac_ptac') + end + end + + describe 'non-match results' do + { + 'mapping gap for fan-powered VAV with electric reheat' => [ + :mapping_gap, 'hvac_packaged_rooftop_vav_electric_reheat', + { delivery: central_air.call('VAV terminal box fan powered with reheat', 'Local electric resistance'), + heating: electric_resistance, cooling: dx.call('Packaged/unitary direct expansion/RTU'), zoning: 'Multi zone' } + ], + 'mapping gap for ground source heat pump' => [ + :mapping_gap, 'hvac_ground_source_heat_pump', + { delivery: '', heating: heat_pump.call(nil, nil), cooling: dx.call('Other', 'CN-G'), + plants: '' } + ], + 'not mappable for split DX' => [ + :not_mappable, nil, + { delivery: single_zone_cav, heating: gas_furnace, cooling: dx.call('Split DX air conditioner'), zoning: 'Single zone' } + ], + 'not mappable for two-pipe fan coil' => [ + :not_mappable, nil, { delivery: fan_coil.call('Fan coil 2 pipe'), heating: hot_water, cooling: chilled_water } + ], + 'not mappable for air-cooled chiller' => [ + :not_mappable, nil, + { delivery: fan_coil.call('Fan coil 4 pipe'), heating: hot_water, cooling: chilled_water, + plants: all_plants.sub('Cooling tower', + '') } + ], + 'missing input when the cooling source reference is absent' => [ + :missing_input, nil, + { delivery: '', heating: electric_resistance, cooling: dx.call('Packaged terminal air conditioner (PTAC)'), + delivery_refs: '' } + ], + 'missing input when the delivery has no linked premises' => [ + :missing_input, nil, + { delivery: '', heating: electric_resistance, cooling: dx.call('Packaged terminal air conditioner (PTAC)'), + delivery_premises: '' } + ], + 'missing input when detailed data identifies no configuration' => [ + :missing_input, nil, { delivery: '', heating: electric_resistance, cooling: no_cooling } + ], + 'conflicting input for a broken condenser reference' => [ + :conflicting_input, nil, + { delivery: '', heating: electric_resistance, + cooling: dx.call('Packaged terminal air conditioner (PTAC)', 'CN-MISSING') } + ], + 'conflicting input for a failed fuel guard' => [ + :conflicting_input, nil, + { delivery: '', heating: "Natural gas#{electric_resistance}", + cooling: dx.call('Packaged terminal air conditioner (PTAC)') } + ], + 'conflicting input for a required-absent element' => [ + :conflicting_input, nil, + { delivery: fan_coil.call('Fan coil 4 pipe'), + heating: electric_resistance, cooling: dx.call('Packaged terminal air conditioner (PTAC)') } + ], + 'conflicting input for four-pipe fan coil with 2 pipe configuration' => [ + :conflicting_input, nil, + { delivery: fan_coil.call('Fan coil 4 pipe').sub('', '2 pipe'), + heating: hot_water, cooling: chilled_water } + ] + }.each do |description, (status, measure, args)| + it "reports #{description}" do + results = select_from(system_xml.call(**args)) + expect(results.length).to eq(1) + expect(results.first.status).to eq(status) + expect(results.first.measure).to eq(measure) + expect(results.first.messages).not_to be_empty + end + end + + it 'reports family-only data as missing input' do + result = select_from('Packaged Rooftop Air Conditioner').first + expect(result.status).to eq(:missing_input) + expect(result.messages.first).to include('family-level data') + end + + it 'reports duplicate IDs as conflicting input' do + body = system_xml.call(**exact_cases['Packaged Terminal Air Conditioner'][1]).sub('CN-AIR">', 'HS-1">') + expect(select_from(body).first.status).to eq(:conflicting_input) + end + + it 'inherits HVACSystem linked premises when the delivery has none' do + system_premises = '' + body = system_xml.call(**exact_cases['Packaged Terminal Air Conditioner'][1], delivery_premises: '') + system_premises + expect(select_from(body).first).to have_attributes(status: :match, premises: [{ type: 'Building', id: 'B-1' }]) + end + + it 'keeps delivery linked premises over HVACSystem linked premises' do + system_premises = '' + body = system_xml.call(**exact_cases['Packaged Terminal Air Conditioner'][1]) + system_premises + expect(select_from(body).first.premises).to eq([{ type: 'ThermalZone', id: 'TZ-1' }]) + end + end + + describe 'ventilation and other HVAC systems' do + ventilation_delivery = "#{premises}#{single_zone_cav}" \ + '' + other = lambda do |type_xml, links: '', + integration: 'Stand-alone'| + "#{type_xml}" \ + "#{integration}#{links}" + end + mechanical = ->(type) { "#{type}" } + + with_ventilation = lambda do |others, ventilation_heating: no_heating| + system_xml.call(**exact_cases['Packaged Terminal Air Conditioner'][1], others: others) + .sub('', "#{ventilation_heating}") + .sub('', "#{no_cooling}") + .sub('', "#{ventilation_delivery}") + end + + it 'selects PTAC plus DOAS as separate results' do + results = select_from(with_ventilation.call(other.call(mechanical.call('Dedicated outdoor air system')))) + expect(results.map { |r| [r.status, r.measure] }).to eq([[:match, 'hvac_ptac'], [:match, 'hvac_doas']]) + expect(results.last.group_key).to eq([:other, 'O-1']) + expect(results.last.record_ids).to eq(['O-1', 'D-V']) + end + + it 'selects ventilation only for supply-only ventilation' do + results = select_from(with_ventilation.call(other.call(mechanical.call('Supply only')))) + expect(results.last).to have_attributes(status: :match, measure: 'hvac_ventilation_only') + end + + it 'reports conditioned DOAS as not mappable' do + results = select_from(with_ventilation.call(other.call(mechanical.call('Dedicated outdoor air system')), + ventilation_heating: electric_resistance)) + expect(results.last.status).to eq(:not_mappable) + end + + it 'reports energy recovery ventilation as not mappable without dropping it' do + results = select_from(with_ventilation.call(other.call(mechanical.call('Energy recovery ventilator')))) + expect(results.map(&:status)).to eq([:match, :not_mappable]) + end + + it 'reports humidifiers as not mappable' do + results = select_from(with_ventilation.call(other.call('', links: ''))) + expect(results.last).to have_attributes(status: :not_mappable, + configuration: 'Humidification / dehumidification / air cleaning') + end + + it 'reports a broken linked delivery as conflicting input' do + links = '' + results = select_from(with_ventilation.call(other.call(mechanical.call('Supply only'), links: links))) + expect(results.last.status).to eq(:conflicting_input) + end + + conditioning_link = '' + + it 'still selects conditioning deliveries linked by VentilationType None' do + results = select_from(with_ventilation.call(other.call(mechanical.call('None'), links: conditioning_link))) + expect(results.map(&:status)).to eq([:match, :missing_input, :no_hvac]) + expect(results.first.measure).to eq('hvac_ptac') + expect(results.last.configuration).to eq('No separate ventilation equipment') + end + + it 'still selects conditioning deliveries linked by an untyped ventilation record' do + untyped = 'false' + results = select_from(with_ventilation.call(other.call(untyped, links: conditioning_link))) + expect(results.first).to have_attributes(status: :match, measure: 'hvac_ptac') + expect(results.last.status).to eq(:missing_input) + end + + it 'still selects conditioning deliveries linked by integrated outdoor air records' do + integrated = other.call(mechanical.call('Supply only'), links: conditioning_link, + integration: 'Integrated with central air distribution') + second = integrated[%r{}].sub('O-1', 'O-2') + results = select_from(with_ventilation.call(integrated.sub('', "#{second}"))) + expect(results.map(&:status)).to eq([:match, :missing_input, :integrated, :integrated]) + expect(results.first.measure).to eq('hvac_ptac') + end + + it 'lets VentilationType None own explicitly unconditioned deliveries' do + body = with_ventilation.call(other.call(mechanical.call('None'))).sub("#{single_zone_cav}", '') + results = select_from(body) + expect(results.map(&:status)).to eq([:match, :no_hvac]) + expect(results.last.configuration).to eq('Explicitly no HVAC') + end + end +end From c85157899833baf9bcc3b3f089dea9c5c4fcdef1 Mon Sep 17 00:00:00 2001 From: JieXiong9119 <69597597+JieXiong9119@users.noreply.github.com> Date: Tue, 17 Nov 2026 23:54:27 -0700 Subject: [PATCH 03/12] CI, integration examples, docs --- .github/workflows/ci.yml | 39 ++++++++++++++++--- README.md | 7 +++- .../integration/write_and_run_osws_spec.rb | 28 +++++++++++++ 3 files changed, 67 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac19f54..bbf00d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,10 @@ concurrency: group: ci-${{ github.ref }} cancel-in-progress: true +env: + # Pinned commit of the sibling checkout that config/external_measure_repos.yml loads via local_path. + BSYNC_MEASURES_REF: 789bd50ec0ba42559f85e5cac23fcbbf8f9bdfbe + jobs: unit: name: unit @@ -25,17 +29,29 @@ jobs: env: LANG: C.UTF-8 LC_ALL: C.UTF-8 + defaults: + run: + working-directory: BOSS steps: - name: Checkout Code uses: actions/checkout@v4 + with: + path: BOSS + # Not released as a gem; config/external_measure_repos.yml loads it from ../buildingsync-measures-gem. + - name: Checkout buildingsync-measures-gem + uses: actions/checkout@v4 + with: + repository: BuildingSync/buildingsync-measures-gem + ref: ${{ env.BSYNC_MEASURES_REF }} + path: buildingsync-measures-gem - name: Cache gems uses: actions/cache@v4 with: path: .bundle/install - key: gems-${{ runner.os }}-os3.10.0-${{ hashFiles('Gemfile.lock', '*.gemspec') }} + key: gems-${{ runner.os }}-os3.10.0-${{ hashFiles('BOSS/Gemfile.lock', 'BOSS/*.gemspec') }} - name: Setup run: | - git config --global --add safe.directory "$GITHUB_WORKSPACE" + git config --global --add safe.directory '*' gem install bundler -v 2.4.10 bundle config set --local path "$GITHUB_WORKSPACE/.bundle/install" bundle install @@ -90,19 +106,30 @@ jobs: LC_ALL: C.UTF-8 BOSS_SHARD: ${{ matrix.shard }} BOSS_SHARDS: '4' + defaults: + run: + working-directory: BOSS steps: - name: Checkout Code uses: actions/checkout@v4 + with: + path: BOSS + - name: Checkout buildingsync-measures-gem + uses: actions/checkout@v4 + with: + repository: BuildingSync/buildingsync-measures-gem + ref: ${{ env.BSYNC_MEASURES_REF }} + path: buildingsync-measures-gem - name: Cache gems uses: actions/cache@v4 with: path: .bundle/install - key: gems-${{ runner.os }}-os3.10.0-${{ hashFiles('Gemfile.lock', '*.gemspec') }} + key: gems-${{ runner.os }}-os3.10.0-${{ hashFiles('BOSS/Gemfile.lock', 'BOSS/*.gemspec') }} - name: Cache external measures uses: actions/cache@v4 with: - path: vendor/external_measures - key: ext-measures-${{ hashFiles('config/external_measure_repos.yml') }} + path: BOSS/vendor/external_measures + key: ext-measures-${{ hashFiles('BOSS/config/external_measure_repos.yml') }} - name: Setup run: | git config --global --add safe.directory '*' @@ -117,4 +144,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: integration-output-shard-${{ matrix.shard }} - path: spec/output + path: BOSS/spec/output diff --git a/README.md b/README.md index b598c6f..0ec7f7f 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ The shipped manifest lives at [config/external_measure_repos.yml](config/externa - local measure roots: `lib/measures` (first in precedence) - external repository: comstock (`measures` and `resources/measures`) +- local checkout: `buildingsync-measures-gem` (`lib/measures`), expected as a sibling of this repository (`../buildingsync-measures-gem`). It is marked `scenario_only` and is added to `measure_paths` only for baselines that use an HVAC topology. CI pins its commit via `BSYNC_MEASURES_REF` in [.github/workflows/ci.yml](.github/workflows/ci.yml). Measure path precedence is: @@ -46,6 +47,10 @@ Measure path precedence is: The generated `in.osw` will include these paths in order under `measure_paths`. +### Baseline HVAC + +When the facility's `HVACSystems` describe a supported topology (currently packaged rooftop heat pump), the baseline sets `create_typical_building_from_model`'s `add_hvac` to `false` and adds `apply_hvac_topology_to_zone_scope` and `apply_standard_hvac_sizing_and_efficiency` from buildingsync-measures-gem. Supported templates are DOE Ref Pre-1980, DOE Ref 1980-2004, and 90.1-2004 through 90.1-2019. HVAC systems referenced by measures as proposed (`AlternativeSystemReplacement` or `ModifiedSystem`) are excluded from the baseline. Otherwise BOSS falls back to the `system_type` mapping below with `add_hvac` set to `true`, and logs a warning explaining the fallback. + ## OpenStudio Compatibility Version | OpenStudio Version | BuildingSync Version | BOSS Version | @@ -96,7 +101,7 @@ The table below maps in detail the BuildingSync XML data to measure inputs. Note | | template | get_standard_template | either `.../Building/YearOfLastMajorRemodel` or `.../Building/YearOfConstruction` | | | system_type | get_principal_HVAC_system_type | at least one mappable entry of `.../Systems/HVACSystems/HVACSystem/PrincipalHVACSystemType` | | | add_swh | | Hard Coded to to true | -| | add_hvac | | Hard Coded to to true | +| | add_hvac | | `true` for fallback baselines; `false` when an HVAC topology is applied (see [Baseline HVAC](#baseline-hvac)) | | [SetLightingLoadsByLPD] | | | | | | lpd | get_total_installed_power | `/InstalledPower` in ALL instances of `.../Systems/LightingSystems/LightingSystem` | | [set_electric_equipment_loads_by_epd] | | | | diff --git a/spec/tests/integration/write_and_run_osws_spec.rb b/spec/tests/integration/write_and_run_osws_spec.rb index 8b0a4f1..4012703 100644 --- a/spec/tests/integration/write_and_run_osws_spec.rb +++ b/spec/tests/integration/write_and_run_osws_spec.rb @@ -39,12 +39,15 @@ test_configs = test_configs.select { |config| SMOKE_FILES.include?(config[0]) } if ENV['BOSS_SMOKE'] == '1' # BOSS_SHARD / BOSS_SHARDS split the fixtures across parallel CI jobs. +run_extra_examples = ENV['BOSS_SMOKE'] != '1' if ENV['BOSS_SHARDS'] shards = Integer(ENV['BOSS_SHARDS']) shard = Integer(ENV.fetch('BOSS_SHARD', '0')) raise ArgumentError, "BOSS_SHARD must be in 0...#{shards}" if shards < 1 || shard.negative? || shard >= shards test_configs = test_configs.select.with_index { |_config, index| index % shards == shard } + # Examples outside test_configs run once, in shard 0. + run_extra_examples &&= shard.zero? end RSpec.describe 'BOSS' do @@ -76,5 +79,30 @@ end end + + next unless run_extra_examples + + { + 'example-smalloffice-level2.xml' => ['smalloffice_l2_topology_doe_ref', 'DOE Ref 1980-2004'], + 'example-smalloffice-level2-built-2012.xml' => ['smalloffice_l2_topology', '90.1-2013'] + }.each do |file_name, (output_name, template)| + it "write and run a topology HVAC baseline. File: #{file_name}, Template: #{template}" do + xml_path = File.join(SPEC_FILES_DIR, 'v2.7.0', file_name) + output_path = File.join(SPEC_OUTPUT_DIR, 'v2.7.0', 'write_and_run_baseline_osw', output_name) + + BOSS::Boss.write_baseline_osw(xml_path, output_path, nil, ASHRAE90_1) + BOSS::Boss.run_baseline_osw(output_path) + + out_osw = JSON.parse(File.read(File.join(output_path, 'baseline', 'out.osw')), symbolize_names: true) + expect(out_osw[:completed_status]).to eq 'Success' + steps = out_osw[:steps].to_h { |step| [step[:measure_dir_name], step] } + expect(steps['create_typical_building_from_model'][:arguments][:add_hvac]).to be false + topology = steps['apply_hvac_topology_to_zone_scope'] + expect(topology[:result][:step_result]).to eq 'Success' + expect(topology[:result][:step_final_condition]) + .to match(/Created \d+ PSZ-HP loops \(NaturalGas supplemental heat\).*#{Regexp.escape(template)}/) + expect(steps['apply_standard_hvac_sizing_and_efficiency'][:result][:step_result]).to eq 'Success' + end + end end end From 4a41fc001fabc3ab23116435b6d50685094118a5 Mon Sep 17 00:00:00 2001 From: JieXiong9119 <69597597+JieXiong9119@users.noreply.github.com> Date: Wed, 18 Nov 2026 00:35:52 -0700 Subject: [PATCH 04/12] update README --- README.md | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0ec7f7f..540c0cb 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,37 @@ The generated `in.osw` will include these paths in order under `measure_paths`. ### Baseline HVAC -When the facility's `HVACSystems` describe a supported topology (currently packaged rooftop heat pump), the baseline sets `create_typical_building_from_model`'s `add_hvac` to `false` and adds `apply_hvac_topology_to_zone_scope` and `apply_standard_hvac_sizing_and_efficiency` from buildingsync-measures-gem. Supported templates are DOE Ref Pre-1980, DOE Ref 1980-2004, and 90.1-2004 through 90.1-2019. HVAC systems referenced by measures as proposed (`AlternativeSystemReplacement` or `ModifiedSystem`) are excluded from the baseline. Otherwise BOSS falls back to the `system_type` mapping below with `add_hvac` set to `true`, and logs a warning explaining the fallback. +When the facility's detailed (L200) `HVACSystems` exactly match a supported topology, the baseline sets `create_typical_building_from_model`'s `add_hvac` to `false` and adds `apply_hvac_topology_to_zone_scope` (operation `create`) and `apply_standard_hvac_sizing_and_efficiency` from buildingsync-measures-gem. Supported templates are DOE Ref Pre-1980, DOE Ref 1980-2004, and 90.1-2004 through 90.1-2019. HVAC systems referenced by measures as proposed (`AlternativeSystemReplacement` or `ModifiedSystem`) are excluded from the baseline. + +Configurations that can produce a topology baseline: + +| Configuration | Topology measure | +|---|---| +| Packaged Terminal Air Conditioner | `hvac_ptac` | +| Packaged Terminal Heat Pump | `hvac_pthp` | +| Four Pipe Fan Coil Unit | `hvac_four_pipe_fan_coil` | +| Packaged Rooftop Air Conditioner | `hvac_packaged_rooftop_ac` | +| Packaged Rooftop Heat Pump | `hvac_packaged_rooftop_heat_pump` | +| Packaged Rooftop VAV with Hot Water Reheat | `hvac_packaged_rooftop_vav_hw_reheat` | +| VAV with Hot Water Reheat | `hvac_vav_hw_reheat` | +| Warm Air Furnace | `hvac_warm_air_furnace` | +| VRF Terminal Unit | `hvac_vrf` | + +A Ventilation Only (`hvac_ventilation_only`) or Dedicated Outdoor Air System (`hvac_doas`) configuration can be added on top, but only alongside PTAC, PTHP, four-pipe fan coil, or VRF. + +Recognized but not yet mapped (always fall back): Packaged Rooftop VAV with Electric Reheat, VAV with Electric Reheat, Water Loop Heat Pump, Ground Source Heat Pump, Chilled Beam, and hydronic radiant systems. + +BOSS also falls back when: + +- any selected `HVACSystem` does not match a supported configuration; +- there is not exactly one conditioning configuration, or there is more than one ventilation configuration; +- ventilation is paired with a conditioning type that does not allow it; +- the template is not supported; +- a system's premises are scoped to specific zones rather than the whole building (the baseline binds topologies to all model zones only). + +On fallback, BOSS uses the `system_type` mapping below with `add_hvac` set to `true`, and logs a warning explaining why. + +Integration simulations currently cover the packaged rooftop heat pump; the other configurations are covered by unit specs. ## OpenStudio Compatibility Version From b7f66bcef6ba406f06bac8742d28ec3b3219e074 Mon Sep 17 00:00:00 2001 From: JieXiong9119 <69597597+JieXiong9119@users.noreply.github.com> Date: Wed, 18 Nov 2026 09:51:27 -0700 Subject: [PATCH 05/12] update pin to measures-gem --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bbf00d5..829caa3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,8 +17,9 @@ concurrency: cancel-in-progress: true env: - # Pinned commit of the sibling checkout that config/external_measure_repos.yml loads via local_path. - BSYNC_MEASURES_REF: 789bd50ec0ba42559f85e5cac23fcbbf8f9bdfbe + # Pinned commit (buildingsync-measures-gem develop, includes PR #6) of the sibling checkout + # that config/external_measure_repos.yml loads via local_path. + BSYNC_MEASURES_REF: 57eec35b4d1d0c36dca3de2181a0164c35e75bd7 jobs: unit: From f5079bfd0f884a43a07cfeed8dbe35fd2bdcafa7 Mon Sep 17 00:00:00 2001 From: JieXiong9119 <69597597+JieXiong9119@users.noreply.github.com> Date: Wed, 18 Nov 2026 11:02:51 -0700 Subject: [PATCH 06/12] rubocop auto --- BOSS.gemspec | 4 +- Gemfile | 4 +- Rakefile | 2 +- lib/BOSS/boss.rb | 170 ++++++++-------- lib/BOSS/boss_logger.rb | 16 +- .../bcl_weather_file_downloader.rb | 12 +- .../buildingsync_reader.rb | 187 +++++++++--------- lib/BOSS/buildingsync_reader/systems_map.rb | 112 +++++------ lib/BOSS/external_measure_repo_manager.rb | 12 +- lib/BOSS/hvac_target_binder.rb | 4 +- lib/BOSS/hvac_topology_selector.rb | 14 +- lib/BOSS/osw_arg_populator.rb | 149 +++++++------- lib/boss_cli.rb | 22 +-- spec/spec_helper.rb | 2 +- .../integration/write_and_run_osws_spec.rb | 15 +- spec/tests/unit/boss_spec.rb | 17 +- spec/tests/unit/buildingsync_reader_spec.rb | 180 ++++++++--------- .../external_measure_repo_manager_spec.rb | 2 +- spec/tests/unit/hvac_target_binder_spec.rb | 6 +- .../tests/unit/hvac_topology_selector_spec.rb | 12 +- 20 files changed, 469 insertions(+), 473 deletions(-) diff --git a/BOSS.gemspec b/BOSS.gemspec index f3fb9b2..12349e9 100644 --- a/BOSS.gemspec +++ b/BOSS.gemspec @@ -24,18 +24,18 @@ Gem::Specification.new do |spec| spec.require_paths = ['lib'] spec.add_dependency 'bundler', '~> 2.4.10' + spec.add_dependency 'httparty', '~> 0.23.2' spec.add_dependency 'openstudio-common-measures', '~> 0.12.3' spec.add_dependency 'openstudio-ee', '~> 0.12.5' spec.add_dependency 'openstudio-extension', '~> 0.9.4' spec.add_dependency 'openstudio-model-articulation', '~> 0.12.2' spec.add_dependency 'openstudio-standards', '~> 0.8.2' - spec.add_dependency 'httparty', '~> 0.23.2' spec.add_dependency 'thor', '~> 1.5.0' + spec.add_development_dependency 'pry', '~> 0.15.2' spec.add_development_dependency 'rake', '~> 13.0' spec.add_development_dependency 'rspec', '~> 3.13' spec.add_development_dependency 'rubocop', '1.50' spec.add_development_dependency 'rubocop-checkstyle_formatter', '0.6.0' spec.add_development_dependency 'rubocop-performance', '1.20.0' - spec.add_development_dependency 'pry', '~> 0.15.2' end diff --git a/Gemfile b/Gemfile index ce665c3..4af77b6 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,5 @@ -source "https://rubygems.org" +source 'https://rubygems.org' gemspec -#gem 'openstudio-extension', path: '../OpenStudio-extension-gem' +# gem 'openstudio-extension', path: '../OpenStudio-extension-gem' diff --git a/Rakefile b/Rakefile index 23985fe..eadf334 100644 --- a/Rakefile +++ b/Rakefile @@ -39,4 +39,4 @@ namespace :measures do puts "External measure roots (#{dirs.length}):" dirs.each { |dir| puts " - #{dir}" } end -end \ No newline at end of file +end diff --git a/lib/BOSS/boss.rb b/lib/BOSS/boss.rb index 69a1085..5268471 100644 --- a/lib/BOSS/boss.rb +++ b/lib/BOSS/boss.rb @@ -23,112 +23,112 @@ class Boss # @param epw_file_path [String] if provided, full/path/to/my.epw # @param standard_to_be_used [String] class << self - def write_baseline_osw(xml_file_path, output_dir, epw_file_path, standard_to_be_used) - # check file exists - if !File.exist?(xml_file_path) - message = "File '#{xml_file_path}' does not exist" - OpenStudio.logFree(OpenStudio::Error, 'BOSS.write_baseline_osw', message) - raise message - end + def write_baseline_osw(xml_file_path, output_dir, epw_file_path, standard_to_be_used) + # check file exists + if !File.exist?(xml_file_path) + message = "File '#{xml_file_path}' does not exist" + OpenStudio.logFree(OpenStudio::Error, 'BOSS.write_baseline_osw', message) + raise message + end - # open file and prepare to read it - xml_data = File.read(xml_file_path) - bsync_doc = REXML::Document.new(xml_data, ignore_whitespace_nodes: :all) - bsync_reader = BOSS::BuildingSyncReader.new(bsync_doc, epw_file_path, standard_to_be_used) + # open file and prepare to read it + xml_data = File.read(xml_file_path) + bsync_doc = REXML::Document.new(xml_data, ignore_whitespace_nodes: :all) + bsync_reader = BOSS::BuildingSyncReader.new(bsync_doc, epw_file_path, standard_to_be_used) - baseline_osw = build_baseline_osw(bsync_reader) + baseline_osw = build_baseline_osw(bsync_reader) - # write to file - workflow_dir = File.join(output_dir, 'baseline') - FileUtils.mkdir_p(workflow_dir) - osw_path = File.join(workflow_dir, 'in.osw') - File.open(osw_path, 'w') do |file| - file << JSON.pretty_generate(baseline_osw) + # write to file + workflow_dir = File.join(output_dir, 'baseline') + FileUtils.mkdir_p(workflow_dir) + osw_path = File.join(workflow_dir, 'in.osw') + File.open(osw_path, 'w') do |file| + file << JSON.pretty_generate(baseline_osw) + end + osw_path end - osw_path - end - # @param osw_dir [String] path to osws - def run_baseline_osw(osw_dir) - # assert we have a baseline osm - baseline_osw_path = File.join(osw_dir, 'baseline', 'in.osw') - - # assert baseline exist - if !File.file?(baseline_osw_path) - error_message = ( - "this function requires #{baseline_osw_path}, which does not exist. "\ - "Create #{baseline_osw_path} with `write_baseline_osw` and try again." - ) - OpenStudio.logFree(OpenStudio::Error, 'BOSS.Boss.run_baseline_osw', error_message) - raise StandardError, "BOSS.Boss.run_baseline_osw: #{error_message}" - end + # @param osw_dir [String] path to osws + def run_baseline_osw(osw_dir) + # assert we have a baseline osm + baseline_osw_path = File.join(osw_dir, 'baseline', 'in.osw') - runner = OpenStudio::Extension::Runner.new(dirname = Dir.pwd, bundle_without = [], options = { run_simulations: true, verbose: false, num_parallel: 7, max_to_run: Float::INFINITY }) + # assert baseline exist + if !File.file?(baseline_osw_path) + error_message = + "this function requires #{baseline_osw_path}, which does not exist. "\ + "Create #{baseline_osw_path} with `write_baseline_osw` and try again." - # run the baseline osm - return runner.run_osws([baseline_osw_path]) - end + OpenStudio.logFree(OpenStudio::Error, 'BOSS.Boss.run_baseline_osw', error_message) + raise StandardError, "BOSS.Boss.run_baseline_osw: #{error_message}" + end + + runner = OpenStudio::Extension::Runner.new(dirname = Dir.pwd, bundle_without = [], options = { run_simulations: true, verbose: false, num_parallel: 7, max_to_run: Float::INFINITY }) + + # run the baseline osm + return runner.run_osws([baseline_osw_path]) + end private - # Returns a new, unsaved baseline OSW hash for the given reader. - def build_baseline_osw(bsync_reader) - # start with an empty baseline workflow - file = File.read(EMPTY_BASELINE_OSW_PATH) - baseline_osw = JSON.parse(file, symbolize_names: true) - - # populate the baseline measures - OSWArgPopulator::populate_set_run_period_args(baseline_osw, bsync_reader) - OSWArgPopulator::populate_change_building_location_args(baseline_osw, bsync_reader) - - OSWArgPopulator::populate_create_bar_from_building_type_ratios_args(baseline_osw, bsync_reader) - hvac_systems = bsync_reader.get_hvac_systems_xml - hvac_plan = BaselineHvacPlanner.new.plan(hvac_systems, bsync_reader.get_standard_template, - exclude_system_ids: BaselineHvacPlanner.proposed_system_ids(hvac_systems)) - OSWArgPopulator::populate_create_typical_building_from_model_args(baseline_osw, bsync_reader, - add_hvac: !hvac_plan.topology?) - if hvac_plan.topology? - hvac_plan.steps.each { |step| OSWArgPopulator.append_step(baseline_osw, step) } - else - hvac_plan.messages.each do |message| - BOSS.BOSS_logger.warn("BOSS.Boss: Keeping create_typical_building_from_model HVAC: #{message}") + # Returns a new, unsaved baseline OSW hash for the given reader. + def build_baseline_osw(bsync_reader) + # start with an empty baseline workflow + file = File.read(EMPTY_BASELINE_OSW_PATH) + baseline_osw = JSON.parse(file, symbolize_names: true) + + # populate the baseline measures + OSWArgPopulator.populate_set_run_period_args(baseline_osw, bsync_reader) + OSWArgPopulator.populate_change_building_location_args(baseline_osw, bsync_reader) + + OSWArgPopulator.populate_create_bar_from_building_type_ratios_args(baseline_osw, bsync_reader) + hvac_systems = bsync_reader.get_hvac_systems_xml + hvac_plan = BaselineHvacPlanner.new.plan(hvac_systems, bsync_reader.get_standard_template, + exclude_system_ids: BaselineHvacPlanner.proposed_system_ids(hvac_systems)) + OSWArgPopulator.populate_create_typical_building_from_model_args(baseline_osw, bsync_reader, + add_hvac: !hvac_plan.topology?) + if hvac_plan.topology? + hvac_plan.steps.each { |step| OSWArgPopulator.append_step(baseline_osw, step) } + else + hvac_plan.messages.each do |message| + BOSS.BOSS_logger.warn("BOSS.Boss: Keeping create_typical_building_from_model HVAC: #{message}") + end end - end - OSWArgPopulator::populate_set_lighting_loads_by_LPD_args(baseline_osw, bsync_reader) - OSWArgPopulator::populate_set_electric_equipment_loads_by_epd_args(baseline_osw, bsync_reader) - OSWArgPopulator::populate_replace_baseline_windows_args(baseline_osw, bsync_reader) + OSWArgPopulator.populate_set_lighting_loads_by_LPD_args(baseline_osw, bsync_reader) + OSWArgPopulator.populate_set_electric_equipment_loads_by_epd_args(baseline_osw, bsync_reader) + OSWArgPopulator.populate_replace_baseline_windows_args(baseline_osw, bsync_reader) - OSWArgPopulator::populate_openstudio_results_args(baseline_osw, bsync_reader) + OSWArgPopulator.populate_openstudio_results_args(baseline_osw, bsync_reader) - # Gather extension-derived paths (typically gem-based measures/files) from ObjectSpace. - OpenStudio::Extension.configure_osw(baseline_osw) + # Gather extension-derived paths (typically gem-based measures/files) from ObjectSpace. + OpenStudio::Extension.configure_osw(baseline_osw) - # Force ordering: local BOSS measures, extension-discovered (gems), then external repos. - manager = ExternalMeasureRepoManager.new - local_measure_dirs = manager.local_measure_directories - # Topology HVAC steps need buildingsync-measures-gem, which fallback baselines omit. - external_measure_dirs = manager.resolved_measure_directories(include_scenario_only: hvac_plan.topology?) - discovered_measure_dirs = baseline_osw[:measure_paths] || [] + # Force ordering: local BOSS measures, extension-discovered (gems), then external repos. + manager = ExternalMeasureRepoManager.new + local_measure_dirs = manager.local_measure_directories + # Topology HVAC steps need buildingsync-measures-gem, which fallback baselines omit. + external_measure_dirs = manager.resolved_measure_directories(include_scenario_only: hvac_plan.topology?) + discovered_measure_dirs = baseline_osw[:measure_paths] || [] - discovered_nonlocal_nonexternal = discovered_measure_dirs.reject do |path| - local_measure_dirs.include?(path) || external_measure_dirs.include?(path) - end + discovered_nonlocal_nonexternal = discovered_measure_dirs.reject do |path| + local_measure_dirs.include?(path) || external_measure_dirs.include?(path) + end - baseline_osw[:measure_paths] = ordered_unique(local_measure_dirs + discovered_nonlocal_nonexternal + external_measure_dirs) + baseline_osw[:measure_paths] = ordered_unique(local_measure_dirs + discovered_nonlocal_nonexternal + external_measure_dirs) - local_file_paths = local_measure_dirs.map { |path| measure_path_to_files_path(path) } - external_file_paths = external_measure_dirs.map { |path| measure_path_to_files_path(path) } - discovered_file_paths = baseline_osw[:file_paths] || [] + local_file_paths = local_measure_dirs.map { |path| measure_path_to_files_path(path) } + external_file_paths = external_measure_dirs.map { |path| measure_path_to_files_path(path) } + discovered_file_paths = baseline_osw[:file_paths] || [] - discovered_file_nonlocal_nonexternal = discovered_file_paths.reject do |path| - local_file_paths.include?(path) || external_file_paths.include?(path) - end + discovered_file_nonlocal_nonexternal = discovered_file_paths.reject do |path| + local_file_paths.include?(path) || external_file_paths.include?(path) + end - baseline_osw[:file_paths] = ordered_unique(local_file_paths + discovered_file_nonlocal_nonexternal + external_file_paths) + baseline_osw[:file_paths] = ordered_unique(local_file_paths + discovered_file_nonlocal_nonexternal + external_file_paths) - baseline_osw - end + baseline_osw + end def measure_path_to_files_path(measure_path) path = measure_path.to_s diff --git a/lib/BOSS/boss_logger.rb b/lib/BOSS/boss_logger.rb index 249939c..481f1f9 100644 --- a/lib/BOSS/boss_logger.rb +++ b/lib/BOSS/boss_logger.rb @@ -8,14 +8,14 @@ module BOSS # module BOSSLogger - @@BOSS_logger = Logger.new($stdout) + @@BOSS_logger = Logger.new($stdout) - # Set Logger::DEBUG for development - @@BOSS_logger.level = Logger::DEBUG - ## - # Defining class variable "@@logger" to log errors, info and warning messages. - def self.BOSS_logger - @@BOSS_logger - end + # Set Logger::DEBUG for development + @@BOSS_logger.level = Logger::DEBUG + ## + # Defining class variable "@@logger" to log errors, info and warning messages. + def self.BOSS_logger + @@BOSS_logger + end # end end diff --git a/lib/BOSS/buildingsync_reader/bcl_weather_file_downloader.rb b/lib/BOSS/buildingsync_reader/bcl_weather_file_downloader.rb index 48490dc..6a3afc9 100644 --- a/lib/BOSS/buildingsync_reader/bcl_weather_file_downloader.rb +++ b/lib/BOSS/buildingsync_reader/bcl_weather_file_downloader.rb @@ -22,8 +22,8 @@ class BCLWeatherFileDownloader def self.download_weather_file_from_city_name(city_name, state_name) # from BCL, get closest weather station to city response = HTTParty.get("#{@@base_BCL_uri}/location:#{city_name.gsub(' ', '+')},#{state_name}.xml?fq=component_tags:\"Weather File\"") - results = REXML::Document.new(response.body, {ignore_whitespace_nodes: :all, compress_whitespace: :all}).elements["results"] - results = results.children.filter {|x| x.name == "result"} + results = REXML::Document.new(response.body, { ignore_whitespace_nodes: :all, compress_whitespace: :all }).elements['results'] + results = results.children.filter { |x| x.name == 'result' } if results.empty? raise StandardError, "No weather files found within a 40 mile radius #{city_name},#{state_name} within the BCL." @@ -31,10 +31,10 @@ def self.download_weather_file_from_city_name(city_name, state_name) # just pick the closest result = results[0] - filenames = result.elements["component/files"].children.map {|x| x.elements["filename"].text} + filenames = result.elements['component/files'].children.map { |x| x.elements['filename'].text } filename = filenames[0] - filename[".epw"] = "" - state_name = filename.split("_")[1] + filename['.epw'] = '' + state_name = filename.split('_')[1] # from ep, get the zip uri = "#{@@base_EP_uri}/USA/#{state_name}/#{filename}/#{filename}.zip" @@ -50,7 +50,7 @@ def self.download_weather_file_from_city_name(city_name, state_name) end - return File.join(WEATHER_DIR, filename + ".epw") + return File.join(WEATHER_DIR, filename + '.epw') end end end diff --git a/lib/BOSS/buildingsync_reader/buildingsync_reader.rb b/lib/BOSS/buildingsync_reader/buildingsync_reader.rb index 91ce430..792834c 100644 --- a/lib/BOSS/buildingsync_reader/buildingsync_reader.rb +++ b/lib/BOSS/buildingsync_reader/buildingsync_reader.rb @@ -21,13 +21,12 @@ def initialize(bsync_doc, epw_file_path, standard_to_be_used) # get namespace ns = @bsync_doc.elements[1].prefix - @ns = ns.nil? || ns == ""? nil : ns + ":" + @ns = ns.nil? || ns == '' ? nil : ns + ':' # just some convenience attr @facility_xml = @bsync_doc.elements["/#{@ns}BuildingSync/#{@ns}Facilities/#{@ns}Facility"] @site_xml = @facility_xml.elements["#{@ns}Sites/#{@ns}Site"] @building_xml = @site_xml.elements["#{@ns}Buildings/#{@ns}Building"] - end # tries to get weather file from: @@ -63,7 +62,7 @@ def get_epw_file_path BOSS.BOSS_logger.info("|\t|\t climate_zone not found") end - message = "Could not set a weather file as neither climate zone not city/state could be found" + message = 'Could not set a weather file as neither climate zone not city/state could be found' raise StandardError, 'BOSS.BuildingSyncReader.get_epw_file_path ' + message end @@ -76,11 +75,11 @@ def _get_climate_zone(xml, type) end def _format_climate_zone(climate_zone, type) - return "ASHRAE 169-2013-#{climate_zone}" if type == "ASHRAE" - return "CEC T24-CEC#{climate_zone.gsub('Climate Zone', '').strip}" if type == "CaliforniaTitle24" + return "ASHRAE 169-2013-#{climate_zone}" if type == 'ASHRAE' + return "CEC T24-CEC#{climate_zone.gsub('Climate Zone', '').strip}" if type == 'CaliforniaTitle24' end - preferred_type = @standard_to_be_used == ASHRAE90_1 ? "ASHRAE" : "CaliforniaTitle24" + preferred_type = @standard_to_be_used == ASHRAE90_1 ? 'ASHRAE' : 'CaliforniaTitle24' BOSS.BOSS_logger.info("|\t|\t|\t- checking building climate zone...") climate_zone = _get_climate_zone(@building_xml, preferred_type) @@ -123,7 +122,7 @@ def get_occupancy_classification occupancy_classification = @building_xml.elements["#{@ns}OccupancyClassification"]&.text return occupancy_classification if !occupancy_classification.nil? - section_elements = @building_xml.elements.each("#{@ns}Sections/#{@ns}Section"){|s| s} + section_elements = @building_xml.elements.each("#{@ns}Sections/#{@ns}Section") { |s| s } return nil if section_elements.nil? candidates = section_elements.filter_map do |section_element| @@ -132,7 +131,7 @@ def get_occupancy_classification section_floor_areas_xml = section_element.elements["#{@ns}FloorAreas"] section_floor_area = !section_floor_areas_xml.nil? ? _get_total_floor_area_from_floor_areas_xml(section_floor_areas_xml) : 0 - {occupancy_classification: section_occupancy_classification, floor_area: section_floor_area} + { occupancy_classification: section_occupancy_classification, floor_area: section_floor_area } end return nil if candidates.empty? return candidates.first[:occupancy_classification] if candidates.length == 1 @@ -147,7 +146,7 @@ def get_building_type_and_bar_division_method occupancy_classification = get_occupancy_classification BOSS.BOSS_logger.info("|\t|\t|\t occupancy classification: #{occupancy_classification}") BOSS.BOSS_logger.info("|\t|\t|\t- getting total floor area...") - total_floor_area = get_total_floor_area(num_indent=4) + total_floor_area = get_total_floor_area(num_indent = 4) BOSS.BOSS_logger.info("|\t|\t|\t total_floor_area: #{total_floor_area}") BOSS.BOSS_logger.info("|\t|\t|\t- getting number of floors...") total_number_floors = _get_total_number_floors @@ -179,19 +178,19 @@ def get_building_type_and_bar_division_method # 1. /FloorAreas of building # 2. /FloorAreas of site # The building is more specific than the site, so its value wins when both are present. - def get_total_floor_area(num_indent=2) + def get_total_floor_area(num_indent = 2) # check building floor area - BOSS.BOSS_logger.info("#{"|\t"*num_indent}- checking building for total floor area...") + BOSS.BOSS_logger.info("#{"|\t" * num_indent}- checking building for total floor area...") building_floor_areas_xml = @building_xml.nil? ? nil : @building_xml.elements["#{@ns}FloorAreas"] - building_area = !building_floor_areas_xml.nil? ? _get_total_floor_area_from_floor_areas_xml(building_floor_areas_xml, num_indent+1) : 0 - BOSS.BOSS_logger.info("#{"|\t"*num_indent} building floor area is #{building_area}") + building_area = !building_floor_areas_xml.nil? ? _get_total_floor_area_from_floor_areas_xml(building_floor_areas_xml, num_indent + 1) : 0 + BOSS.BOSS_logger.info("#{"|\t" * num_indent} building floor area is #{building_area}") return building_area if building_area > 0 # check site floor area - BOSS.BOSS_logger.info("#{"|\t"*num_indent}- checking site for total floor area...") + BOSS.BOSS_logger.info("#{"|\t" * num_indent}- checking site for total floor area...") site_floor_areas_xml = @site_xml.elements["#{@ns}FloorAreas"] - site_area = !site_floor_areas_xml.nil? ? _get_total_floor_area_from_floor_areas_xml(site_floor_areas_xml, num_indent+1) : 0 - BOSS.BOSS_logger.info("#{"|\t"*num_indent} site floor area is #{site_area}") + site_area = !site_floor_areas_xml.nil? ? _get_total_floor_area_from_floor_areas_xml(site_floor_areas_xml, num_indent + 1) : 0 + BOSS.BOSS_logger.info("#{"|\t" * num_indent} site floor area is #{site_area}") return site_area if site_area > 0 # TODO: read sections @@ -202,7 +201,7 @@ def get_total_floor_area(num_indent=2) # 1. Gross floor area # 2. Sum of "Conditioned" + "Common" + "Heated and Cooled" + "Heated Only" + "Cooled Only" floor area # 3. Sum of "Conditioned above grade" + "Conditioned below grade" floor area - def _get_total_floor_area_from_floor_areas_xml(floor_areas_xml, num_indent=5) + def _get_total_floor_area_from_floor_areas_xml(floor_areas_xml, num_indent = 5) # build a hash of the floor area in meters, by type floor_area_by_type = {} floor_area_by_type.default = 0 @@ -215,21 +214,21 @@ def _get_total_floor_area_from_floor_areas_xml(floor_areas_xml, num_indent=5) end # first, try to get it from simply "Gross" - BOSS.BOSS_logger.info("#{"|\t"*num_indent} - checking gross floor area") - gross_floor_area = floor_area_by_type["Gross"] - BOSS.BOSS_logger.info("#{"|\t"*num_indent} - gross floor area: #{gross_floor_area}") + BOSS.BOSS_logger.info("#{"|\t" * num_indent} - checking gross floor area") + gross_floor_area = floor_area_by_type['Gross'] + BOSS.BOSS_logger.info("#{"|\t" * num_indent} - gross floor area: #{gross_floor_area}") return gross_floor_area if gross_floor_area > 0 # next, try to get it from "Conditioned" + "Common" + "Heated and Cooled" + "Heated Only" + "Cooled Only" - BOSS.BOSS_logger.info("#{"|\t"*num_indent} - checking conditioned floor area") - conditioned_area = floor_area_by_type["Conditioned"] + floor_area_by_type["Common"] + floor_area_by_type["Heated and Cooled"] + floor_area_by_type["Heated Only"] + floor_area_by_type["Cooled Only"] - BOSS.BOSS_logger.info("#{"|\t"*num_indent} - conditioned floor area: #{conditioned_area}") + BOSS.BOSS_logger.info("#{"|\t" * num_indent} - checking conditioned floor area") + conditioned_area = floor_area_by_type['Conditioned'] + floor_area_by_type['Common'] + floor_area_by_type['Heated and Cooled'] + floor_area_by_type['Heated Only'] + floor_area_by_type['Cooled Only'] + BOSS.BOSS_logger.info("#{"|\t" * num_indent} - conditioned floor area: #{conditioned_area}") return conditioned_area if conditioned_area > 0 # next, try to get it from "Conditioned above grade" + "Conditioned below grade" - BOSS.BOSS_logger.info("#{"|\t"*num_indent} - checking conditioned floor area (above + below)") - conditioned_area = floor_area_by_type["Conditioned above grade"] + floor_area_by_type["Conditioned below grade"] - BOSS.BOSS_logger.info("#{"|\t"*num_indent} - conditioned floor area (above + below): #{conditioned_area}") + BOSS.BOSS_logger.info("#{"|\t" * num_indent} - checking conditioned floor area (above + below)") + conditioned_area = floor_area_by_type['Conditioned above grade'] + floor_area_by_type['Conditioned below grade'] + BOSS.BOSS_logger.info("#{"|\t" * num_indent} - conditioned floor area (above + below): #{conditioned_area}") return conditioned_area if conditioned_area > 0 # thats all we got! @@ -239,60 +238,59 @@ def _get_total_floor_area_from_floor_areas_xml(floor_areas_xml, num_indent=5) # tries to get total number floor from: # 1. building's FloorsAboveGrade # 2. building's ConditionedFloorsAboveGrade + UnconditionedFloorsAboveGrade - def get_floor_above_grade(num_indent=2) - BOSS.BOSS_logger.info("#{"|\t"*num_indent}- checking building floors above grade...") + def get_floor_above_grade(num_indent = 2) + BOSS.BOSS_logger.info("#{"|\t" * num_indent}- checking building floors above grade...") floors_above_grade = @building_xml.elements["#{@ns}FloorsAboveGrade"]&.text - BOSS.BOSS_logger.info("#{"|\t"*num_indent} floors above grade: #{floors_above_grade}") - return floors_above_grade.to_f if !floors_above_grade.nil? + BOSS.BOSS_logger.info("#{"|\t" * num_indent} floors above grade: #{floors_above_grade}") + return floors_above_grade.to_f if !floors_above_grade.nil? - BOSS.BOSS_logger.info("#{"|\t"*num_indent}- checking building conditioned floors above grade and unconditioned floors above grade...") + BOSS.BOSS_logger.info("#{"|\t" * num_indent}- checking building conditioned floors above grade and unconditioned floors above grade...") conditioned_floors_above_grade = @building_xml.elements["#{@ns}ConditionedFloorsAboveGrade"]&.text unconditioned_floors_above_grade = @building_xml.elements["#{@ns}UnconditionedFloorsAboveGrade"]&.text - BOSS.BOSS_logger.info("#{"|\t"*num_indent} conditioned floors above grade: #{conditioned_floors_above_grade}") - BOSS.BOSS_logger.info("#{"|\t"*num_indent} unconditioned floors above grade: #{unconditioned_floors_above_grade}") + BOSS.BOSS_logger.info("#{"|\t" * num_indent} conditioned floors above grade: #{conditioned_floors_above_grade}") + BOSS.BOSS_logger.info("#{"|\t" * num_indent} unconditioned floors above grade: #{unconditioned_floors_above_grade}") if !conditioned_floors_above_grade.nil? || !unconditioned_floors_above_grade.nil? return (conditioned_floors_above_grade.to_f || 0) + (unconditioned_floors_above_grade.to_f || 0) end - BOSS.BOSS_logger.info("#{"|\t"*num_indent}- cannot find floors above grade") + BOSS.BOSS_logger.info("#{"|\t" * num_indent}- cannot find floors above grade") return nil end # tries to get total number floor from: # 1. building's FloorsBelowGrade # 2. building's ConditionedFloorsBelowGrade + UnconditionedFloorsBelowGrade - def get_floor_below_grade(num_indent=2) - BOSS.BOSS_logger.info("#{"|\t"*num_indent}- checking building floors below grade...") + def get_floor_below_grade(num_indent = 2) + BOSS.BOSS_logger.info("#{"|\t" * num_indent}- checking building floors below grade...") floors_below_grade = @building_xml.elements["#{@ns}FloorsBelowGrade"]&.text - BOSS.BOSS_logger.info("#{"|\t"*num_indent} floors below grade: #{floors_below_grade}") - return floors_below_grade.to_f if !floors_below_grade.nil? + BOSS.BOSS_logger.info("#{"|\t" * num_indent} floors below grade: #{floors_below_grade}") + return floors_below_grade.to_f if !floors_below_grade.nil? - BOSS.BOSS_logger.info("#{"|\t"*num_indent}- checking building conditioned floors below grade and unconditioned floors below grade...") + BOSS.BOSS_logger.info("#{"|\t" * num_indent}- checking building conditioned floors below grade and unconditioned floors below grade...") conditioned_floors_below_grade = @building_xml.elements["#{@ns}ConditionedFloorsBelowGrade"]&.text unconditioned_floors_below_grade = @building_xml.elements["#{@ns}UnconditionedFloorsBelowGrade"]&.text - BOSS.BOSS_logger.info("#{"|\t"*num_indent} conditioned floors below grade: #{conditioned_floors_below_grade}") - BOSS.BOSS_logger.info("#{"|\t"*num_indent} unconditioned floors below grade: #{unconditioned_floors_below_grade}") + BOSS.BOSS_logger.info("#{"|\t" * num_indent} conditioned floors below grade: #{conditioned_floors_below_grade}") + BOSS.BOSS_logger.info("#{"|\t" * num_indent} unconditioned floors below grade: #{unconditioned_floors_below_grade}") if !conditioned_floors_below_grade.nil? || !unconditioned_floors_below_grade.nil? return (conditioned_floors_below_grade.to_f || 0) + (unconditioned_floors_below_grade.to_f || 0) end - BOSS.BOSS_logger.info("#{"|\t"*num_indent}- cannot find floors below grade") + BOSS.BOSS_logger.info("#{"|\t" * num_indent}- cannot find floors below grade") return nil end def _get_total_number_floors BOSS.BOSS_logger.info("|\t|\t|\t|\t- getting floors above grade...") - floors_above_grade = get_floor_above_grade(num_indent=5) + floors_above_grade = get_floor_above_grade(num_indent = 5) BOSS.BOSS_logger.info("|\t|\t|\t|\t floors above grade: #{floors_above_grade}") BOSS.BOSS_logger.info("|\t|\t|\t|\t- getting floors below grade...") - floors_below_grade = get_floor_below_grade(num_indent=5) + floors_below_grade = get_floor_below_grade(num_indent = 5) BOSS.BOSS_logger.info("|\t|\t|\t|\t floors below grade: #{floors_below_grade}") - return (floors_above_grade || 1) + (floors_below_grade || 0) + return (floors_above_grade || 1) + (floors_below_grade || 0) end - - # tries to get year built from: + # tries to get year built from: # 1. /YearOfLastMajorRemodel of building # 2. /YearOfConstruction of building def get_built_year @@ -304,32 +302,34 @@ def get_built_year BOSS.BOSS_logger.info("|\t|\t|\t|\t- checking year of construction...") year_of_construction = @building_xml.elements["#{@ns}YearOfConstruction"]&.text BOSS.BOSS_logger.info("|\t|\t|\t|\t year of construction: #{year_of_construction}...") - return year_of_construction.to_f if !year_of_construction.nil? + return year_of_construction.to_f if !year_of_construction.nil? end # map year built and standard_to_be_used to a standard_template def get_standard_template def _get_standard_template(built_year) if @standard_to_be_used == CA_TITLE24 - return "DEER Pre-1975" if built_year < 1975 - return "DEER 1985" if built_year >= 1975 && built_year < 1985 - return "DEER 1996" if built_year >= 1985 && built_year < 1996 - return "DEER 2003" if built_year >= 1996 && built_year < 2003 - return "DEER 2007" if built_year >= 2003 && built_year < 2007 - return "DEER 2011" if built_year >= 2007 && built_year < 2011 - return "DEER 2014" if built_year >= 2011 && built_year < 2014 - return "DEER 2015" if built_year >= 2014 && built_year < 2015 - return "DEER 2017" if built_year >= 2015 && built_year < 2017 - return "DEER 2020" - - elsif (@standard_to_be_used == ASHRAE90_1) - return "DOE Ref Pre-1980" if built_year < 1980 - return "DOE Ref 1980-2004" if built_year >= 1980 && built_year < 2004 - return "90.1-2007" if built_year >= 2004 && built_year < 2007 - return "90.1-2010" if built_year >= 2007 && built_year < 2010 - return "90.1-2013" if built_year >= 2010 && built_year < 2013 - return "90.1-2016" if built_year >= 2013 && built_year < 2016 - return "90.1-2019" + return 'DEER Pre-1975' if built_year < 1975 + return 'DEER 1985' if built_year >= 1975 && built_year < 1985 + return 'DEER 1996' if built_year >= 1985 && built_year < 1996 + return 'DEER 2003' if built_year >= 1996 && built_year < 2003 + return 'DEER 2007' if built_year >= 2003 && built_year < 2007 + return 'DEER 2011' if built_year >= 2007 && built_year < 2011 + return 'DEER 2014' if built_year >= 2011 && built_year < 2014 + return 'DEER 2015' if built_year >= 2014 && built_year < 2015 + return 'DEER 2017' if built_year >= 2015 && built_year < 2017 + + return 'DEER 2020' + + elsif @standard_to_be_used == ASHRAE90_1 + return 'DOE Ref Pre-1980' if built_year < 1980 + return 'DOE Ref 1980-2004' if built_year >= 1980 && built_year < 2004 + return '90.1-2007' if built_year >= 2004 && built_year < 2007 + return '90.1-2010' if built_year >= 2007 && built_year < 2010 + return '90.1-2013' if built_year >= 2010 && built_year < 2013 + return '90.1-2016' if built_year >= 2013 && built_year < 2016 + + return '90.1-2019' end end @@ -346,9 +346,10 @@ def _get_standard_template(built_year) def get_floor_to_floor_height BOSS.BOSS_logger.info("|\t|\t- checking the floor height of every section in building from file...") - section_elements = @building_xml.elements.each("#{@ns}Sections/#{@ns}Section"){|s| s} + section_elements = @building_xml.elements.each("#{@ns}Sections/#{@ns}Section") { |s| s } return nil if section_elements.nil? - floor_to_floor_heights = section_elements.map {|section_element| section_element.elements["#{@ns}FloorToFloorHeight"]&.text.to_f} + + floor_to_floor_heights = section_elements.map { |section_element| section_element.elements["#{@ns}FloorToFloorHeight"]&.text.to_f } BOSS.BOSS_logger.info("|\t|\t section floor heights: #{floor_to_floor_heights}") return floor_to_floor_heights.first @@ -357,6 +358,7 @@ def get_floor_to_floor_height def get_aspect_ratio aspect_ratio = @building_xml.elements["#{@ns}AspectRatio"]&.text return nil if aspect_ratio.nil? + return aspect_ratio.to_f end @@ -370,16 +372,16 @@ def get_hvac_systems_xml def get_principal_HVAC_system_type BOSS.BOSS_logger.info("|\t|\t- finding first hvac system with principal hvac system type...") # if no hvac systems, return nil - hvac_systems = @facility_xml.elements.each("#{@ns}Systems/#{@ns}HVACSystems/#{@ns}HVACSystem") {|s| s} + hvac_systems = @facility_xml.elements.each("#{@ns}Systems/#{@ns}HVACSystems/#{@ns}HVACSystem") { |s| s } if hvac_systems.nil? BOSS.BOSS_logger.info("|\t|\t no hvac systems found") return nil end # find first none nil principal_HVAC_system_type - hvac_systems = hvac_systems.reject {|s| s.class == REXML::Comment} - principal_HVAC_system_type = hvac_systems.map {|s| s.elements["#{@ns}PrincipalHVACSystemType/"]&.text} - first_principal_HVAC_system_type = principal_HVAC_system_type.find {|x| !x.nil?} + hvac_systems = hvac_systems.reject { |s| s.instance_of?(REXML::Comment) } + principal_HVAC_system_type = hvac_systems.map { |s| s.elements["#{@ns}PrincipalHVACSystemType/"]&.text } + first_principal_HVAC_system_type = principal_HVAC_system_type.find { |x| !x.nil? } # if none, return nil, else return mapping if first_principal_HVAC_system_type.nil? @@ -401,20 +403,21 @@ def get_principal_HVAC_system_type def get_total_installed_power # if no lighting systems, return nil BOSS.BOSS_logger.info("|\t|\t|\t- finding all lighting system installed power...") - lighting_systems = @facility_xml.elements.each("#{@ns}Systems/#{@ns}LightingSystems/#{@ns}LightingSystem") {|s| s} + lighting_systems = @facility_xml.elements.each("#{@ns}Systems/#{@ns}LightingSystems/#{@ns}LightingSystem") { |s| s } if lighting_systems.nil? BOSS.BOSS_logger.info("|\t|\t|\t no lighting systems found") return nil end # get all all_installed_powers - lighting_systems = lighting_systems.reject {|s| s.class == REXML::Comment} - all_installed_powers = lighting_systems.map {|s| s.elements["#{@ns}InstalledPower/"]&.first&.to_s&.to_f} + lighting_systems = lighting_systems.reject { |s| s.instance_of?(REXML::Comment) } + all_installed_powers = lighting_systems.map { |s| s.elements["#{@ns}InstalledPower/"]&.first&.to_s&.to_f } BOSS.BOSS_logger.info("|\t|\t|\t all lighting system installed power: #{all_installed_powers}") # if any nil, return nil, else return sum return nil if all_installed_powers.length == 0 return nil if !all_installed_powers.all? + return all_installed_powers.sum end @@ -423,30 +426,31 @@ def get_total_installed_power def get_total_weighted_average_load # if no plug_loads, return nil BOSS.BOSS_logger.info("|\t|\t|\t- finding all plug load systems weighted average load...") - plug_loads = @facility_xml.elements.each("#{@ns}Systems/#{@ns}PlugLoads/#{@ns}PlugLoad") {|s| s} + plug_loads = @facility_xml.elements.each("#{@ns}Systems/#{@ns}PlugLoads/#{@ns}PlugLoad") { |s| s } if plug_loads.nil? BOSS.BOSS_logger.info("|\t|\t|\t no plug load systems found") return nil end # get all weighted_average_loads - plug_loads = plug_loads.reject {|s| s.class == REXML::Comment} - all_weighted_average_loads = plug_loads.map {|s| s.elements["#{@ns}WeightedAverageLoad/"]&.text} + plug_loads = plug_loads.reject { |s| s.instance_of?(REXML::Comment) } + all_weighted_average_loads = plug_loads.map { |s| s.elements["#{@ns}WeightedAverageLoad/"]&.text } BOSS.BOSS_logger.info("|\t|\t|\t all plug load system weighted average load: #{all_weighted_average_loads}") # if any nil, return nil, else return sum return nil if all_weighted_average_loads.length == 0 return nil if !all_weighted_average_loads.all? - return all_weighted_average_loads.map {|s| s.to_f}.sum + + return all_weighted_average_loads.map { |s| s.to_f }.sum end # first valid window that has all mappable fields def get_window_data # if no windows, return nil - fenestration_systems = @facility_xml.elements.each("#{@ns}Systems/#{@ns}FenestrationSystems/#{@ns}FenestrationSystem") {|s| s} + fenestration_systems = @facility_xml.elements.each("#{@ns}Systems/#{@ns}FenestrationSystems/#{@ns}FenestrationSystem") { |s| s } return nil if fenestration_systems.nil? # get all windows - windows = fenestration_systems.select {|fs| fs.elements["#{@ns}FenestrationType/#{@ns}Window"] } + windows = fenestration_systems.select { |fs| fs.elements["#{@ns}FenestrationType/#{@ns}Window"] } return nil if windows.empty? # iter through windows until we get one with all the required fields @@ -471,19 +475,18 @@ def get_window_data os_fenestration_glass_layers = BuildingSyncToOSSystemMaps.get_glass_layers_map[fenestration_glass_layers.to_s] # return if we can use this one - if ( - !os_fenestration_frame_material.nil? && - !os_glass_type.nil? && - !os_fenestration_glass_layers.nil? && - !fenestration_u_factor.nil? && - !solar_heat_gain_coefficient.nil? && - !visible_transmittance.nil? - ) + if !os_fenestration_frame_material.nil? && + !os_glass_type.nil? && + !os_fenestration_glass_layers.nil? && + !fenestration_u_factor.nil? && + !solar_heat_gain_coefficient.nil? && + !visible_transmittance.nil? + window_pane_type = [os_fenestration_glass_layers, os_glass_type, os_fenestration_frame_material].join(' - ') return window_pane_type, fenestration_u_factor, solar_heat_gain_coefficient, visible_transmittance end end - return nil + return nil + end end end -end diff --git a/lib/BOSS/buildingsync_reader/systems_map.rb b/lib/BOSS/buildingsync_reader/systems_map.rb index 8ac2fde..2bfa5c2 100644 --- a/lib/BOSS/buildingsync_reader/systems_map.rb +++ b/lib/BOSS/buildingsync_reader/systems_map.rb @@ -5,63 +5,63 @@ # ******************************************************************************* module BuildingSyncToOSSystemMaps - def self.get_hvac_map - return { - "Packaged Terminal Air Conditioner" => "PTAC with gas coil", - "Four Pipe Fan Coil Unit" => "Fan coil chiller with boiler", - "Packaged Terminal Heat Pump" => "PTHP", - "Packaged Rooftop Air Conditioner" => "PSZ-AC with gas unit heaters", - "Packaged Rooftop Heat Pump" => "PSZ-HP", - "Packaged Rooftop VAV with Hot Water Reheat" => "PVAV with gas boiler reheat", - "Packaged Rooftop VAV with Electric Reheat" => "PVAV with PFP boxes", - "VAV with Hot Water Reheat" => "VAV chiller with gas boiler reheat", - "VAV with Electric Reheat" => "VAV chiller with PFP boxes", - "Warm Air Furnace" => "Forced air furnace", - "Ventilation Only" => "", - "Dedicated Outdoor Air System" => "", - "Water Loop Heat Pump" => "Water source heat pumps fluid cooler with boiler", - "Ground Source Heat Pump" => "Water source heat pumps with ground source heat pump", - "VRF Terminal Unit" => "VRF", - "Chilled Beam" => "", - "Other" => "" - } - end + def self.get_hvac_map + return { + 'Packaged Terminal Air Conditioner' => 'PTAC with gas coil', + 'Four Pipe Fan Coil Unit' => 'Fan coil chiller with boiler', + 'Packaged Terminal Heat Pump' => 'PTHP', + 'Packaged Rooftop Air Conditioner' => 'PSZ-AC with gas unit heaters', + 'Packaged Rooftop Heat Pump' => 'PSZ-HP', + 'Packaged Rooftop VAV with Hot Water Reheat' => 'PVAV with gas boiler reheat', + 'Packaged Rooftop VAV with Electric Reheat' => 'PVAV with PFP boxes', + 'VAV with Hot Water Reheat' => 'VAV chiller with gas boiler reheat', + 'VAV with Electric Reheat' => 'VAV chiller with PFP boxes', + 'Warm Air Furnace' => 'Forced air furnace', + 'Ventilation Only' => '', + 'Dedicated Outdoor Air System' => '', + 'Water Loop Heat Pump' => 'Water source heat pumps fluid cooler with boiler', + 'Ground Source Heat Pump' => 'Water source heat pumps with ground source heat pump', + 'VRF Terminal Unit' => 'VRF', + 'Chilled Beam' => '', + 'Other' => '' + } + end - def self.get_glass_layers_map - return { - "Single pane" => "Single", - "Double pane" => "Double", - "Triple pane" => "Triple", - "Single paned with storm panel" => "Single", - } - end + def self.get_glass_layers_map + return { + 'Single pane' => 'Single', + 'Double pane' => 'Double', + 'Triple pane' => 'Triple', + 'Single paned with storm panel' => 'Single' + } + end - def self.get_glass_type_map - return { - "Clear uncoated" => "No LowE - Clear", - "Low e" => "LowE - Clear", - "Tinted" => "No LowE - Tinted/Reflective", - "Tinted plus low e" => "LowE - Tinted/Reflective", - "Reflective" => "No LowE - Tinted/Reflective", - "Reflective on tint" => "No LowE - Tinted/Reflective", - "High performance tint" => "LowE - Tinted/Reflective", - "Sunbelt low E low SHGC" => "LowE - Tinted/Reflective", - # "Suspended film" => "", - # "Plastic" => "", - } - end + def self.get_glass_type_map + return { + 'Clear uncoated' => 'No LowE - Clear', + 'Low e' => 'LowE - Clear', + 'Tinted' => 'No LowE - Tinted/Reflective', + 'Tinted plus low e' => 'LowE - Tinted/Reflective', + 'Reflective' => 'No LowE - Tinted/Reflective', + 'Reflective on tint' => 'No LowE - Tinted/Reflective', + 'High performance tint' => 'LowE - Tinted/Reflective', + 'Sunbelt low E low SHGC' => 'LowE - Tinted/Reflective' + # "Suspended film" => "", + # "Plastic" => "", + } + end - def self.get_frame_material_map - return { - "Aluminum uncategorized" => "Aluminum", - "Aluminum no thermal break" => "Aluminum", - "Aluminum thermal break" => "Thermally Broken Aluminum", - # "Clad" => "", - # "Composite" => "", - # "Fiberglass" => "", - # "Steel" => "", - # "Vinyl" => "", - "Wood" => "Wood", - } - end + def self.get_frame_material_map + return { + 'Aluminum uncategorized' => 'Aluminum', + 'Aluminum no thermal break' => 'Aluminum', + 'Aluminum thermal break' => 'Thermally Broken Aluminum', + # "Clad" => "", + # "Composite" => "", + # "Fiberglass" => "", + # "Steel" => "", + # "Vinyl" => "", + 'Wood' => 'Wood' + } + end end diff --git a/lib/BOSS/external_measure_repo_manager.rb b/lib/BOSS/external_measure_repo_manager.rb index 62ada89..b79ee3b 100644 --- a/lib/BOSS/external_measure_repo_manager.rb +++ b/lib/BOSS/external_measure_repo_manager.rb @@ -119,7 +119,7 @@ def validate_repo_entry(repo) raise StandardError, "Each repo entry in #{@manifest_path} must be a map" end - required = repo.key?('local_path') ? %w[name local_path measure_roots] : %w[name url ref measure_roots] + required = repo.key?('local_path') ? ['name', 'local_path', 'measure_roots'] : ['name', 'url', 'ref', 'measure_roots'] missing = required.select { |key| repo[key].nil? || repo[key].to_s.empty? } if !missing.empty? raise StandardError, "Repo entry is missing required keys #{missing.join(', ')} in #{@manifest_path}" @@ -160,16 +160,16 @@ def install_repo(repo_entry) measure_roots = repo_entry['measure_roots'] if Dir.exist?(File.join(repo_dir, '.git')) - run_git(%W[-C #{repo_dir} remote set-url origin #{repo_entry['url']}]) + run_git(['-C', "#{repo_dir}", 'remote', 'set-url', 'origin', "#{repo_entry['url']}"]) else FileUtils.mkdir_p(File.dirname(repo_dir)) - run_git(%W[clone --filter=blob:none --no-checkout #{repo_entry['url']} #{repo_dir}]) + run_git(['clone', '--filter=blob:none', '--no-checkout', "#{repo_entry['url']}", "#{repo_dir}"]) end - run_git(%W[-C #{repo_dir} sparse-checkout init --cone]) + run_git(['-C', "#{repo_dir}", 'sparse-checkout', 'init', '--cone']) run_git(['-C', repo_dir, 'sparse-checkout', 'set', *measure_roots]) - run_git(%W[-C #{repo_dir} fetch --depth 1 origin #{repo_entry['ref']}]) - run_git(%W[-C #{repo_dir} checkout --force FETCH_HEAD]) + run_git(['-C', "#{repo_dir}", 'fetch', '--depth', '1', 'origin', "#{repo_entry['ref']}"]) + run_git(['-C', "#{repo_dir}", 'checkout', '--force', 'FETCH_HEAD']) end def local_repo?(repo_entry) diff --git a/lib/BOSS/hvac_target_binder.rb b/lib/BOSS/hvac_target_binder.rb index a5270d2..16e76f1 100644 --- a/lib/BOSS/hvac_target_binder.rb +++ b/lib/BOSS/hvac_target_binder.rb @@ -58,10 +58,10 @@ def bind(result, operation:, standards_template:, zone_names: nil) def step(result, operation, standards_template, zone_names) scope = zone_names ? { zone_scope: 'explicit_zone_names', zone_names_json: JSON.generate(zone_names.uniq) } : { zone_scope: 'all_model_zones' } - arguments = { topology_measure: result.measure, operation: operation, **scope, standards_template: standards_template } + arguments = { topology_measure: result.measure, operation:, **scope, standards_template: } extra = result.measure_arguments || {} arguments[:topology_arguments_json] = JSON.generate(extra) if !extra.empty? - { measure_dir_name: BINDING_MEASURE, arguments: arguments } + { measure_dir_name: BINDING_MEASURE, arguments: } end end end diff --git a/lib/BOSS/hvac_topology_selector.rb b/lib/BOSS/hvac_topology_selector.rb index a3dc8f1..f337bd1 100644 --- a/lib/BOSS/hvac_topology_selector.rb +++ b/lib/BOSS/hvac_topology_selector.rb @@ -659,7 +659,7 @@ def _select_other(sys, other, index, ventilation_links) configuration = NOT_MAPPABLE_OTHER[ventilation_type] return _result(:not_mappable, sys_id, ids, premises, nil, ["#{configuration}: no buildingsync-measures-gem measure creates this equipment."], - configuration: configuration) + configuration:) end if _integrated?(other) @@ -725,9 +725,9 @@ def _select_other(sys, other, index, ventilation_links) failures << 'Guard failed: MV/DemandControlVentilation' unless x_probe.guard(mv, 'DemandControlVentilation', ['false', '0']) failures << 'Guard failed: O/PrimaryFuel' unless x_probe.guard(other, 'PrimaryFuel', ELECTRIC) failures << 'Guard failed: O/Quantity' unless x_probe.quantity_guard(other, 'Quantity') - return _result(:conflicting_input, sys_id, ids, premises, nil, failures, configuration: configuration) unless failures.empty? + return _result(:conflicting_input, sys_id, ids, premises, nil, failures, configuration:) unless failures.empty? - _result(:match, sys_id, ids, premises, [:other, other_id], [], configuration: configuration, measure: measure) + _result(:match, sys_id, ids, premises, [:other, other_id], [], configuration:, measure:) end def _group_key(group, x) @@ -750,16 +750,16 @@ def _linked_premises(record) linked.elements.to_a.flat_map do |premise_type| premise_type.elements.to_a.filter_map do |link| id = link.attributes['IDref'] - { type: premise_type.name, id: id } if id + { type: premise_type.name, id: } if id end end end end def _result(status, sys_id, ids, premises, group_key, messages, configuration: nil, measure: nil, measure_arguments: {}) - Result.new(status: status, configuration: configuration, measure: measure, hvac_system_id: sys_id, - record_ids: ids.compact.uniq, premises: premises, group_key: group_key, messages: messages, - measure_arguments: measure_arguments) + Result.new(status:, configuration:, measure:, hvac_system_id: sys_id, + record_ids: ids.compact.uniq, premises:, group_key:, messages:, + measure_arguments:) end end end diff --git a/lib/BOSS/osw_arg_populator.rb b/lib/BOSS/osw_arg_populator.rb index b6acea3..bc4e7f3 100644 --- a/lib/BOSS/osw_arg_populator.rb +++ b/lib/BOSS/osw_arg_populator.rb @@ -32,64 +32,64 @@ def self.step_argument_setter(osw, measure_dir_name) end def self.populate_set_run_period_args(osw, bsync_reader) - BOSS.BOSS_logger.info("+++++++++++++++++++++++++++ populating measure set_run_period +++++++++++++++++++++++") - set_measure_argument = step_argument_setter(osw, "set_run_period") + BOSS.BOSS_logger.info('+++++++++++++++++++++++++++ populating measure set_run_period +++++++++++++++++++++++') + set_measure_argument = step_argument_setter(osw, 'set_run_period') # Add args # - __SKIP__ - set_measure_argument.call("__SKIP__", false) + set_measure_argument.call('__SKIP__', false) # - timesteps_per_hour BOSS.BOSS_logger.info("|\t- setting arg 'timesteps_per_hour'...") BOSS.BOSS_logger.info("|\t defaults to '4'") - set_measure_argument.call("timesteps_per_hour", "4") + set_measure_argument.call('timesteps_per_hour', '4') # - begin_date BOSS.BOSS_logger.info("|\t- setting arg 'begin_date'...") BOSS.BOSS_logger.info("|\t defaults to '2019-01-01'") - set_measure_argument.call("begin_date", "2019-01-01") + set_measure_argument.call('begin_date', '2019-01-01') # - end_date BOSS.BOSS_logger.info("|\t- setting arg 'end_date'...") BOSS.BOSS_logger.info("|\t defaults to '2019-12-31'") - set_measure_argument.call("end_date", "2019-12-31") + set_measure_argument.call('end_date', '2019-12-31') - BOSS.BOSS_logger.info("++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++") - BOSS.BOSS_logger.info("") + BOSS.BOSS_logger.info('++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++') + BOSS.BOSS_logger.info('') end def self.populate_change_building_location_args(osw, bsync_reader) - BOSS.BOSS_logger.info("+++++++++++++++++++++ populating measure ChangeBuildingLocation +++++++++++++++++++++") - set_measure_argument = step_argument_setter(osw, "ChangeBuildingLocation") + BOSS.BOSS_logger.info('+++++++++++++++++++++ populating measure ChangeBuildingLocation +++++++++++++++++++++') + set_measure_argument = step_argument_setter(osw, 'ChangeBuildingLocation') # - __SKIP__ - set_measure_argument.call("__SKIP__", false) + set_measure_argument.call('__SKIP__', false) # - weather_file_name BOSS.BOSS_logger.info("|\t- setting arg 'weather_file_name'...") weather_file_name = bsync_reader.get_epw_file_path BOSS.BOSS_logger.info("|\t set to #{weather_file_name}") - set_measure_argument.call("weather_file_name", weather_file_name) + set_measure_argument.call('weather_file_name', weather_file_name) # - climate_zone BOSS.BOSS_logger.info("|\t- setting arg 'climate_zone'...") - climate_zone = bsync_reader.get_climate_zone || "Lookup From Stat File" + climate_zone = bsync_reader.get_climate_zone || 'Lookup From Stat File' BOSS.BOSS_logger.info("|\t set to #{climate_zone}") - set_measure_argument.call("climate_zone", climate_zone) + set_measure_argument.call('climate_zone', climate_zone) - BOSS.BOSS_logger.info("++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++") - BOSS.BOSS_logger.info("") + BOSS.BOSS_logger.info('++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++') + BOSS.BOSS_logger.info('') end def self.populate_create_bar_from_building_type_ratios_args(osw, bsync_reader) - BOSS.BOSS_logger.info("++++ populating measure create_bar_from_building_type_ratios ++++++++++++++") - set_measure_argument = step_argument_setter(osw, "create_bar_from_building_type_ratios") + BOSS.BOSS_logger.info('++++ populating measure create_bar_from_building_type_ratios ++++++++++++++') + set_measure_argument = step_argument_setter(osw, 'create_bar_from_building_type_ratios') # Add args # - __SKIP__ - set_measure_argument.call("__SKIP__", false) + set_measure_argument.call('__SKIP__', false) # - bldg_type_a BOSS.BOSS_logger.info("|\t- setting arg 'bldg_type_a'...") building_type, bar_division_method = bsync_reader.get_building_type_and_bar_division_method BOSS.BOSS_logger.info("|\t set to #{building_type}") - set_measure_argument.call("bldg_type_a", building_type) + set_measure_argument.call('bldg_type_a', building_type) # - bldg_type_a_num_units # - bldg_type_b # - bldg_type_b_fract_bldg_area @@ -102,66 +102,66 @@ def self.populate_create_bar_from_building_type_ratios_args(osw, bsync_reader) # - bldg_type_d_num_units # - total_bldg_floor_area BOSS.BOSS_logger.info("|\t- setting arg 'total_bldg_floor_area'...") - total_bldg_floor_area = bsync_reader.get_total_floor_area(num_indent=2) + total_bldg_floor_area = bsync_reader.get_total_floor_area(num_indent = 2) BOSS.BOSS_logger.info("|\t set to #{total_bldg_floor_area}") - set_measure_argument.call("total_bldg_floor_area", total_bldg_floor_area) + set_measure_argument.call('total_bldg_floor_area', total_bldg_floor_area) # - floor_height -> FloorToFloorHeight, in total building section, else set to 0, smart default. BOSS.BOSS_logger.info("|\t- setting arg 'floor_height'...") floor_height = bsync_reader.get_floor_to_floor_height || 0 BOSS.BOSS_logger.info("|\t set to #{floor_height}") - set_measure_argument.call("floor_height", floor_height) + set_measure_argument.call('floor_height', floor_height) # - num_stories_above_grade BOSS.BOSS_logger.info("|\t- setting arg 'num_stories_above_grade'...") num_stories_above_grade = bsync_reader.get_floor_above_grade || 1 BOSS.BOSS_logger.info("|\t set to #{num_stories_above_grade}") - set_measure_argument.call("num_stories_above_grade", num_stories_above_grade) + set_measure_argument.call('num_stories_above_grade', num_stories_above_grade) # - num_stories_below_grade BOSS.BOSS_logger.info("|\t- setting arg 'num_stories_below_grade'...") num_stories_below_grade = bsync_reader.get_floor_below_grade || 0 BOSS.BOSS_logger.info("|\t set to #{num_stories_below_grade}") - set_measure_argument.call("num_stories_below_grade", num_stories_below_grade) + set_measure_argument.call('num_stories_below_grade', num_stories_below_grade) # - building_rotation # - template BOSS.BOSS_logger.info("|\t- setting arg 'template'...") template = bsync_reader.get_standard_template BOSS.BOSS_logger.info("|\t set to #{template}") - set_measure_argument.call("template", template) + set_measure_argument.call('template', template) # - ns_to_ew_ratio BOSS.BOSS_logger.info("|\t- setting arg 'ns_to_ew_ratio'...") ns_to_ew_ratio = bsync_reader.get_aspect_ratio || 0 BOSS.BOSS_logger.info("|\t set to #{ns_to_ew_ratio}") - set_measure_argument.call("ns_to_ew_ratio", ns_to_ew_ratio) + set_measure_argument.call('ns_to_ew_ratio', ns_to_ew_ratio) # - wwr # - party_wall_fraction # set_measure_argument.call("party_wall_fraction", building.party_wall_fraction.to_f) # - story_multiplier_method BOSS.BOSS_logger.info("|\t- setting arg 'story_multiplier_method'...") BOSS.BOSS_logger.info("|\t defaults to 'None'") - set_measure_argument.call("story_multiplier_method", "None") # needed until os allows mutli basement + set_measure_argument.call('story_multiplier_method', 'None') # needed until os allows mutli basement # - bar_division_method, as of right now, always use the default # set_measure_argument.call("bar_division_method", bar_division_method) - BOSS.BOSS_logger.info("++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++") - BOSS.BOSS_logger.info("") + BOSS.BOSS_logger.info('++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++') + BOSS.BOSS_logger.info('') end def self.populate_create_typical_building_from_model_args(osw, bsync_reader, add_hvac: true) - BOSS.BOSS_logger.info("+++++ populating measure create_typical_building_from_model +++++++++++++++") - set_measure_argument = step_argument_setter(osw, "create_typical_building_from_model") + BOSS.BOSS_logger.info('+++++ populating measure create_typical_building_from_model +++++++++++++++') + set_measure_argument = step_argument_setter(osw, 'create_typical_building_from_model') # Add args # - __SKIP__ - set_measure_argument.call("__SKIP__", false) + set_measure_argument.call('__SKIP__', false) # template BOSS.BOSS_logger.info("|\t- setting arg 'template'...") template = bsync_reader.get_standard_template BOSS.BOSS_logger.info("|\t set to #{template}") - set_measure_argument.call("template", template) + set_measure_argument.call('template', template) # system_type BOSS.BOSS_logger.info("|\t- setting arg 'system_type'...") - system_type = bsync_reader.get_principal_HVAC_system_type || "Inferred" + system_type = bsync_reader.get_principal_HVAC_system_type || 'Inferred' BOSS.BOSS_logger.info("|\t set to #{system_type}") - set_measure_argument.call("system_type", system_type) + set_measure_argument.call('system_type', system_type) # hvac_delivery_type # htg_src # clg_src @@ -179,12 +179,12 @@ def self.populate_create_typical_building_from_model_args(osw, bsync_reader, add # add_swh BOSS.BOSS_logger.info("|\t- setting arg 'add_swh'...") BOSS.BOSS_logger.info("|\t defaults to 'true'") - set_measure_argument.call("add_swh", true) + set_measure_argument.call('add_swh', true) # add_thermostat # add_hvac BOSS.BOSS_logger.info("|\t- setting arg 'add_hvac'...") BOSS.BOSS_logger.info("|\t set to '#{add_hvac}'") - set_measure_argument.call("add_hvac", add_hvac) + set_measure_argument.call('add_hvac', add_hvac) # add_refrigeration # modify_wkdy_op_hrs # wkdy_op_hrs_start_time @@ -197,16 +197,16 @@ def self.populate_create_typical_building_from_model_args(osw, bsync_reader, add # use_upstream_args - set to false to prevent nested workflow creation BOSS.BOSS_logger.info("|\t- setting arg 'use_upstream_args'...") BOSS.BOSS_logger.info("|\t defaults to 'false'") - set_measure_argument.call("use_upstream_args", false) + set_measure_argument.call('use_upstream_args', false) # enable_dst - BOSS.BOSS_logger.info("++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++") - BOSS.BOSS_logger.info("") + BOSS.BOSS_logger.info('++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++') + BOSS.BOSS_logger.info('') end def self.populate_set_lighting_loads_by_LPD_args(osw, bsync_reader) - BOSS.BOSS_logger.info("++++++++++++++++++++++ populating measure SetLightingLoadsByLPD ++++++++++++++++++++") - set_measure_argument = step_argument_setter(osw, "SetLightingLoadsByLPD") + BOSS.BOSS_logger.info('++++++++++++++++++++++ populating measure SetLightingLoadsByLPD ++++++++++++++++++++') + set_measure_argument = step_argument_setter(osw, 'SetLightingLoadsByLPD') # skip if no total_installed_power or no usable floor area BOSS.BOSS_logger.info("|\t- gathering measure requirements...") @@ -214,25 +214,25 @@ def self.populate_set_lighting_loads_by_LPD_args(osw, bsync_reader) total_installed_power = bsync_reader.get_total_installed_power BOSS.BOSS_logger.info("|\t|\t total install power: #{total_installed_power}") BOSS.BOSS_logger.info("|\t|\t- getting total floor area...") - floor_area = bsync_reader.get_total_floor_area(num_indent=3) + floor_area = bsync_reader.get_total_floor_area(num_indent = 3) BOSS.BOSS_logger.info("|\t|\t total floor area: #{floor_area}") if total_installed_power.nil? || total_installed_power == 0 || floor_area.nil? || floor_area <= 0 BOSS.BOSS_logger.info("|\t measure requirements unmet. Skippping.") - BOSS.BOSS_logger.info("+++++++++++++++++++++++++++++++++++ skipped. ++++++++++++++++++++++++++++++++++++++++") - BOSS.BOSS_logger.info("") - set_measure_argument.call("__SKIP__", true) + BOSS.BOSS_logger.info('+++++++++++++++++++++++++++++++++++ skipped. ++++++++++++++++++++++++++++++++++++++++') + BOSS.BOSS_logger.info('') + set_measure_argument.call('__SKIP__', true) return end # Add args # - __SKIP__ - set_measure_argument.call("__SKIP__", false) + set_measure_argument.call('__SKIP__', false) # space_type "entire building" # lpd BOSS.BOSS_logger.info("|\t- setting arg 'lpd'...") lpd = total_installed_power * 1000.0 / floor_area BOSS.BOSS_logger.info("|\t set to #{lpd}") - set_measure_argument.call("lpd", lpd) + set_measure_argument.call('lpd', lpd) # add_instance_all_spaces # material_cost # demolition_cost @@ -241,13 +241,13 @@ def self.populate_set_lighting_loads_by_LPD_args(osw, bsync_reader) # expected_life # om_cost # om_frequency - BOSS.BOSS_logger.info("++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++") - BOSS.BOSS_logger.info("") + BOSS.BOSS_logger.info('++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++') + BOSS.BOSS_logger.info('') end def self.populate_set_electric_equipment_loads_by_epd_args(osw, bsync_reader) - BOSS.BOSS_logger.info("+++++ populating measure set_electric_equipment_loads_by_epd ++++++++++++++") - set_measure_argument = step_argument_setter(osw, "set_electric_equipment_loads_by_epd") + BOSS.BOSS_logger.info('+++++ populating measure set_electric_equipment_loads_by_epd ++++++++++++++') + set_measure_argument = step_argument_setter(osw, 'set_electric_equipment_loads_by_epd') # skip if no total_weighted_average_load or no usable floor area BOSS.BOSS_logger.info("|\t- gathering measure requirements...") @@ -255,25 +255,25 @@ def self.populate_set_electric_equipment_loads_by_epd_args(osw, bsync_reader) total_weighted_average_load = bsync_reader.get_total_weighted_average_load BOSS.BOSS_logger.info("|\t|\t total weighted average load: #{total_weighted_average_load}") BOSS.BOSS_logger.info("|\t|\t- getting total floor area...") - floor_area = bsync_reader.get_total_floor_area(num_indent=3) + floor_area = bsync_reader.get_total_floor_area(num_indent = 3) BOSS.BOSS_logger.info("|\t|\t total floor area: #{floor_area}") if total_weighted_average_load.nil? || total_weighted_average_load == 0 || floor_area.nil? || floor_area <= 0 BOSS.BOSS_logger.info("|\t measure requirements unmet. Skippping.") - BOSS.BOSS_logger.info("+++++++++++++++++++++++++++++++++++ skipped. ++++++++++++++++++++++++++++++++++++++++") - BOSS.BOSS_logger.info("") - set_measure_argument.call("__SKIP__", true) + BOSS.BOSS_logger.info('+++++++++++++++++++++++++++++++++++ skipped. ++++++++++++++++++++++++++++++++++++++++') + BOSS.BOSS_logger.info('') + set_measure_argument.call('__SKIP__', true) return end # Add args # - __SKIP__ - set_measure_argument.call("__SKIP__", false) + set_measure_argument.call('__SKIP__', false) # space_type "entire building" # epd BOSS.BOSS_logger.info("|\t- setting arg 'epd'...") epd = total_weighted_average_load / floor_area BOSS.BOSS_logger.info("|\t set to #{epd}") - set_measure_argument.call("epd", epd) + set_measure_argument.call('epd', epd) # material_cost # demolition_cost # years_until_costs_start @@ -281,44 +281,43 @@ def self.populate_set_electric_equipment_loads_by_epd_args(osw, bsync_reader) # expected_life # om_cost # om_frequency - BOSS.BOSS_logger.info("++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++") - BOSS.BOSS_logger.info("") + BOSS.BOSS_logger.info('++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++') + BOSS.BOSS_logger.info('') end def self.populate_replace_baseline_windows_args(osw, bsync_reader) - set_measure_argument = step_argument_setter(osw, "replace_baseline_windows") + set_measure_argument = step_argument_setter(osw, 'replace_baseline_windows') # skip if no window_data window_data = bsync_reader.get_window_data if window_data.nil? - set_measure_argument.call("__SKIP__", true) + set_measure_argument.call('__SKIP__', true) return end window_pane_type, fenestration_u_factor, solar_heat_gain_coefficient, visible_transmittance = window_data # Add args # - __SKIP__ - set_measure_argument.call("__SKIP__", false) - set_measure_argument.call("window_pane_type", window_pane_type) - set_measure_argument.call("u_value_ip", fenestration_u_factor) - set_measure_argument.call("shgc", solar_heat_gain_coefficient) - set_measure_argument.call("vlt", visible_transmittance) - + set_measure_argument.call('__SKIP__', false) + set_measure_argument.call('window_pane_type', window_pane_type) + set_measure_argument.call('u_value_ip', fenestration_u_factor) + set_measure_argument.call('shgc', solar_heat_gain_coefficient) + set_measure_argument.call('vlt', visible_transmittance) end def self.populate_openstudio_results_args(osw, bsync_reader) - BOSS.BOSS_logger.info("+++++++++++++++++++++++++ populating measure openstudio_results +++++++++++++++++++++") - set_measure_argument = step_argument_setter(osw, "openstudio_results") + BOSS.BOSS_logger.info('+++++++++++++++++++++++++ populating measure openstudio_results +++++++++++++++++++++') + set_measure_argument = step_argument_setter(osw, 'openstudio_results') # Add args # - __SKIP__ - set_measure_argument.call("__SKIP__", false) + set_measure_argument.call('__SKIP__', false) # - reg_monthly_details - enable monthly fuel breakdown for results processing BOSS.BOSS_logger.info("|\t- setting arg 'reg_monthly_details'...") BOSS.BOSS_logger.info("|\t defaults to 'true'") - set_measure_argument.call("reg_monthly_details", true) + set_measure_argument.call('reg_monthly_details', true) - BOSS.BOSS_logger.info("++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++") - BOSS.BOSS_logger.info("") + BOSS.BOSS_logger.info('++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++') + BOSS.BOSS_logger.info('') end end diff --git a/lib/boss_cli.rb b/lib/boss_cli.rb index 560b860..3b7fc9c 100755 --- a/lib/boss_cli.rb +++ b/lib/boss_cli.rb @@ -4,31 +4,31 @@ # See also https://github.com/BuildingSync/BOSS/blob/develop/LICENSE.md # ******************************************************************************* -require "thor" +require 'thor' require 'BOSS/boss' require 'BOSS/constants' module BOSS class CLI < Thor - desc "write_baseline_osw BUILDINGSYNC_FILE", "Writes a baseline osw using data from the provided Buildingsync file." - long_desc "Example: $ boss write_baseline_osw my_buildingsync.xml -o ./output_dir -w ./specific_weather_file.epw" - option :output_path, :required => true, :aliases => "-o", :desc => "path to where the ows gets written. Defaults to '.'" - option :epw_path, :aliases => "-w", :desc => "path to weather file. If not given, one is derived from the BUILDINGSYNC_FILE." - option :standard_version, :aliases => "-v", :desc => "building standard to use (eg ASHRAE90.1 or CaliforniaTitle24). Defaults to ASHRAE90.1" - option :run, :aliases => "-r", :desc => "if set, will also run the baseline" + desc 'write_baseline_osw BUILDINGSYNC_FILE', 'Writes a baseline osw using data from the provided Buildingsync file.' + long_desc 'Example: $ boss write_baseline_osw my_buildingsync.xml -o ./output_dir -w ./specific_weather_file.epw' + option :output_path, required: true, aliases: '-o', desc: "path to where the ows gets written. Defaults to '.'" + option :epw_path, aliases: '-w', desc: 'path to weather file. If not given, one is derived from the BUILDINGSYNC_FILE.' + option :standard_version, aliases: '-v', desc: 'building standard to use (eg ASHRAE90.1 or CaliforniaTitle24). Defaults to ASHRAE90.1' + option :run, aliases: '-r', desc: 'if set, will also run the baseline' def write_baseline_osw(buildingsync_file) standard_version = options[:standard_version] || ASHRAE90_1 osw_path = BOSS::Boss.write_baseline_osw(buildingsync_file, options[:output_path], options[:epw_path], standard_version) puts "Baseline OSW written to: #{osw_path}" if options[:run] - puts "running!" + puts 'running!' BOSS::Boss.run_baseline_osw(options[:output_path]) end end - desc "run_osw", "Runs an existing baseline osw from the output path." - long_desc "Example: $ boss run_osw -o ./output_dir" - option :output_path, :required => true, :aliases => "-o", :desc => "path where the baseline osw exists (expects baseline/in.osw)." + desc 'run_osw', 'Runs an existing baseline osw from the output path.' + long_desc 'Example: $ boss run_osw -o ./output_dir' + option :output_path, required: true, aliases: '-o', desc: 'path where the baseline osw exists (expects baseline/in.osw).' def run_osw BOSS::Boss.run_baseline_osw(options[:output_path]) end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index c3620bd..8559890 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -19,4 +19,4 @@ def openstudio_weather_file_path(filename = 'USA_CA_San.Francisco.Intl.AP.724940 config.expect_with :rspec do |c| c.syntax = :expect end -end \ No newline at end of file +end diff --git a/spec/tests/integration/write_and_run_osws_spec.rb b/spec/tests/integration/write_and_run_osws_spec.rb index 4012703..802fb1f 100644 --- a/spec/tests/integration/write_and_run_osws_spec.rb +++ b/spec/tests/integration/write_and_run_osws_spec.rb @@ -15,7 +15,7 @@ ['179D_Example_Building.xml', ASHRAE90_1, nil, 'v2.7.0'], ['BETTER-1.0.0_SampleOffice_gemtest.xml', ASHRAE90_1, nil, 'v2.7.0'], ['building_151.xml', ASHRAE90_1, nil, 'v2.7.0'], - #['BuildingEQ-1.0.0_gemtest.xml', ASHRAE90_1, nil, 'v2.7.0'], # this file errors with the following: [openstudio.model.Model] The run did not finish and had following errors: SizeAirLoopBranches: AirLoopHVAC ZONE MIDRISEAPARTMENT CORRIDOR B END_A - STORY B1 PSZ-AC has air flow less than 1.0000E-003 m3/s. + # ['BuildingEQ-1.0.0_gemtest.xml', ASHRAE90_1, nil, 'v2.7.0'], # this file errors with the following: [openstudio.model.Model] The run did not finish and had following errors: SizeAirLoopBranches: AirLoopHVAC ZONE MIDRISEAPARTMENT CORRIDOR B END_A - STORY B1 PSZ-AC has air flow less than 1.0000E-003 m3/s. ['BuildingEQ-1.0.0.xml', ASHRAE90_1, nil, 'v2.7.0'], ['Chula_Vista_ASHRAE_L1_Example_Building.xml', ASHRAE90_1, nil, 'v2.7.0'], ['Demo_ASHRAE_L2_Example_Building.xml', ASHRAE90_1, nil, 'v2.7.0'], @@ -31,7 +31,7 @@ ['L100_Audit-1.0.0.xml', ASHRAE90_1, nil, 'v2.7.0'], ['L100_Pre-Simulation-1.0.0.xml', ASHRAE90_1, nil, 'v2.7.0'], ['NYC_BBL_AT_Demo_Property.xml', ASHRAE90_1, nil, 'v2.7.0'], - ['Reference-PrimarySchool-L100-Audit.xml', ASHRAE90_1, nil, 'v2.7.0'], + ['Reference-PrimarySchool-L100-Audit.xml', ASHRAE90_1, nil, 'v2.7.0'] ] # BOSS_SMOKE=1 runs a small representative subset (used on pull requests). @@ -62,7 +62,7 @@ it "write and run baseline osw. File: #{file_name}, Standard: #{standard}, EPW_Path: #{epw_path}, File Schema Version: #{schema_version}" do # Set Up xml_path = File.join(SPEC_FILES_DIR, schema_version, file_name) - output_path = File.join(SPEC_OUTPUT_DIR, schema_version, "write_and_run_baseline_osw" , "#{File.basename(xml_path, File.extname(xml_path))}") + output_path = File.join(SPEC_OUTPUT_DIR, schema_version, 'write_and_run_baseline_osw', "#{File.basename(xml_path, File.extname(xml_path))}") puts output_path # Action @@ -71,13 +71,12 @@ # Assertion puts output_path - expect(File.exist?(output_path + "/baseline")).to be true - expect(File.exist?(output_path + "/baseline/out.osw")).to be true - out_osw = File.read(output_path + "/baseline/out.osw") + expect(File.exist?(output_path + '/baseline')).to be true + expect(File.exist?(output_path + '/baseline/out.osw')).to be true + out_osw = File.read(output_path + '/baseline/out.osw') out_osw = JSON.parse(out_osw, symbolize_names: true) - expect(out_osw[:completed_status]).to eq "Success" + expect(out_osw[:completed_status]).to eq 'Success' end - end next unless run_extra_examples diff --git a/spec/tests/unit/boss_spec.rb b/spec/tests/unit/boss_spec.rb index 0a55741..0617261 100644 --- a/spec/tests/unit/boss_spec.rb +++ b/spec/tests/unit/boss_spec.rb @@ -208,7 +208,7 @@ def common_steps(climate_zone) scenario_only: ['/bsync/measures']) steps = [{ measure_dir_name: 'apply_hvac_topology_to_zone_scope', arguments: { topology_measure: 'hvac_ptac' } }, { measure_dir_name: 'apply_standard_hvac_sizing_and_efficiency', arguments: {} }] - plan = BOSS::BaselineHvacPlanner::Plan.new(status: :topology, steps: steps, messages: []) + plan = BOSS::BaselineHvacPlanner::Plan.new(status: :topology, steps:, messages: []) allow_any_instance_of(BOSS::BaselineHvacPlanner).to receive(:plan).and_return(plan) osw = described_class.send(:build_baseline_osw, build_reader('all_measures_applied_example.xml')) @@ -238,7 +238,7 @@ def common_steps(climate_zone) typical = names.index('create_typical_building_from_model') expect(osw[:steps][typical][:arguments][:add_hvac]).to be false - expect(names[typical + 1, 2]).to eq %w[apply_hvac_topology_to_zone_scope apply_standard_hvac_sizing_and_efficiency] + expect(names[typical + 1, 2]).to eq ['apply_hvac_topology_to_zone_scope', 'apply_standard_hvac_sizing_and_efficiency'] expect(osw[:steps][typical + 1][:arguments]).to include(zone_scope: 'all_model_zones', operation: 'create') end @@ -303,7 +303,6 @@ def common_steps(climate_zone) end it 'places local measures first, then gem-provided measures, then external repo measures' do Dir.mktmpdir do |output_dir| - # Simulate OpenStudio::Extension.configure_osw adding gem-provided paths. allow(OpenStudio::Extension).to receive(:configure_osw) do |osw| osw[:measure_paths] = [gem_measure_dir] @@ -324,18 +323,17 @@ def common_steps(climate_zone) gem_idx = measure_paths.index(gem_measure_dir) external_idx = measure_paths.index(external_measure_dir) - expect(local_idx).not_to be_nil, "local measures dir should appear in measure_paths" - expect(gem_idx).not_to be_nil, "gem measures dir should appear in measure_paths" - expect(external_idx).not_to be_nil, "external repo measures dir should appear in measure_paths" + expect(local_idx).not_to be_nil, 'local measures dir should appear in measure_paths' + expect(gem_idx).not_to be_nil, 'gem measures dir should appear in measure_paths' + expect(external_idx).not_to be_nil, 'external repo measures dir should appear in measure_paths' - expect(local_idx).to be < gem_idx, "local measures must come before gem measures" - expect(gem_idx).to be < external_idx, "gem measures must come before external repo measures" + expect(local_idx).to be < gem_idx, 'local measures must come before gem measures' + expect(gem_idx).to be < external_idx, 'gem measures must come before external repo measures' end end it 'omits external repo dir when no external repos are configured' do Dir.mktmpdir do |output_dir| - allow(OpenStudio::Extension).to receive(:configure_osw) do |osw| osw[:measure_paths] = [gem_measure_dir] end @@ -356,7 +354,6 @@ def common_steps(climate_zone) it 'does not duplicate paths that appear in both gem output and local dirs' do Dir.mktmpdir do |output_dir| - # Extension reports the local dir again (can happen with some gem setups). allow(OpenStudio::Extension).to receive(:configure_osw) do |osw| osw[:measure_paths] = [LOCAL_MEASURES_DIR, gem_measure_dir] diff --git a/spec/tests/unit/buildingsync_reader_spec.rb b/spec/tests/unit/buildingsync_reader_spec.rb index 4cdb132..4cff643 100644 --- a/spec/tests/unit/buildingsync_reader_spec.rb +++ b/spec/tests/unit/buildingsync_reader_spec.rb @@ -43,7 +43,7 @@ def wrap_in_systems(xml) RSpec.describe 'BuildingSyncReader' do describe 'get_climate_zone should' do - it "get from site" do + it 'get from site' do # Set Up doc = REXML::Document.new wrap_in_site(<<~XML) @@ -67,11 +67,11 @@ def wrap_in_systems(xml) ca_climate_zone = ca_buidingsync_reader.get_climate_zone # Assert - expect(ashrae_climate_zone).to eq "ASHRAE 169-2013-3C" - expect(ca_climate_zone).to eq "CEC T24-CEC3" + expect(ashrae_climate_zone).to eq 'ASHRAE 169-2013-3C' + expect(ca_climate_zone).to eq 'CEC T24-CEC3' end - it "get from building" do + it 'get from building' do # Set Up doc = REXML::Document.new wrap_in_site(<<~XML) @@ -95,11 +95,11 @@ def wrap_in_systems(xml) ca_climate_zone = ca_buidingsync_reader.get_climate_zone # Assert - expect(ashrae_climate_zone).to eq "ASHRAE 169-2013-3C" - expect(ca_climate_zone).to eq "CEC T24-CEC3" + expect(ashrae_climate_zone).to eq 'ASHRAE 169-2013-3C' + expect(ca_climate_zone).to eq 'CEC T24-CEC3' end - it "return nil" do + it 'return nil' do # Set Up doc = REXML::Document.new wrap_in_site(<<~XML) @@ -121,7 +121,7 @@ def wrap_in_systems(xml) end describe 'get_epw_file_path should' do - it "expands an explicitly provided relative path" do + it 'expands an explicitly provided relative path' do Dir.mktmpdir do |directory| Dir.chdir(directory) do relative_epw_path = 'weather.epw' @@ -135,14 +135,14 @@ def wrap_in_systems(xml) end end - it "preserves an explicitly provided absolute path" do + it 'preserves an explicitly provided absolute path' do epw_path = File.expand_path('weather/example.epw') reader = BOSS::BuildingSyncReader.new(REXML::Document.new(wrap_in_site('')), epw_path, ASHRAE90_1) expect(reader.get_epw_file_path).to eq epw_path end - it "get from city sate" do + it 'get from city sate' do # Set Up doc = REXML::Document.new wrap_in_site(<<~XML) @@ -156,15 +156,15 @@ def wrap_in_systems(xml) XML # Action - allow(BOSS::BCLWeatherFileDownloader).to receive(:download_weather_file_from_city_name).with("San Francisco", "CA").and_return(openstudio_weather_file_path) + allow(BOSS::BCLWeatherFileDownloader).to receive(:download_weather_file_from_city_name).with('San Francisco', 'CA').and_return(openstudio_weather_file_path) buidingsync_reader = BOSS::BuildingSyncReader.new(doc, nil, ASHRAE90_1) epw_file_path = buidingsync_reader.get_epw_file_path # Assert - expect(File.basename(epw_file_path)).to eq "USA_CA_San.Francisco.Intl.AP.724940_TMY3.epw" + expect(File.basename(epw_file_path)).to eq 'USA_CA_San.Francisco.Intl.AP.724940_TMY3.epw' end - it "get from climate zone" do + it 'get from climate zone' do # Set Up doc = REXML::Document.new wrap_in_site(<<~XML) @@ -183,15 +183,15 @@ def wrap_in_systems(xml) epw_file_path = buidingsync_reader.get_epw_file_path # Assert - expect(File.basename(epw_file_path)).to eq "USA_CA_San.Deigo-Brown.Field.Muni.AP.722904_TMY3.epw" + expect(File.basename(epw_file_path)).to eq 'USA_CA_San.Deigo-Brown.Field.Muni.AP.722904_TMY3.epw' end - it "return nil" do + it 'return nil' do end end describe 'get_city_state should' do - it "get from building" do + it 'get from building' do # Set Up doc = REXML::Document.new wrap_in_site(<<~XML) @@ -209,10 +209,10 @@ def wrap_in_systems(xml) city, state = buidingsync_reader.get_city_state # Assert - expect([city, state]).to eq ["San Francisco", "CA"] + expect([city, state]).to eq ['San Francisco', 'CA'] end - it "get from site" do + it 'get from site' do # Set Up doc = REXML::Document.new wrap_in_site(<<~XML)
@@ -230,10 +230,10 @@ def wrap_in_systems(xml) city, state = buidingsync_reader.get_city_state # Assert - expect([city, state]).to eq ["San Francisco", "CA"] + expect([city, state]).to eq ['San Francisco', 'CA'] end - it "return nil" do + it 'return nil' do # Set Up doc = REXML::Document.new wrap_in_site(<<~XML) @@ -277,28 +277,28 @@ def site_with_building(site_xml, building_xml) XML end - it "prefer building over site when both have floor area" do + it 'prefer building over site when both have floor area' do doc = REXML::Document.new site_with_building(floor_areas(20000), floor_areas(15000)) buidingsync_reader = BOSS::BuildingSyncReader.new(doc, nil, ASHRAE90_1) expect(buidingsync_reader.get_total_floor_area).to eq 15000 end - it "get from building" do + it 'get from building' do doc = REXML::Document.new site_with_building('', floor_areas(15000)) buidingsync_reader = BOSS::BuildingSyncReader.new(doc, nil, ASHRAE90_1) expect(buidingsync_reader.get_total_floor_area).to eq 15000 end - it "fall back to site when building has no floor area" do + it 'fall back to site when building has no floor area' do doc = REXML::Document.new site_with_building(floor_areas(20000), '') buidingsync_reader = BOSS::BuildingSyncReader.new(doc, nil, ASHRAE90_1) expect(buidingsync_reader.get_total_floor_area).to eq 20000 end - it "get from site when building is missing" do + it 'get from site when building is missing' do doc = REXML::Document.new wrap_in_site(floor_areas(20000)) buidingsync_reader = BOSS::BuildingSyncReader.new(doc, nil, ASHRAE90_1) @@ -368,7 +368,7 @@ def wrap_in_systems(xml) XML end - it "sum InstalledPower" do + it 'sum InstalledPower' do # Set Up doc = REXML::Document.new wrap_in_systems(<<~XML) @@ -388,7 +388,7 @@ def wrap_in_systems(xml) expect(buidingsync_reader.get_total_installed_power).to eq 5 end - it "return nil if any LightingSystem has nil InstalledPower" do + it 'return nil if any LightingSystem has nil InstalledPower' do # Set Up doc = REXML::Document.new wrap_in_systems(<<~XML) @@ -410,7 +410,7 @@ def wrap_in_systems(xml) expect(buidingsync_reader.get_total_installed_power).to eq nil end - it "return nil if no LightingSystems" do + it 'return nil if no LightingSystems' do # Set Up doc = REXML::Document.new wrap_in_systems('') @@ -421,7 +421,7 @@ def wrap_in_systems(xml) expect(buidingsync_reader.get_total_installed_power).to eq nil end - it "return nil if no InstalledPower" do + it 'return nil if no InstalledPower' do # Set Up doc = REXML::Document.new wrap_in_systems(<<~XML) @@ -441,7 +441,7 @@ def wrap_in_systems(xml) end describe 'get_total_weighted_average_load should' do - it "sum weighted average load" do + it 'sum weighted average load' do # Set Up doc = REXML::Document.new wrap_in_systems(<<~XML) @@ -461,7 +461,7 @@ def wrap_in_systems(xml) expect(buidingsync_reader.get_total_weighted_average_load).to eq 5 end - it "return nil if any plugload has nil WeightedAverageLoad" do + it 'return nil if any plugload has nil WeightedAverageLoad' do # Set Up doc = REXML::Document.new wrap_in_systems(<<~XML) @@ -483,7 +483,7 @@ def wrap_in_systems(xml) expect(buidingsync_reader.get_total_weighted_average_load).to eq nil end - it "return nil if no plug loads" do + it 'return nil if no plug loads' do # Set Up doc = REXML::Document.new wrap_in_systems('') @@ -494,7 +494,7 @@ def wrap_in_systems(xml) expect(buidingsync_reader.get_total_weighted_average_load).to eq nil end - it "return nil if no WeightedAverageLoad" do + it 'return nil if no WeightedAverageLoad' do # Set Up doc = REXML::Document.new wrap_in_systems(<<~XML) @@ -514,47 +514,47 @@ def wrap_in_systems(xml) end describe 'get_window_data should' do - good_window = <<~XML - - - - - Aluminum no thermal break - false - Average - Clear uncoated - Single pane - 0.391000 - 0.391000 - 3.241000 - - XML - invalid_window = <<~XML - - - - - Fiberglass - false - Average - Clear uncoated - Single pane - 0.391000 - 0.391000 - 3.241000 - - XML - door = <<~XML - - - - Uninsulated metal - - - - XML - - it "work in happy case" do + good_window = <<~XML + + + + + Aluminum no thermal break + false + Average + Clear uncoated + Single pane + 0.391000 + 0.391000 + 3.241000 + + XML + invalid_window = <<~XML + + + + + Fiberglass + false + Average + Clear uncoated + Single pane + 0.391000 + 0.391000 + 3.241000 + + XML + door = <<~XML + + + + Uninsulated metal + + + + XML + + it 'work in happy case' do # Set Up doc = REXML::Document.new wrap_in_systems(<<~XML) @@ -567,13 +567,13 @@ def wrap_in_systems(xml) window_pane_type, fenestration_u_factor, solar_heat_gain_coefficient, visible_transmittance = buidingsync_reader.get_window_data # Assertion - expect(window_pane_type).to eq "Single - No LowE - Clear - Aluminum" - expect(fenestration_u_factor).to eq "3.241000" - expect(solar_heat_gain_coefficient).to eq "0.391000" - expect(visible_transmittance).to eq "0.391000" + expect(window_pane_type).to eq 'Single - No LowE - Clear - Aluminum' + expect(fenestration_u_factor).to eq '3.241000' + expect(solar_heat_gain_coefficient).to eq '0.391000' + expect(visible_transmittance).to eq '0.391000' end - it "ignore doors and skylights" do + it 'ignore doors and skylights' do # Set Up doc = REXML::Document.new wrap_in_systems(<<~XML) @@ -587,13 +587,13 @@ def wrap_in_systems(xml) window_pane_type, fenestration_u_factor, solar_heat_gain_coefficient, visible_transmittance = buidingsync_reader.get_window_data # Assertion - expect(window_pane_type).to eq "Single - No LowE - Clear - Aluminum" - expect(fenestration_u_factor).to eq "3.241000" - expect(solar_heat_gain_coefficient).to eq "0.391000" - expect(visible_transmittance).to eq "0.391000" + expect(window_pane_type).to eq 'Single - No LowE - Clear - Aluminum' + expect(fenestration_u_factor).to eq '3.241000' + expect(solar_heat_gain_coefficient).to eq '0.391000' + expect(visible_transmittance).to eq '0.391000' end - it "work if first window is invalid but second isnt" do + it 'work if first window is invalid but second isnt' do # Set Up doc = REXML::Document.new wrap_in_systems(<<~XML) @@ -607,15 +607,15 @@ def wrap_in_systems(xml) window_pane_type, fenestration_u_factor, solar_heat_gain_coefficient, visible_transmittance = buidingsync_reader.get_window_data # Assertion - expect(window_pane_type).to eq "Single - No LowE - Clear - Aluminum" - expect(fenestration_u_factor).to eq "3.241000" - expect(solar_heat_gain_coefficient).to eq "0.391000" - expect(visible_transmittance).to eq "0.391000" + expect(window_pane_type).to eq 'Single - No LowE - Clear - Aluminum' + expect(fenestration_u_factor).to eq '3.241000' + expect(solar_heat_gain_coefficient).to eq '0.391000' + expect(visible_transmittance).to eq '0.391000' end - it "return nil if there are no windows" do + it 'return nil if there are no windows' do # Set Up - doc = REXML::Document.new wrap_in_systems("") + doc = REXML::Document.new wrap_in_systems('') # Action buidingsync_reader = BOSS::BuildingSyncReader.new(doc, nil, ASHRAE90_1) @@ -626,7 +626,7 @@ def wrap_in_systems(xml) end # warn not error - it "return nil if all windows are invalid" do + it 'return nil if all windows are invalid' do # Set Up doc = REXML::Document.new wrap_in_systems(<<~XML) diff --git a/spec/tests/unit/external_measure_repo_manager_spec.rb b/spec/tests/unit/external_measure_repo_manager_spec.rb index 1df4e57..8859d34 100644 --- a/spec/tests/unit/external_measure_repo_manager_spec.rb +++ b/spec/tests/unit/external_measure_repo_manager_spec.rb @@ -18,7 +18,7 @@ def write_manifest(dir, content) end def manager_for(manifest_path, install_dir) - described_class.new(manifest_path: manifest_path, install_dir: install_dir) + described_class.new(manifest_path:, install_dir:) end # --------------------------------------------------------------------------- diff --git a/spec/tests/unit/hvac_target_binder_spec.rb b/spec/tests/unit/hvac_target_binder_spec.rb index e853bd2..d0e3817 100644 --- a/spec/tests/unit/hvac_target_binder_spec.rb +++ b/spec/tests/unit/hvac_target_binder_spec.rb @@ -15,8 +15,8 @@ RSpec.describe BOSS::HvacTargetBinder do def match_result(premises, measure: 'hvac_ptac') BOSS::HvacTopologySelector::Result.new( - status: :match, configuration: 'Packaged Terminal Air Conditioner', measure: measure, - hvac_system_id: 'HVAC-1', record_ids: ['D-1'], premises: premises, group_key: [:delivery, 'D-1'], messages: [] + status: :match, configuration: 'Packaged Terminal Air Conditioner', measure:, + hvac_system_id: 'HVAC-1', record_ids: ['D-1'], premises:, group_key: [:delivery, 'D-1'], messages: [] ) end @@ -24,7 +24,7 @@ def match_result(premises, measure: 'hvac_ptac') ['Building', 'Site', 'Facility'].each do |type| it "binds #{type} premises to all model zones through the runtime binding measure" do - binding = binder.bind(match_result([{ type: type, id: "#{type}-1" }]), + binding = binder.bind(match_result([{ type:, id: "#{type}-1" }]), operation: 'replace', standards_template: '90.1-2016') expect(binding.status).to eq(:bound) expect(binding.step).to eq( diff --git a/spec/tests/unit/hvac_topology_selector_spec.rb b/spec/tests/unit/hvac_topology_selector_spec.rb index cad4f29..5c2eeb0 100644 --- a/spec/tests/unit/hvac_topology_selector_spec.rb +++ b/spec/tests/unit/hvac_topology_selector_spec.rb @@ -46,8 +46,7 @@ premises = '' # One HVACSystem with a single HS/CS/Delivery triple plus optional plants and other systems. - system_xml = lambda do |delivery:, heating:, cooling:, zoning: nil, plants: all_plants, others: '', delivery_refs: nil, - delivery_premises: premises, cooling_extra: ''| + system_xml = lambda do |delivery:, heating:, cooling:, zoning: nil, plants: all_plants, others: '', delivery_refs: nil, delivery_premises: premises, cooling_extra: ''| refs = delivery_refs || '' zoning_xml = zoning ? "#{zoning}" : '' '' \ @@ -98,7 +97,7 @@ def select_from(body, prefix: nil) expect(results.length).to eq(1) result = results.first expect(result.messages).to eq([]) - expect(result).to have_attributes(status: :match, configuration: configuration, measure: measure, + expect(result).to have_attributes(status: :match, configuration:, measure:, hvac_system_id: 'HVAC-1', premises: [{ type: 'ThermalZone', id: 'TZ-1' }]) end end @@ -251,15 +250,14 @@ def select_from(body, prefix: nil) describe 'ventilation and other HVAC systems' do ventilation_delivery = "#{premises}#{single_zone_cav}" \ '' - other = lambda do |type_xml, links: '', - integration: 'Stand-alone'| + other = lambda do |type_xml, links: '', integration: 'Stand-alone',| "#{type_xml}" \ "#{integration}#{links}" end mechanical = ->(type) { "#{type}" } with_ventilation = lambda do |others, ventilation_heating: no_heating| - system_xml.call(**exact_cases['Packaged Terminal Air Conditioner'][1], others: others) + system_xml.call(**exact_cases['Packaged Terminal Air Conditioner'][1], others:) .sub('', "#{ventilation_heating}") .sub('', "#{no_cooling}") .sub('', "#{ventilation_delivery}") @@ -296,7 +294,7 @@ def select_from(body, prefix: nil) it 'reports a broken linked delivery as conflicting input' do links = '' - results = select_from(with_ventilation.call(other.call(mechanical.call('Supply only'), links: links))) + results = select_from(with_ventilation.call(other.call(mechanical.call('Supply only'), links:))) expect(results.last.status).to eq(:conflicting_input) end From d68a5ecb962777ea1467155411c74bb177f9d8cb Mon Sep 17 00:00:00 2001 From: JieXiong9119 <69597597+JieXiong9119@users.noreply.github.com> Date: Wed, 18 Nov 2026 11:14:07 -0700 Subject: [PATCH 07/12] fix rubocop introduced bug --- spec/tests/unit/hvac_topology_selector_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/tests/unit/hvac_topology_selector_spec.rb b/spec/tests/unit/hvac_topology_selector_spec.rb index 5c2eeb0..4ac70b3 100644 --- a/spec/tests/unit/hvac_topology_selector_spec.rb +++ b/spec/tests/unit/hvac_topology_selector_spec.rb @@ -250,7 +250,7 @@ def select_from(body, prefix: nil) describe 'ventilation and other HVAC systems' do ventilation_delivery = "#{premises}#{single_zone_cav}" \ '' - other = lambda do |type_xml, links: '', integration: 'Stand-alone',| + other = lambda do |type_xml, links: '', integration: 'Stand-alone'| "#{type_xml}" \ "#{integration}#{links}" end From 93d26c940e5e1e33f28c57905a5c964f302a7fa7 Mon Sep 17 00:00:00 2001 From: JieXiong9119 <69597597+JieXiong9119@users.noreply.github.com> Date: Wed, 18 Nov 2026 13:56:32 -0700 Subject: [PATCH 08/12] Revert "fix rubocop introduced bug" This reverts commit d68a5ecb962777ea1467155411c74bb177f9d8cb. --- spec/tests/unit/hvac_topology_selector_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/tests/unit/hvac_topology_selector_spec.rb b/spec/tests/unit/hvac_topology_selector_spec.rb index 4ac70b3..5c2eeb0 100644 --- a/spec/tests/unit/hvac_topology_selector_spec.rb +++ b/spec/tests/unit/hvac_topology_selector_spec.rb @@ -250,7 +250,7 @@ def select_from(body, prefix: nil) describe 'ventilation and other HVAC systems' do ventilation_delivery = "#{premises}#{single_zone_cav}" \ '' - other = lambda do |type_xml, links: '', integration: 'Stand-alone'| + other = lambda do |type_xml, links: '', integration: 'Stand-alone',| "#{type_xml}" \ "#{integration}#{links}" end From 6bd115d510815f1eb8e5f8e4aa1e8e0c48344b6b Mon Sep 17 00:00:00 2001 From: JieXiong9119 <69597597+JieXiong9119@users.noreply.github.com> Date: Wed, 18 Nov 2026 13:56:36 -0700 Subject: [PATCH 09/12] Revert "rubocop auto" This reverts commit f5079bfd0f884a43a07cfeed8dbe35fd2bdcafa7. --- BOSS.gemspec | 4 +- Gemfile | 4 +- Rakefile | 2 +- lib/BOSS/boss.rb | 170 ++++++++-------- lib/BOSS/boss_logger.rb | 16 +- .../bcl_weather_file_downloader.rb | 12 +- .../buildingsync_reader.rb | 187 +++++++++--------- lib/BOSS/buildingsync_reader/systems_map.rb | 112 +++++------ lib/BOSS/external_measure_repo_manager.rb | 12 +- lib/BOSS/hvac_target_binder.rb | 4 +- lib/BOSS/hvac_topology_selector.rb | 14 +- lib/BOSS/osw_arg_populator.rb | 149 +++++++------- lib/boss_cli.rb | 22 +-- spec/spec_helper.rb | 2 +- .../integration/write_and_run_osws_spec.rb | 15 +- spec/tests/unit/boss_spec.rb | 17 +- spec/tests/unit/buildingsync_reader_spec.rb | 180 ++++++++--------- .../external_measure_repo_manager_spec.rb | 2 +- spec/tests/unit/hvac_target_binder_spec.rb | 6 +- .../tests/unit/hvac_topology_selector_spec.rb | 12 +- 20 files changed, 473 insertions(+), 469 deletions(-) diff --git a/BOSS.gemspec b/BOSS.gemspec index 12349e9..f3fb9b2 100644 --- a/BOSS.gemspec +++ b/BOSS.gemspec @@ -24,18 +24,18 @@ Gem::Specification.new do |spec| spec.require_paths = ['lib'] spec.add_dependency 'bundler', '~> 2.4.10' - spec.add_dependency 'httparty', '~> 0.23.2' spec.add_dependency 'openstudio-common-measures', '~> 0.12.3' spec.add_dependency 'openstudio-ee', '~> 0.12.5' spec.add_dependency 'openstudio-extension', '~> 0.9.4' spec.add_dependency 'openstudio-model-articulation', '~> 0.12.2' spec.add_dependency 'openstudio-standards', '~> 0.8.2' + spec.add_dependency 'httparty', '~> 0.23.2' spec.add_dependency 'thor', '~> 1.5.0' - spec.add_development_dependency 'pry', '~> 0.15.2' spec.add_development_dependency 'rake', '~> 13.0' spec.add_development_dependency 'rspec', '~> 3.13' spec.add_development_dependency 'rubocop', '1.50' spec.add_development_dependency 'rubocop-checkstyle_formatter', '0.6.0' spec.add_development_dependency 'rubocop-performance', '1.20.0' + spec.add_development_dependency 'pry', '~> 0.15.2' end diff --git a/Gemfile b/Gemfile index 4af77b6..ce665c3 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,5 @@ -source 'https://rubygems.org' +source "https://rubygems.org" gemspec -# gem 'openstudio-extension', path: '../OpenStudio-extension-gem' +#gem 'openstudio-extension', path: '../OpenStudio-extension-gem' diff --git a/Rakefile b/Rakefile index eadf334..23985fe 100644 --- a/Rakefile +++ b/Rakefile @@ -39,4 +39,4 @@ namespace :measures do puts "External measure roots (#{dirs.length}):" dirs.each { |dir| puts " - #{dir}" } end -end +end \ No newline at end of file diff --git a/lib/BOSS/boss.rb b/lib/BOSS/boss.rb index 5268471..69a1085 100644 --- a/lib/BOSS/boss.rb +++ b/lib/BOSS/boss.rb @@ -23,112 +23,112 @@ class Boss # @param epw_file_path [String] if provided, full/path/to/my.epw # @param standard_to_be_used [String] class << self - def write_baseline_osw(xml_file_path, output_dir, epw_file_path, standard_to_be_used) - # check file exists - if !File.exist?(xml_file_path) - message = "File '#{xml_file_path}' does not exist" - OpenStudio.logFree(OpenStudio::Error, 'BOSS.write_baseline_osw', message) - raise message - end + def write_baseline_osw(xml_file_path, output_dir, epw_file_path, standard_to_be_used) + # check file exists + if !File.exist?(xml_file_path) + message = "File '#{xml_file_path}' does not exist" + OpenStudio.logFree(OpenStudio::Error, 'BOSS.write_baseline_osw', message) + raise message + end - # open file and prepare to read it - xml_data = File.read(xml_file_path) - bsync_doc = REXML::Document.new(xml_data, ignore_whitespace_nodes: :all) - bsync_reader = BOSS::BuildingSyncReader.new(bsync_doc, epw_file_path, standard_to_be_used) + # open file and prepare to read it + xml_data = File.read(xml_file_path) + bsync_doc = REXML::Document.new(xml_data, ignore_whitespace_nodes: :all) + bsync_reader = BOSS::BuildingSyncReader.new(bsync_doc, epw_file_path, standard_to_be_used) - baseline_osw = build_baseline_osw(bsync_reader) + baseline_osw = build_baseline_osw(bsync_reader) - # write to file - workflow_dir = File.join(output_dir, 'baseline') - FileUtils.mkdir_p(workflow_dir) - osw_path = File.join(workflow_dir, 'in.osw') - File.open(osw_path, 'w') do |file| - file << JSON.pretty_generate(baseline_osw) - end - osw_path + # write to file + workflow_dir = File.join(output_dir, 'baseline') + FileUtils.mkdir_p(workflow_dir) + osw_path = File.join(workflow_dir, 'in.osw') + File.open(osw_path, 'w') do |file| + file << JSON.pretty_generate(baseline_osw) end + osw_path + end - # @param osw_dir [String] path to osws - def run_baseline_osw(osw_dir) - # assert we have a baseline osm - baseline_osw_path = File.join(osw_dir, 'baseline', 'in.osw') - - # assert baseline exist - if !File.file?(baseline_osw_path) - error_message = - "this function requires #{baseline_osw_path}, which does not exist. "\ - "Create #{baseline_osw_path} with `write_baseline_osw` and try again." - - OpenStudio.logFree(OpenStudio::Error, 'BOSS.Boss.run_baseline_osw', error_message) - raise StandardError, "BOSS.Boss.run_baseline_osw: #{error_message}" - end + # @param osw_dir [String] path to osws + def run_baseline_osw(osw_dir) + # assert we have a baseline osm + baseline_osw_path = File.join(osw_dir, 'baseline', 'in.osw') + + # assert baseline exist + if !File.file?(baseline_osw_path) + error_message = ( + "this function requires #{baseline_osw_path}, which does not exist. "\ + "Create #{baseline_osw_path} with `write_baseline_osw` and try again." + ) + OpenStudio.logFree(OpenStudio::Error, 'BOSS.Boss.run_baseline_osw', error_message) + raise StandardError, "BOSS.Boss.run_baseline_osw: #{error_message}" + end - runner = OpenStudio::Extension::Runner.new(dirname = Dir.pwd, bundle_without = [], options = { run_simulations: true, verbose: false, num_parallel: 7, max_to_run: Float::INFINITY }) + runner = OpenStudio::Extension::Runner.new(dirname = Dir.pwd, bundle_without = [], options = { run_simulations: true, verbose: false, num_parallel: 7, max_to_run: Float::INFINITY }) - # run the baseline osm - return runner.run_osws([baseline_osw_path]) - end + # run the baseline osm + return runner.run_osws([baseline_osw_path]) + end private - # Returns a new, unsaved baseline OSW hash for the given reader. - def build_baseline_osw(bsync_reader) - # start with an empty baseline workflow - file = File.read(EMPTY_BASELINE_OSW_PATH) - baseline_osw = JSON.parse(file, symbolize_names: true) - - # populate the baseline measures - OSWArgPopulator.populate_set_run_period_args(baseline_osw, bsync_reader) - OSWArgPopulator.populate_change_building_location_args(baseline_osw, bsync_reader) - - OSWArgPopulator.populate_create_bar_from_building_type_ratios_args(baseline_osw, bsync_reader) - hvac_systems = bsync_reader.get_hvac_systems_xml - hvac_plan = BaselineHvacPlanner.new.plan(hvac_systems, bsync_reader.get_standard_template, - exclude_system_ids: BaselineHvacPlanner.proposed_system_ids(hvac_systems)) - OSWArgPopulator.populate_create_typical_building_from_model_args(baseline_osw, bsync_reader, - add_hvac: !hvac_plan.topology?) - if hvac_plan.topology? - hvac_plan.steps.each { |step| OSWArgPopulator.append_step(baseline_osw, step) } - else - hvac_plan.messages.each do |message| - BOSS.BOSS_logger.warn("BOSS.Boss: Keeping create_typical_building_from_model HVAC: #{message}") - end + # Returns a new, unsaved baseline OSW hash for the given reader. + def build_baseline_osw(bsync_reader) + # start with an empty baseline workflow + file = File.read(EMPTY_BASELINE_OSW_PATH) + baseline_osw = JSON.parse(file, symbolize_names: true) + + # populate the baseline measures + OSWArgPopulator::populate_set_run_period_args(baseline_osw, bsync_reader) + OSWArgPopulator::populate_change_building_location_args(baseline_osw, bsync_reader) + + OSWArgPopulator::populate_create_bar_from_building_type_ratios_args(baseline_osw, bsync_reader) + hvac_systems = bsync_reader.get_hvac_systems_xml + hvac_plan = BaselineHvacPlanner.new.plan(hvac_systems, bsync_reader.get_standard_template, + exclude_system_ids: BaselineHvacPlanner.proposed_system_ids(hvac_systems)) + OSWArgPopulator::populate_create_typical_building_from_model_args(baseline_osw, bsync_reader, + add_hvac: !hvac_plan.topology?) + if hvac_plan.topology? + hvac_plan.steps.each { |step| OSWArgPopulator.append_step(baseline_osw, step) } + else + hvac_plan.messages.each do |message| + BOSS.BOSS_logger.warn("BOSS.Boss: Keeping create_typical_building_from_model HVAC: #{message}") end + end - OSWArgPopulator.populate_set_lighting_loads_by_LPD_args(baseline_osw, bsync_reader) - OSWArgPopulator.populate_set_electric_equipment_loads_by_epd_args(baseline_osw, bsync_reader) - OSWArgPopulator.populate_replace_baseline_windows_args(baseline_osw, bsync_reader) + OSWArgPopulator::populate_set_lighting_loads_by_LPD_args(baseline_osw, bsync_reader) + OSWArgPopulator::populate_set_electric_equipment_loads_by_epd_args(baseline_osw, bsync_reader) + OSWArgPopulator::populate_replace_baseline_windows_args(baseline_osw, bsync_reader) - OSWArgPopulator.populate_openstudio_results_args(baseline_osw, bsync_reader) + OSWArgPopulator::populate_openstudio_results_args(baseline_osw, bsync_reader) - # Gather extension-derived paths (typically gem-based measures/files) from ObjectSpace. - OpenStudio::Extension.configure_osw(baseline_osw) + # Gather extension-derived paths (typically gem-based measures/files) from ObjectSpace. + OpenStudio::Extension.configure_osw(baseline_osw) - # Force ordering: local BOSS measures, extension-discovered (gems), then external repos. - manager = ExternalMeasureRepoManager.new - local_measure_dirs = manager.local_measure_directories - # Topology HVAC steps need buildingsync-measures-gem, which fallback baselines omit. - external_measure_dirs = manager.resolved_measure_directories(include_scenario_only: hvac_plan.topology?) - discovered_measure_dirs = baseline_osw[:measure_paths] || [] + # Force ordering: local BOSS measures, extension-discovered (gems), then external repos. + manager = ExternalMeasureRepoManager.new + local_measure_dirs = manager.local_measure_directories + # Topology HVAC steps need buildingsync-measures-gem, which fallback baselines omit. + external_measure_dirs = manager.resolved_measure_directories(include_scenario_only: hvac_plan.topology?) + discovered_measure_dirs = baseline_osw[:measure_paths] || [] - discovered_nonlocal_nonexternal = discovered_measure_dirs.reject do |path| - local_measure_dirs.include?(path) || external_measure_dirs.include?(path) - end + discovered_nonlocal_nonexternal = discovered_measure_dirs.reject do |path| + local_measure_dirs.include?(path) || external_measure_dirs.include?(path) + end - baseline_osw[:measure_paths] = ordered_unique(local_measure_dirs + discovered_nonlocal_nonexternal + external_measure_dirs) + baseline_osw[:measure_paths] = ordered_unique(local_measure_dirs + discovered_nonlocal_nonexternal + external_measure_dirs) - local_file_paths = local_measure_dirs.map { |path| measure_path_to_files_path(path) } - external_file_paths = external_measure_dirs.map { |path| measure_path_to_files_path(path) } - discovered_file_paths = baseline_osw[:file_paths] || [] + local_file_paths = local_measure_dirs.map { |path| measure_path_to_files_path(path) } + external_file_paths = external_measure_dirs.map { |path| measure_path_to_files_path(path) } + discovered_file_paths = baseline_osw[:file_paths] || [] - discovered_file_nonlocal_nonexternal = discovered_file_paths.reject do |path| - local_file_paths.include?(path) || external_file_paths.include?(path) - end + discovered_file_nonlocal_nonexternal = discovered_file_paths.reject do |path| + local_file_paths.include?(path) || external_file_paths.include?(path) + end - baseline_osw[:file_paths] = ordered_unique(local_file_paths + discovered_file_nonlocal_nonexternal + external_file_paths) + baseline_osw[:file_paths] = ordered_unique(local_file_paths + discovered_file_nonlocal_nonexternal + external_file_paths) - baseline_osw - end + baseline_osw + end def measure_path_to_files_path(measure_path) path = measure_path.to_s diff --git a/lib/BOSS/boss_logger.rb b/lib/BOSS/boss_logger.rb index 481f1f9..249939c 100644 --- a/lib/BOSS/boss_logger.rb +++ b/lib/BOSS/boss_logger.rb @@ -8,14 +8,14 @@ module BOSS # module BOSSLogger - @@BOSS_logger = Logger.new($stdout) + @@BOSS_logger = Logger.new($stdout) - # Set Logger::DEBUG for development - @@BOSS_logger.level = Logger::DEBUG - ## - # Defining class variable "@@logger" to log errors, info and warning messages. - def self.BOSS_logger - @@BOSS_logger - end + # Set Logger::DEBUG for development + @@BOSS_logger.level = Logger::DEBUG + ## + # Defining class variable "@@logger" to log errors, info and warning messages. + def self.BOSS_logger + @@BOSS_logger + end # end end diff --git a/lib/BOSS/buildingsync_reader/bcl_weather_file_downloader.rb b/lib/BOSS/buildingsync_reader/bcl_weather_file_downloader.rb index 6a3afc9..48490dc 100644 --- a/lib/BOSS/buildingsync_reader/bcl_weather_file_downloader.rb +++ b/lib/BOSS/buildingsync_reader/bcl_weather_file_downloader.rb @@ -22,8 +22,8 @@ class BCLWeatherFileDownloader def self.download_weather_file_from_city_name(city_name, state_name) # from BCL, get closest weather station to city response = HTTParty.get("#{@@base_BCL_uri}/location:#{city_name.gsub(' ', '+')},#{state_name}.xml?fq=component_tags:\"Weather File\"") - results = REXML::Document.new(response.body, { ignore_whitespace_nodes: :all, compress_whitespace: :all }).elements['results'] - results = results.children.filter { |x| x.name == 'result' } + results = REXML::Document.new(response.body, {ignore_whitespace_nodes: :all, compress_whitespace: :all}).elements["results"] + results = results.children.filter {|x| x.name == "result"} if results.empty? raise StandardError, "No weather files found within a 40 mile radius #{city_name},#{state_name} within the BCL." @@ -31,10 +31,10 @@ def self.download_weather_file_from_city_name(city_name, state_name) # just pick the closest result = results[0] - filenames = result.elements['component/files'].children.map { |x| x.elements['filename'].text } + filenames = result.elements["component/files"].children.map {|x| x.elements["filename"].text} filename = filenames[0] - filename['.epw'] = '' - state_name = filename.split('_')[1] + filename[".epw"] = "" + state_name = filename.split("_")[1] # from ep, get the zip uri = "#{@@base_EP_uri}/USA/#{state_name}/#{filename}/#{filename}.zip" @@ -50,7 +50,7 @@ def self.download_weather_file_from_city_name(city_name, state_name) end - return File.join(WEATHER_DIR, filename + '.epw') + return File.join(WEATHER_DIR, filename + ".epw") end end end diff --git a/lib/BOSS/buildingsync_reader/buildingsync_reader.rb b/lib/BOSS/buildingsync_reader/buildingsync_reader.rb index 792834c..91ce430 100644 --- a/lib/BOSS/buildingsync_reader/buildingsync_reader.rb +++ b/lib/BOSS/buildingsync_reader/buildingsync_reader.rb @@ -21,12 +21,13 @@ def initialize(bsync_doc, epw_file_path, standard_to_be_used) # get namespace ns = @bsync_doc.elements[1].prefix - @ns = ns.nil? || ns == '' ? nil : ns + ':' + @ns = ns.nil? || ns == ""? nil : ns + ":" # just some convenience attr @facility_xml = @bsync_doc.elements["/#{@ns}BuildingSync/#{@ns}Facilities/#{@ns}Facility"] @site_xml = @facility_xml.elements["#{@ns}Sites/#{@ns}Site"] @building_xml = @site_xml.elements["#{@ns}Buildings/#{@ns}Building"] + end # tries to get weather file from: @@ -62,7 +63,7 @@ def get_epw_file_path BOSS.BOSS_logger.info("|\t|\t climate_zone not found") end - message = 'Could not set a weather file as neither climate zone not city/state could be found' + message = "Could not set a weather file as neither climate zone not city/state could be found" raise StandardError, 'BOSS.BuildingSyncReader.get_epw_file_path ' + message end @@ -75,11 +76,11 @@ def _get_climate_zone(xml, type) end def _format_climate_zone(climate_zone, type) - return "ASHRAE 169-2013-#{climate_zone}" if type == 'ASHRAE' - return "CEC T24-CEC#{climate_zone.gsub('Climate Zone', '').strip}" if type == 'CaliforniaTitle24' + return "ASHRAE 169-2013-#{climate_zone}" if type == "ASHRAE" + return "CEC T24-CEC#{climate_zone.gsub('Climate Zone', '').strip}" if type == "CaliforniaTitle24" end - preferred_type = @standard_to_be_used == ASHRAE90_1 ? 'ASHRAE' : 'CaliforniaTitle24' + preferred_type = @standard_to_be_used == ASHRAE90_1 ? "ASHRAE" : "CaliforniaTitle24" BOSS.BOSS_logger.info("|\t|\t|\t- checking building climate zone...") climate_zone = _get_climate_zone(@building_xml, preferred_type) @@ -122,7 +123,7 @@ def get_occupancy_classification occupancy_classification = @building_xml.elements["#{@ns}OccupancyClassification"]&.text return occupancy_classification if !occupancy_classification.nil? - section_elements = @building_xml.elements.each("#{@ns}Sections/#{@ns}Section") { |s| s } + section_elements = @building_xml.elements.each("#{@ns}Sections/#{@ns}Section"){|s| s} return nil if section_elements.nil? candidates = section_elements.filter_map do |section_element| @@ -131,7 +132,7 @@ def get_occupancy_classification section_floor_areas_xml = section_element.elements["#{@ns}FloorAreas"] section_floor_area = !section_floor_areas_xml.nil? ? _get_total_floor_area_from_floor_areas_xml(section_floor_areas_xml) : 0 - { occupancy_classification: section_occupancy_classification, floor_area: section_floor_area } + {occupancy_classification: section_occupancy_classification, floor_area: section_floor_area} end return nil if candidates.empty? return candidates.first[:occupancy_classification] if candidates.length == 1 @@ -146,7 +147,7 @@ def get_building_type_and_bar_division_method occupancy_classification = get_occupancy_classification BOSS.BOSS_logger.info("|\t|\t|\t occupancy classification: #{occupancy_classification}") BOSS.BOSS_logger.info("|\t|\t|\t- getting total floor area...") - total_floor_area = get_total_floor_area(num_indent = 4) + total_floor_area = get_total_floor_area(num_indent=4) BOSS.BOSS_logger.info("|\t|\t|\t total_floor_area: #{total_floor_area}") BOSS.BOSS_logger.info("|\t|\t|\t- getting number of floors...") total_number_floors = _get_total_number_floors @@ -178,19 +179,19 @@ def get_building_type_and_bar_division_method # 1. /FloorAreas of building # 2. /FloorAreas of site # The building is more specific than the site, so its value wins when both are present. - def get_total_floor_area(num_indent = 2) + def get_total_floor_area(num_indent=2) # check building floor area - BOSS.BOSS_logger.info("#{"|\t" * num_indent}- checking building for total floor area...") + BOSS.BOSS_logger.info("#{"|\t"*num_indent}- checking building for total floor area...") building_floor_areas_xml = @building_xml.nil? ? nil : @building_xml.elements["#{@ns}FloorAreas"] - building_area = !building_floor_areas_xml.nil? ? _get_total_floor_area_from_floor_areas_xml(building_floor_areas_xml, num_indent + 1) : 0 - BOSS.BOSS_logger.info("#{"|\t" * num_indent} building floor area is #{building_area}") + building_area = !building_floor_areas_xml.nil? ? _get_total_floor_area_from_floor_areas_xml(building_floor_areas_xml, num_indent+1) : 0 + BOSS.BOSS_logger.info("#{"|\t"*num_indent} building floor area is #{building_area}") return building_area if building_area > 0 # check site floor area - BOSS.BOSS_logger.info("#{"|\t" * num_indent}- checking site for total floor area...") + BOSS.BOSS_logger.info("#{"|\t"*num_indent}- checking site for total floor area...") site_floor_areas_xml = @site_xml.elements["#{@ns}FloorAreas"] - site_area = !site_floor_areas_xml.nil? ? _get_total_floor_area_from_floor_areas_xml(site_floor_areas_xml, num_indent + 1) : 0 - BOSS.BOSS_logger.info("#{"|\t" * num_indent} site floor area is #{site_area}") + site_area = !site_floor_areas_xml.nil? ? _get_total_floor_area_from_floor_areas_xml(site_floor_areas_xml, num_indent+1) : 0 + BOSS.BOSS_logger.info("#{"|\t"*num_indent} site floor area is #{site_area}") return site_area if site_area > 0 # TODO: read sections @@ -201,7 +202,7 @@ def get_total_floor_area(num_indent = 2) # 1. Gross floor area # 2. Sum of "Conditioned" + "Common" + "Heated and Cooled" + "Heated Only" + "Cooled Only" floor area # 3. Sum of "Conditioned above grade" + "Conditioned below grade" floor area - def _get_total_floor_area_from_floor_areas_xml(floor_areas_xml, num_indent = 5) + def _get_total_floor_area_from_floor_areas_xml(floor_areas_xml, num_indent=5) # build a hash of the floor area in meters, by type floor_area_by_type = {} floor_area_by_type.default = 0 @@ -214,21 +215,21 @@ def _get_total_floor_area_from_floor_areas_xml(floor_areas_xml, num_indent = 5) end # first, try to get it from simply "Gross" - BOSS.BOSS_logger.info("#{"|\t" * num_indent} - checking gross floor area") - gross_floor_area = floor_area_by_type['Gross'] - BOSS.BOSS_logger.info("#{"|\t" * num_indent} - gross floor area: #{gross_floor_area}") + BOSS.BOSS_logger.info("#{"|\t"*num_indent} - checking gross floor area") + gross_floor_area = floor_area_by_type["Gross"] + BOSS.BOSS_logger.info("#{"|\t"*num_indent} - gross floor area: #{gross_floor_area}") return gross_floor_area if gross_floor_area > 0 # next, try to get it from "Conditioned" + "Common" + "Heated and Cooled" + "Heated Only" + "Cooled Only" - BOSS.BOSS_logger.info("#{"|\t" * num_indent} - checking conditioned floor area") - conditioned_area = floor_area_by_type['Conditioned'] + floor_area_by_type['Common'] + floor_area_by_type['Heated and Cooled'] + floor_area_by_type['Heated Only'] + floor_area_by_type['Cooled Only'] - BOSS.BOSS_logger.info("#{"|\t" * num_indent} - conditioned floor area: #{conditioned_area}") + BOSS.BOSS_logger.info("#{"|\t"*num_indent} - checking conditioned floor area") + conditioned_area = floor_area_by_type["Conditioned"] + floor_area_by_type["Common"] + floor_area_by_type["Heated and Cooled"] + floor_area_by_type["Heated Only"] + floor_area_by_type["Cooled Only"] + BOSS.BOSS_logger.info("#{"|\t"*num_indent} - conditioned floor area: #{conditioned_area}") return conditioned_area if conditioned_area > 0 # next, try to get it from "Conditioned above grade" + "Conditioned below grade" - BOSS.BOSS_logger.info("#{"|\t" * num_indent} - checking conditioned floor area (above + below)") - conditioned_area = floor_area_by_type['Conditioned above grade'] + floor_area_by_type['Conditioned below grade'] - BOSS.BOSS_logger.info("#{"|\t" * num_indent} - conditioned floor area (above + below): #{conditioned_area}") + BOSS.BOSS_logger.info("#{"|\t"*num_indent} - checking conditioned floor area (above + below)") + conditioned_area = floor_area_by_type["Conditioned above grade"] + floor_area_by_type["Conditioned below grade"] + BOSS.BOSS_logger.info("#{"|\t"*num_indent} - conditioned floor area (above + below): #{conditioned_area}") return conditioned_area if conditioned_area > 0 # thats all we got! @@ -238,59 +239,60 @@ def _get_total_floor_area_from_floor_areas_xml(floor_areas_xml, num_indent = 5) # tries to get total number floor from: # 1. building's FloorsAboveGrade # 2. building's ConditionedFloorsAboveGrade + UnconditionedFloorsAboveGrade - def get_floor_above_grade(num_indent = 2) - BOSS.BOSS_logger.info("#{"|\t" * num_indent}- checking building floors above grade...") + def get_floor_above_grade(num_indent=2) + BOSS.BOSS_logger.info("#{"|\t"*num_indent}- checking building floors above grade...") floors_above_grade = @building_xml.elements["#{@ns}FloorsAboveGrade"]&.text - BOSS.BOSS_logger.info("#{"|\t" * num_indent} floors above grade: #{floors_above_grade}") - return floors_above_grade.to_f if !floors_above_grade.nil? + BOSS.BOSS_logger.info("#{"|\t"*num_indent} floors above grade: #{floors_above_grade}") + return floors_above_grade.to_f if !floors_above_grade.nil? - BOSS.BOSS_logger.info("#{"|\t" * num_indent}- checking building conditioned floors above grade and unconditioned floors above grade...") + BOSS.BOSS_logger.info("#{"|\t"*num_indent}- checking building conditioned floors above grade and unconditioned floors above grade...") conditioned_floors_above_grade = @building_xml.elements["#{@ns}ConditionedFloorsAboveGrade"]&.text unconditioned_floors_above_grade = @building_xml.elements["#{@ns}UnconditionedFloorsAboveGrade"]&.text - BOSS.BOSS_logger.info("#{"|\t" * num_indent} conditioned floors above grade: #{conditioned_floors_above_grade}") - BOSS.BOSS_logger.info("#{"|\t" * num_indent} unconditioned floors above grade: #{unconditioned_floors_above_grade}") + BOSS.BOSS_logger.info("#{"|\t"*num_indent} conditioned floors above grade: #{conditioned_floors_above_grade}") + BOSS.BOSS_logger.info("#{"|\t"*num_indent} unconditioned floors above grade: #{unconditioned_floors_above_grade}") if !conditioned_floors_above_grade.nil? || !unconditioned_floors_above_grade.nil? return (conditioned_floors_above_grade.to_f || 0) + (unconditioned_floors_above_grade.to_f || 0) end - BOSS.BOSS_logger.info("#{"|\t" * num_indent}- cannot find floors above grade") + BOSS.BOSS_logger.info("#{"|\t"*num_indent}- cannot find floors above grade") return nil end # tries to get total number floor from: # 1. building's FloorsBelowGrade # 2. building's ConditionedFloorsBelowGrade + UnconditionedFloorsBelowGrade - def get_floor_below_grade(num_indent = 2) - BOSS.BOSS_logger.info("#{"|\t" * num_indent}- checking building floors below grade...") + def get_floor_below_grade(num_indent=2) + BOSS.BOSS_logger.info("#{"|\t"*num_indent}- checking building floors below grade...") floors_below_grade = @building_xml.elements["#{@ns}FloorsBelowGrade"]&.text - BOSS.BOSS_logger.info("#{"|\t" * num_indent} floors below grade: #{floors_below_grade}") - return floors_below_grade.to_f if !floors_below_grade.nil? + BOSS.BOSS_logger.info("#{"|\t"*num_indent} floors below grade: #{floors_below_grade}") + return floors_below_grade.to_f if !floors_below_grade.nil? - BOSS.BOSS_logger.info("#{"|\t" * num_indent}- checking building conditioned floors below grade and unconditioned floors below grade...") + BOSS.BOSS_logger.info("#{"|\t"*num_indent}- checking building conditioned floors below grade and unconditioned floors below grade...") conditioned_floors_below_grade = @building_xml.elements["#{@ns}ConditionedFloorsBelowGrade"]&.text unconditioned_floors_below_grade = @building_xml.elements["#{@ns}UnconditionedFloorsBelowGrade"]&.text - BOSS.BOSS_logger.info("#{"|\t" * num_indent} conditioned floors below grade: #{conditioned_floors_below_grade}") - BOSS.BOSS_logger.info("#{"|\t" * num_indent} unconditioned floors below grade: #{unconditioned_floors_below_grade}") + BOSS.BOSS_logger.info("#{"|\t"*num_indent} conditioned floors below grade: #{conditioned_floors_below_grade}") + BOSS.BOSS_logger.info("#{"|\t"*num_indent} unconditioned floors below grade: #{unconditioned_floors_below_grade}") if !conditioned_floors_below_grade.nil? || !unconditioned_floors_below_grade.nil? return (conditioned_floors_below_grade.to_f || 0) + (unconditioned_floors_below_grade.to_f || 0) end - BOSS.BOSS_logger.info("#{"|\t" * num_indent}- cannot find floors below grade") + BOSS.BOSS_logger.info("#{"|\t"*num_indent}- cannot find floors below grade") return nil end def _get_total_number_floors BOSS.BOSS_logger.info("|\t|\t|\t|\t- getting floors above grade...") - floors_above_grade = get_floor_above_grade(num_indent = 5) + floors_above_grade = get_floor_above_grade(num_indent=5) BOSS.BOSS_logger.info("|\t|\t|\t|\t floors above grade: #{floors_above_grade}") BOSS.BOSS_logger.info("|\t|\t|\t|\t- getting floors below grade...") - floors_below_grade = get_floor_below_grade(num_indent = 5) + floors_below_grade = get_floor_below_grade(num_indent=5) BOSS.BOSS_logger.info("|\t|\t|\t|\t floors below grade: #{floors_below_grade}") - return (floors_above_grade || 1) + (floors_below_grade || 0) + return (floors_above_grade || 1) + (floors_below_grade || 0) end - # tries to get year built from: + + # tries to get year built from: # 1. /YearOfLastMajorRemodel of building # 2. /YearOfConstruction of building def get_built_year @@ -302,34 +304,32 @@ def get_built_year BOSS.BOSS_logger.info("|\t|\t|\t|\t- checking year of construction...") year_of_construction = @building_xml.elements["#{@ns}YearOfConstruction"]&.text BOSS.BOSS_logger.info("|\t|\t|\t|\t year of construction: #{year_of_construction}...") - return year_of_construction.to_f if !year_of_construction.nil? + return year_of_construction.to_f if !year_of_construction.nil? end # map year built and standard_to_be_used to a standard_template def get_standard_template def _get_standard_template(built_year) if @standard_to_be_used == CA_TITLE24 - return 'DEER Pre-1975' if built_year < 1975 - return 'DEER 1985' if built_year >= 1975 && built_year < 1985 - return 'DEER 1996' if built_year >= 1985 && built_year < 1996 - return 'DEER 2003' if built_year >= 1996 && built_year < 2003 - return 'DEER 2007' if built_year >= 2003 && built_year < 2007 - return 'DEER 2011' if built_year >= 2007 && built_year < 2011 - return 'DEER 2014' if built_year >= 2011 && built_year < 2014 - return 'DEER 2015' if built_year >= 2014 && built_year < 2015 - return 'DEER 2017' if built_year >= 2015 && built_year < 2017 - - return 'DEER 2020' - - elsif @standard_to_be_used == ASHRAE90_1 - return 'DOE Ref Pre-1980' if built_year < 1980 - return 'DOE Ref 1980-2004' if built_year >= 1980 && built_year < 2004 - return '90.1-2007' if built_year >= 2004 && built_year < 2007 - return '90.1-2010' if built_year >= 2007 && built_year < 2010 - return '90.1-2013' if built_year >= 2010 && built_year < 2013 - return '90.1-2016' if built_year >= 2013 && built_year < 2016 - - return '90.1-2019' + return "DEER Pre-1975" if built_year < 1975 + return "DEER 1985" if built_year >= 1975 && built_year < 1985 + return "DEER 1996" if built_year >= 1985 && built_year < 1996 + return "DEER 2003" if built_year >= 1996 && built_year < 2003 + return "DEER 2007" if built_year >= 2003 && built_year < 2007 + return "DEER 2011" if built_year >= 2007 && built_year < 2011 + return "DEER 2014" if built_year >= 2011 && built_year < 2014 + return "DEER 2015" if built_year >= 2014 && built_year < 2015 + return "DEER 2017" if built_year >= 2015 && built_year < 2017 + return "DEER 2020" + + elsif (@standard_to_be_used == ASHRAE90_1) + return "DOE Ref Pre-1980" if built_year < 1980 + return "DOE Ref 1980-2004" if built_year >= 1980 && built_year < 2004 + return "90.1-2007" if built_year >= 2004 && built_year < 2007 + return "90.1-2010" if built_year >= 2007 && built_year < 2010 + return "90.1-2013" if built_year >= 2010 && built_year < 2013 + return "90.1-2016" if built_year >= 2013 && built_year < 2016 + return "90.1-2019" end end @@ -346,10 +346,9 @@ def _get_standard_template(built_year) def get_floor_to_floor_height BOSS.BOSS_logger.info("|\t|\t- checking the floor height of every section in building from file...") - section_elements = @building_xml.elements.each("#{@ns}Sections/#{@ns}Section") { |s| s } + section_elements = @building_xml.elements.each("#{@ns}Sections/#{@ns}Section"){|s| s} return nil if section_elements.nil? - - floor_to_floor_heights = section_elements.map { |section_element| section_element.elements["#{@ns}FloorToFloorHeight"]&.text.to_f } + floor_to_floor_heights = section_elements.map {|section_element| section_element.elements["#{@ns}FloorToFloorHeight"]&.text.to_f} BOSS.BOSS_logger.info("|\t|\t section floor heights: #{floor_to_floor_heights}") return floor_to_floor_heights.first @@ -358,7 +357,6 @@ def get_floor_to_floor_height def get_aspect_ratio aspect_ratio = @building_xml.elements["#{@ns}AspectRatio"]&.text return nil if aspect_ratio.nil? - return aspect_ratio.to_f end @@ -372,16 +370,16 @@ def get_hvac_systems_xml def get_principal_HVAC_system_type BOSS.BOSS_logger.info("|\t|\t- finding first hvac system with principal hvac system type...") # if no hvac systems, return nil - hvac_systems = @facility_xml.elements.each("#{@ns}Systems/#{@ns}HVACSystems/#{@ns}HVACSystem") { |s| s } + hvac_systems = @facility_xml.elements.each("#{@ns}Systems/#{@ns}HVACSystems/#{@ns}HVACSystem") {|s| s} if hvac_systems.nil? BOSS.BOSS_logger.info("|\t|\t no hvac systems found") return nil end # find first none nil principal_HVAC_system_type - hvac_systems = hvac_systems.reject { |s| s.instance_of?(REXML::Comment) } - principal_HVAC_system_type = hvac_systems.map { |s| s.elements["#{@ns}PrincipalHVACSystemType/"]&.text } - first_principal_HVAC_system_type = principal_HVAC_system_type.find { |x| !x.nil? } + hvac_systems = hvac_systems.reject {|s| s.class == REXML::Comment} + principal_HVAC_system_type = hvac_systems.map {|s| s.elements["#{@ns}PrincipalHVACSystemType/"]&.text} + first_principal_HVAC_system_type = principal_HVAC_system_type.find {|x| !x.nil?} # if none, return nil, else return mapping if first_principal_HVAC_system_type.nil? @@ -403,21 +401,20 @@ def get_principal_HVAC_system_type def get_total_installed_power # if no lighting systems, return nil BOSS.BOSS_logger.info("|\t|\t|\t- finding all lighting system installed power...") - lighting_systems = @facility_xml.elements.each("#{@ns}Systems/#{@ns}LightingSystems/#{@ns}LightingSystem") { |s| s } + lighting_systems = @facility_xml.elements.each("#{@ns}Systems/#{@ns}LightingSystems/#{@ns}LightingSystem") {|s| s} if lighting_systems.nil? BOSS.BOSS_logger.info("|\t|\t|\t no lighting systems found") return nil end # get all all_installed_powers - lighting_systems = lighting_systems.reject { |s| s.instance_of?(REXML::Comment) } - all_installed_powers = lighting_systems.map { |s| s.elements["#{@ns}InstalledPower/"]&.first&.to_s&.to_f } + lighting_systems = lighting_systems.reject {|s| s.class == REXML::Comment} + all_installed_powers = lighting_systems.map {|s| s.elements["#{@ns}InstalledPower/"]&.first&.to_s&.to_f} BOSS.BOSS_logger.info("|\t|\t|\t all lighting system installed power: #{all_installed_powers}") # if any nil, return nil, else return sum return nil if all_installed_powers.length == 0 return nil if !all_installed_powers.all? - return all_installed_powers.sum end @@ -426,31 +423,30 @@ def get_total_installed_power def get_total_weighted_average_load # if no plug_loads, return nil BOSS.BOSS_logger.info("|\t|\t|\t- finding all plug load systems weighted average load...") - plug_loads = @facility_xml.elements.each("#{@ns}Systems/#{@ns}PlugLoads/#{@ns}PlugLoad") { |s| s } + plug_loads = @facility_xml.elements.each("#{@ns}Systems/#{@ns}PlugLoads/#{@ns}PlugLoad") {|s| s} if plug_loads.nil? BOSS.BOSS_logger.info("|\t|\t|\t no plug load systems found") return nil end # get all weighted_average_loads - plug_loads = plug_loads.reject { |s| s.instance_of?(REXML::Comment) } - all_weighted_average_loads = plug_loads.map { |s| s.elements["#{@ns}WeightedAverageLoad/"]&.text } + plug_loads = plug_loads.reject {|s| s.class == REXML::Comment} + all_weighted_average_loads = plug_loads.map {|s| s.elements["#{@ns}WeightedAverageLoad/"]&.text} BOSS.BOSS_logger.info("|\t|\t|\t all plug load system weighted average load: #{all_weighted_average_loads}") # if any nil, return nil, else return sum return nil if all_weighted_average_loads.length == 0 return nil if !all_weighted_average_loads.all? - - return all_weighted_average_loads.map { |s| s.to_f }.sum + return all_weighted_average_loads.map {|s| s.to_f}.sum end # first valid window that has all mappable fields def get_window_data # if no windows, return nil - fenestration_systems = @facility_xml.elements.each("#{@ns}Systems/#{@ns}FenestrationSystems/#{@ns}FenestrationSystem") { |s| s } + fenestration_systems = @facility_xml.elements.each("#{@ns}Systems/#{@ns}FenestrationSystems/#{@ns}FenestrationSystem") {|s| s} return nil if fenestration_systems.nil? # get all windows - windows = fenestration_systems.select { |fs| fs.elements["#{@ns}FenestrationType/#{@ns}Window"] } + windows = fenestration_systems.select {|fs| fs.elements["#{@ns}FenestrationType/#{@ns}Window"] } return nil if windows.empty? # iter through windows until we get one with all the required fields @@ -475,18 +471,19 @@ def get_window_data os_fenestration_glass_layers = BuildingSyncToOSSystemMaps.get_glass_layers_map[fenestration_glass_layers.to_s] # return if we can use this one - if !os_fenestration_frame_material.nil? && - !os_glass_type.nil? && - !os_fenestration_glass_layers.nil? && - !fenestration_u_factor.nil? && - !solar_heat_gain_coefficient.nil? && - !visible_transmittance.nil? - + if ( + !os_fenestration_frame_material.nil? && + !os_glass_type.nil? && + !os_fenestration_glass_layers.nil? && + !fenestration_u_factor.nil? && + !solar_heat_gain_coefficient.nil? && + !visible_transmittance.nil? + ) window_pane_type = [os_fenestration_glass_layers, os_glass_type, os_fenestration_frame_material].join(' - ') return window_pane_type, fenestration_u_factor, solar_heat_gain_coefficient, visible_transmittance end end - return nil - end + return nil end end +end diff --git a/lib/BOSS/buildingsync_reader/systems_map.rb b/lib/BOSS/buildingsync_reader/systems_map.rb index 2bfa5c2..8ac2fde 100644 --- a/lib/BOSS/buildingsync_reader/systems_map.rb +++ b/lib/BOSS/buildingsync_reader/systems_map.rb @@ -5,63 +5,63 @@ # ******************************************************************************* module BuildingSyncToOSSystemMaps - def self.get_hvac_map - return { - 'Packaged Terminal Air Conditioner' => 'PTAC with gas coil', - 'Four Pipe Fan Coil Unit' => 'Fan coil chiller with boiler', - 'Packaged Terminal Heat Pump' => 'PTHP', - 'Packaged Rooftop Air Conditioner' => 'PSZ-AC with gas unit heaters', - 'Packaged Rooftop Heat Pump' => 'PSZ-HP', - 'Packaged Rooftop VAV with Hot Water Reheat' => 'PVAV with gas boiler reheat', - 'Packaged Rooftop VAV with Electric Reheat' => 'PVAV with PFP boxes', - 'VAV with Hot Water Reheat' => 'VAV chiller with gas boiler reheat', - 'VAV with Electric Reheat' => 'VAV chiller with PFP boxes', - 'Warm Air Furnace' => 'Forced air furnace', - 'Ventilation Only' => '', - 'Dedicated Outdoor Air System' => '', - 'Water Loop Heat Pump' => 'Water source heat pumps fluid cooler with boiler', - 'Ground Source Heat Pump' => 'Water source heat pumps with ground source heat pump', - 'VRF Terminal Unit' => 'VRF', - 'Chilled Beam' => '', - 'Other' => '' - } - end + def self.get_hvac_map + return { + "Packaged Terminal Air Conditioner" => "PTAC with gas coil", + "Four Pipe Fan Coil Unit" => "Fan coil chiller with boiler", + "Packaged Terminal Heat Pump" => "PTHP", + "Packaged Rooftop Air Conditioner" => "PSZ-AC with gas unit heaters", + "Packaged Rooftop Heat Pump" => "PSZ-HP", + "Packaged Rooftop VAV with Hot Water Reheat" => "PVAV with gas boiler reheat", + "Packaged Rooftop VAV with Electric Reheat" => "PVAV with PFP boxes", + "VAV with Hot Water Reheat" => "VAV chiller with gas boiler reheat", + "VAV with Electric Reheat" => "VAV chiller with PFP boxes", + "Warm Air Furnace" => "Forced air furnace", + "Ventilation Only" => "", + "Dedicated Outdoor Air System" => "", + "Water Loop Heat Pump" => "Water source heat pumps fluid cooler with boiler", + "Ground Source Heat Pump" => "Water source heat pumps with ground source heat pump", + "VRF Terminal Unit" => "VRF", + "Chilled Beam" => "", + "Other" => "" + } + end - def self.get_glass_layers_map - return { - 'Single pane' => 'Single', - 'Double pane' => 'Double', - 'Triple pane' => 'Triple', - 'Single paned with storm panel' => 'Single' - } - end + def self.get_glass_layers_map + return { + "Single pane" => "Single", + "Double pane" => "Double", + "Triple pane" => "Triple", + "Single paned with storm panel" => "Single", + } + end - def self.get_glass_type_map - return { - 'Clear uncoated' => 'No LowE - Clear', - 'Low e' => 'LowE - Clear', - 'Tinted' => 'No LowE - Tinted/Reflective', - 'Tinted plus low e' => 'LowE - Tinted/Reflective', - 'Reflective' => 'No LowE - Tinted/Reflective', - 'Reflective on tint' => 'No LowE - Tinted/Reflective', - 'High performance tint' => 'LowE - Tinted/Reflective', - 'Sunbelt low E low SHGC' => 'LowE - Tinted/Reflective' - # "Suspended film" => "", - # "Plastic" => "", - } - end + def self.get_glass_type_map + return { + "Clear uncoated" => "No LowE - Clear", + "Low e" => "LowE - Clear", + "Tinted" => "No LowE - Tinted/Reflective", + "Tinted plus low e" => "LowE - Tinted/Reflective", + "Reflective" => "No LowE - Tinted/Reflective", + "Reflective on tint" => "No LowE - Tinted/Reflective", + "High performance tint" => "LowE - Tinted/Reflective", + "Sunbelt low E low SHGC" => "LowE - Tinted/Reflective", + # "Suspended film" => "", + # "Plastic" => "", + } + end - def self.get_frame_material_map - return { - 'Aluminum uncategorized' => 'Aluminum', - 'Aluminum no thermal break' => 'Aluminum', - 'Aluminum thermal break' => 'Thermally Broken Aluminum', - # "Clad" => "", - # "Composite" => "", - # "Fiberglass" => "", - # "Steel" => "", - # "Vinyl" => "", - 'Wood' => 'Wood' - } - end + def self.get_frame_material_map + return { + "Aluminum uncategorized" => "Aluminum", + "Aluminum no thermal break" => "Aluminum", + "Aluminum thermal break" => "Thermally Broken Aluminum", + # "Clad" => "", + # "Composite" => "", + # "Fiberglass" => "", + # "Steel" => "", + # "Vinyl" => "", + "Wood" => "Wood", + } + end end diff --git a/lib/BOSS/external_measure_repo_manager.rb b/lib/BOSS/external_measure_repo_manager.rb index b79ee3b..62ada89 100644 --- a/lib/BOSS/external_measure_repo_manager.rb +++ b/lib/BOSS/external_measure_repo_manager.rb @@ -119,7 +119,7 @@ def validate_repo_entry(repo) raise StandardError, "Each repo entry in #{@manifest_path} must be a map" end - required = repo.key?('local_path') ? ['name', 'local_path', 'measure_roots'] : ['name', 'url', 'ref', 'measure_roots'] + required = repo.key?('local_path') ? %w[name local_path measure_roots] : %w[name url ref measure_roots] missing = required.select { |key| repo[key].nil? || repo[key].to_s.empty? } if !missing.empty? raise StandardError, "Repo entry is missing required keys #{missing.join(', ')} in #{@manifest_path}" @@ -160,16 +160,16 @@ def install_repo(repo_entry) measure_roots = repo_entry['measure_roots'] if Dir.exist?(File.join(repo_dir, '.git')) - run_git(['-C', "#{repo_dir}", 'remote', 'set-url', 'origin', "#{repo_entry['url']}"]) + run_git(%W[-C #{repo_dir} remote set-url origin #{repo_entry['url']}]) else FileUtils.mkdir_p(File.dirname(repo_dir)) - run_git(['clone', '--filter=blob:none', '--no-checkout', "#{repo_entry['url']}", "#{repo_dir}"]) + run_git(%W[clone --filter=blob:none --no-checkout #{repo_entry['url']} #{repo_dir}]) end - run_git(['-C', "#{repo_dir}", 'sparse-checkout', 'init', '--cone']) + run_git(%W[-C #{repo_dir} sparse-checkout init --cone]) run_git(['-C', repo_dir, 'sparse-checkout', 'set', *measure_roots]) - run_git(['-C', "#{repo_dir}", 'fetch', '--depth', '1', 'origin', "#{repo_entry['ref']}"]) - run_git(['-C', "#{repo_dir}", 'checkout', '--force', 'FETCH_HEAD']) + run_git(%W[-C #{repo_dir} fetch --depth 1 origin #{repo_entry['ref']}]) + run_git(%W[-C #{repo_dir} checkout --force FETCH_HEAD]) end def local_repo?(repo_entry) diff --git a/lib/BOSS/hvac_target_binder.rb b/lib/BOSS/hvac_target_binder.rb index 16e76f1..a5270d2 100644 --- a/lib/BOSS/hvac_target_binder.rb +++ b/lib/BOSS/hvac_target_binder.rb @@ -58,10 +58,10 @@ def bind(result, operation:, standards_template:, zone_names: nil) def step(result, operation, standards_template, zone_names) scope = zone_names ? { zone_scope: 'explicit_zone_names', zone_names_json: JSON.generate(zone_names.uniq) } : { zone_scope: 'all_model_zones' } - arguments = { topology_measure: result.measure, operation:, **scope, standards_template: } + arguments = { topology_measure: result.measure, operation: operation, **scope, standards_template: standards_template } extra = result.measure_arguments || {} arguments[:topology_arguments_json] = JSON.generate(extra) if !extra.empty? - { measure_dir_name: BINDING_MEASURE, arguments: } + { measure_dir_name: BINDING_MEASURE, arguments: arguments } end end end diff --git a/lib/BOSS/hvac_topology_selector.rb b/lib/BOSS/hvac_topology_selector.rb index f337bd1..a3dc8f1 100644 --- a/lib/BOSS/hvac_topology_selector.rb +++ b/lib/BOSS/hvac_topology_selector.rb @@ -659,7 +659,7 @@ def _select_other(sys, other, index, ventilation_links) configuration = NOT_MAPPABLE_OTHER[ventilation_type] return _result(:not_mappable, sys_id, ids, premises, nil, ["#{configuration}: no buildingsync-measures-gem measure creates this equipment."], - configuration:) + configuration: configuration) end if _integrated?(other) @@ -725,9 +725,9 @@ def _select_other(sys, other, index, ventilation_links) failures << 'Guard failed: MV/DemandControlVentilation' unless x_probe.guard(mv, 'DemandControlVentilation', ['false', '0']) failures << 'Guard failed: O/PrimaryFuel' unless x_probe.guard(other, 'PrimaryFuel', ELECTRIC) failures << 'Guard failed: O/Quantity' unless x_probe.quantity_guard(other, 'Quantity') - return _result(:conflicting_input, sys_id, ids, premises, nil, failures, configuration:) unless failures.empty? + return _result(:conflicting_input, sys_id, ids, premises, nil, failures, configuration: configuration) unless failures.empty? - _result(:match, sys_id, ids, premises, [:other, other_id], [], configuration:, measure:) + _result(:match, sys_id, ids, premises, [:other, other_id], [], configuration: configuration, measure: measure) end def _group_key(group, x) @@ -750,16 +750,16 @@ def _linked_premises(record) linked.elements.to_a.flat_map do |premise_type| premise_type.elements.to_a.filter_map do |link| id = link.attributes['IDref'] - { type: premise_type.name, id: } if id + { type: premise_type.name, id: id } if id end end end end def _result(status, sys_id, ids, premises, group_key, messages, configuration: nil, measure: nil, measure_arguments: {}) - Result.new(status:, configuration:, measure:, hvac_system_id: sys_id, - record_ids: ids.compact.uniq, premises:, group_key:, messages:, - measure_arguments:) + Result.new(status: status, configuration: configuration, measure: measure, hvac_system_id: sys_id, + record_ids: ids.compact.uniq, premises: premises, group_key: group_key, messages: messages, + measure_arguments: measure_arguments) end end end diff --git a/lib/BOSS/osw_arg_populator.rb b/lib/BOSS/osw_arg_populator.rb index bc4e7f3..b6acea3 100644 --- a/lib/BOSS/osw_arg_populator.rb +++ b/lib/BOSS/osw_arg_populator.rb @@ -32,64 +32,64 @@ def self.step_argument_setter(osw, measure_dir_name) end def self.populate_set_run_period_args(osw, bsync_reader) - BOSS.BOSS_logger.info('+++++++++++++++++++++++++++ populating measure set_run_period +++++++++++++++++++++++') - set_measure_argument = step_argument_setter(osw, 'set_run_period') + BOSS.BOSS_logger.info("+++++++++++++++++++++++++++ populating measure set_run_period +++++++++++++++++++++++") + set_measure_argument = step_argument_setter(osw, "set_run_period") # Add args # - __SKIP__ - set_measure_argument.call('__SKIP__', false) + set_measure_argument.call("__SKIP__", false) # - timesteps_per_hour BOSS.BOSS_logger.info("|\t- setting arg 'timesteps_per_hour'...") BOSS.BOSS_logger.info("|\t defaults to '4'") - set_measure_argument.call('timesteps_per_hour', '4') + set_measure_argument.call("timesteps_per_hour", "4") # - begin_date BOSS.BOSS_logger.info("|\t- setting arg 'begin_date'...") BOSS.BOSS_logger.info("|\t defaults to '2019-01-01'") - set_measure_argument.call('begin_date', '2019-01-01') + set_measure_argument.call("begin_date", "2019-01-01") # - end_date BOSS.BOSS_logger.info("|\t- setting arg 'end_date'...") BOSS.BOSS_logger.info("|\t defaults to '2019-12-31'") - set_measure_argument.call('end_date', '2019-12-31') + set_measure_argument.call("end_date", "2019-12-31") - BOSS.BOSS_logger.info('++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++') - BOSS.BOSS_logger.info('') + BOSS.BOSS_logger.info("++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++") + BOSS.BOSS_logger.info("") end def self.populate_change_building_location_args(osw, bsync_reader) - BOSS.BOSS_logger.info('+++++++++++++++++++++ populating measure ChangeBuildingLocation +++++++++++++++++++++') - set_measure_argument = step_argument_setter(osw, 'ChangeBuildingLocation') + BOSS.BOSS_logger.info("+++++++++++++++++++++ populating measure ChangeBuildingLocation +++++++++++++++++++++") + set_measure_argument = step_argument_setter(osw, "ChangeBuildingLocation") # - __SKIP__ - set_measure_argument.call('__SKIP__', false) + set_measure_argument.call("__SKIP__", false) # - weather_file_name BOSS.BOSS_logger.info("|\t- setting arg 'weather_file_name'...") weather_file_name = bsync_reader.get_epw_file_path BOSS.BOSS_logger.info("|\t set to #{weather_file_name}") - set_measure_argument.call('weather_file_name', weather_file_name) + set_measure_argument.call("weather_file_name", weather_file_name) # - climate_zone BOSS.BOSS_logger.info("|\t- setting arg 'climate_zone'...") - climate_zone = bsync_reader.get_climate_zone || 'Lookup From Stat File' + climate_zone = bsync_reader.get_climate_zone || "Lookup From Stat File" BOSS.BOSS_logger.info("|\t set to #{climate_zone}") - set_measure_argument.call('climate_zone', climate_zone) + set_measure_argument.call("climate_zone", climate_zone) - BOSS.BOSS_logger.info('++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++') - BOSS.BOSS_logger.info('') + BOSS.BOSS_logger.info("++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++") + BOSS.BOSS_logger.info("") end def self.populate_create_bar_from_building_type_ratios_args(osw, bsync_reader) - BOSS.BOSS_logger.info('++++ populating measure create_bar_from_building_type_ratios ++++++++++++++') - set_measure_argument = step_argument_setter(osw, 'create_bar_from_building_type_ratios') + BOSS.BOSS_logger.info("++++ populating measure create_bar_from_building_type_ratios ++++++++++++++") + set_measure_argument = step_argument_setter(osw, "create_bar_from_building_type_ratios") # Add args # - __SKIP__ - set_measure_argument.call('__SKIP__', false) + set_measure_argument.call("__SKIP__", false) # - bldg_type_a BOSS.BOSS_logger.info("|\t- setting arg 'bldg_type_a'...") building_type, bar_division_method = bsync_reader.get_building_type_and_bar_division_method BOSS.BOSS_logger.info("|\t set to #{building_type}") - set_measure_argument.call('bldg_type_a', building_type) + set_measure_argument.call("bldg_type_a", building_type) # - bldg_type_a_num_units # - bldg_type_b # - bldg_type_b_fract_bldg_area @@ -102,66 +102,66 @@ def self.populate_create_bar_from_building_type_ratios_args(osw, bsync_reader) # - bldg_type_d_num_units # - total_bldg_floor_area BOSS.BOSS_logger.info("|\t- setting arg 'total_bldg_floor_area'...") - total_bldg_floor_area = bsync_reader.get_total_floor_area(num_indent = 2) + total_bldg_floor_area = bsync_reader.get_total_floor_area(num_indent=2) BOSS.BOSS_logger.info("|\t set to #{total_bldg_floor_area}") - set_measure_argument.call('total_bldg_floor_area', total_bldg_floor_area) + set_measure_argument.call("total_bldg_floor_area", total_bldg_floor_area) # - floor_height -> FloorToFloorHeight, in total building section, else set to 0, smart default. BOSS.BOSS_logger.info("|\t- setting arg 'floor_height'...") floor_height = bsync_reader.get_floor_to_floor_height || 0 BOSS.BOSS_logger.info("|\t set to #{floor_height}") - set_measure_argument.call('floor_height', floor_height) + set_measure_argument.call("floor_height", floor_height) # - num_stories_above_grade BOSS.BOSS_logger.info("|\t- setting arg 'num_stories_above_grade'...") num_stories_above_grade = bsync_reader.get_floor_above_grade || 1 BOSS.BOSS_logger.info("|\t set to #{num_stories_above_grade}") - set_measure_argument.call('num_stories_above_grade', num_stories_above_grade) + set_measure_argument.call("num_stories_above_grade", num_stories_above_grade) # - num_stories_below_grade BOSS.BOSS_logger.info("|\t- setting arg 'num_stories_below_grade'...") num_stories_below_grade = bsync_reader.get_floor_below_grade || 0 BOSS.BOSS_logger.info("|\t set to #{num_stories_below_grade}") - set_measure_argument.call('num_stories_below_grade', num_stories_below_grade) + set_measure_argument.call("num_stories_below_grade", num_stories_below_grade) # - building_rotation # - template BOSS.BOSS_logger.info("|\t- setting arg 'template'...") template = bsync_reader.get_standard_template BOSS.BOSS_logger.info("|\t set to #{template}") - set_measure_argument.call('template', template) + set_measure_argument.call("template", template) # - ns_to_ew_ratio BOSS.BOSS_logger.info("|\t- setting arg 'ns_to_ew_ratio'...") ns_to_ew_ratio = bsync_reader.get_aspect_ratio || 0 BOSS.BOSS_logger.info("|\t set to #{ns_to_ew_ratio}") - set_measure_argument.call('ns_to_ew_ratio', ns_to_ew_ratio) + set_measure_argument.call("ns_to_ew_ratio", ns_to_ew_ratio) # - wwr # - party_wall_fraction # set_measure_argument.call("party_wall_fraction", building.party_wall_fraction.to_f) # - story_multiplier_method BOSS.BOSS_logger.info("|\t- setting arg 'story_multiplier_method'...") BOSS.BOSS_logger.info("|\t defaults to 'None'") - set_measure_argument.call('story_multiplier_method', 'None') # needed until os allows mutli basement + set_measure_argument.call("story_multiplier_method", "None") # needed until os allows mutli basement # - bar_division_method, as of right now, always use the default # set_measure_argument.call("bar_division_method", bar_division_method) - BOSS.BOSS_logger.info('++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++') - BOSS.BOSS_logger.info('') + BOSS.BOSS_logger.info("++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++") + BOSS.BOSS_logger.info("") end def self.populate_create_typical_building_from_model_args(osw, bsync_reader, add_hvac: true) - BOSS.BOSS_logger.info('+++++ populating measure create_typical_building_from_model +++++++++++++++') - set_measure_argument = step_argument_setter(osw, 'create_typical_building_from_model') + BOSS.BOSS_logger.info("+++++ populating measure create_typical_building_from_model +++++++++++++++") + set_measure_argument = step_argument_setter(osw, "create_typical_building_from_model") # Add args # - __SKIP__ - set_measure_argument.call('__SKIP__', false) + set_measure_argument.call("__SKIP__", false) # template BOSS.BOSS_logger.info("|\t- setting arg 'template'...") template = bsync_reader.get_standard_template BOSS.BOSS_logger.info("|\t set to #{template}") - set_measure_argument.call('template', template) + set_measure_argument.call("template", template) # system_type BOSS.BOSS_logger.info("|\t- setting arg 'system_type'...") - system_type = bsync_reader.get_principal_HVAC_system_type || 'Inferred' + system_type = bsync_reader.get_principal_HVAC_system_type || "Inferred" BOSS.BOSS_logger.info("|\t set to #{system_type}") - set_measure_argument.call('system_type', system_type) + set_measure_argument.call("system_type", system_type) # hvac_delivery_type # htg_src # clg_src @@ -179,12 +179,12 @@ def self.populate_create_typical_building_from_model_args(osw, bsync_reader, add # add_swh BOSS.BOSS_logger.info("|\t- setting arg 'add_swh'...") BOSS.BOSS_logger.info("|\t defaults to 'true'") - set_measure_argument.call('add_swh', true) + set_measure_argument.call("add_swh", true) # add_thermostat # add_hvac BOSS.BOSS_logger.info("|\t- setting arg 'add_hvac'...") BOSS.BOSS_logger.info("|\t set to '#{add_hvac}'") - set_measure_argument.call('add_hvac', add_hvac) + set_measure_argument.call("add_hvac", add_hvac) # add_refrigeration # modify_wkdy_op_hrs # wkdy_op_hrs_start_time @@ -197,16 +197,16 @@ def self.populate_create_typical_building_from_model_args(osw, bsync_reader, add # use_upstream_args - set to false to prevent nested workflow creation BOSS.BOSS_logger.info("|\t- setting arg 'use_upstream_args'...") BOSS.BOSS_logger.info("|\t defaults to 'false'") - set_measure_argument.call('use_upstream_args', false) + set_measure_argument.call("use_upstream_args", false) # enable_dst - BOSS.BOSS_logger.info('++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++') - BOSS.BOSS_logger.info('') + BOSS.BOSS_logger.info("++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++") + BOSS.BOSS_logger.info("") end def self.populate_set_lighting_loads_by_LPD_args(osw, bsync_reader) - BOSS.BOSS_logger.info('++++++++++++++++++++++ populating measure SetLightingLoadsByLPD ++++++++++++++++++++') - set_measure_argument = step_argument_setter(osw, 'SetLightingLoadsByLPD') + BOSS.BOSS_logger.info("++++++++++++++++++++++ populating measure SetLightingLoadsByLPD ++++++++++++++++++++") + set_measure_argument = step_argument_setter(osw, "SetLightingLoadsByLPD") # skip if no total_installed_power or no usable floor area BOSS.BOSS_logger.info("|\t- gathering measure requirements...") @@ -214,25 +214,25 @@ def self.populate_set_lighting_loads_by_LPD_args(osw, bsync_reader) total_installed_power = bsync_reader.get_total_installed_power BOSS.BOSS_logger.info("|\t|\t total install power: #{total_installed_power}") BOSS.BOSS_logger.info("|\t|\t- getting total floor area...") - floor_area = bsync_reader.get_total_floor_area(num_indent = 3) + floor_area = bsync_reader.get_total_floor_area(num_indent=3) BOSS.BOSS_logger.info("|\t|\t total floor area: #{floor_area}") if total_installed_power.nil? || total_installed_power == 0 || floor_area.nil? || floor_area <= 0 BOSS.BOSS_logger.info("|\t measure requirements unmet. Skippping.") - BOSS.BOSS_logger.info('+++++++++++++++++++++++++++++++++++ skipped. ++++++++++++++++++++++++++++++++++++++++') - BOSS.BOSS_logger.info('') - set_measure_argument.call('__SKIP__', true) + BOSS.BOSS_logger.info("+++++++++++++++++++++++++++++++++++ skipped. ++++++++++++++++++++++++++++++++++++++++") + BOSS.BOSS_logger.info("") + set_measure_argument.call("__SKIP__", true) return end # Add args # - __SKIP__ - set_measure_argument.call('__SKIP__', false) + set_measure_argument.call("__SKIP__", false) # space_type "entire building" # lpd BOSS.BOSS_logger.info("|\t- setting arg 'lpd'...") lpd = total_installed_power * 1000.0 / floor_area BOSS.BOSS_logger.info("|\t set to #{lpd}") - set_measure_argument.call('lpd', lpd) + set_measure_argument.call("lpd", lpd) # add_instance_all_spaces # material_cost # demolition_cost @@ -241,13 +241,13 @@ def self.populate_set_lighting_loads_by_LPD_args(osw, bsync_reader) # expected_life # om_cost # om_frequency - BOSS.BOSS_logger.info('++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++') - BOSS.BOSS_logger.info('') + BOSS.BOSS_logger.info("++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++") + BOSS.BOSS_logger.info("") end def self.populate_set_electric_equipment_loads_by_epd_args(osw, bsync_reader) - BOSS.BOSS_logger.info('+++++ populating measure set_electric_equipment_loads_by_epd ++++++++++++++') - set_measure_argument = step_argument_setter(osw, 'set_electric_equipment_loads_by_epd') + BOSS.BOSS_logger.info("+++++ populating measure set_electric_equipment_loads_by_epd ++++++++++++++") + set_measure_argument = step_argument_setter(osw, "set_electric_equipment_loads_by_epd") # skip if no total_weighted_average_load or no usable floor area BOSS.BOSS_logger.info("|\t- gathering measure requirements...") @@ -255,25 +255,25 @@ def self.populate_set_electric_equipment_loads_by_epd_args(osw, bsync_reader) total_weighted_average_load = bsync_reader.get_total_weighted_average_load BOSS.BOSS_logger.info("|\t|\t total weighted average load: #{total_weighted_average_load}") BOSS.BOSS_logger.info("|\t|\t- getting total floor area...") - floor_area = bsync_reader.get_total_floor_area(num_indent = 3) + floor_area = bsync_reader.get_total_floor_area(num_indent=3) BOSS.BOSS_logger.info("|\t|\t total floor area: #{floor_area}") if total_weighted_average_load.nil? || total_weighted_average_load == 0 || floor_area.nil? || floor_area <= 0 BOSS.BOSS_logger.info("|\t measure requirements unmet. Skippping.") - BOSS.BOSS_logger.info('+++++++++++++++++++++++++++++++++++ skipped. ++++++++++++++++++++++++++++++++++++++++') - BOSS.BOSS_logger.info('') - set_measure_argument.call('__SKIP__', true) + BOSS.BOSS_logger.info("+++++++++++++++++++++++++++++++++++ skipped. ++++++++++++++++++++++++++++++++++++++++") + BOSS.BOSS_logger.info("") + set_measure_argument.call("__SKIP__", true) return end # Add args # - __SKIP__ - set_measure_argument.call('__SKIP__', false) + set_measure_argument.call("__SKIP__", false) # space_type "entire building" # epd BOSS.BOSS_logger.info("|\t- setting arg 'epd'...") epd = total_weighted_average_load / floor_area BOSS.BOSS_logger.info("|\t set to #{epd}") - set_measure_argument.call('epd', epd) + set_measure_argument.call("epd", epd) # material_cost # demolition_cost # years_until_costs_start @@ -281,43 +281,44 @@ def self.populate_set_electric_equipment_loads_by_epd_args(osw, bsync_reader) # expected_life # om_cost # om_frequency - BOSS.BOSS_logger.info('++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++') - BOSS.BOSS_logger.info('') + BOSS.BOSS_logger.info("++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++") + BOSS.BOSS_logger.info("") end def self.populate_replace_baseline_windows_args(osw, bsync_reader) - set_measure_argument = step_argument_setter(osw, 'replace_baseline_windows') + set_measure_argument = step_argument_setter(osw, "replace_baseline_windows") # skip if no window_data window_data = bsync_reader.get_window_data if window_data.nil? - set_measure_argument.call('__SKIP__', true) + set_measure_argument.call("__SKIP__", true) return end window_pane_type, fenestration_u_factor, solar_heat_gain_coefficient, visible_transmittance = window_data # Add args # - __SKIP__ - set_measure_argument.call('__SKIP__', false) - set_measure_argument.call('window_pane_type', window_pane_type) - set_measure_argument.call('u_value_ip', fenestration_u_factor) - set_measure_argument.call('shgc', solar_heat_gain_coefficient) - set_measure_argument.call('vlt', visible_transmittance) + set_measure_argument.call("__SKIP__", false) + set_measure_argument.call("window_pane_type", window_pane_type) + set_measure_argument.call("u_value_ip", fenestration_u_factor) + set_measure_argument.call("shgc", solar_heat_gain_coefficient) + set_measure_argument.call("vlt", visible_transmittance) + end def self.populate_openstudio_results_args(osw, bsync_reader) - BOSS.BOSS_logger.info('+++++++++++++++++++++++++ populating measure openstudio_results +++++++++++++++++++++') - set_measure_argument = step_argument_setter(osw, 'openstudio_results') + BOSS.BOSS_logger.info("+++++++++++++++++++++++++ populating measure openstudio_results +++++++++++++++++++++") + set_measure_argument = step_argument_setter(osw, "openstudio_results") # Add args # - __SKIP__ - set_measure_argument.call('__SKIP__', false) + set_measure_argument.call("__SKIP__", false) # - reg_monthly_details - enable monthly fuel breakdown for results processing BOSS.BOSS_logger.info("|\t- setting arg 'reg_monthly_details'...") BOSS.BOSS_logger.info("|\t defaults to 'true'") - set_measure_argument.call('reg_monthly_details', true) + set_measure_argument.call("reg_monthly_details", true) - BOSS.BOSS_logger.info('++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++') - BOSS.BOSS_logger.info('') + BOSS.BOSS_logger.info("++++++++++++++++++++++++++++++++++ populated. +++++++++++++++++++++++++++++++++++++++") + BOSS.BOSS_logger.info("") end end diff --git a/lib/boss_cli.rb b/lib/boss_cli.rb index 3b7fc9c..560b860 100755 --- a/lib/boss_cli.rb +++ b/lib/boss_cli.rb @@ -4,31 +4,31 @@ # See also https://github.com/BuildingSync/BOSS/blob/develop/LICENSE.md # ******************************************************************************* -require 'thor' +require "thor" require 'BOSS/boss' require 'BOSS/constants' module BOSS class CLI < Thor - desc 'write_baseline_osw BUILDINGSYNC_FILE', 'Writes a baseline osw using data from the provided Buildingsync file.' - long_desc 'Example: $ boss write_baseline_osw my_buildingsync.xml -o ./output_dir -w ./specific_weather_file.epw' - option :output_path, required: true, aliases: '-o', desc: "path to where the ows gets written. Defaults to '.'" - option :epw_path, aliases: '-w', desc: 'path to weather file. If not given, one is derived from the BUILDINGSYNC_FILE.' - option :standard_version, aliases: '-v', desc: 'building standard to use (eg ASHRAE90.1 or CaliforniaTitle24). Defaults to ASHRAE90.1' - option :run, aliases: '-r', desc: 'if set, will also run the baseline' + desc "write_baseline_osw BUILDINGSYNC_FILE", "Writes a baseline osw using data from the provided Buildingsync file." + long_desc "Example: $ boss write_baseline_osw my_buildingsync.xml -o ./output_dir -w ./specific_weather_file.epw" + option :output_path, :required => true, :aliases => "-o", :desc => "path to where the ows gets written. Defaults to '.'" + option :epw_path, :aliases => "-w", :desc => "path to weather file. If not given, one is derived from the BUILDINGSYNC_FILE." + option :standard_version, :aliases => "-v", :desc => "building standard to use (eg ASHRAE90.1 or CaliforniaTitle24). Defaults to ASHRAE90.1" + option :run, :aliases => "-r", :desc => "if set, will also run the baseline" def write_baseline_osw(buildingsync_file) standard_version = options[:standard_version] || ASHRAE90_1 osw_path = BOSS::Boss.write_baseline_osw(buildingsync_file, options[:output_path], options[:epw_path], standard_version) puts "Baseline OSW written to: #{osw_path}" if options[:run] - puts 'running!' + puts "running!" BOSS::Boss.run_baseline_osw(options[:output_path]) end end - desc 'run_osw', 'Runs an existing baseline osw from the output path.' - long_desc 'Example: $ boss run_osw -o ./output_dir' - option :output_path, required: true, aliases: '-o', desc: 'path where the baseline osw exists (expects baseline/in.osw).' + desc "run_osw", "Runs an existing baseline osw from the output path." + long_desc "Example: $ boss run_osw -o ./output_dir" + option :output_path, :required => true, :aliases => "-o", :desc => "path where the baseline osw exists (expects baseline/in.osw)." def run_osw BOSS::Boss.run_baseline_osw(options[:output_path]) end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 8559890..c3620bd 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -19,4 +19,4 @@ def openstudio_weather_file_path(filename = 'USA_CA_San.Francisco.Intl.AP.724940 config.expect_with :rspec do |c| c.syntax = :expect end -end +end \ No newline at end of file diff --git a/spec/tests/integration/write_and_run_osws_spec.rb b/spec/tests/integration/write_and_run_osws_spec.rb index 802fb1f..4012703 100644 --- a/spec/tests/integration/write_and_run_osws_spec.rb +++ b/spec/tests/integration/write_and_run_osws_spec.rb @@ -15,7 +15,7 @@ ['179D_Example_Building.xml', ASHRAE90_1, nil, 'v2.7.0'], ['BETTER-1.0.0_SampleOffice_gemtest.xml', ASHRAE90_1, nil, 'v2.7.0'], ['building_151.xml', ASHRAE90_1, nil, 'v2.7.0'], - # ['BuildingEQ-1.0.0_gemtest.xml', ASHRAE90_1, nil, 'v2.7.0'], # this file errors with the following: [openstudio.model.Model] The run did not finish and had following errors: SizeAirLoopBranches: AirLoopHVAC ZONE MIDRISEAPARTMENT CORRIDOR B END_A - STORY B1 PSZ-AC has air flow less than 1.0000E-003 m3/s. + #['BuildingEQ-1.0.0_gemtest.xml', ASHRAE90_1, nil, 'v2.7.0'], # this file errors with the following: [openstudio.model.Model] The run did not finish and had following errors: SizeAirLoopBranches: AirLoopHVAC ZONE MIDRISEAPARTMENT CORRIDOR B END_A - STORY B1 PSZ-AC has air flow less than 1.0000E-003 m3/s. ['BuildingEQ-1.0.0.xml', ASHRAE90_1, nil, 'v2.7.0'], ['Chula_Vista_ASHRAE_L1_Example_Building.xml', ASHRAE90_1, nil, 'v2.7.0'], ['Demo_ASHRAE_L2_Example_Building.xml', ASHRAE90_1, nil, 'v2.7.0'], @@ -31,7 +31,7 @@ ['L100_Audit-1.0.0.xml', ASHRAE90_1, nil, 'v2.7.0'], ['L100_Pre-Simulation-1.0.0.xml', ASHRAE90_1, nil, 'v2.7.0'], ['NYC_BBL_AT_Demo_Property.xml', ASHRAE90_1, nil, 'v2.7.0'], - ['Reference-PrimarySchool-L100-Audit.xml', ASHRAE90_1, nil, 'v2.7.0'] + ['Reference-PrimarySchool-L100-Audit.xml', ASHRAE90_1, nil, 'v2.7.0'], ] # BOSS_SMOKE=1 runs a small representative subset (used on pull requests). @@ -62,7 +62,7 @@ it "write and run baseline osw. File: #{file_name}, Standard: #{standard}, EPW_Path: #{epw_path}, File Schema Version: #{schema_version}" do # Set Up xml_path = File.join(SPEC_FILES_DIR, schema_version, file_name) - output_path = File.join(SPEC_OUTPUT_DIR, schema_version, 'write_and_run_baseline_osw', "#{File.basename(xml_path, File.extname(xml_path))}") + output_path = File.join(SPEC_OUTPUT_DIR, schema_version, "write_and_run_baseline_osw" , "#{File.basename(xml_path, File.extname(xml_path))}") puts output_path # Action @@ -71,12 +71,13 @@ # Assertion puts output_path - expect(File.exist?(output_path + '/baseline')).to be true - expect(File.exist?(output_path + '/baseline/out.osw')).to be true - out_osw = File.read(output_path + '/baseline/out.osw') + expect(File.exist?(output_path + "/baseline")).to be true + expect(File.exist?(output_path + "/baseline/out.osw")).to be true + out_osw = File.read(output_path + "/baseline/out.osw") out_osw = JSON.parse(out_osw, symbolize_names: true) - expect(out_osw[:completed_status]).to eq 'Success' + expect(out_osw[:completed_status]).to eq "Success" end + end next unless run_extra_examples diff --git a/spec/tests/unit/boss_spec.rb b/spec/tests/unit/boss_spec.rb index 0617261..0a55741 100644 --- a/spec/tests/unit/boss_spec.rb +++ b/spec/tests/unit/boss_spec.rb @@ -208,7 +208,7 @@ def common_steps(climate_zone) scenario_only: ['/bsync/measures']) steps = [{ measure_dir_name: 'apply_hvac_topology_to_zone_scope', arguments: { topology_measure: 'hvac_ptac' } }, { measure_dir_name: 'apply_standard_hvac_sizing_and_efficiency', arguments: {} }] - plan = BOSS::BaselineHvacPlanner::Plan.new(status: :topology, steps:, messages: []) + plan = BOSS::BaselineHvacPlanner::Plan.new(status: :topology, steps: steps, messages: []) allow_any_instance_of(BOSS::BaselineHvacPlanner).to receive(:plan).and_return(plan) osw = described_class.send(:build_baseline_osw, build_reader('all_measures_applied_example.xml')) @@ -238,7 +238,7 @@ def common_steps(climate_zone) typical = names.index('create_typical_building_from_model') expect(osw[:steps][typical][:arguments][:add_hvac]).to be false - expect(names[typical + 1, 2]).to eq ['apply_hvac_topology_to_zone_scope', 'apply_standard_hvac_sizing_and_efficiency'] + expect(names[typical + 1, 2]).to eq %w[apply_hvac_topology_to_zone_scope apply_standard_hvac_sizing_and_efficiency] expect(osw[:steps][typical + 1][:arguments]).to include(zone_scope: 'all_model_zones', operation: 'create') end @@ -303,6 +303,7 @@ def common_steps(climate_zone) end it 'places local measures first, then gem-provided measures, then external repo measures' do Dir.mktmpdir do |output_dir| + # Simulate OpenStudio::Extension.configure_osw adding gem-provided paths. allow(OpenStudio::Extension).to receive(:configure_osw) do |osw| osw[:measure_paths] = [gem_measure_dir] @@ -323,17 +324,18 @@ def common_steps(climate_zone) gem_idx = measure_paths.index(gem_measure_dir) external_idx = measure_paths.index(external_measure_dir) - expect(local_idx).not_to be_nil, 'local measures dir should appear in measure_paths' - expect(gem_idx).not_to be_nil, 'gem measures dir should appear in measure_paths' - expect(external_idx).not_to be_nil, 'external repo measures dir should appear in measure_paths' + expect(local_idx).not_to be_nil, "local measures dir should appear in measure_paths" + expect(gem_idx).not_to be_nil, "gem measures dir should appear in measure_paths" + expect(external_idx).not_to be_nil, "external repo measures dir should appear in measure_paths" - expect(local_idx).to be < gem_idx, 'local measures must come before gem measures' - expect(gem_idx).to be < external_idx, 'gem measures must come before external repo measures' + expect(local_idx).to be < gem_idx, "local measures must come before gem measures" + expect(gem_idx).to be < external_idx, "gem measures must come before external repo measures" end end it 'omits external repo dir when no external repos are configured' do Dir.mktmpdir do |output_dir| + allow(OpenStudio::Extension).to receive(:configure_osw) do |osw| osw[:measure_paths] = [gem_measure_dir] end @@ -354,6 +356,7 @@ def common_steps(climate_zone) it 'does not duplicate paths that appear in both gem output and local dirs' do Dir.mktmpdir do |output_dir| + # Extension reports the local dir again (can happen with some gem setups). allow(OpenStudio::Extension).to receive(:configure_osw) do |osw| osw[:measure_paths] = [LOCAL_MEASURES_DIR, gem_measure_dir] diff --git a/spec/tests/unit/buildingsync_reader_spec.rb b/spec/tests/unit/buildingsync_reader_spec.rb index 4cff643..4cdb132 100644 --- a/spec/tests/unit/buildingsync_reader_spec.rb +++ b/spec/tests/unit/buildingsync_reader_spec.rb @@ -43,7 +43,7 @@ def wrap_in_systems(xml) RSpec.describe 'BuildingSyncReader' do describe 'get_climate_zone should' do - it 'get from site' do + it "get from site" do # Set Up doc = REXML::Document.new wrap_in_site(<<~XML) @@ -67,11 +67,11 @@ def wrap_in_systems(xml) ca_climate_zone = ca_buidingsync_reader.get_climate_zone # Assert - expect(ashrae_climate_zone).to eq 'ASHRAE 169-2013-3C' - expect(ca_climate_zone).to eq 'CEC T24-CEC3' + expect(ashrae_climate_zone).to eq "ASHRAE 169-2013-3C" + expect(ca_climate_zone).to eq "CEC T24-CEC3" end - it 'get from building' do + it "get from building" do # Set Up doc = REXML::Document.new wrap_in_site(<<~XML) @@ -95,11 +95,11 @@ def wrap_in_systems(xml) ca_climate_zone = ca_buidingsync_reader.get_climate_zone # Assert - expect(ashrae_climate_zone).to eq 'ASHRAE 169-2013-3C' - expect(ca_climate_zone).to eq 'CEC T24-CEC3' + expect(ashrae_climate_zone).to eq "ASHRAE 169-2013-3C" + expect(ca_climate_zone).to eq "CEC T24-CEC3" end - it 'return nil' do + it "return nil" do # Set Up doc = REXML::Document.new wrap_in_site(<<~XML) @@ -121,7 +121,7 @@ def wrap_in_systems(xml) end describe 'get_epw_file_path should' do - it 'expands an explicitly provided relative path' do + it "expands an explicitly provided relative path" do Dir.mktmpdir do |directory| Dir.chdir(directory) do relative_epw_path = 'weather.epw' @@ -135,14 +135,14 @@ def wrap_in_systems(xml) end end - it 'preserves an explicitly provided absolute path' do + it "preserves an explicitly provided absolute path" do epw_path = File.expand_path('weather/example.epw') reader = BOSS::BuildingSyncReader.new(REXML::Document.new(wrap_in_site('')), epw_path, ASHRAE90_1) expect(reader.get_epw_file_path).to eq epw_path end - it 'get from city sate' do + it "get from city sate" do # Set Up doc = REXML::Document.new wrap_in_site(<<~XML) @@ -156,15 +156,15 @@ def wrap_in_systems(xml) XML # Action - allow(BOSS::BCLWeatherFileDownloader).to receive(:download_weather_file_from_city_name).with('San Francisco', 'CA').and_return(openstudio_weather_file_path) + allow(BOSS::BCLWeatherFileDownloader).to receive(:download_weather_file_from_city_name).with("San Francisco", "CA").and_return(openstudio_weather_file_path) buidingsync_reader = BOSS::BuildingSyncReader.new(doc, nil, ASHRAE90_1) epw_file_path = buidingsync_reader.get_epw_file_path # Assert - expect(File.basename(epw_file_path)).to eq 'USA_CA_San.Francisco.Intl.AP.724940_TMY3.epw' + expect(File.basename(epw_file_path)).to eq "USA_CA_San.Francisco.Intl.AP.724940_TMY3.epw" end - it 'get from climate zone' do + it "get from climate zone" do # Set Up doc = REXML::Document.new wrap_in_site(<<~XML) @@ -183,15 +183,15 @@ def wrap_in_systems(xml) epw_file_path = buidingsync_reader.get_epw_file_path # Assert - expect(File.basename(epw_file_path)).to eq 'USA_CA_San.Deigo-Brown.Field.Muni.AP.722904_TMY3.epw' + expect(File.basename(epw_file_path)).to eq "USA_CA_San.Deigo-Brown.Field.Muni.AP.722904_TMY3.epw" end - it 'return nil' do + it "return nil" do end end describe 'get_city_state should' do - it 'get from building' do + it "get from building" do # Set Up doc = REXML::Document.new wrap_in_site(<<~XML) @@ -209,10 +209,10 @@ def wrap_in_systems(xml) city, state = buidingsync_reader.get_city_state # Assert - expect([city, state]).to eq ['San Francisco', 'CA'] + expect([city, state]).to eq ["San Francisco", "CA"] end - it 'get from site' do + it "get from site" do # Set Up doc = REXML::Document.new wrap_in_site(<<~XML)
@@ -230,10 +230,10 @@ def wrap_in_systems(xml) city, state = buidingsync_reader.get_city_state # Assert - expect([city, state]).to eq ['San Francisco', 'CA'] + expect([city, state]).to eq ["San Francisco", "CA"] end - it 'return nil' do + it "return nil" do # Set Up doc = REXML::Document.new wrap_in_site(<<~XML) @@ -277,28 +277,28 @@ def site_with_building(site_xml, building_xml) XML end - it 'prefer building over site when both have floor area' do + it "prefer building over site when both have floor area" do doc = REXML::Document.new site_with_building(floor_areas(20000), floor_areas(15000)) buidingsync_reader = BOSS::BuildingSyncReader.new(doc, nil, ASHRAE90_1) expect(buidingsync_reader.get_total_floor_area).to eq 15000 end - it 'get from building' do + it "get from building" do doc = REXML::Document.new site_with_building('', floor_areas(15000)) buidingsync_reader = BOSS::BuildingSyncReader.new(doc, nil, ASHRAE90_1) expect(buidingsync_reader.get_total_floor_area).to eq 15000 end - it 'fall back to site when building has no floor area' do + it "fall back to site when building has no floor area" do doc = REXML::Document.new site_with_building(floor_areas(20000), '') buidingsync_reader = BOSS::BuildingSyncReader.new(doc, nil, ASHRAE90_1) expect(buidingsync_reader.get_total_floor_area).to eq 20000 end - it 'get from site when building is missing' do + it "get from site when building is missing" do doc = REXML::Document.new wrap_in_site(floor_areas(20000)) buidingsync_reader = BOSS::BuildingSyncReader.new(doc, nil, ASHRAE90_1) @@ -368,7 +368,7 @@ def wrap_in_systems(xml) XML end - it 'sum InstalledPower' do + it "sum InstalledPower" do # Set Up doc = REXML::Document.new wrap_in_systems(<<~XML) @@ -388,7 +388,7 @@ def wrap_in_systems(xml) expect(buidingsync_reader.get_total_installed_power).to eq 5 end - it 'return nil if any LightingSystem has nil InstalledPower' do + it "return nil if any LightingSystem has nil InstalledPower" do # Set Up doc = REXML::Document.new wrap_in_systems(<<~XML) @@ -410,7 +410,7 @@ def wrap_in_systems(xml) expect(buidingsync_reader.get_total_installed_power).to eq nil end - it 'return nil if no LightingSystems' do + it "return nil if no LightingSystems" do # Set Up doc = REXML::Document.new wrap_in_systems('') @@ -421,7 +421,7 @@ def wrap_in_systems(xml) expect(buidingsync_reader.get_total_installed_power).to eq nil end - it 'return nil if no InstalledPower' do + it "return nil if no InstalledPower" do # Set Up doc = REXML::Document.new wrap_in_systems(<<~XML) @@ -441,7 +441,7 @@ def wrap_in_systems(xml) end describe 'get_total_weighted_average_load should' do - it 'sum weighted average load' do + it "sum weighted average load" do # Set Up doc = REXML::Document.new wrap_in_systems(<<~XML) @@ -461,7 +461,7 @@ def wrap_in_systems(xml) expect(buidingsync_reader.get_total_weighted_average_load).to eq 5 end - it 'return nil if any plugload has nil WeightedAverageLoad' do + it "return nil if any plugload has nil WeightedAverageLoad" do # Set Up doc = REXML::Document.new wrap_in_systems(<<~XML) @@ -483,7 +483,7 @@ def wrap_in_systems(xml) expect(buidingsync_reader.get_total_weighted_average_load).to eq nil end - it 'return nil if no plug loads' do + it "return nil if no plug loads" do # Set Up doc = REXML::Document.new wrap_in_systems('') @@ -494,7 +494,7 @@ def wrap_in_systems(xml) expect(buidingsync_reader.get_total_weighted_average_load).to eq nil end - it 'return nil if no WeightedAverageLoad' do + it "return nil if no WeightedAverageLoad" do # Set Up doc = REXML::Document.new wrap_in_systems(<<~XML) @@ -514,47 +514,47 @@ def wrap_in_systems(xml) end describe 'get_window_data should' do - good_window = <<~XML - - - - - Aluminum no thermal break - false - Average - Clear uncoated - Single pane - 0.391000 - 0.391000 - 3.241000 - - XML - invalid_window = <<~XML - - - - - Fiberglass - false - Average - Clear uncoated - Single pane - 0.391000 - 0.391000 - 3.241000 - - XML - door = <<~XML - - - - Uninsulated metal - - - - XML - - it 'work in happy case' do + good_window = <<~XML + + + + + Aluminum no thermal break + false + Average + Clear uncoated + Single pane + 0.391000 + 0.391000 + 3.241000 + + XML + invalid_window = <<~XML + + + + + Fiberglass + false + Average + Clear uncoated + Single pane + 0.391000 + 0.391000 + 3.241000 + + XML + door = <<~XML + + + + Uninsulated metal + + + + XML + + it "work in happy case" do # Set Up doc = REXML::Document.new wrap_in_systems(<<~XML) @@ -567,13 +567,13 @@ def wrap_in_systems(xml) window_pane_type, fenestration_u_factor, solar_heat_gain_coefficient, visible_transmittance = buidingsync_reader.get_window_data # Assertion - expect(window_pane_type).to eq 'Single - No LowE - Clear - Aluminum' - expect(fenestration_u_factor).to eq '3.241000' - expect(solar_heat_gain_coefficient).to eq '0.391000' - expect(visible_transmittance).to eq '0.391000' + expect(window_pane_type).to eq "Single - No LowE - Clear - Aluminum" + expect(fenestration_u_factor).to eq "3.241000" + expect(solar_heat_gain_coefficient).to eq "0.391000" + expect(visible_transmittance).to eq "0.391000" end - it 'ignore doors and skylights' do + it "ignore doors and skylights" do # Set Up doc = REXML::Document.new wrap_in_systems(<<~XML) @@ -587,13 +587,13 @@ def wrap_in_systems(xml) window_pane_type, fenestration_u_factor, solar_heat_gain_coefficient, visible_transmittance = buidingsync_reader.get_window_data # Assertion - expect(window_pane_type).to eq 'Single - No LowE - Clear - Aluminum' - expect(fenestration_u_factor).to eq '3.241000' - expect(solar_heat_gain_coefficient).to eq '0.391000' - expect(visible_transmittance).to eq '0.391000' + expect(window_pane_type).to eq "Single - No LowE - Clear - Aluminum" + expect(fenestration_u_factor).to eq "3.241000" + expect(solar_heat_gain_coefficient).to eq "0.391000" + expect(visible_transmittance).to eq "0.391000" end - it 'work if first window is invalid but second isnt' do + it "work if first window is invalid but second isnt" do # Set Up doc = REXML::Document.new wrap_in_systems(<<~XML) @@ -607,15 +607,15 @@ def wrap_in_systems(xml) window_pane_type, fenestration_u_factor, solar_heat_gain_coefficient, visible_transmittance = buidingsync_reader.get_window_data # Assertion - expect(window_pane_type).to eq 'Single - No LowE - Clear - Aluminum' - expect(fenestration_u_factor).to eq '3.241000' - expect(solar_heat_gain_coefficient).to eq '0.391000' - expect(visible_transmittance).to eq '0.391000' + expect(window_pane_type).to eq "Single - No LowE - Clear - Aluminum" + expect(fenestration_u_factor).to eq "3.241000" + expect(solar_heat_gain_coefficient).to eq "0.391000" + expect(visible_transmittance).to eq "0.391000" end - it 'return nil if there are no windows' do + it "return nil if there are no windows" do # Set Up - doc = REXML::Document.new wrap_in_systems('') + doc = REXML::Document.new wrap_in_systems("") # Action buidingsync_reader = BOSS::BuildingSyncReader.new(doc, nil, ASHRAE90_1) @@ -626,7 +626,7 @@ def wrap_in_systems(xml) end # warn not error - it 'return nil if all windows are invalid' do + it "return nil if all windows are invalid" do # Set Up doc = REXML::Document.new wrap_in_systems(<<~XML) diff --git a/spec/tests/unit/external_measure_repo_manager_spec.rb b/spec/tests/unit/external_measure_repo_manager_spec.rb index 8859d34..1df4e57 100644 --- a/spec/tests/unit/external_measure_repo_manager_spec.rb +++ b/spec/tests/unit/external_measure_repo_manager_spec.rb @@ -18,7 +18,7 @@ def write_manifest(dir, content) end def manager_for(manifest_path, install_dir) - described_class.new(manifest_path:, install_dir:) + described_class.new(manifest_path: manifest_path, install_dir: install_dir) end # --------------------------------------------------------------------------- diff --git a/spec/tests/unit/hvac_target_binder_spec.rb b/spec/tests/unit/hvac_target_binder_spec.rb index d0e3817..e853bd2 100644 --- a/spec/tests/unit/hvac_target_binder_spec.rb +++ b/spec/tests/unit/hvac_target_binder_spec.rb @@ -15,8 +15,8 @@ RSpec.describe BOSS::HvacTargetBinder do def match_result(premises, measure: 'hvac_ptac') BOSS::HvacTopologySelector::Result.new( - status: :match, configuration: 'Packaged Terminal Air Conditioner', measure:, - hvac_system_id: 'HVAC-1', record_ids: ['D-1'], premises:, group_key: [:delivery, 'D-1'], messages: [] + status: :match, configuration: 'Packaged Terminal Air Conditioner', measure: measure, + hvac_system_id: 'HVAC-1', record_ids: ['D-1'], premises: premises, group_key: [:delivery, 'D-1'], messages: [] ) end @@ -24,7 +24,7 @@ def match_result(premises, measure: 'hvac_ptac') ['Building', 'Site', 'Facility'].each do |type| it "binds #{type} premises to all model zones through the runtime binding measure" do - binding = binder.bind(match_result([{ type:, id: "#{type}-1" }]), + binding = binder.bind(match_result([{ type: type, id: "#{type}-1" }]), operation: 'replace', standards_template: '90.1-2016') expect(binding.status).to eq(:bound) expect(binding.step).to eq( diff --git a/spec/tests/unit/hvac_topology_selector_spec.rb b/spec/tests/unit/hvac_topology_selector_spec.rb index 5c2eeb0..cad4f29 100644 --- a/spec/tests/unit/hvac_topology_selector_spec.rb +++ b/spec/tests/unit/hvac_topology_selector_spec.rb @@ -46,7 +46,8 @@ premises = '' # One HVACSystem with a single HS/CS/Delivery triple plus optional plants and other systems. - system_xml = lambda do |delivery:, heating:, cooling:, zoning: nil, plants: all_plants, others: '', delivery_refs: nil, delivery_premises: premises, cooling_extra: ''| + system_xml = lambda do |delivery:, heating:, cooling:, zoning: nil, plants: all_plants, others: '', delivery_refs: nil, + delivery_premises: premises, cooling_extra: ''| refs = delivery_refs || '' zoning_xml = zoning ? "#{zoning}" : '' '' \ @@ -97,7 +98,7 @@ def select_from(body, prefix: nil) expect(results.length).to eq(1) result = results.first expect(result.messages).to eq([]) - expect(result).to have_attributes(status: :match, configuration:, measure:, + expect(result).to have_attributes(status: :match, configuration: configuration, measure: measure, hvac_system_id: 'HVAC-1', premises: [{ type: 'ThermalZone', id: 'TZ-1' }]) end end @@ -250,14 +251,15 @@ def select_from(body, prefix: nil) describe 'ventilation and other HVAC systems' do ventilation_delivery = "#{premises}#{single_zone_cav}" \ '' - other = lambda do |type_xml, links: '', integration: 'Stand-alone',| + other = lambda do |type_xml, links: '', + integration: 'Stand-alone'| "#{type_xml}" \ "#{integration}#{links}" end mechanical = ->(type) { "#{type}" } with_ventilation = lambda do |others, ventilation_heating: no_heating| - system_xml.call(**exact_cases['Packaged Terminal Air Conditioner'][1], others:) + system_xml.call(**exact_cases['Packaged Terminal Air Conditioner'][1], others: others) .sub('', "#{ventilation_heating}") .sub('', "#{no_cooling}") .sub('', "#{ventilation_delivery}") @@ -294,7 +296,7 @@ def select_from(body, prefix: nil) it 'reports a broken linked delivery as conflicting input' do links = '' - results = select_from(with_ventilation.call(other.call(mechanical.call('Supply only'), links:))) + results = select_from(with_ventilation.call(other.call(mechanical.call('Supply only'), links: links))) expect(results.last.status).to eq(:conflicting_input) end From 539e6bd3fb3fcb56ed74f28bd2c85175506fdb3c Mon Sep 17 00:00:00 2001 From: JieXiong9119 <69597597+JieXiong9119@users.noreply.github.com> Date: Thu, 19 Nov 2026 16:15:40 -0700 Subject: [PATCH 10/12] add flowcharts --- .../l200_baseline_hvac_flow.mmd | 85 +++++++++++++++++++ .../l200_baseline_hvac_flow.svg | 1 + .../l200_flow_0_overview.mmd | 9 ++ .../l200_flow_0_overview.svg | 1 + .../l200_flow_1_selector.mmd | 41 +++++++++ .../l200_flow_1_selector.svg | 1 + .../l200_flow_2_planner.mmd | 21 +++++ .../l200_flow_2_planner.svg | 1 + .../l200_flow_3_binder.mmd | 13 +++ .../l200_flow_3_binder.svg | 1 + .../l200_flow_4_osw.mmd | 15 ++++ .../l200_flow_4_osw.svg | 1 + 12 files changed, 190 insertions(+) create mode 100644 docs/L200-baseline-HVAC-flowcharts/l200_baseline_hvac_flow.mmd create mode 100644 docs/L200-baseline-HVAC-flowcharts/l200_baseline_hvac_flow.svg create mode 100644 docs/L200-baseline-HVAC-flowcharts/l200_flow_0_overview.mmd create mode 100644 docs/L200-baseline-HVAC-flowcharts/l200_flow_0_overview.svg create mode 100644 docs/L200-baseline-HVAC-flowcharts/l200_flow_1_selector.mmd create mode 100644 docs/L200-baseline-HVAC-flowcharts/l200_flow_1_selector.svg create mode 100644 docs/L200-baseline-HVAC-flowcharts/l200_flow_2_planner.mmd create mode 100644 docs/L200-baseline-HVAC-flowcharts/l200_flow_2_planner.svg create mode 100644 docs/L200-baseline-HVAC-flowcharts/l200_flow_3_binder.mmd create mode 100644 docs/L200-baseline-HVAC-flowcharts/l200_flow_3_binder.svg create mode 100644 docs/L200-baseline-HVAC-flowcharts/l200_flow_4_osw.mmd create mode 100644 docs/L200-baseline-HVAC-flowcharts/l200_flow_4_osw.svg diff --git a/docs/L200-baseline-HVAC-flowcharts/l200_baseline_hvac_flow.mmd b/docs/L200-baseline-HVAC-flowcharts/l200_baseline_hvac_flow.mmd new file mode 100644 index 0000000..96b7f2e --- /dev/null +++ b/docs/L200-baseline-HVAC-flowcharts/l200_baseline_hvac_flow.mmd @@ -0,0 +1,85 @@ +flowchart TD + START(["Boss.write_baseline_osw(xml, output, epw, standard)"]) --> BUILD["build_baseline_osw (private)"] + BUILD --> READ["BuildingSyncReader.get_hvac_systems_xml
returns Facility/Systems/HVACSystems"] + READ --> NOSYS{"Planner: HVACSystems present?"} + NOSYS -- no --> FB + NOSYS -- yes --> TPL{"Template supported?
DOE Ref Pre-1980, DOE Ref 1980-2004,
90.1-2004 … 90.1-2019"} + TPL -- no --> FB + TPL -- yes --> SYS + + subgraph SELECTOR["HvacTopologySelector.select: one status per Delivery and per OtherHVACSystem"] + SYS{"HVACSystem has Delivery or
OtherHVACSystem records?"} + SYS -- "no (only Principal/PrimaryHVACSystemType)" --> MISS["status: missing_input"] + SYS -- yes --> DUP{"IDs unique?"} + DUP -- no --> R_CONF["status: conflicting_input"] + DUP -- yes --> SPLIT["Deliveries owned by a ventilation record are
judged with that record, not as conditioning"] + SPLIT --> SEL["Each remaining Delivery: follow HeatingSourceID / CoolingSourceID
→ sources → Heating / Cooling / Condenser plants"] + SEL --> REFOK{"References resolve; source IDs
and premises present?"} + REFOK -- "broken / conflicting" --> R_CONF + REFOK -- "field missing" --> MISS + REFOK -- yes --> RULES{"DELIVERY_RULES + NOT_MAPPABLE_DELIVERY"} + RULES -- "one supported rule" --> GUARD{"Must-be-absent elements absent
and guards pass?"} + GUARD -- no --> R_CONF + GUARD -- yes --> MATCH["status: match + measure:
PTAC→hvac_ptac · PTHP→hvac_pthp
RTU AC→hvac_packaged_rooftop_ac
RTU HP→hvac_packaged_rooftop_heat_pump
(supplemental_heating_fuel from HeatPumpBackupSystemFuel)
Pkg VAV HW reheat · VAV HW reheat
Warm air furnace · VRF · 4-pipe FCU"] + RULES -- "gap rule" --> GAP["status: mapping_gap
VAV electric reheat, WLHP, GSHP,
chilled beam, radiant"] + RULES -- "one not-mappable hit" --> NM["status: not_mappable
split DX, split/mini/multi-split HP, SPVAC/SPVHP,
field-assembled DX, 2-pipe fan coil, baseboard/radiator,
heating-only or cooling-only pair, multizone CAV / CAV reheat,
VAV no reheat, unsupported VAV reheat, UFAD, evaporative,
steam/district/solar heat, absorption/district cooling,
air-cooled chiller"] + RULES -- "more than one hit" --> R_CONF + RULES -- "no hit" --> MISS + SPLIT --> OTH["Each OtherHVACSystem"] + OTH --> EQ{"Spot exhaust, humidifier, dehumidifier,
air cleaner, natural ventilation?"} + EQ -- yes --> NM + EQ -- no --> VENT{"VentilationType"} + VENT -- "missing" --> MISS + VENT -- "more than one" --> R_CONF + VENT -- "HRV / ERV / Exhaust only" --> NM + VENT -- "integrated with air distribution" --> INTEG["status: integrated
(linked deliveries judged as conditioning)"] + VENT -- "None" --> ANNOT["status: no_hvac
(explicitly no HVAC, or no separate
ventilation equipment)"] + VENT -- "Supply only / DOAS" --> VCHK{"Links resolve and not shared?
Deliveries unconditioned?
Stand-alone, single-duct CAV?
Guards pass?"} + VCHK -- "broken / shared link, guard fails" --> R_CONF + VCHK -- "deliveries heated or cooled" --> NM + VCHK -- "requirements not met" --> MISS + VCHK -- yes --> VMATCH["match: Supply only → hvac_ventilation_only
DOAS → hvac_doas"] + MATCH --> PREM["Attach premises: record LinkedPremises,
else inherit HVACSystem LinkedPremises"] + VMATCH --> PREM + end + + PREM --> PROP + R_CONF --> PROP + GAP --> PROP + NM --> PROP + MISS --> PROP + INTEG --> PROP + ANNOT --> PROP + + subgraph PLANNER["BaselineHvacPlanner.plan"] + PROP["Drop results of proposed systems
(exclude_system_ids from a Measure's
AlternativeSystemReplacement / ModifiedSystem)"] + PROP --> ANY{"Any results left?"} + ANY -- yes --> PLAN{"Every result is match?
(any other status falls back,
including integrated and no_hvac)"} + PLAN -- yes --> GROUP["Group by (measure, measure_arguments);
merge premises; split into
conditioning and ventilation"] + GROUP --> CFG{"Configuration checks (all reasons reported together):
exactly 1 conditioning; at most 1 ventilation;
if ventilation, conditioning is zone equipment
(ptac, pthp, four_pipe_fan_coil, vrf)"} + CFG -- pass --> NORM["normalize_premises: Section links covering the building
(Whole building section, or all non-empty sections)
→ treated as Building"] + end + + ANY -- no --> FB + PLAN -- no --> FB + CFG -- "any fails" --> FB + + subgraph BINDER["HvacTargetBinder.bind (conditioning: given operation; ventilation: always create)"] + NORM --> WB{"Premises all Building / Site / Facility?
(generated geometry has no BuildingSync zone IDs)"} + WB -- yes --> STEP["apply_hvac_topology_to_zone_scope step:
topology_measure, operation create/replace,
zone_scope = all_model_zones, standards_template,
topology_arguments_json (only if measure arguments)"] + end + WB -- "no (zone/space premise)
missing_input" --> FB + + STEP --> SIZE["Steps: conditioning → ventilation →
apply_standard_hvac_sizing_and_efficiency(template)"] + SIZE --> TOPO["Plan = :topology"] + + TOPO --> OSW1["OSWArgPopulator:
create_typical_building_from_model add_hvac = false
append_step + set_step_argument (per step, no name collision)"] + OSW1 --> DIRS1["measure_paths include scenario_only repos
(buildingsync-measures-gem via local_path ../../buildingsync-measures-gem)"] + + FB["Plan = :fallback with reasons"] --> OSW2["create_typical_building_from_model add_hvac = true
log warning per reason:
'Keeping create_typical_building_from_model HVAC: …'"] + OSW2 --> DIRS2["measure_paths exclude scenario_only repos
(sibling gem checkout not required)"] + + DIRS1 --> WRITE["Write baseline/in.osw"] + DIRS2 --> WRITE + WRITE --> RUN["Boss.run_baseline_osw → OpenStudio workflow"] + RUN --> CHECK["Integration check (shard 0, non-smoke):
Success, add_hvac=false, PSZ-HP loops w/ NaturalGas
supplemental heat for template, sizing Success"] diff --git a/docs/L200-baseline-HVAC-flowcharts/l200_baseline_hvac_flow.svg b/docs/L200-baseline-HVAC-flowcharts/l200_baseline_hvac_flow.svg new file mode 100644 index 0000000..0fd5510 --- /dev/null +++ b/docs/L200-baseline-HVAC-flowcharts/l200_baseline_hvac_flow.svg @@ -0,0 +1 @@ +

HvacTargetBinder.bind (conditioning: given operation; ventilation: always create)

BaselineHvacPlanner.plan

HvacTopologySelector.select: one status per Delivery and per OtherHVACSystem

no

yes

no

yes

no (only Principal/PrimaryHVACSystemType)

yes

no

yes

broken / conflicting

field missing

yes

one supported rule

no

yes

gap rule

one not-mappable hit

more than one hit

no hit

yes

no

missing

more than one

HRV / ERV / Exhaust only

integrated with air distribution

None

Supply only / DOAS

broken / shared link, guard fails

deliveries heated or cooled

requirements not met

yes

yes

yes

pass

no

no

any fails

yes

no (zone/space premise)
missing_input

Boss.write_baseline_osw(xml, output, epw, standard)

build_baseline_osw (private)

BuildingSyncReader.get_hvac_systems_xml
returns Facility/Systems/HVACSystems

Planner: HVACSystems present?

Plan = :fallback with reasons

Template supported?
DOE Ref Pre-1980, DOE Ref 1980-2004,
90.1-2004 … 90.1-2019

HVACSystem has Delivery or
OtherHVACSystem records?

status: missing_input

IDs unique?

status: conflicting_input

Deliveries owned by a ventilation record are
judged with that record, not as conditioning

Each remaining Delivery: follow HeatingSourceID / CoolingSourceID
→ sources → Heating / Cooling / Condenser plants

References resolve; source IDs
and premises present?

DELIVERY_RULES + NOT_MAPPABLE_DELIVERY

Must-be-absent elements absent
and guards pass?

status: match + measure:
PTAC→hvac_ptac · PTHP→hvac_pthp
RTU AC→hvac_packaged_rooftop_ac
RTU HP→hvac_packaged_rooftop_heat_pump
(supplemental_heating_fuel from HeatPumpBackupSystemFuel)
Pkg VAV HW reheat · VAV HW reheat
Warm air furnace · VRF · 4-pipe FCU

status: mapping_gap
VAV electric reheat, WLHP, GSHP,
chilled beam, radiant

status: not_mappable
split DX, split/mini/multi-split HP, SPVAC/SPVHP,
field-assembled DX, 2-pipe fan coil, baseboard/radiator,
heating-only or cooling-only pair, multizone CAV / CAV reheat,
VAV no reheat, unsupported VAV reheat, UFAD, evaporative,
steam/district/solar heat, absorption/district cooling,
air-cooled chiller

Each OtherHVACSystem

Spot exhaust, humidifier, dehumidifier,
air cleaner, natural ventilation?

VentilationType

status: integrated
(linked deliveries judged as conditioning)

status: no_hvac
(explicitly no HVAC, or no separate
ventilation equipment)

Links resolve and not shared?
Deliveries unconditioned?
Stand-alone, single-duct CAV?
Guards pass?

match: Supply only → hvac_ventilation_only
DOAS → hvac_doas

Attach premises: record LinkedPremises,
else inherit HVACSystem LinkedPremises

Drop results of proposed systems
(exclude_system_ids from a Measure's
AlternativeSystemReplacement / ModifiedSystem)

Any results left?

Every result is match?
(any other status falls back,
including integrated and no_hvac)

Group by (measure, measure_arguments);
merge premises; split into
conditioning and ventilation

Configuration checks (all reasons reported together):
exactly 1 conditioning; at most 1 ventilation;
if ventilation, conditioning is zone equipment
(ptac, pthp, four_pipe_fan_coil, vrf)

normalize_premises: Section links covering the building
(Whole building section, or all non-empty sections)
→ treated as Building

Premises all Building / Site / Facility?
(generated geometry has no BuildingSync zone IDs)

apply_hvac_topology_to_zone_scope step:
topology_measure, operation create/replace,
zone_scope = all_model_zones, standards_template,
topology_arguments_json (only if measure arguments)

Steps: conditioning → ventilation →
apply_standard_hvac_sizing_and_efficiency(template)

Plan = :topology

OSWArgPopulator:
create_typical_building_from_model add_hvac = false
append_step + set_step_argument (per step, no name collision)

measure_paths include scenario_only repos
(buildingsync-measures-gem via local_path ../../buildingsync-measures-gem)

create_typical_building_from_model add_hvac = true
log warning per reason:
'Keeping create_typical_building_from_model HVAC: …'

measure_paths exclude scenario_only repos
(sibling gem checkout not required)

Write baseline/in.osw

Boss.run_baseline_osw → OpenStudio workflow

Integration check (shard 0, non-smoke):
Success, add_hvac=false, PSZ-HP loops w/ NaturalGas
supplemental heat for template, sizing Success

\ No newline at end of file diff --git a/docs/L200-baseline-HVAC-flowcharts/l200_flow_0_overview.mmd b/docs/L200-baseline-HVAC-flowcharts/l200_flow_0_overview.mmd new file mode 100644 index 0000000..1fe1634 --- /dev/null +++ b/docs/L200-baseline-HVAC-flowcharts/l200_flow_0_overview.mmd @@ -0,0 +1,9 @@ +flowchart LR + A(["Boss.write_baseline_osw
start the baseline OSW build"]) --> B["1. Reader
get_hvac_systems_xml
read HVACSystems from BuildingSync"] + B --> C["2. HvacTopologySelector
one status per Delivery / OtherHVACSystem
classify each HVAC record; match it to a measure"] + C --> D["3. BaselineHvacPlanner
skip proposed systems; all must match;
one conditioning + optional ventilation
decide L200 topology or L100 fallback"] + D -- topology --> E["4. HvacTargetBinder
whole-building premises → all model zones
apply each measure to all model zones"] + E --> F["5a. L200 OSW: add_hvac = false
+ conditioning, ventilation, sizing steps
build the audited HVAC system"] + D -- "fallback to L100" --> G["5b. L100 OSW (generic HVAC workflow):
add_hvac = true
+ one warning per reason
fall back to L100 generic HVAC, log why"] + F --> H["6. Write in.osw and run OpenStudio
simulate the baseline"] + G --> H diff --git a/docs/L200-baseline-HVAC-flowcharts/l200_flow_0_overview.svg b/docs/L200-baseline-HVAC-flowcharts/l200_flow_0_overview.svg new file mode 100644 index 0000000..9d4ede7 --- /dev/null +++ b/docs/L200-baseline-HVAC-flowcharts/l200_flow_0_overview.svg @@ -0,0 +1 @@ +

topology

fallback to L100

Boss.write_baseline_osw
start the baseline OSW build

1. Reader
get_hvac_systems_xml
read HVACSystems from BuildingSync

2. HvacTopologySelector
one status per Delivery / OtherHVACSystem
classify each HVAC record; match it to a measure

3. BaselineHvacPlanner
skip proposed systems; all must match;
one conditioning + optional ventilation
decide L200 topology or L100 fallback

4. HvacTargetBinder
whole-building premises → all model zones
apply each measure to all model zones

5a. L200 OSW: add_hvac = false
+ conditioning, ventilation, sizing steps
build the audited HVAC system

5b. L100 OSW (generic HVAC workflow):
add_hvac = true
+ one warning per reason
fall back to L100 generic HVAC, log why

6. Write in.osw and run OpenStudio
simulate the baseline

\ No newline at end of file diff --git a/docs/L200-baseline-HVAC-flowcharts/l200_flow_1_selector.mmd b/docs/L200-baseline-HVAC-flowcharts/l200_flow_1_selector.mmd new file mode 100644 index 0000000..c438ff9 --- /dev/null +++ b/docs/L200-baseline-HVAC-flowcharts/l200_flow_1_selector.mmd @@ -0,0 +1,41 @@ +flowchart TD + IN(["HVACSystems XML"]) --> SYS{"Each HVACSystem: has Delivery
or OtherHVACSystem records?"} + SYS -- "no (only Principal/PrimaryHVACSystemType)" --> MISS + SYS -- yes --> DUP{"IDs unique?"} + DUP -- no --> R_CONF["conflicting_input"] + DUP -- yes --> SPLIT["Deliveries owned by a ventilation record
are judged with that record, not as conditioning"] + SPLIT --> SEL["Each remaining Delivery: follow HeatingSourceID / CoolingSourceID
→ sources → Heating / Cooling / Condenser plants"] + SEL --> REFOK{"References resolve; source IDs
and premises present?"} + REFOK -- "broken / conflicting" --> R_CONF + REFOK -- "field missing" --> MISS + REFOK -- yes --> RULES{"DELIVERY_RULES + NOT_MAPPABLE_DELIVERY"} + RULES -- "one supported rule" --> GUARD{"Must-be-absent elements absent
and guards pass?"} + GUARD -- no --> R_CONF + GUARD -- yes --> MATCH["match:
PTAC→hvac_ptac · PTHP→hvac_pthp
RTU AC→hvac_packaged_rooftop_ac
RTU HP→hvac_packaged_rooftop_heat_pump
(supplemental_heating_fuel from HeatPumpBackupSystemFuel)
Pkg VAV HW reheat · VAV HW reheat
Warm air furnace · VRF · 4-pipe FCU"] + RULES -- "gap rule" --> GAP["mapping_gap:
VAV electric reheat, WLHP, GSHP,
chilled beam, radiant"] + RULES -- "one not-mappable hit" --> NM["not_mappable:
split DX, split/mini/multi-split HP, SPVAC/SPVHP,
field-assembled DX, 2-pipe fan coil, baseboard/radiator,
heating-only or cooling-only pair, multizone CAV / CAV reheat,
VAV no reheat, unsupported VAV reheat, UFAD, evaporative,
steam/district/solar heat, absorption/district cooling,
air-cooled chiller"] + RULES -- "more than one hit" --> R_CONF + RULES -- "no hit" --> MISS["missing_input"] + SPLIT --> OTH["Each OtherHVACSystem"] + OTH --> EQ{"Spot exhaust, humidifier, dehumidifier,
air cleaner, natural ventilation?"} + EQ -- yes --> NM + EQ -- no --> VENT{"VentilationType"} + VENT -- "missing" --> MISS + VENT -- "more than one" --> R_CONF + VENT -- "HRV / ERV / Exhaust only" --> NM + VENT -- "integrated with air distribution" --> INTEG["integrated
(linked deliveries judged as conditioning)"] + VENT -- "None" --> ANNOT["no_hvac
(explicitly no HVAC, or no separate
ventilation equipment)"] + VENT -- "Supply only / DOAS" --> VCHK{"Links resolve and not shared?
Deliveries unconditioned?
Stand-alone, single-duct CAV?
Guards pass?"} + VCHK -- "broken / shared link, guard fails" --> R_CONF + VCHK -- "deliveries heated or cooled" --> NM + VCHK -- "requirements not met" --> MISS + VCHK -- yes --> VMATCH["match: Supply only → hvac_ventilation_only
DOAS → hvac_doas"] + MATCH --> PREM["Attach premises: own LinkedPremises,
else inherit HVACSystem's"] + VMATCH --> PREM + PREM --> OUT(["Results → Planner"]) + R_CONF --> OUT + GAP --> OUT + NM --> OUT + MISS --> OUT + INTEG --> OUT + ANNOT --> OUT diff --git a/docs/L200-baseline-HVAC-flowcharts/l200_flow_1_selector.svg b/docs/L200-baseline-HVAC-flowcharts/l200_flow_1_selector.svg new file mode 100644 index 0000000..27c7703 --- /dev/null +++ b/docs/L200-baseline-HVAC-flowcharts/l200_flow_1_selector.svg @@ -0,0 +1 @@ +

no (only Principal/PrimaryHVACSystemType)

yes

no

yes

broken / conflicting

field missing

yes

one supported rule

no

yes

gap rule

one not-mappable hit

more than one hit

no hit

yes

no

missing

more than one

HRV / ERV / Exhaust only

integrated with air distribution

None

Supply only / DOAS

broken / shared link, guard fails

deliveries heated or cooled

requirements not met

yes

HVACSystems XML

Each HVACSystem: has Delivery
or OtherHVACSystem records?

missing_input

IDs unique?

conflicting_input

Deliveries owned by a ventilation record
are judged with that record, not as conditioning

Each remaining Delivery: follow HeatingSourceID / CoolingSourceID
→ sources → Heating / Cooling / Condenser plants

References resolve; source IDs
and premises present?

DELIVERY_RULES + NOT_MAPPABLE_DELIVERY

Must-be-absent elements absent
and guards pass?

match:
PTAC→hvac_ptac · PTHP→hvac_pthp
RTU AC→hvac_packaged_rooftop_ac
RTU HP→hvac_packaged_rooftop_heat_pump
(supplemental_heating_fuel from HeatPumpBackupSystemFuel)
Pkg VAV HW reheat · VAV HW reheat
Warm air furnace · VRF · 4-pipe FCU

mapping_gap:
VAV electric reheat, WLHP, GSHP,
chilled beam, radiant

not_mappable:
split DX, split/mini/multi-split HP, SPVAC/SPVHP,
field-assembled DX, 2-pipe fan coil, baseboard/radiator,
heating-only or cooling-only pair, multizone CAV / CAV reheat,
VAV no reheat, unsupported VAV reheat, UFAD, evaporative,
steam/district/solar heat, absorption/district cooling,
air-cooled chiller

Each OtherHVACSystem

Spot exhaust, humidifier, dehumidifier,
air cleaner, natural ventilation?

VentilationType

integrated
(linked deliveries judged as conditioning)

no_hvac
(explicitly no HVAC, or no separate
ventilation equipment)

Links resolve and not shared?
Deliveries unconditioned?
Stand-alone, single-duct CAV?
Guards pass?

match: Supply only → hvac_ventilation_only
DOAS → hvac_doas

Attach premises: own LinkedPremises,
else inherit HVACSystem's

Results → Planner

\ No newline at end of file diff --git a/docs/L200-baseline-HVAC-flowcharts/l200_flow_2_planner.mmd b/docs/L200-baseline-HVAC-flowcharts/l200_flow_2_planner.mmd new file mode 100644 index 0000000..e52da45 --- /dev/null +++ b/docs/L200-baseline-HVAC-flowcharts/l200_flow_2_planner.mmd @@ -0,0 +1,21 @@ +flowchart TD + IN(["BaselineHvacPlanner.plan(hvac_systems, template,
exclude_system_ids = proposed systems)"]) --> NOSYS{"HVACSystems present?"} + NOSYS -- no --> FB + NOSYS -- yes --> TPL{"Template supported?
DOE Ref Pre-1980, DOE Ref 1980-2004,
90.1-2004 … 90.1-2019"} + TPL -- no --> FB + TPL -- yes --> SELECT["Run HvacTopologySelector"] + SELECT --> PROP["Drop results of proposed systems
(named by a Measure's AlternativeSystemReplacement
or ModifiedSystem; computed in boss.rb)"] + PROP --> ANY{"Any results left?"} + ANY -- no --> FB + ANY -- yes --> ALL{"Every result is match?
(any other status falls back,
including integrated and no_hvac)"} + ALL -- no --> FB + ALL -- yes --> GROUP["Group by (measure, measure_arguments);
merge premises; split into
conditioning and ventilation"] + GROUP --> CFG{"Configuration checks (all reasons reported together):
exactly 1 conditioning; at most 1 ventilation;
if ventilation, conditioning is zone equipment
(ptac, pthp, four_pipe_fan_coil, vrf)"} + CFG -- "any fails" --> FB + CFG -- pass --> NORM["normalize_premises: Section links covering the building
(Whole building, or all non-empty sections) → Building"] + NORM --> BIND["HvacTargetBinder.bind
conditioning: given operation (create/replace)
ventilation: always create"] + BIND --> OK{"All bindings bound?"} + OK -- no --> FB + OK -- yes --> SIZE["Steps: conditioning → ventilation →
apply_standard_hvac_sizing_and_efficiency(template)"] + SIZE --> TOPO(["Plan :topology with steps"]) + FB(["Plan :fallback with reason messages"]) diff --git a/docs/L200-baseline-HVAC-flowcharts/l200_flow_2_planner.svg b/docs/L200-baseline-HVAC-flowcharts/l200_flow_2_planner.svg new file mode 100644 index 0000000..a910ecb --- /dev/null +++ b/docs/L200-baseline-HVAC-flowcharts/l200_flow_2_planner.svg @@ -0,0 +1 @@ +

no

yes

no

yes

no

yes

no

yes

any fails

pass

no

yes

BaselineHvacPlanner.plan(hvac_systems, template,
exclude_system_ids = proposed systems)

HVACSystems present?

Plan :fallback with reason messages

Template supported?
DOE Ref Pre-1980, DOE Ref 1980-2004,
90.1-2004 … 90.1-2019

Run HvacTopologySelector

Drop results of proposed systems
(named by a Measure's AlternativeSystemReplacement
or ModifiedSystem; computed in boss.rb)

Any results left?

Every result is match?
(any other status falls back,
including integrated and no_hvac)

Group by (measure, measure_arguments);
merge premises; split into
conditioning and ventilation

Configuration checks (all reasons reported together):
exactly 1 conditioning; at most 1 ventilation;
if ventilation, conditioning is zone equipment
(ptac, pthp, four_pipe_fan_coil, vrf)

normalize_premises: Section links covering the building
(Whole building, or all non-empty sections) → Building

HvacTargetBinder.bind
conditioning: given operation (create/replace)
ventilation: always create

All bindings bound?

Steps: conditioning → ventilation →
apply_standard_hvac_sizing_and_efficiency(template)

Plan :topology with steps

\ No newline at end of file diff --git a/docs/L200-baseline-HVAC-flowcharts/l200_flow_3_binder.mmd b/docs/L200-baseline-HVAC-flowcharts/l200_flow_3_binder.mmd new file mode 100644 index 0000000..1fab48e --- /dev/null +++ b/docs/L200-baseline-HVAC-flowcharts/l200_flow_3_binder.mmd @@ -0,0 +1,13 @@ +flowchart TD + IN(["HvacTargetBinder.bind(result, operation, standards_template, zone_names)"]) --> T{"Result is match?
(operation and template already
validated by the planner)"} + T -- no --> MI["Return the result's status and messages"] + T -- yes --> Z{"zone_names given?"} + Z -- yes --> EX["zone_scope = explicit_zone_names"] + Z -- no --> WB{"Premises present and all Building / Site / Facility?
(generated geometry has no BuildingSync zone IDs)"} + WB -- no --> MI2["missing_input: only whole-building
premises can bind"] + MI2 --> FB + WB -- yes --> ALLZ["zone_scope = all_model_zones"] + EX --> STEP + ALLZ --> STEP["Step apply_hvac_topology_to_zone_scope:
topology_measure, operation (create/replace),
zone_scope, standards_template,
topology_arguments_json (only if measure arguments)"] + STEP --> OUT(["Step → Planner"]) + MI --> FB(["Planner falls back"]) diff --git a/docs/L200-baseline-HVAC-flowcharts/l200_flow_3_binder.svg b/docs/L200-baseline-HVAC-flowcharts/l200_flow_3_binder.svg new file mode 100644 index 0000000..0dfc22e --- /dev/null +++ b/docs/L200-baseline-HVAC-flowcharts/l200_flow_3_binder.svg @@ -0,0 +1 @@ +

no

yes

yes

no

no

yes

HvacTargetBinder.bind(result, operation, standards_template, zone_names)

Result is match?
(operation and template already
validated by the planner)

Return the result's status and messages

zone_names given?

zone_scope = explicit_zone_names

Premises present and all Building / Site / Facility?
(generated geometry has no BuildingSync zone IDs)

missing_input: only whole-building
premises can bind

Planner falls back

zone_scope = all_model_zones

Step apply_hvac_topology_to_zone_scope:
topology_measure, operation (create/replace),
zone_scope, standards_template,
topology_arguments_json (only if measure arguments)

Step → Planner

\ No newline at end of file diff --git a/docs/L200-baseline-HVAC-flowcharts/l200_flow_4_osw.mmd b/docs/L200-baseline-HVAC-flowcharts/l200_flow_4_osw.mmd new file mode 100644 index 0000000..aa6397f --- /dev/null +++ b/docs/L200-baseline-HVAC-flowcharts/l200_flow_4_osw.mmd @@ -0,0 +1,15 @@ +flowchart TD + P{"Plan kind"} -- topology --> T1["create_typical_building_from_model
add_hvac = false"] + T1 --> T2["OSWArgPopulator.append_step for each planned step
set_step_argument per step (no name collision)"] + T2 --> T3["Steps in order: conditioning → ventilation → sizing
measure_paths include scenario_only repos
buildingsync-measures-gem via local_path
../../buildingsync-measures-gem"] + P -- fallback --> F1["create_typical_building_from_model
add_hvac = true"] + F1 --> F2["Log warning per reason:
'Keeping create_typical_building_from_model HVAC: …'"] + F2 --> F3["measure_paths exclude scenario_only repos
(sibling checkout not required)"] + T3 --> W["Write baseline/in.osw"] + F3 --> W + W --> R["Boss.run_baseline_osw → OpenStudio"] + R --> C["Integration check (shard 0, non-smoke):
Success, add_hvac=false, PSZ-HP loops with NaturalGas
supplemental heat for template, sizing Success"] + subgraph CI["CI (.github/workflows/ci.yml)"] + C1["Checkout BOSS into BOSS/"] --> C2["Checkout buildingsync-measures-gem
at BSYNC_MEASURES_REF"] + end + C2 -.-> T3 diff --git a/docs/L200-baseline-HVAC-flowcharts/l200_flow_4_osw.svg b/docs/L200-baseline-HVAC-flowcharts/l200_flow_4_osw.svg new file mode 100644 index 0000000..fd63f4b --- /dev/null +++ b/docs/L200-baseline-HVAC-flowcharts/l200_flow_4_osw.svg @@ -0,0 +1 @@ +

CI (.github/workflows/ci.yml)

topology

fallback

Plan kind

create_typical_building_from_model
add_hvac = false

OSWArgPopulator.append_step for each planned step
set_step_argument per step (no name collision)

Steps in order: conditioning → ventilation → sizing
measure_paths include scenario_only repos
buildingsync-measures-gem via local_path
../../buildingsync-measures-gem

create_typical_building_from_model
add_hvac = true

Log warning per reason:
'Keeping create_typical_building_from_model HVAC: …'

measure_paths exclude scenario_only repos
(sibling checkout not required)

Write baseline/in.osw

Boss.run_baseline_osw → OpenStudio

Integration check (shard 0, non-smoke):
Success, add_hvac=false, PSZ-HP loops with NaturalGas
supplemental heat for template, sizing Success

Checkout BOSS into BOSS/

Checkout buildingsync-measures-gem
at BSYNC_MEASURES_REF

\ No newline at end of file From a2c4ece6b26209db933aed50740389f9671f3b6d Mon Sep 17 00:00:00 2001 From: JieXiong9119 <69597597+JieXiong9119@users.noreply.github.com> Date: Thu, 19 Nov 2026 17:03:36 -0700 Subject: [PATCH 11/12] add synthetic examples for l200 baseline hvac --- spec/files/v2.7.0/l200_hvac/README.md | 53 + spec/files/v2.7.0/l200_hvac/generate.rb | 119 + .../l200_hvac/l200_four_pipe_fan_coil.xml | 2292 +++++++++++++++++ .../l200_four_pipe_fan_coil_doas.xml | 2292 +++++++++++++++++ .../l200_hvac/l200_packaged_vav_hw_reheat.xml | 2292 +++++++++++++++++ spec/files/v2.7.0/l200_hvac/l200_ptac.xml | 2292 +++++++++++++++++ .../l200_hvac/l200_ptac_ventilation_only.xml | 2292 +++++++++++++++++ spec/files/v2.7.0/l200_hvac/l200_pthp.xml | 2292 +++++++++++++++++ .../files/v2.7.0/l200_hvac/l200_pthp_doas.xml | 2292 +++++++++++++++++ spec/files/v2.7.0/l200_hvac/l200_rtu_ac.xml | 2292 +++++++++++++++++ .../l200_hvac/l200_rtu_hp_electric_backup.xml | 2292 +++++++++++++++++ .../l200_hvac/l200_rtu_hp_gas_backup.xml | 2292 +++++++++++++++++ .../v2.7.0/l200_hvac/l200_vav_hw_reheat.xml | 2292 +++++++++++++++++ spec/files/v2.7.0/l200_hvac/l200_vrf.xml | 2292 +++++++++++++++++ spec/files/v2.7.0/l200_hvac/l200_vrf_doas.xml | 2292 +++++++++++++++++ .../l200_hvac/l200_warm_air_furnace.xml | 2292 +++++++++++++++++ .../integration/write_and_run_osws_spec.rb | 59 +- 17 files changed, 32300 insertions(+), 19 deletions(-) create mode 100644 spec/files/v2.7.0/l200_hvac/README.md create mode 100644 spec/files/v2.7.0/l200_hvac/generate.rb create mode 100644 spec/files/v2.7.0/l200_hvac/l200_four_pipe_fan_coil.xml create mode 100644 spec/files/v2.7.0/l200_hvac/l200_four_pipe_fan_coil_doas.xml create mode 100644 spec/files/v2.7.0/l200_hvac/l200_packaged_vav_hw_reheat.xml create mode 100644 spec/files/v2.7.0/l200_hvac/l200_ptac.xml create mode 100644 spec/files/v2.7.0/l200_hvac/l200_ptac_ventilation_only.xml create mode 100644 spec/files/v2.7.0/l200_hvac/l200_pthp.xml create mode 100644 spec/files/v2.7.0/l200_hvac/l200_pthp_doas.xml create mode 100644 spec/files/v2.7.0/l200_hvac/l200_rtu_ac.xml create mode 100644 spec/files/v2.7.0/l200_hvac/l200_rtu_hp_electric_backup.xml create mode 100644 spec/files/v2.7.0/l200_hvac/l200_rtu_hp_gas_backup.xml create mode 100644 spec/files/v2.7.0/l200_hvac/l200_vav_hw_reheat.xml create mode 100644 spec/files/v2.7.0/l200_hvac/l200_vrf.xml create mode 100644 spec/files/v2.7.0/l200_hvac/l200_vrf_doas.xml create mode 100644 spec/files/v2.7.0/l200_hvac/l200_warm_air_furnace.xml diff --git a/spec/files/v2.7.0/l200_hvac/README.md b/spec/files/v2.7.0/l200_hvac/README.md new file mode 100644 index 0000000..7e7cc43 --- /dev/null +++ b/spec/files/v2.7.0/l200_hvac/README.md @@ -0,0 +1,53 @@ +# L200 baseline HVAC examples + +BuildingSync files whose detailed HVAC data maps to a buildingsync-measures-gem topology, so +`BaselineHvacPlanner` builds the L200 baseline HVAC workflow instead of falling back to the L100 +generic HVAC workflow (`create_typical_building_from_model` with `add_hvac = true`). + +Each file is `../example-smalloffice-level2-built-2012.xml` (template 90.1-2013) with its +`HVACSystem` replaced by one supported configuration. The new `HVACSystem` keeps the original +`LinkedPremises`, which cover the whole building. + +## Regenerating + +The XML files are generated; edit `generate.rb` rather than the XML, then run from the repo root: + +``` +ruby spec/files/v2.7.0/l200_hvac/generate.rb +``` + +- `CONDITIONING` defines one conditioning configuration per supported selector rule + (`DELIVERY_RULES` rows with status `:match` in `lib/BOSS/hvac_topology_selector.rb`). +- `EXAMPLES` maps each output name to a conditioning configuration plus an optional + `VentilationType` (`Supply only` or `Dedicated outdoor air system`). Ventilation adds a + stand-alone `OtherHVACSystem` linked to an unconditioned single-duct CAV delivery. +- The planner only accepts ventilation alongside zone equipment (PTAC, PTHP, four-pipe fan coil, + VRF), so do not pair it with rooftop, furnace, or VAV configurations. + +After adding an example, add it to `topology_configs` in +`spec/tests/integration/write_and_run_osws_spec.rb`. + +## Coverage + +Every plan ends with `apply_standard_hvac_sizing_and_efficiency`. + +| Example | Planned topology measures | +|---|---| +| `l200_ptac.xml` | `hvac_ptac` | +| `l200_pthp.xml` | `hvac_pthp` | +| `l200_rtu_ac.xml` | `hvac_packaged_rooftop_ac` | +| `l200_rtu_hp_electric_backup.xml` | `hvac_packaged_rooftop_heat_pump` (electric supplemental heat) | +| `l200_rtu_hp_gas_backup.xml` | `hvac_packaged_rooftop_heat_pump` (natural gas supplemental heat) | +| `l200_warm_air_furnace.xml` | `hvac_warm_air_furnace` | +| `l200_packaged_vav_hw_reheat.xml` | `hvac_packaged_rooftop_vav_hw_reheat` | +| `l200_vav_hw_reheat.xml` | `hvac_vav_hw_reheat` | +| `l200_four_pipe_fan_coil.xml` | `hvac_four_pipe_fan_coil` | +| `l200_vrf.xml` | `hvac_vrf` | +| `l200_ptac_ventilation_only.xml` | `hvac_ptac` + `hvac_ventilation_only` | +| `l200_pthp_doas.xml` | `hvac_pthp` + `hvac_doas` | +| `l200_four_pipe_fan_coil_doas.xml` | `hvac_four_pipe_fan_coil` + `hvac_doas` | +| `l200_vrf_doas.xml` | `hvac_vrf` + `hvac_doas` | + +Not covered: mapping-gap configurations (packaged/built-up VAV with electric reheat, water-loop +heat pump, ground-source heat pump, chilled beam, radiant) always fall back to L100 until their +gaps are resolved. diff --git a/spec/files/v2.7.0/l200_hvac/generate.rb b/spec/files/v2.7.0/l200_hvac/generate.rb new file mode 100644 index 0000000..298fc81 --- /dev/null +++ b/spec/files/v2.7.0/l200_hvac/generate.rb @@ -0,0 +1,119 @@ +# frozen_string_literal: true + +# Generates L200 baseline HVAC examples that BaselineHvacPlanner resolves to a topology plan +# (no fallback). Each example is example-smalloffice-level2-built-2012.xml with its HVACSystem +# replaced by one supported configuration; the HVACSystem keeps the original LinkedPremises. +# +# ruby spec/files/v2.7.0/l200_hvac/generate.rb + +BASE = File.expand_path('../example-smalloffice-level2-built-2012.xml', __dir__) + +def dx(type, condenser: nil, quantity: false) + cn = condenser ? "" : '' + "#{type}#{cn}" \ + "#{quantity ? '1' : ''}" +end + +def heat_pump(type, backup) + "#{type ? "#{type}" : ''}" \ + "#{backup ? "#{backup}" : ''}" \ + '' +end + +def central_air(terminal, reheat, extra = '') + 'Central fan' \ + "#{terminal}#{reheat}#{extra}" +end + +def fan_coil(type) + "#{type}" \ + '' +end + +ELECTRIC_RESISTANCE = '' +GAS_FURNACE = 'Warm air' \ + 'Natural gasAir' +HOT_WATER = '' \ + 'Hot water' +CHILLED_WATER = '' \ + 'Chilled water1' +NO_HEATING = '' +NO_COOLING = '' +SINGLE_ZONE_CAV = central_air('CAV terminal box no reheat', 'None') +VAV_HW = central_air('VAV terminal box not fan powered with reheat', 'Heating plant', '') + +BOILER = 'Hot water' \ + 'Natural gas' +CHILLER = 'Vapor compression' \ + 'Electric Motor' \ + '' +TOWER = '' \ + 'Cooling tower' +AIR_CONDENSER = '' + +# Conditioning configurations, one per DELIVERY_RULES :match row (heat pump backup fuel both ways). +CONDITIONING = { + 'ptac' => { delivery: '', heating: ELECTRIC_RESISTANCE, + cooling: dx('Packaged terminal air conditioner (PTAC)') }, + 'pthp' => { delivery: '', heating: heat_pump('Packaged Terminal', 'Electricity'), + cooling: dx('Packaged terminal heat pump (PTHP)') }, + 'rtu_ac' => { delivery: SINGLE_ZONE_CAV, heating: GAS_FURNACE, zoning: 'Single zone', + cooling: dx('Packaged/unitary direct expansion/RTU') }, + 'rtu_hp_electric_backup' => { delivery: SINGLE_ZONE_CAV, heating: heat_pump('Packaged Unitary', 'Electricity'), + zoning: 'Single zone', cooling: dx('Packaged/unitary heat pump') }, + 'rtu_hp_gas_backup' => { delivery: SINGLE_ZONE_CAV, heating: heat_pump('Packaged Unitary', 'Natural gas'), + zoning: 'Single zone', cooling: dx('Packaged/unitary heat pump') }, + 'warm_air_furnace' => { delivery: SINGLE_ZONE_CAV, heating: GAS_FURNACE, zoning: 'Single zone', cooling: NO_COOLING }, + 'packaged_vav_hw_reheat' => { delivery: VAV_HW, heating: HOT_WATER, zoning: 'Multi zone', + cooling: dx('Packaged/unitary direct expansion/RTU', quantity: true), plants: BOILER }, + 'vav_hw_reheat' => { delivery: VAV_HW, heating: HOT_WATER, zoning: 'Multi zone', cooling: CHILLED_WATER, + plants: BOILER + CHILLER, condensers: TOWER }, + 'four_pipe_fan_coil' => { delivery: fan_coil('Fan coil 4 pipe'), heating: HOT_WATER, cooling: CHILLED_WATER, + plants: BOILER + CHILLER, condensers: TOWER }, + 'vrf' => { delivery: fan_coil('VRF terminal units'), heating: heat_pump(nil, nil), + cooling: dx('Variable refrigerant flow', condenser: 'CondenserPlant-Air', quantity: true), + condensers: AIR_CONDENSER } +}.freeze + +# example name => [conditioning, VentilationType or nil]. Ventilation pairs only with zone equipment. +EXAMPLES = CONDITIONING.keys.to_h { |name| [name, [name, nil]] }.merge( + 'ptac_ventilation_only' => ['ptac', 'Supply only'], + 'pthp_doas' => ['pthp', 'Dedicated outdoor air system'], + 'four_pipe_fan_coil_doas' => ['four_pipe_fan_coil', 'Dedicated outdoor air system'], + 'vrf_doas' => ['vrf', 'Dedicated outdoor air system'] +).freeze + +def hvac_system(spec, ventilation, premises) + heating = "#{spec[:heating]}" + cooling = "#{spec[:cooling]}" + delivery = "#{spec[:delivery]}" \ + '' + others = '' + if ventilation + heating += "#{NO_HEATING}" + cooling += "#{NO_COOLING}" + delivery += "#{SINGLE_ZONE_CAV}" \ + '' + others = '' \ + "#{ventilation}" \ + 'Stand-alone' \ + '' + end + zoning = spec[:zoning] ? "#{spec[:zoning]}" : '' + condensers = spec[:condensers] ? "#{spec[:condensers]}" : '' + plant_xml = "#{spec[:plants]}#{condensers}" + plants = plant_xml.empty? ? '' : "#{plant_xml}" + "#{plants}#{zoning}" \ + "#{heating}#{cooling}" \ + "#{delivery}#{others}#{premises}" +end + +base = File.read(BASE) +block = base[%r{.*?}m] or abort 'HVACSystem-1 not found' +premises = block[%r{.*?}m] or abort 'LinkedPremises not found' + +EXAMPLES.each do |name, (conditioning, ventilation)| + xml = base.sub(block, hvac_system(CONDITIONING.fetch(conditioning), ventilation, premises)) + File.write(File.join(__dir__, "l200_#{name}.xml"), xml) + puts "l200_#{name}.xml" +end diff --git a/spec/files/v2.7.0/l200_hvac/l200_four_pipe_fan_coil.xml b/spec/files/v2.7.0/l200_hvac/l200_four_pipe_fan_coil.xml new file mode 100644 index 0000000..d1ee87e --- /dev/null +++ b/spec/files/v2.7.0/l200_hvac/l200_four_pipe_fan_coil.xml @@ -0,0 +1,2292 @@ + + + + + + + + + Prototype Small Office in Denver + Here we record general problems / issues identified in a walkthrough survey. + + + City Custom Building ID + some ID + + + Custom ID 1 + some other ID + + +
+ + + Some address + + + Denver + CO + 80014 +
+ -104.830000 + 39.660000 + Commercial + Office + + 1 + 0 + 1 + 0 + true + false + + + Gross + 5500.000000 + + + + + + Conditioned + 5500.000000 + + + + + + 6500.000000 + 0.000000 + 0.213300 + 0.050000 + 2012 + 2000 + 2010 + 2020-03-01 + 2012 + +
+ Space function + Office + Office + + + Peak total occupants + 31.000000 + + + + + 40.000000 + Hours per week + + + 50.000000 + Weeks per year + + + + + Gross + 5500.000000 + + + Conditioned + 5500.000000 + + + Single zone +
+
+ Whole building + Rectangular + + + A1 + + + 909.012230 + + + + + 180.187860 + + + + + 42.086890 + + + + + B1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + C1 + + + 909.012230 + + + + + 180.187860 + + + + + 0.000000 + + + + + D1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + + + + 6444.999000 + Good + + + + + + + 3891.153600 + + + +
+
+ + + + + + + + Hot waterNatural gasVapor compressionElectric MotorCooling towerHot waterChilled water1Fan coil 4 pipe +
+ + + + + +
+
+
+ + + + + T8 + + + Standard Electronic + + 0.200000 + + 100.000000 + 5.500000 + 32.000000 + 4 + 1.000000 + 43 + false + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + T12 + + + Standard Electronic + 100.000000 + 1.582575 + 316.516000 + 1 + 1.000000 + 5 + true + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + LED + + + Standard Electronic + + 0.100000 + + 100.000000 + 2.752000 + 16.000000 + 4 + 1.000000 + 43 + false + + + + + + + Photocell + Continuous + + + + false + +
+ + + + + +
+
+
+
+ + + + + + + + 40.000000 + 123.000000 + + + Notes + + 1 + 3.600000 + Continuous + 123.000000 + 1.870180 + + Looped + Thermal Efficiency + 1.000000 + 40.000000 + 140.000000 + 1950.520000 + 11722.840000 + W + + + + + + + + + + 2000 + Electricity + Good + + + + +
+ +
+
+ 1 +
+
+ + + 0.536000 + 880.000000 + 880.000000 + Constant Volume + + + + + + 0.536000 + 872.000000 + 872.000000 + Variable Volume + + + + + + 0.536000 + 836.000000 + 836.000000 + Constant Volume + + + + + + 0.536000 + 830.000000 + 830.000000 + Variable Volume + + + + + + 0.536000 + 671.000000 + 671.000000 + Constant Volume + + + + + + 0.536000 + 664.000000 + 664.000000 + Variable Volume + + + + + + 0.536000 + 774.000000 + 774.000000 + Constant Volume + + + + + + 0.536000 + 766.000000 + 766.000000 + Variable Volume + + + + + + 0.536000 + 841.000000 + 841.000000 + Constant Volume + + + + + + 0.536000 + 833.000000 + 833.000000 + Variable Volume + + + + + + + + Wood frame + 0.547000 + + + + + Wood frame + 4.706000 + + + + + + + + Vinyl + Clear uncoated + Single pane + 3.241000 + 0.391000 + 0.391000 + + + + + + Vinyl + Low e + Triple pane + 0.300000 + 0.391000 + 0.391000 + + + + + Insulated metal + 0.500000 + + + Steel + 2.839000 + + + + + + + + 0.345000 + + + + Concrete poured + + + + + Miscellaneous Electric Load + 0.630000 + +
+ + + + + +
+
+
+
+ + + Notes on test + Tight + 0.151000 + ACHnatural + Blower door + +
+ +
+
+
+
+ + + Notes on test + +
+ +
+
+
+
+
+ + + + + Weekday + Occupied + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + Occupied + 06:00:00 + 07:00:00 + 11.000000 + + + Weekday + Occupied + 07:00:00 + 08:00:00 + 21.000000 + + + Weekday + Occupied + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Occupied + 12:00:00 + 13:00:00 + 53.000000 + + + Weekday + Occupied + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Occupied + 17:00:00 + 18:00:00 + 32.000000 + + + Weekday + Occupied + 18:00:00 + 22:00:00 + 11.000000 + + + Weekday + Occupied + 22:00:00 + 23:00:00 + 5.000000 + + + Weekday + Occupied + 23:00:00 + 23:59:59 + 0.000000 + + + Weekend + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + + + + +
+ +
+
+
+ + + + Weekday + Lighting + 00:00:00 + 05:00:00 + 18.000000 + + + Weekday + Lighting + 05:00:00 + 07:00:00 + 23.000000 + + + Weekday + Lighting + 07:00:00 + 08:00:00 + 42.000000 + + + Weekday + Lighting + 08:00:00 + 12:00:00 + 90.000000 + + + Weekday + Lighting + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + Lighting + 13:00:00 + 17:00:00 + 90.000000 + + + Weekday + Lighting + 17:00:00 + 18:00:00 + 61.000000 + + + Weekday + Lighting + 18:00:00 + 20:00:00 + 42.000000 + + + Weekday + Lighting + 20:00:00 + 22:00:00 + 32.000000 + + + Weekday + Lighting + 22:00:00 + 23:00:00 + 23.000000 + + + Weekday + Lighting + 23:00:00 + 23:59:59 + 18.000000 + + + Weekend + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + Holiday + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + + + + + + + + + + Weekday + Miscellaneous equipment + 00:00:00 + 08:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 12:00:00 + 13:00:00 + 94.000000 + + + Weekday + Miscellaneous equipment + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 17:00:00 + 18:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 18:00:00 + 23:59:59 + 20.000000 + + + Weekend + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + Holiday + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 19:00:00 + 100.000000 + + + Weekday + HVAC equipment + 19:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 07:00:00 + 60.000000 + + + Weekday + HVAC equipment + 07:00:00 + 12:00:00 + 100.000000 + + + Weekday + HVAC equipment + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + HVAC equipment + 13:00:00 + 18:00:00 + 100.000000 + + + Weekday + HVAC equipment + 18:00:00 + 20:00:00 + 60.000000 + + + Weekday + HVAC equipment + 20:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + +
+ + + + + + + + + + + Lighting + + + + Retrofit with light emitting diode technologies + + + + Individual system + This measure is designed to replace all fluorescent bulbs with LEDs + 1 + 50.000000 + 774.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + Fan + + + + Add VSD motor controller + + + + Individual system + This measure is designed to retrofit all RTU fans with a VSD + 1 + 750.000000 + 1250.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + + + + + + Electricity + This is required to document irregularities in monthly energy patterns (Std 211 6.1.2.1.j). No irregularities found. + kWh + All end uses + 67334.150000 + 229.753657 + + + + + + + + + + + + + + + kW + 26.040000 + 26.040000 + 4613.820000 + + + + + + Natural gas + No irregularities in monthly energy consumption found. + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + + + + + + 540.830000 + + + + + + Electricity + kWh + Interior lighting + 28.705000 + 20062.690000 + 68.453898 + + + + Electricity + kWh + Heating + 6.722000 + 4698.230000 + 16.030361 + + + + Electricity + kWh + Cooling + 8.769000 + 6128.870000 + 20.911704 + + + + Electricity + kWh + Domestic hot water + 10.281000 + 7185.370000 + 24.516482 + + + + Electricity + kWh + Plug load + 21.379000 + 14942.150000 + 50.982616 + + + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 5933.100000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 5446.100000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 5736.490000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 4980.500000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 5187.210000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 5842.950000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 5801.730000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 6220.160000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 5682.870000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 5571.930000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 5525.150000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 5405.940000 + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 1.720000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 1.250000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.430000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.010000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.200000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.400000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 4.300000 + + + + Peak + On-peak + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 23.580000 + + + + Peak + On-peak + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 25.380000 + + + + Peak + On-peak + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 26.040000 + + + + Peak + On-peak + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 24.450000 + + + + Peak + On-peak + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 17.030000 + + + + Peak + On-peak + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 22.710000 + + + + Peak + On-peak + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 22.010000 + + + + Peak + On-peak + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 21.810000 + + + + Peak + On-peak + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 20.630000 + + + + Peak + On-peak + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 21.870000 + + + + Peak + On-peak + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 21.630000 + + + + Peak + On-peak + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 21.780000 + + + + Load factor + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 0.320000 + + + + Load factor + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.300000 + + + + Load factor + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.280000 + + + + Load factor + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Load factor + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.360000 + + + + Load factor + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 0.330000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 332.160000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 306.290000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 321.720000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 281.540000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 292.530000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 534.100000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 530.450000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 567.490000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 519.930000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 312.970000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 310.490000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 304.150000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 46.690000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 45.930000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 44.550000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 44.580000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 43.900000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 44.210000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 44.530000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 50.920000 + + + + + + 238473.656550 + 43.358800 + 737088.900000 + 134.000000 + 238473.656550 + 43.358800 + 238.473657 + 0.000000 + 0.000000 + 0.000000 + 4952.480000 + 0.900000 + + + + + + + + + + + + + + 2022-06-01 + + + Portfolio Manager + 2019 + 80.000000 + + + + + 238473.656550 + 43.358800 + 4952.480000 + + + + + + + + + + + + + 39070.530000 + 995 + 89.000000 + + + + + 190348.600000 + 34.600000 + 4846.040000 + 0.881000 + + + + + + + + + + + + + + TMY3 + Finished + + + + + + + Electricity + kWh + All end uses + 67334.150000 + 229.753657 + kW + 26.040000 + 26.040000 + + + Natural gas + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + POM-LEDs + + + + + + + Capital + 35.713000 + 772 + + + Electricity + kWh + 11524.540000 + + + Natural gas + MMBtu + 0.000000 + + + 3.220000 + 0 + 0.000000 + 0.000000 + 1 + 824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 1.070000 + 0.000000 + + + + + + + + + + POM-VSDs + + + + + + + Capital + 5.175000 + 9 + + + Electricity + kWh + 207.240000 + + + Natural gas + MMBtu + 4.460000 + + + 0.420000 + 0 + 0.000000 + 0.000000 + 1 + 2000.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 230.150000 + 0.000000 + + + + + + + + + + POM-LEDs-VSDs + + + + + + + + Capital + 41.827000 + 781 + + + Electricity + kWh + 11701.620000 + + + Natural gas + MMBtu + 1.890000 + + + 4.700000 + 0 + 0.000000 + 0.000000 + 1 + 2824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 3.620000 + 0.000000 + + + + + + + + + + Level 2: Energy Survey and Analysis + + + + + + + + + --06-01 + --09-30 + --06-01 + --09-30 + 0.088520 + 0.000000 + + + --01-01 + --05-31 + --01-01 + --05-31 + 0.053140 + 0.000000 + + + --10-01 + --12-31 + --10-01 + --12-31 + 0.053140 + 0.000000 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 16.880000 + + + 12345 + Xcel Energy + + Some-meter-ID + + some-account-number + Building Owner + + + + + + + + + --01-01 + --12-31 + 0.163600 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 43.880000 + + + Xcel Energy + + Some-meter-ID + + some-other-account-number + Building Owner + + + + + + + + + + + + + + Owner + + The dude + Some big company + + + 123-456-7890 + + + + + the.dude@somebigco.net + + + + + + Energy Auditor + + The lady + Auditeers + + + 123-456-7890 + + + + + the.lady@the-three-auditeers.com + + + + + + + diff --git a/spec/files/v2.7.0/l200_hvac/l200_four_pipe_fan_coil_doas.xml b/spec/files/v2.7.0/l200_hvac/l200_four_pipe_fan_coil_doas.xml new file mode 100644 index 0000000..280849c --- /dev/null +++ b/spec/files/v2.7.0/l200_hvac/l200_four_pipe_fan_coil_doas.xml @@ -0,0 +1,2292 @@ + + + + + + + + + Prototype Small Office in Denver + Here we record general problems / issues identified in a walkthrough survey. + + + City Custom Building ID + some ID + + + Custom ID 1 + some other ID + + +
+ + + Some address + + + Denver + CO + 80014 +
+ -104.830000 + 39.660000 + Commercial + Office + + 1 + 0 + 1 + 0 + true + false + + + Gross + 5500.000000 + + + + + + Conditioned + 5500.000000 + + + + + + 6500.000000 + 0.000000 + 0.213300 + 0.050000 + 2012 + 2000 + 2010 + 2020-03-01 + 2012 + +
+ Space function + Office + Office + + + Peak total occupants + 31.000000 + + + + + 40.000000 + Hours per week + + + 50.000000 + Weeks per year + + + + + Gross + 5500.000000 + + + Conditioned + 5500.000000 + + + Single zone +
+
+ Whole building + Rectangular + + + A1 + + + 909.012230 + + + + + 180.187860 + + + + + 42.086890 + + + + + B1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + C1 + + + 909.012230 + + + + + 180.187860 + + + + + 0.000000 + + + + + D1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + + + + 6444.999000 + Good + + + + + + + 3891.153600 + + + +
+
+ + + + + + + + Hot waterNatural gasVapor compressionElectric MotorCooling towerHot waterChilled water1Fan coil 4 pipeCentral fanCAV terminal box no reheatNoneDedicated outdoor air systemStand-alone +
+ + + + + +
+
+
+ + + + + T8 + + + Standard Electronic + + 0.200000 + + 100.000000 + 5.500000 + 32.000000 + 4 + 1.000000 + 43 + false + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + T12 + + + Standard Electronic + 100.000000 + 1.582575 + 316.516000 + 1 + 1.000000 + 5 + true + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + LED + + + Standard Electronic + + 0.100000 + + 100.000000 + 2.752000 + 16.000000 + 4 + 1.000000 + 43 + false + + + + + + + Photocell + Continuous + + + + false + +
+ + + + + +
+
+
+
+ + + + + + + + 40.000000 + 123.000000 + + + Notes + + 1 + 3.600000 + Continuous + 123.000000 + 1.870180 + + Looped + Thermal Efficiency + 1.000000 + 40.000000 + 140.000000 + 1950.520000 + 11722.840000 + W + + + + + + + + + + 2000 + Electricity + Good + + + + +
+ +
+
+ 1 +
+
+ + + 0.536000 + 880.000000 + 880.000000 + Constant Volume + + + + + + 0.536000 + 872.000000 + 872.000000 + Variable Volume + + + + + + 0.536000 + 836.000000 + 836.000000 + Constant Volume + + + + + + 0.536000 + 830.000000 + 830.000000 + Variable Volume + + + + + + 0.536000 + 671.000000 + 671.000000 + Constant Volume + + + + + + 0.536000 + 664.000000 + 664.000000 + Variable Volume + + + + + + 0.536000 + 774.000000 + 774.000000 + Constant Volume + + + + + + 0.536000 + 766.000000 + 766.000000 + Variable Volume + + + + + + 0.536000 + 841.000000 + 841.000000 + Constant Volume + + + + + + 0.536000 + 833.000000 + 833.000000 + Variable Volume + + + + + + + + Wood frame + 0.547000 + + + + + Wood frame + 4.706000 + + + + + + + + Vinyl + Clear uncoated + Single pane + 3.241000 + 0.391000 + 0.391000 + + + + + + Vinyl + Low e + Triple pane + 0.300000 + 0.391000 + 0.391000 + + + + + Insulated metal + 0.500000 + + + Steel + 2.839000 + + + + + + + + 0.345000 + + + + Concrete poured + + + + + Miscellaneous Electric Load + 0.630000 + +
+ + + + + +
+
+
+
+ + + Notes on test + Tight + 0.151000 + ACHnatural + Blower door + +
+ +
+
+
+
+ + + Notes on test + +
+ +
+
+
+
+
+ + + + + Weekday + Occupied + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + Occupied + 06:00:00 + 07:00:00 + 11.000000 + + + Weekday + Occupied + 07:00:00 + 08:00:00 + 21.000000 + + + Weekday + Occupied + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Occupied + 12:00:00 + 13:00:00 + 53.000000 + + + Weekday + Occupied + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Occupied + 17:00:00 + 18:00:00 + 32.000000 + + + Weekday + Occupied + 18:00:00 + 22:00:00 + 11.000000 + + + Weekday + Occupied + 22:00:00 + 23:00:00 + 5.000000 + + + Weekday + Occupied + 23:00:00 + 23:59:59 + 0.000000 + + + Weekend + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + + + + +
+ +
+
+
+ + + + Weekday + Lighting + 00:00:00 + 05:00:00 + 18.000000 + + + Weekday + Lighting + 05:00:00 + 07:00:00 + 23.000000 + + + Weekday + Lighting + 07:00:00 + 08:00:00 + 42.000000 + + + Weekday + Lighting + 08:00:00 + 12:00:00 + 90.000000 + + + Weekday + Lighting + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + Lighting + 13:00:00 + 17:00:00 + 90.000000 + + + Weekday + Lighting + 17:00:00 + 18:00:00 + 61.000000 + + + Weekday + Lighting + 18:00:00 + 20:00:00 + 42.000000 + + + Weekday + Lighting + 20:00:00 + 22:00:00 + 32.000000 + + + Weekday + Lighting + 22:00:00 + 23:00:00 + 23.000000 + + + Weekday + Lighting + 23:00:00 + 23:59:59 + 18.000000 + + + Weekend + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + Holiday + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + + + + + + + + + + Weekday + Miscellaneous equipment + 00:00:00 + 08:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 12:00:00 + 13:00:00 + 94.000000 + + + Weekday + Miscellaneous equipment + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 17:00:00 + 18:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 18:00:00 + 23:59:59 + 20.000000 + + + Weekend + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + Holiday + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 19:00:00 + 100.000000 + + + Weekday + HVAC equipment + 19:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 07:00:00 + 60.000000 + + + Weekday + HVAC equipment + 07:00:00 + 12:00:00 + 100.000000 + + + Weekday + HVAC equipment + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + HVAC equipment + 13:00:00 + 18:00:00 + 100.000000 + + + Weekday + HVAC equipment + 18:00:00 + 20:00:00 + 60.000000 + + + Weekday + HVAC equipment + 20:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + +
+ + + + + + + + + + + Lighting + + + + Retrofit with light emitting diode technologies + + + + Individual system + This measure is designed to replace all fluorescent bulbs with LEDs + 1 + 50.000000 + 774.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + Fan + + + + Add VSD motor controller + + + + Individual system + This measure is designed to retrofit all RTU fans with a VSD + 1 + 750.000000 + 1250.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + + + + + + Electricity + This is required to document irregularities in monthly energy patterns (Std 211 6.1.2.1.j). No irregularities found. + kWh + All end uses + 67334.150000 + 229.753657 + + + + + + + + + + + + + + + kW + 26.040000 + 26.040000 + 4613.820000 + + + + + + Natural gas + No irregularities in monthly energy consumption found. + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + + + + + + 540.830000 + + + + + + Electricity + kWh + Interior lighting + 28.705000 + 20062.690000 + 68.453898 + + + + Electricity + kWh + Heating + 6.722000 + 4698.230000 + 16.030361 + + + + Electricity + kWh + Cooling + 8.769000 + 6128.870000 + 20.911704 + + + + Electricity + kWh + Domestic hot water + 10.281000 + 7185.370000 + 24.516482 + + + + Electricity + kWh + Plug load + 21.379000 + 14942.150000 + 50.982616 + + + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 5933.100000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 5446.100000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 5736.490000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 4980.500000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 5187.210000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 5842.950000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 5801.730000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 6220.160000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 5682.870000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 5571.930000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 5525.150000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 5405.940000 + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 1.720000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 1.250000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.430000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.010000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.200000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.400000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 4.300000 + + + + Peak + On-peak + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 23.580000 + + + + Peak + On-peak + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 25.380000 + + + + Peak + On-peak + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 26.040000 + + + + Peak + On-peak + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 24.450000 + + + + Peak + On-peak + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 17.030000 + + + + Peak + On-peak + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 22.710000 + + + + Peak + On-peak + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 22.010000 + + + + Peak + On-peak + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 21.810000 + + + + Peak + On-peak + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 20.630000 + + + + Peak + On-peak + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 21.870000 + + + + Peak + On-peak + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 21.630000 + + + + Peak + On-peak + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 21.780000 + + + + Load factor + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 0.320000 + + + + Load factor + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.300000 + + + + Load factor + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.280000 + + + + Load factor + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Load factor + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.360000 + + + + Load factor + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 0.330000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 332.160000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 306.290000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 321.720000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 281.540000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 292.530000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 534.100000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 530.450000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 567.490000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 519.930000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 312.970000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 310.490000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 304.150000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 46.690000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 45.930000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 44.550000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 44.580000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 43.900000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 44.210000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 44.530000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 50.920000 + + + + + + 238473.656550 + 43.358800 + 737088.900000 + 134.000000 + 238473.656550 + 43.358800 + 238.473657 + 0.000000 + 0.000000 + 0.000000 + 4952.480000 + 0.900000 + + + + + + + + + + + + + + 2022-06-01 + + + Portfolio Manager + 2019 + 80.000000 + + + + + 238473.656550 + 43.358800 + 4952.480000 + + + + + + + + + + + + + 39070.530000 + 995 + 89.000000 + + + + + 190348.600000 + 34.600000 + 4846.040000 + 0.881000 + + + + + + + + + + + + + + TMY3 + Finished + + + + + + + Electricity + kWh + All end uses + 67334.150000 + 229.753657 + kW + 26.040000 + 26.040000 + + + Natural gas + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + POM-LEDs + + + + + + + Capital + 35.713000 + 772 + + + Electricity + kWh + 11524.540000 + + + Natural gas + MMBtu + 0.000000 + + + 3.220000 + 0 + 0.000000 + 0.000000 + 1 + 824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 1.070000 + 0.000000 + + + + + + + + + + POM-VSDs + + + + + + + Capital + 5.175000 + 9 + + + Electricity + kWh + 207.240000 + + + Natural gas + MMBtu + 4.460000 + + + 0.420000 + 0 + 0.000000 + 0.000000 + 1 + 2000.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 230.150000 + 0.000000 + + + + + + + + + + POM-LEDs-VSDs + + + + + + + + Capital + 41.827000 + 781 + + + Electricity + kWh + 11701.620000 + + + Natural gas + MMBtu + 1.890000 + + + 4.700000 + 0 + 0.000000 + 0.000000 + 1 + 2824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 3.620000 + 0.000000 + + + + + + + + + + Level 2: Energy Survey and Analysis + + + + + + + + + --06-01 + --09-30 + --06-01 + --09-30 + 0.088520 + 0.000000 + + + --01-01 + --05-31 + --01-01 + --05-31 + 0.053140 + 0.000000 + + + --10-01 + --12-31 + --10-01 + --12-31 + 0.053140 + 0.000000 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 16.880000 + + + 12345 + Xcel Energy + + Some-meter-ID + + some-account-number + Building Owner + + + + + + + + + --01-01 + --12-31 + 0.163600 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 43.880000 + + + Xcel Energy + + Some-meter-ID + + some-other-account-number + Building Owner + + + + + + + + + + + + + + Owner + + The dude + Some big company + + + 123-456-7890 + + + + + the.dude@somebigco.net + + + + + + Energy Auditor + + The lady + Auditeers + + + 123-456-7890 + + + + + the.lady@the-three-auditeers.com + + + + + + + diff --git a/spec/files/v2.7.0/l200_hvac/l200_packaged_vav_hw_reheat.xml b/spec/files/v2.7.0/l200_hvac/l200_packaged_vav_hw_reheat.xml new file mode 100644 index 0000000..0cb9edc --- /dev/null +++ b/spec/files/v2.7.0/l200_hvac/l200_packaged_vav_hw_reheat.xml @@ -0,0 +1,2292 @@ + + + + + + + + + Prototype Small Office in Denver + Here we record general problems / issues identified in a walkthrough survey. + + + City Custom Building ID + some ID + + + Custom ID 1 + some other ID + + +
+ + + Some address + + + Denver + CO + 80014 +
+ -104.830000 + 39.660000 + Commercial + Office + + 1 + 0 + 1 + 0 + true + false + + + Gross + 5500.000000 + + + + + + Conditioned + 5500.000000 + + + + + + 6500.000000 + 0.000000 + 0.213300 + 0.050000 + 2012 + 2000 + 2010 + 2020-03-01 + 2012 + +
+ Space function + Office + Office + + + Peak total occupants + 31.000000 + + + + + 40.000000 + Hours per week + + + 50.000000 + Weeks per year + + + + + Gross + 5500.000000 + + + Conditioned + 5500.000000 + + + Single zone +
+
+ Whole building + Rectangular + + + A1 + + + 909.012230 + + + + + 180.187860 + + + + + 42.086890 + + + + + B1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + C1 + + + 909.012230 + + + + + 180.187860 + + + + + 0.000000 + + + + + D1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + + + + 6444.999000 + Good + + + + + + + 3891.153600 + + + +
+
+ + + + + + + + Hot waterNatural gasMulti zoneHot waterPackaged/unitary direct expansion/RTU1Central fanVAV terminal box not fan powered with reheatHeating plant +
+ + + + + +
+
+
+ + + + + T8 + + + Standard Electronic + + 0.200000 + + 100.000000 + 5.500000 + 32.000000 + 4 + 1.000000 + 43 + false + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + T12 + + + Standard Electronic + 100.000000 + 1.582575 + 316.516000 + 1 + 1.000000 + 5 + true + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + LED + + + Standard Electronic + + 0.100000 + + 100.000000 + 2.752000 + 16.000000 + 4 + 1.000000 + 43 + false + + + + + + + Photocell + Continuous + + + + false + +
+ + + + + +
+
+
+
+ + + + + + + + 40.000000 + 123.000000 + + + Notes + + 1 + 3.600000 + Continuous + 123.000000 + 1.870180 + + Looped + Thermal Efficiency + 1.000000 + 40.000000 + 140.000000 + 1950.520000 + 11722.840000 + W + + + + + + + + + + 2000 + Electricity + Good + + + + +
+ +
+
+ 1 +
+
+ + + 0.536000 + 880.000000 + 880.000000 + Constant Volume + + + + + + 0.536000 + 872.000000 + 872.000000 + Variable Volume + + + + + + 0.536000 + 836.000000 + 836.000000 + Constant Volume + + + + + + 0.536000 + 830.000000 + 830.000000 + Variable Volume + + + + + + 0.536000 + 671.000000 + 671.000000 + Constant Volume + + + + + + 0.536000 + 664.000000 + 664.000000 + Variable Volume + + + + + + 0.536000 + 774.000000 + 774.000000 + Constant Volume + + + + + + 0.536000 + 766.000000 + 766.000000 + Variable Volume + + + + + + 0.536000 + 841.000000 + 841.000000 + Constant Volume + + + + + + 0.536000 + 833.000000 + 833.000000 + Variable Volume + + + + + + + + Wood frame + 0.547000 + + + + + Wood frame + 4.706000 + + + + + + + + Vinyl + Clear uncoated + Single pane + 3.241000 + 0.391000 + 0.391000 + + + + + + Vinyl + Low e + Triple pane + 0.300000 + 0.391000 + 0.391000 + + + + + Insulated metal + 0.500000 + + + Steel + 2.839000 + + + + + + + + 0.345000 + + + + Concrete poured + + + + + Miscellaneous Electric Load + 0.630000 + +
+ + + + + +
+
+
+
+ + + Notes on test + Tight + 0.151000 + ACHnatural + Blower door + +
+ +
+
+
+
+ + + Notes on test + +
+ +
+
+
+
+
+ + + + + Weekday + Occupied + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + Occupied + 06:00:00 + 07:00:00 + 11.000000 + + + Weekday + Occupied + 07:00:00 + 08:00:00 + 21.000000 + + + Weekday + Occupied + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Occupied + 12:00:00 + 13:00:00 + 53.000000 + + + Weekday + Occupied + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Occupied + 17:00:00 + 18:00:00 + 32.000000 + + + Weekday + Occupied + 18:00:00 + 22:00:00 + 11.000000 + + + Weekday + Occupied + 22:00:00 + 23:00:00 + 5.000000 + + + Weekday + Occupied + 23:00:00 + 23:59:59 + 0.000000 + + + Weekend + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + + + + +
+ +
+
+
+ + + + Weekday + Lighting + 00:00:00 + 05:00:00 + 18.000000 + + + Weekday + Lighting + 05:00:00 + 07:00:00 + 23.000000 + + + Weekday + Lighting + 07:00:00 + 08:00:00 + 42.000000 + + + Weekday + Lighting + 08:00:00 + 12:00:00 + 90.000000 + + + Weekday + Lighting + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + Lighting + 13:00:00 + 17:00:00 + 90.000000 + + + Weekday + Lighting + 17:00:00 + 18:00:00 + 61.000000 + + + Weekday + Lighting + 18:00:00 + 20:00:00 + 42.000000 + + + Weekday + Lighting + 20:00:00 + 22:00:00 + 32.000000 + + + Weekday + Lighting + 22:00:00 + 23:00:00 + 23.000000 + + + Weekday + Lighting + 23:00:00 + 23:59:59 + 18.000000 + + + Weekend + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + Holiday + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + + + + + + + + + + Weekday + Miscellaneous equipment + 00:00:00 + 08:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 12:00:00 + 13:00:00 + 94.000000 + + + Weekday + Miscellaneous equipment + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 17:00:00 + 18:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 18:00:00 + 23:59:59 + 20.000000 + + + Weekend + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + Holiday + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 19:00:00 + 100.000000 + + + Weekday + HVAC equipment + 19:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 07:00:00 + 60.000000 + + + Weekday + HVAC equipment + 07:00:00 + 12:00:00 + 100.000000 + + + Weekday + HVAC equipment + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + HVAC equipment + 13:00:00 + 18:00:00 + 100.000000 + + + Weekday + HVAC equipment + 18:00:00 + 20:00:00 + 60.000000 + + + Weekday + HVAC equipment + 20:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + +
+ + + + + + + + + + + Lighting + + + + Retrofit with light emitting diode technologies + + + + Individual system + This measure is designed to replace all fluorescent bulbs with LEDs + 1 + 50.000000 + 774.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + Fan + + + + Add VSD motor controller + + + + Individual system + This measure is designed to retrofit all RTU fans with a VSD + 1 + 750.000000 + 1250.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + + + + + + Electricity + This is required to document irregularities in monthly energy patterns (Std 211 6.1.2.1.j). No irregularities found. + kWh + All end uses + 67334.150000 + 229.753657 + + + + + + + + + + + + + + + kW + 26.040000 + 26.040000 + 4613.820000 + + + + + + Natural gas + No irregularities in monthly energy consumption found. + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + + + + + + 540.830000 + + + + + + Electricity + kWh + Interior lighting + 28.705000 + 20062.690000 + 68.453898 + + + + Electricity + kWh + Heating + 6.722000 + 4698.230000 + 16.030361 + + + + Electricity + kWh + Cooling + 8.769000 + 6128.870000 + 20.911704 + + + + Electricity + kWh + Domestic hot water + 10.281000 + 7185.370000 + 24.516482 + + + + Electricity + kWh + Plug load + 21.379000 + 14942.150000 + 50.982616 + + + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 5933.100000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 5446.100000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 5736.490000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 4980.500000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 5187.210000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 5842.950000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 5801.730000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 6220.160000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 5682.870000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 5571.930000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 5525.150000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 5405.940000 + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 1.720000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 1.250000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.430000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.010000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.200000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.400000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 4.300000 + + + + Peak + On-peak + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 23.580000 + + + + Peak + On-peak + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 25.380000 + + + + Peak + On-peak + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 26.040000 + + + + Peak + On-peak + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 24.450000 + + + + Peak + On-peak + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 17.030000 + + + + Peak + On-peak + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 22.710000 + + + + Peak + On-peak + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 22.010000 + + + + Peak + On-peak + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 21.810000 + + + + Peak + On-peak + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 20.630000 + + + + Peak + On-peak + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 21.870000 + + + + Peak + On-peak + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 21.630000 + + + + Peak + On-peak + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 21.780000 + + + + Load factor + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 0.320000 + + + + Load factor + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.300000 + + + + Load factor + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.280000 + + + + Load factor + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Load factor + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.360000 + + + + Load factor + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 0.330000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 332.160000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 306.290000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 321.720000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 281.540000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 292.530000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 534.100000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 530.450000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 567.490000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 519.930000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 312.970000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 310.490000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 304.150000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 46.690000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 45.930000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 44.550000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 44.580000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 43.900000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 44.210000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 44.530000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 50.920000 + + + + + + 238473.656550 + 43.358800 + 737088.900000 + 134.000000 + 238473.656550 + 43.358800 + 238.473657 + 0.000000 + 0.000000 + 0.000000 + 4952.480000 + 0.900000 + + + + + + + + + + + + + + 2022-06-01 + + + Portfolio Manager + 2019 + 80.000000 + + + + + 238473.656550 + 43.358800 + 4952.480000 + + + + + + + + + + + + + 39070.530000 + 995 + 89.000000 + + + + + 190348.600000 + 34.600000 + 4846.040000 + 0.881000 + + + + + + + + + + + + + + TMY3 + Finished + + + + + + + Electricity + kWh + All end uses + 67334.150000 + 229.753657 + kW + 26.040000 + 26.040000 + + + Natural gas + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + POM-LEDs + + + + + + + Capital + 35.713000 + 772 + + + Electricity + kWh + 11524.540000 + + + Natural gas + MMBtu + 0.000000 + + + 3.220000 + 0 + 0.000000 + 0.000000 + 1 + 824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 1.070000 + 0.000000 + + + + + + + + + + POM-VSDs + + + + + + + Capital + 5.175000 + 9 + + + Electricity + kWh + 207.240000 + + + Natural gas + MMBtu + 4.460000 + + + 0.420000 + 0 + 0.000000 + 0.000000 + 1 + 2000.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 230.150000 + 0.000000 + + + + + + + + + + POM-LEDs-VSDs + + + + + + + + Capital + 41.827000 + 781 + + + Electricity + kWh + 11701.620000 + + + Natural gas + MMBtu + 1.890000 + + + 4.700000 + 0 + 0.000000 + 0.000000 + 1 + 2824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 3.620000 + 0.000000 + + + + + + + + + + Level 2: Energy Survey and Analysis + + + + + + + + + --06-01 + --09-30 + --06-01 + --09-30 + 0.088520 + 0.000000 + + + --01-01 + --05-31 + --01-01 + --05-31 + 0.053140 + 0.000000 + + + --10-01 + --12-31 + --10-01 + --12-31 + 0.053140 + 0.000000 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 16.880000 + + + 12345 + Xcel Energy + + Some-meter-ID + + some-account-number + Building Owner + + + + + + + + + --01-01 + --12-31 + 0.163600 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 43.880000 + + + Xcel Energy + + Some-meter-ID + + some-other-account-number + Building Owner + + + + + + + + + + + + + + Owner + + The dude + Some big company + + + 123-456-7890 + + + + + the.dude@somebigco.net + + + + + + Energy Auditor + + The lady + Auditeers + + + 123-456-7890 + + + + + the.lady@the-three-auditeers.com + + + + + + + diff --git a/spec/files/v2.7.0/l200_hvac/l200_ptac.xml b/spec/files/v2.7.0/l200_hvac/l200_ptac.xml new file mode 100644 index 0000000..e28f457 --- /dev/null +++ b/spec/files/v2.7.0/l200_hvac/l200_ptac.xml @@ -0,0 +1,2292 @@ + + + + + + + + + Prototype Small Office in Denver + Here we record general problems / issues identified in a walkthrough survey. + + + City Custom Building ID + some ID + + + Custom ID 1 + some other ID + + +
+ + + Some address + + + Denver + CO + 80014 +
+ -104.830000 + 39.660000 + Commercial + Office + + 1 + 0 + 1 + 0 + true + false + + + Gross + 5500.000000 + + + + + + Conditioned + 5500.000000 + + + + + + 6500.000000 + 0.000000 + 0.213300 + 0.050000 + 2012 + 2000 + 2010 + 2020-03-01 + 2012 + +
+ Space function + Office + Office + + + Peak total occupants + 31.000000 + + + + + 40.000000 + Hours per week + + + 50.000000 + Weeks per year + + + + + Gross + 5500.000000 + + + Conditioned + 5500.000000 + + + Single zone +
+
+ Whole building + Rectangular + + + A1 + + + 909.012230 + + + + + 180.187860 + + + + + 42.086890 + + + + + B1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + C1 + + + 909.012230 + + + + + 180.187860 + + + + + 0.000000 + + + + + D1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + + + + 6444.999000 + Good + + + + + + + 3891.153600 + + + +
+
+ + + + + + + + Packaged terminal air conditioner (PTAC) +
+ + + + + +
+
+
+ + + + + T8 + + + Standard Electronic + + 0.200000 + + 100.000000 + 5.500000 + 32.000000 + 4 + 1.000000 + 43 + false + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + T12 + + + Standard Electronic + 100.000000 + 1.582575 + 316.516000 + 1 + 1.000000 + 5 + true + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + LED + + + Standard Electronic + + 0.100000 + + 100.000000 + 2.752000 + 16.000000 + 4 + 1.000000 + 43 + false + + + + + + + Photocell + Continuous + + + + false + +
+ + + + + +
+
+
+
+ + + + + + + + 40.000000 + 123.000000 + + + Notes + + 1 + 3.600000 + Continuous + 123.000000 + 1.870180 + + Looped + Thermal Efficiency + 1.000000 + 40.000000 + 140.000000 + 1950.520000 + 11722.840000 + W + + + + + + + + + + 2000 + Electricity + Good + + + + +
+ +
+
+ 1 +
+
+ + + 0.536000 + 880.000000 + 880.000000 + Constant Volume + + + + + + 0.536000 + 872.000000 + 872.000000 + Variable Volume + + + + + + 0.536000 + 836.000000 + 836.000000 + Constant Volume + + + + + + 0.536000 + 830.000000 + 830.000000 + Variable Volume + + + + + + 0.536000 + 671.000000 + 671.000000 + Constant Volume + + + + + + 0.536000 + 664.000000 + 664.000000 + Variable Volume + + + + + + 0.536000 + 774.000000 + 774.000000 + Constant Volume + + + + + + 0.536000 + 766.000000 + 766.000000 + Variable Volume + + + + + + 0.536000 + 841.000000 + 841.000000 + Constant Volume + + + + + + 0.536000 + 833.000000 + 833.000000 + Variable Volume + + + + + + + + Wood frame + 0.547000 + + + + + Wood frame + 4.706000 + + + + + + + + Vinyl + Clear uncoated + Single pane + 3.241000 + 0.391000 + 0.391000 + + + + + + Vinyl + Low e + Triple pane + 0.300000 + 0.391000 + 0.391000 + + + + + Insulated metal + 0.500000 + + + Steel + 2.839000 + + + + + + + + 0.345000 + + + + Concrete poured + + + + + Miscellaneous Electric Load + 0.630000 + +
+ + + + + +
+
+
+
+ + + Notes on test + Tight + 0.151000 + ACHnatural + Blower door + +
+ +
+
+
+
+ + + Notes on test + +
+ +
+
+
+
+
+ + + + + Weekday + Occupied + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + Occupied + 06:00:00 + 07:00:00 + 11.000000 + + + Weekday + Occupied + 07:00:00 + 08:00:00 + 21.000000 + + + Weekday + Occupied + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Occupied + 12:00:00 + 13:00:00 + 53.000000 + + + Weekday + Occupied + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Occupied + 17:00:00 + 18:00:00 + 32.000000 + + + Weekday + Occupied + 18:00:00 + 22:00:00 + 11.000000 + + + Weekday + Occupied + 22:00:00 + 23:00:00 + 5.000000 + + + Weekday + Occupied + 23:00:00 + 23:59:59 + 0.000000 + + + Weekend + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + + + + +
+ +
+
+
+ + + + Weekday + Lighting + 00:00:00 + 05:00:00 + 18.000000 + + + Weekday + Lighting + 05:00:00 + 07:00:00 + 23.000000 + + + Weekday + Lighting + 07:00:00 + 08:00:00 + 42.000000 + + + Weekday + Lighting + 08:00:00 + 12:00:00 + 90.000000 + + + Weekday + Lighting + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + Lighting + 13:00:00 + 17:00:00 + 90.000000 + + + Weekday + Lighting + 17:00:00 + 18:00:00 + 61.000000 + + + Weekday + Lighting + 18:00:00 + 20:00:00 + 42.000000 + + + Weekday + Lighting + 20:00:00 + 22:00:00 + 32.000000 + + + Weekday + Lighting + 22:00:00 + 23:00:00 + 23.000000 + + + Weekday + Lighting + 23:00:00 + 23:59:59 + 18.000000 + + + Weekend + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + Holiday + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + + + + + + + + + + Weekday + Miscellaneous equipment + 00:00:00 + 08:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 12:00:00 + 13:00:00 + 94.000000 + + + Weekday + Miscellaneous equipment + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 17:00:00 + 18:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 18:00:00 + 23:59:59 + 20.000000 + + + Weekend + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + Holiday + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 19:00:00 + 100.000000 + + + Weekday + HVAC equipment + 19:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 07:00:00 + 60.000000 + + + Weekday + HVAC equipment + 07:00:00 + 12:00:00 + 100.000000 + + + Weekday + HVAC equipment + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + HVAC equipment + 13:00:00 + 18:00:00 + 100.000000 + + + Weekday + HVAC equipment + 18:00:00 + 20:00:00 + 60.000000 + + + Weekday + HVAC equipment + 20:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + +
+ + + + + + + + + + + Lighting + + + + Retrofit with light emitting diode technologies + + + + Individual system + This measure is designed to replace all fluorescent bulbs with LEDs + 1 + 50.000000 + 774.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + Fan + + + + Add VSD motor controller + + + + Individual system + This measure is designed to retrofit all RTU fans with a VSD + 1 + 750.000000 + 1250.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + + + + + + Electricity + This is required to document irregularities in monthly energy patterns (Std 211 6.1.2.1.j). No irregularities found. + kWh + All end uses + 67334.150000 + 229.753657 + + + + + + + + + + + + + + + kW + 26.040000 + 26.040000 + 4613.820000 + + + + + + Natural gas + No irregularities in monthly energy consumption found. + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + + + + + + 540.830000 + + + + + + Electricity + kWh + Interior lighting + 28.705000 + 20062.690000 + 68.453898 + + + + Electricity + kWh + Heating + 6.722000 + 4698.230000 + 16.030361 + + + + Electricity + kWh + Cooling + 8.769000 + 6128.870000 + 20.911704 + + + + Electricity + kWh + Domestic hot water + 10.281000 + 7185.370000 + 24.516482 + + + + Electricity + kWh + Plug load + 21.379000 + 14942.150000 + 50.982616 + + + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 5933.100000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 5446.100000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 5736.490000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 4980.500000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 5187.210000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 5842.950000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 5801.730000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 6220.160000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 5682.870000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 5571.930000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 5525.150000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 5405.940000 + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 1.720000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 1.250000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.430000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.010000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.200000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.400000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 4.300000 + + + + Peak + On-peak + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 23.580000 + + + + Peak + On-peak + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 25.380000 + + + + Peak + On-peak + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 26.040000 + + + + Peak + On-peak + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 24.450000 + + + + Peak + On-peak + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 17.030000 + + + + Peak + On-peak + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 22.710000 + + + + Peak + On-peak + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 22.010000 + + + + Peak + On-peak + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 21.810000 + + + + Peak + On-peak + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 20.630000 + + + + Peak + On-peak + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 21.870000 + + + + Peak + On-peak + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 21.630000 + + + + Peak + On-peak + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 21.780000 + + + + Load factor + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 0.320000 + + + + Load factor + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.300000 + + + + Load factor + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.280000 + + + + Load factor + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Load factor + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.360000 + + + + Load factor + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 0.330000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 332.160000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 306.290000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 321.720000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 281.540000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 292.530000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 534.100000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 530.450000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 567.490000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 519.930000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 312.970000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 310.490000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 304.150000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 46.690000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 45.930000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 44.550000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 44.580000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 43.900000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 44.210000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 44.530000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 50.920000 + + + + + + 238473.656550 + 43.358800 + 737088.900000 + 134.000000 + 238473.656550 + 43.358800 + 238.473657 + 0.000000 + 0.000000 + 0.000000 + 4952.480000 + 0.900000 + + + + + + + + + + + + + + 2022-06-01 + + + Portfolio Manager + 2019 + 80.000000 + + + + + 238473.656550 + 43.358800 + 4952.480000 + + + + + + + + + + + + + 39070.530000 + 995 + 89.000000 + + + + + 190348.600000 + 34.600000 + 4846.040000 + 0.881000 + + + + + + + + + + + + + + TMY3 + Finished + + + + + + + Electricity + kWh + All end uses + 67334.150000 + 229.753657 + kW + 26.040000 + 26.040000 + + + Natural gas + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + POM-LEDs + + + + + + + Capital + 35.713000 + 772 + + + Electricity + kWh + 11524.540000 + + + Natural gas + MMBtu + 0.000000 + + + 3.220000 + 0 + 0.000000 + 0.000000 + 1 + 824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 1.070000 + 0.000000 + + + + + + + + + + POM-VSDs + + + + + + + Capital + 5.175000 + 9 + + + Electricity + kWh + 207.240000 + + + Natural gas + MMBtu + 4.460000 + + + 0.420000 + 0 + 0.000000 + 0.000000 + 1 + 2000.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 230.150000 + 0.000000 + + + + + + + + + + POM-LEDs-VSDs + + + + + + + + Capital + 41.827000 + 781 + + + Electricity + kWh + 11701.620000 + + + Natural gas + MMBtu + 1.890000 + + + 4.700000 + 0 + 0.000000 + 0.000000 + 1 + 2824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 3.620000 + 0.000000 + + + + + + + + + + Level 2: Energy Survey and Analysis + + + + + + + + + --06-01 + --09-30 + --06-01 + --09-30 + 0.088520 + 0.000000 + + + --01-01 + --05-31 + --01-01 + --05-31 + 0.053140 + 0.000000 + + + --10-01 + --12-31 + --10-01 + --12-31 + 0.053140 + 0.000000 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 16.880000 + + + 12345 + Xcel Energy + + Some-meter-ID + + some-account-number + Building Owner + + + + + + + + + --01-01 + --12-31 + 0.163600 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 43.880000 + + + Xcel Energy + + Some-meter-ID + + some-other-account-number + Building Owner + + + + + + + + + + + + + + Owner + + The dude + Some big company + + + 123-456-7890 + + + + + the.dude@somebigco.net + + + + + + Energy Auditor + + The lady + Auditeers + + + 123-456-7890 + + + + + the.lady@the-three-auditeers.com + + + + + + + diff --git a/spec/files/v2.7.0/l200_hvac/l200_ptac_ventilation_only.xml b/spec/files/v2.7.0/l200_hvac/l200_ptac_ventilation_only.xml new file mode 100644 index 0000000..ab49b9d --- /dev/null +++ b/spec/files/v2.7.0/l200_hvac/l200_ptac_ventilation_only.xml @@ -0,0 +1,2292 @@ + + + + + + + + + Prototype Small Office in Denver + Here we record general problems / issues identified in a walkthrough survey. + + + City Custom Building ID + some ID + + + Custom ID 1 + some other ID + + +
+ + + Some address + + + Denver + CO + 80014 +
+ -104.830000 + 39.660000 + Commercial + Office + + 1 + 0 + 1 + 0 + true + false + + + Gross + 5500.000000 + + + + + + Conditioned + 5500.000000 + + + + + + 6500.000000 + 0.000000 + 0.213300 + 0.050000 + 2012 + 2000 + 2010 + 2020-03-01 + 2012 + +
+ Space function + Office + Office + + + Peak total occupants + 31.000000 + + + + + 40.000000 + Hours per week + + + 50.000000 + Weeks per year + + + + + Gross + 5500.000000 + + + Conditioned + 5500.000000 + + + Single zone +
+
+ Whole building + Rectangular + + + A1 + + + 909.012230 + + + + + 180.187860 + + + + + 42.086890 + + + + + B1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + C1 + + + 909.012230 + + + + + 180.187860 + + + + + 0.000000 + + + + + D1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + + + + 6444.999000 + Good + + + + + + + 3891.153600 + + + +
+
+ + + + + + + + Packaged terminal air conditioner (PTAC)Central fanCAV terminal box no reheatNoneSupply onlyStand-alone +
+ + + + + +
+
+
+ + + + + T8 + + + Standard Electronic + + 0.200000 + + 100.000000 + 5.500000 + 32.000000 + 4 + 1.000000 + 43 + false + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + T12 + + + Standard Electronic + 100.000000 + 1.582575 + 316.516000 + 1 + 1.000000 + 5 + true + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + LED + + + Standard Electronic + + 0.100000 + + 100.000000 + 2.752000 + 16.000000 + 4 + 1.000000 + 43 + false + + + + + + + Photocell + Continuous + + + + false + +
+ + + + + +
+
+
+
+ + + + + + + + 40.000000 + 123.000000 + + + Notes + + 1 + 3.600000 + Continuous + 123.000000 + 1.870180 + + Looped + Thermal Efficiency + 1.000000 + 40.000000 + 140.000000 + 1950.520000 + 11722.840000 + W + + + + + + + + + + 2000 + Electricity + Good + + + + +
+ +
+
+ 1 +
+
+ + + 0.536000 + 880.000000 + 880.000000 + Constant Volume + + + + + + 0.536000 + 872.000000 + 872.000000 + Variable Volume + + + + + + 0.536000 + 836.000000 + 836.000000 + Constant Volume + + + + + + 0.536000 + 830.000000 + 830.000000 + Variable Volume + + + + + + 0.536000 + 671.000000 + 671.000000 + Constant Volume + + + + + + 0.536000 + 664.000000 + 664.000000 + Variable Volume + + + + + + 0.536000 + 774.000000 + 774.000000 + Constant Volume + + + + + + 0.536000 + 766.000000 + 766.000000 + Variable Volume + + + + + + 0.536000 + 841.000000 + 841.000000 + Constant Volume + + + + + + 0.536000 + 833.000000 + 833.000000 + Variable Volume + + + + + + + + Wood frame + 0.547000 + + + + + Wood frame + 4.706000 + + + + + + + + Vinyl + Clear uncoated + Single pane + 3.241000 + 0.391000 + 0.391000 + + + + + + Vinyl + Low e + Triple pane + 0.300000 + 0.391000 + 0.391000 + + + + + Insulated metal + 0.500000 + + + Steel + 2.839000 + + + + + + + + 0.345000 + + + + Concrete poured + + + + + Miscellaneous Electric Load + 0.630000 + +
+ + + + + +
+
+
+
+ + + Notes on test + Tight + 0.151000 + ACHnatural + Blower door + +
+ +
+
+
+
+ + + Notes on test + +
+ +
+
+
+
+
+ + + + + Weekday + Occupied + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + Occupied + 06:00:00 + 07:00:00 + 11.000000 + + + Weekday + Occupied + 07:00:00 + 08:00:00 + 21.000000 + + + Weekday + Occupied + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Occupied + 12:00:00 + 13:00:00 + 53.000000 + + + Weekday + Occupied + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Occupied + 17:00:00 + 18:00:00 + 32.000000 + + + Weekday + Occupied + 18:00:00 + 22:00:00 + 11.000000 + + + Weekday + Occupied + 22:00:00 + 23:00:00 + 5.000000 + + + Weekday + Occupied + 23:00:00 + 23:59:59 + 0.000000 + + + Weekend + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + + + + +
+ +
+
+
+ + + + Weekday + Lighting + 00:00:00 + 05:00:00 + 18.000000 + + + Weekday + Lighting + 05:00:00 + 07:00:00 + 23.000000 + + + Weekday + Lighting + 07:00:00 + 08:00:00 + 42.000000 + + + Weekday + Lighting + 08:00:00 + 12:00:00 + 90.000000 + + + Weekday + Lighting + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + Lighting + 13:00:00 + 17:00:00 + 90.000000 + + + Weekday + Lighting + 17:00:00 + 18:00:00 + 61.000000 + + + Weekday + Lighting + 18:00:00 + 20:00:00 + 42.000000 + + + Weekday + Lighting + 20:00:00 + 22:00:00 + 32.000000 + + + Weekday + Lighting + 22:00:00 + 23:00:00 + 23.000000 + + + Weekday + Lighting + 23:00:00 + 23:59:59 + 18.000000 + + + Weekend + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + Holiday + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + + + + + + + + + + Weekday + Miscellaneous equipment + 00:00:00 + 08:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 12:00:00 + 13:00:00 + 94.000000 + + + Weekday + Miscellaneous equipment + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 17:00:00 + 18:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 18:00:00 + 23:59:59 + 20.000000 + + + Weekend + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + Holiday + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 19:00:00 + 100.000000 + + + Weekday + HVAC equipment + 19:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 07:00:00 + 60.000000 + + + Weekday + HVAC equipment + 07:00:00 + 12:00:00 + 100.000000 + + + Weekday + HVAC equipment + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + HVAC equipment + 13:00:00 + 18:00:00 + 100.000000 + + + Weekday + HVAC equipment + 18:00:00 + 20:00:00 + 60.000000 + + + Weekday + HVAC equipment + 20:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + +
+ + + + + + + + + + + Lighting + + + + Retrofit with light emitting diode technologies + + + + Individual system + This measure is designed to replace all fluorescent bulbs with LEDs + 1 + 50.000000 + 774.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + Fan + + + + Add VSD motor controller + + + + Individual system + This measure is designed to retrofit all RTU fans with a VSD + 1 + 750.000000 + 1250.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + + + + + + Electricity + This is required to document irregularities in monthly energy patterns (Std 211 6.1.2.1.j). No irregularities found. + kWh + All end uses + 67334.150000 + 229.753657 + + + + + + + + + + + + + + + kW + 26.040000 + 26.040000 + 4613.820000 + + + + + + Natural gas + No irregularities in monthly energy consumption found. + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + + + + + + 540.830000 + + + + + + Electricity + kWh + Interior lighting + 28.705000 + 20062.690000 + 68.453898 + + + + Electricity + kWh + Heating + 6.722000 + 4698.230000 + 16.030361 + + + + Electricity + kWh + Cooling + 8.769000 + 6128.870000 + 20.911704 + + + + Electricity + kWh + Domestic hot water + 10.281000 + 7185.370000 + 24.516482 + + + + Electricity + kWh + Plug load + 21.379000 + 14942.150000 + 50.982616 + + + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 5933.100000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 5446.100000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 5736.490000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 4980.500000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 5187.210000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 5842.950000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 5801.730000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 6220.160000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 5682.870000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 5571.930000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 5525.150000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 5405.940000 + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 1.720000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 1.250000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.430000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.010000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.200000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.400000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 4.300000 + + + + Peak + On-peak + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 23.580000 + + + + Peak + On-peak + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 25.380000 + + + + Peak + On-peak + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 26.040000 + + + + Peak + On-peak + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 24.450000 + + + + Peak + On-peak + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 17.030000 + + + + Peak + On-peak + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 22.710000 + + + + Peak + On-peak + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 22.010000 + + + + Peak + On-peak + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 21.810000 + + + + Peak + On-peak + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 20.630000 + + + + Peak + On-peak + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 21.870000 + + + + Peak + On-peak + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 21.630000 + + + + Peak + On-peak + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 21.780000 + + + + Load factor + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 0.320000 + + + + Load factor + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.300000 + + + + Load factor + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.280000 + + + + Load factor + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Load factor + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.360000 + + + + Load factor + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 0.330000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 332.160000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 306.290000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 321.720000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 281.540000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 292.530000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 534.100000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 530.450000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 567.490000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 519.930000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 312.970000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 310.490000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 304.150000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 46.690000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 45.930000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 44.550000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 44.580000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 43.900000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 44.210000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 44.530000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 50.920000 + + + + + + 238473.656550 + 43.358800 + 737088.900000 + 134.000000 + 238473.656550 + 43.358800 + 238.473657 + 0.000000 + 0.000000 + 0.000000 + 4952.480000 + 0.900000 + + + + + + + + + + + + + + 2022-06-01 + + + Portfolio Manager + 2019 + 80.000000 + + + + + 238473.656550 + 43.358800 + 4952.480000 + + + + + + + + + + + + + 39070.530000 + 995 + 89.000000 + + + + + 190348.600000 + 34.600000 + 4846.040000 + 0.881000 + + + + + + + + + + + + + + TMY3 + Finished + + + + + + + Electricity + kWh + All end uses + 67334.150000 + 229.753657 + kW + 26.040000 + 26.040000 + + + Natural gas + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + POM-LEDs + + + + + + + Capital + 35.713000 + 772 + + + Electricity + kWh + 11524.540000 + + + Natural gas + MMBtu + 0.000000 + + + 3.220000 + 0 + 0.000000 + 0.000000 + 1 + 824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 1.070000 + 0.000000 + + + + + + + + + + POM-VSDs + + + + + + + Capital + 5.175000 + 9 + + + Electricity + kWh + 207.240000 + + + Natural gas + MMBtu + 4.460000 + + + 0.420000 + 0 + 0.000000 + 0.000000 + 1 + 2000.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 230.150000 + 0.000000 + + + + + + + + + + POM-LEDs-VSDs + + + + + + + + Capital + 41.827000 + 781 + + + Electricity + kWh + 11701.620000 + + + Natural gas + MMBtu + 1.890000 + + + 4.700000 + 0 + 0.000000 + 0.000000 + 1 + 2824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 3.620000 + 0.000000 + + + + + + + + + + Level 2: Energy Survey and Analysis + + + + + + + + + --06-01 + --09-30 + --06-01 + --09-30 + 0.088520 + 0.000000 + + + --01-01 + --05-31 + --01-01 + --05-31 + 0.053140 + 0.000000 + + + --10-01 + --12-31 + --10-01 + --12-31 + 0.053140 + 0.000000 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 16.880000 + + + 12345 + Xcel Energy + + Some-meter-ID + + some-account-number + Building Owner + + + + + + + + + --01-01 + --12-31 + 0.163600 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 43.880000 + + + Xcel Energy + + Some-meter-ID + + some-other-account-number + Building Owner + + + + + + + + + + + + + + Owner + + The dude + Some big company + + + 123-456-7890 + + + + + the.dude@somebigco.net + + + + + + Energy Auditor + + The lady + Auditeers + + + 123-456-7890 + + + + + the.lady@the-three-auditeers.com + + + + + + + diff --git a/spec/files/v2.7.0/l200_hvac/l200_pthp.xml b/spec/files/v2.7.0/l200_hvac/l200_pthp.xml new file mode 100644 index 0000000..8d00efc --- /dev/null +++ b/spec/files/v2.7.0/l200_hvac/l200_pthp.xml @@ -0,0 +1,2292 @@ + + + + + + + + + Prototype Small Office in Denver + Here we record general problems / issues identified in a walkthrough survey. + + + City Custom Building ID + some ID + + + Custom ID 1 + some other ID + + +
+ + + Some address + + + Denver + CO + 80014 +
+ -104.830000 + 39.660000 + Commercial + Office + + 1 + 0 + 1 + 0 + true + false + + + Gross + 5500.000000 + + + + + + Conditioned + 5500.000000 + + + + + + 6500.000000 + 0.000000 + 0.213300 + 0.050000 + 2012 + 2000 + 2010 + 2020-03-01 + 2012 + +
+ Space function + Office + Office + + + Peak total occupants + 31.000000 + + + + + 40.000000 + Hours per week + + + 50.000000 + Weeks per year + + + + + Gross + 5500.000000 + + + Conditioned + 5500.000000 + + + Single zone +
+
+ Whole building + Rectangular + + + A1 + + + 909.012230 + + + + + 180.187860 + + + + + 42.086890 + + + + + B1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + C1 + + + 909.012230 + + + + + 180.187860 + + + + + 0.000000 + + + + + D1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + + + + 6444.999000 + Good + + + + + + + 3891.153600 + + + +
+
+ + + + + + + + Packaged TerminalElectricityPackaged terminal heat pump (PTHP) +
+ + + + + +
+
+
+ + + + + T8 + + + Standard Electronic + + 0.200000 + + 100.000000 + 5.500000 + 32.000000 + 4 + 1.000000 + 43 + false + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + T12 + + + Standard Electronic + 100.000000 + 1.582575 + 316.516000 + 1 + 1.000000 + 5 + true + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + LED + + + Standard Electronic + + 0.100000 + + 100.000000 + 2.752000 + 16.000000 + 4 + 1.000000 + 43 + false + + + + + + + Photocell + Continuous + + + + false + +
+ + + + + +
+
+
+
+ + + + + + + + 40.000000 + 123.000000 + + + Notes + + 1 + 3.600000 + Continuous + 123.000000 + 1.870180 + + Looped + Thermal Efficiency + 1.000000 + 40.000000 + 140.000000 + 1950.520000 + 11722.840000 + W + + + + + + + + + + 2000 + Electricity + Good + + + + +
+ +
+
+ 1 +
+
+ + + 0.536000 + 880.000000 + 880.000000 + Constant Volume + + + + + + 0.536000 + 872.000000 + 872.000000 + Variable Volume + + + + + + 0.536000 + 836.000000 + 836.000000 + Constant Volume + + + + + + 0.536000 + 830.000000 + 830.000000 + Variable Volume + + + + + + 0.536000 + 671.000000 + 671.000000 + Constant Volume + + + + + + 0.536000 + 664.000000 + 664.000000 + Variable Volume + + + + + + 0.536000 + 774.000000 + 774.000000 + Constant Volume + + + + + + 0.536000 + 766.000000 + 766.000000 + Variable Volume + + + + + + 0.536000 + 841.000000 + 841.000000 + Constant Volume + + + + + + 0.536000 + 833.000000 + 833.000000 + Variable Volume + + + + + + + + Wood frame + 0.547000 + + + + + Wood frame + 4.706000 + + + + + + + + Vinyl + Clear uncoated + Single pane + 3.241000 + 0.391000 + 0.391000 + + + + + + Vinyl + Low e + Triple pane + 0.300000 + 0.391000 + 0.391000 + + + + + Insulated metal + 0.500000 + + + Steel + 2.839000 + + + + + + + + 0.345000 + + + + Concrete poured + + + + + Miscellaneous Electric Load + 0.630000 + +
+ + + + + +
+
+
+
+ + + Notes on test + Tight + 0.151000 + ACHnatural + Blower door + +
+ +
+
+
+
+ + + Notes on test + +
+ +
+
+
+
+
+ + + + + Weekday + Occupied + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + Occupied + 06:00:00 + 07:00:00 + 11.000000 + + + Weekday + Occupied + 07:00:00 + 08:00:00 + 21.000000 + + + Weekday + Occupied + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Occupied + 12:00:00 + 13:00:00 + 53.000000 + + + Weekday + Occupied + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Occupied + 17:00:00 + 18:00:00 + 32.000000 + + + Weekday + Occupied + 18:00:00 + 22:00:00 + 11.000000 + + + Weekday + Occupied + 22:00:00 + 23:00:00 + 5.000000 + + + Weekday + Occupied + 23:00:00 + 23:59:59 + 0.000000 + + + Weekend + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + + + + +
+ +
+
+
+ + + + Weekday + Lighting + 00:00:00 + 05:00:00 + 18.000000 + + + Weekday + Lighting + 05:00:00 + 07:00:00 + 23.000000 + + + Weekday + Lighting + 07:00:00 + 08:00:00 + 42.000000 + + + Weekday + Lighting + 08:00:00 + 12:00:00 + 90.000000 + + + Weekday + Lighting + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + Lighting + 13:00:00 + 17:00:00 + 90.000000 + + + Weekday + Lighting + 17:00:00 + 18:00:00 + 61.000000 + + + Weekday + Lighting + 18:00:00 + 20:00:00 + 42.000000 + + + Weekday + Lighting + 20:00:00 + 22:00:00 + 32.000000 + + + Weekday + Lighting + 22:00:00 + 23:00:00 + 23.000000 + + + Weekday + Lighting + 23:00:00 + 23:59:59 + 18.000000 + + + Weekend + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + Holiday + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + + + + + + + + + + Weekday + Miscellaneous equipment + 00:00:00 + 08:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 12:00:00 + 13:00:00 + 94.000000 + + + Weekday + Miscellaneous equipment + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 17:00:00 + 18:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 18:00:00 + 23:59:59 + 20.000000 + + + Weekend + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + Holiday + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 19:00:00 + 100.000000 + + + Weekday + HVAC equipment + 19:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 07:00:00 + 60.000000 + + + Weekday + HVAC equipment + 07:00:00 + 12:00:00 + 100.000000 + + + Weekday + HVAC equipment + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + HVAC equipment + 13:00:00 + 18:00:00 + 100.000000 + + + Weekday + HVAC equipment + 18:00:00 + 20:00:00 + 60.000000 + + + Weekday + HVAC equipment + 20:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + +
+ + + + + + + + + + + Lighting + + + + Retrofit with light emitting diode technologies + + + + Individual system + This measure is designed to replace all fluorescent bulbs with LEDs + 1 + 50.000000 + 774.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + Fan + + + + Add VSD motor controller + + + + Individual system + This measure is designed to retrofit all RTU fans with a VSD + 1 + 750.000000 + 1250.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + + + + + + Electricity + This is required to document irregularities in monthly energy patterns (Std 211 6.1.2.1.j). No irregularities found. + kWh + All end uses + 67334.150000 + 229.753657 + + + + + + + + + + + + + + + kW + 26.040000 + 26.040000 + 4613.820000 + + + + + + Natural gas + No irregularities in monthly energy consumption found. + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + + + + + + 540.830000 + + + + + + Electricity + kWh + Interior lighting + 28.705000 + 20062.690000 + 68.453898 + + + + Electricity + kWh + Heating + 6.722000 + 4698.230000 + 16.030361 + + + + Electricity + kWh + Cooling + 8.769000 + 6128.870000 + 20.911704 + + + + Electricity + kWh + Domestic hot water + 10.281000 + 7185.370000 + 24.516482 + + + + Electricity + kWh + Plug load + 21.379000 + 14942.150000 + 50.982616 + + + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 5933.100000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 5446.100000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 5736.490000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 4980.500000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 5187.210000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 5842.950000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 5801.730000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 6220.160000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 5682.870000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 5571.930000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 5525.150000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 5405.940000 + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 1.720000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 1.250000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.430000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.010000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.200000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.400000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 4.300000 + + + + Peak + On-peak + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 23.580000 + + + + Peak + On-peak + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 25.380000 + + + + Peak + On-peak + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 26.040000 + + + + Peak + On-peak + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 24.450000 + + + + Peak + On-peak + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 17.030000 + + + + Peak + On-peak + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 22.710000 + + + + Peak + On-peak + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 22.010000 + + + + Peak + On-peak + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 21.810000 + + + + Peak + On-peak + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 20.630000 + + + + Peak + On-peak + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 21.870000 + + + + Peak + On-peak + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 21.630000 + + + + Peak + On-peak + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 21.780000 + + + + Load factor + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 0.320000 + + + + Load factor + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.300000 + + + + Load factor + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.280000 + + + + Load factor + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Load factor + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.360000 + + + + Load factor + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 0.330000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 332.160000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 306.290000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 321.720000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 281.540000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 292.530000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 534.100000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 530.450000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 567.490000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 519.930000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 312.970000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 310.490000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 304.150000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 46.690000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 45.930000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 44.550000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 44.580000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 43.900000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 44.210000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 44.530000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 50.920000 + + + + + + 238473.656550 + 43.358800 + 737088.900000 + 134.000000 + 238473.656550 + 43.358800 + 238.473657 + 0.000000 + 0.000000 + 0.000000 + 4952.480000 + 0.900000 + + + + + + + + + + + + + + 2022-06-01 + + + Portfolio Manager + 2019 + 80.000000 + + + + + 238473.656550 + 43.358800 + 4952.480000 + + + + + + + + + + + + + 39070.530000 + 995 + 89.000000 + + + + + 190348.600000 + 34.600000 + 4846.040000 + 0.881000 + + + + + + + + + + + + + + TMY3 + Finished + + + + + + + Electricity + kWh + All end uses + 67334.150000 + 229.753657 + kW + 26.040000 + 26.040000 + + + Natural gas + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + POM-LEDs + + + + + + + Capital + 35.713000 + 772 + + + Electricity + kWh + 11524.540000 + + + Natural gas + MMBtu + 0.000000 + + + 3.220000 + 0 + 0.000000 + 0.000000 + 1 + 824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 1.070000 + 0.000000 + + + + + + + + + + POM-VSDs + + + + + + + Capital + 5.175000 + 9 + + + Electricity + kWh + 207.240000 + + + Natural gas + MMBtu + 4.460000 + + + 0.420000 + 0 + 0.000000 + 0.000000 + 1 + 2000.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 230.150000 + 0.000000 + + + + + + + + + + POM-LEDs-VSDs + + + + + + + + Capital + 41.827000 + 781 + + + Electricity + kWh + 11701.620000 + + + Natural gas + MMBtu + 1.890000 + + + 4.700000 + 0 + 0.000000 + 0.000000 + 1 + 2824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 3.620000 + 0.000000 + + + + + + + + + + Level 2: Energy Survey and Analysis + + + + + + + + + --06-01 + --09-30 + --06-01 + --09-30 + 0.088520 + 0.000000 + + + --01-01 + --05-31 + --01-01 + --05-31 + 0.053140 + 0.000000 + + + --10-01 + --12-31 + --10-01 + --12-31 + 0.053140 + 0.000000 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 16.880000 + + + 12345 + Xcel Energy + + Some-meter-ID + + some-account-number + Building Owner + + + + + + + + + --01-01 + --12-31 + 0.163600 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 43.880000 + + + Xcel Energy + + Some-meter-ID + + some-other-account-number + Building Owner + + + + + + + + + + + + + + Owner + + The dude + Some big company + + + 123-456-7890 + + + + + the.dude@somebigco.net + + + + + + Energy Auditor + + The lady + Auditeers + + + 123-456-7890 + + + + + the.lady@the-three-auditeers.com + + + + + + + diff --git a/spec/files/v2.7.0/l200_hvac/l200_pthp_doas.xml b/spec/files/v2.7.0/l200_hvac/l200_pthp_doas.xml new file mode 100644 index 0000000..561e4bb --- /dev/null +++ b/spec/files/v2.7.0/l200_hvac/l200_pthp_doas.xml @@ -0,0 +1,2292 @@ + + + + + + + + + Prototype Small Office in Denver + Here we record general problems / issues identified in a walkthrough survey. + + + City Custom Building ID + some ID + + + Custom ID 1 + some other ID + + +
+ + + Some address + + + Denver + CO + 80014 +
+ -104.830000 + 39.660000 + Commercial + Office + + 1 + 0 + 1 + 0 + true + false + + + Gross + 5500.000000 + + + + + + Conditioned + 5500.000000 + + + + + + 6500.000000 + 0.000000 + 0.213300 + 0.050000 + 2012 + 2000 + 2010 + 2020-03-01 + 2012 + +
+ Space function + Office + Office + + + Peak total occupants + 31.000000 + + + + + 40.000000 + Hours per week + + + 50.000000 + Weeks per year + + + + + Gross + 5500.000000 + + + Conditioned + 5500.000000 + + + Single zone +
+
+ Whole building + Rectangular + + + A1 + + + 909.012230 + + + + + 180.187860 + + + + + 42.086890 + + + + + B1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + C1 + + + 909.012230 + + + + + 180.187860 + + + + + 0.000000 + + + + + D1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + + + + 6444.999000 + Good + + + + + + + 3891.153600 + + + +
+
+ + + + + + + + Packaged TerminalElectricityPackaged terminal heat pump (PTHP)Central fanCAV terminal box no reheatNoneDedicated outdoor air systemStand-alone +
+ + + + + +
+
+
+ + + + + T8 + + + Standard Electronic + + 0.200000 + + 100.000000 + 5.500000 + 32.000000 + 4 + 1.000000 + 43 + false + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + T12 + + + Standard Electronic + 100.000000 + 1.582575 + 316.516000 + 1 + 1.000000 + 5 + true + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + LED + + + Standard Electronic + + 0.100000 + + 100.000000 + 2.752000 + 16.000000 + 4 + 1.000000 + 43 + false + + + + + + + Photocell + Continuous + + + + false + +
+ + + + + +
+
+
+
+ + + + + + + + 40.000000 + 123.000000 + + + Notes + + 1 + 3.600000 + Continuous + 123.000000 + 1.870180 + + Looped + Thermal Efficiency + 1.000000 + 40.000000 + 140.000000 + 1950.520000 + 11722.840000 + W + + + + + + + + + + 2000 + Electricity + Good + + + + +
+ +
+
+ 1 +
+
+ + + 0.536000 + 880.000000 + 880.000000 + Constant Volume + + + + + + 0.536000 + 872.000000 + 872.000000 + Variable Volume + + + + + + 0.536000 + 836.000000 + 836.000000 + Constant Volume + + + + + + 0.536000 + 830.000000 + 830.000000 + Variable Volume + + + + + + 0.536000 + 671.000000 + 671.000000 + Constant Volume + + + + + + 0.536000 + 664.000000 + 664.000000 + Variable Volume + + + + + + 0.536000 + 774.000000 + 774.000000 + Constant Volume + + + + + + 0.536000 + 766.000000 + 766.000000 + Variable Volume + + + + + + 0.536000 + 841.000000 + 841.000000 + Constant Volume + + + + + + 0.536000 + 833.000000 + 833.000000 + Variable Volume + + + + + + + + Wood frame + 0.547000 + + + + + Wood frame + 4.706000 + + + + + + + + Vinyl + Clear uncoated + Single pane + 3.241000 + 0.391000 + 0.391000 + + + + + + Vinyl + Low e + Triple pane + 0.300000 + 0.391000 + 0.391000 + + + + + Insulated metal + 0.500000 + + + Steel + 2.839000 + + + + + + + + 0.345000 + + + + Concrete poured + + + + + Miscellaneous Electric Load + 0.630000 + +
+ + + + + +
+
+
+
+ + + Notes on test + Tight + 0.151000 + ACHnatural + Blower door + +
+ +
+
+
+
+ + + Notes on test + +
+ +
+
+
+
+
+ + + + + Weekday + Occupied + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + Occupied + 06:00:00 + 07:00:00 + 11.000000 + + + Weekday + Occupied + 07:00:00 + 08:00:00 + 21.000000 + + + Weekday + Occupied + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Occupied + 12:00:00 + 13:00:00 + 53.000000 + + + Weekday + Occupied + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Occupied + 17:00:00 + 18:00:00 + 32.000000 + + + Weekday + Occupied + 18:00:00 + 22:00:00 + 11.000000 + + + Weekday + Occupied + 22:00:00 + 23:00:00 + 5.000000 + + + Weekday + Occupied + 23:00:00 + 23:59:59 + 0.000000 + + + Weekend + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + + + + +
+ +
+
+
+ + + + Weekday + Lighting + 00:00:00 + 05:00:00 + 18.000000 + + + Weekday + Lighting + 05:00:00 + 07:00:00 + 23.000000 + + + Weekday + Lighting + 07:00:00 + 08:00:00 + 42.000000 + + + Weekday + Lighting + 08:00:00 + 12:00:00 + 90.000000 + + + Weekday + Lighting + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + Lighting + 13:00:00 + 17:00:00 + 90.000000 + + + Weekday + Lighting + 17:00:00 + 18:00:00 + 61.000000 + + + Weekday + Lighting + 18:00:00 + 20:00:00 + 42.000000 + + + Weekday + Lighting + 20:00:00 + 22:00:00 + 32.000000 + + + Weekday + Lighting + 22:00:00 + 23:00:00 + 23.000000 + + + Weekday + Lighting + 23:00:00 + 23:59:59 + 18.000000 + + + Weekend + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + Holiday + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + + + + + + + + + + Weekday + Miscellaneous equipment + 00:00:00 + 08:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 12:00:00 + 13:00:00 + 94.000000 + + + Weekday + Miscellaneous equipment + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 17:00:00 + 18:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 18:00:00 + 23:59:59 + 20.000000 + + + Weekend + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + Holiday + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 19:00:00 + 100.000000 + + + Weekday + HVAC equipment + 19:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 07:00:00 + 60.000000 + + + Weekday + HVAC equipment + 07:00:00 + 12:00:00 + 100.000000 + + + Weekday + HVAC equipment + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + HVAC equipment + 13:00:00 + 18:00:00 + 100.000000 + + + Weekday + HVAC equipment + 18:00:00 + 20:00:00 + 60.000000 + + + Weekday + HVAC equipment + 20:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + +
+ + + + + + + + + + + Lighting + + + + Retrofit with light emitting diode technologies + + + + Individual system + This measure is designed to replace all fluorescent bulbs with LEDs + 1 + 50.000000 + 774.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + Fan + + + + Add VSD motor controller + + + + Individual system + This measure is designed to retrofit all RTU fans with a VSD + 1 + 750.000000 + 1250.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + + + + + + Electricity + This is required to document irregularities in monthly energy patterns (Std 211 6.1.2.1.j). No irregularities found. + kWh + All end uses + 67334.150000 + 229.753657 + + + + + + + + + + + + + + + kW + 26.040000 + 26.040000 + 4613.820000 + + + + + + Natural gas + No irregularities in monthly energy consumption found. + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + + + + + + 540.830000 + + + + + + Electricity + kWh + Interior lighting + 28.705000 + 20062.690000 + 68.453898 + + + + Electricity + kWh + Heating + 6.722000 + 4698.230000 + 16.030361 + + + + Electricity + kWh + Cooling + 8.769000 + 6128.870000 + 20.911704 + + + + Electricity + kWh + Domestic hot water + 10.281000 + 7185.370000 + 24.516482 + + + + Electricity + kWh + Plug load + 21.379000 + 14942.150000 + 50.982616 + + + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 5933.100000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 5446.100000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 5736.490000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 4980.500000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 5187.210000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 5842.950000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 5801.730000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 6220.160000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 5682.870000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 5571.930000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 5525.150000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 5405.940000 + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 1.720000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 1.250000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.430000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.010000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.200000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.400000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 4.300000 + + + + Peak + On-peak + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 23.580000 + + + + Peak + On-peak + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 25.380000 + + + + Peak + On-peak + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 26.040000 + + + + Peak + On-peak + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 24.450000 + + + + Peak + On-peak + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 17.030000 + + + + Peak + On-peak + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 22.710000 + + + + Peak + On-peak + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 22.010000 + + + + Peak + On-peak + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 21.810000 + + + + Peak + On-peak + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 20.630000 + + + + Peak + On-peak + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 21.870000 + + + + Peak + On-peak + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 21.630000 + + + + Peak + On-peak + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 21.780000 + + + + Load factor + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 0.320000 + + + + Load factor + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.300000 + + + + Load factor + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.280000 + + + + Load factor + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Load factor + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.360000 + + + + Load factor + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 0.330000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 332.160000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 306.290000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 321.720000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 281.540000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 292.530000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 534.100000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 530.450000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 567.490000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 519.930000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 312.970000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 310.490000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 304.150000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 46.690000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 45.930000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 44.550000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 44.580000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 43.900000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 44.210000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 44.530000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 50.920000 + + + + + + 238473.656550 + 43.358800 + 737088.900000 + 134.000000 + 238473.656550 + 43.358800 + 238.473657 + 0.000000 + 0.000000 + 0.000000 + 4952.480000 + 0.900000 + + + + + + + + + + + + + + 2022-06-01 + + + Portfolio Manager + 2019 + 80.000000 + + + + + 238473.656550 + 43.358800 + 4952.480000 + + + + + + + + + + + + + 39070.530000 + 995 + 89.000000 + + + + + 190348.600000 + 34.600000 + 4846.040000 + 0.881000 + + + + + + + + + + + + + + TMY3 + Finished + + + + + + + Electricity + kWh + All end uses + 67334.150000 + 229.753657 + kW + 26.040000 + 26.040000 + + + Natural gas + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + POM-LEDs + + + + + + + Capital + 35.713000 + 772 + + + Electricity + kWh + 11524.540000 + + + Natural gas + MMBtu + 0.000000 + + + 3.220000 + 0 + 0.000000 + 0.000000 + 1 + 824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 1.070000 + 0.000000 + + + + + + + + + + POM-VSDs + + + + + + + Capital + 5.175000 + 9 + + + Electricity + kWh + 207.240000 + + + Natural gas + MMBtu + 4.460000 + + + 0.420000 + 0 + 0.000000 + 0.000000 + 1 + 2000.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 230.150000 + 0.000000 + + + + + + + + + + POM-LEDs-VSDs + + + + + + + + Capital + 41.827000 + 781 + + + Electricity + kWh + 11701.620000 + + + Natural gas + MMBtu + 1.890000 + + + 4.700000 + 0 + 0.000000 + 0.000000 + 1 + 2824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 3.620000 + 0.000000 + + + + + + + + + + Level 2: Energy Survey and Analysis + + + + + + + + + --06-01 + --09-30 + --06-01 + --09-30 + 0.088520 + 0.000000 + + + --01-01 + --05-31 + --01-01 + --05-31 + 0.053140 + 0.000000 + + + --10-01 + --12-31 + --10-01 + --12-31 + 0.053140 + 0.000000 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 16.880000 + + + 12345 + Xcel Energy + + Some-meter-ID + + some-account-number + Building Owner + + + + + + + + + --01-01 + --12-31 + 0.163600 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 43.880000 + + + Xcel Energy + + Some-meter-ID + + some-other-account-number + Building Owner + + + + + + + + + + + + + + Owner + + The dude + Some big company + + + 123-456-7890 + + + + + the.dude@somebigco.net + + + + + + Energy Auditor + + The lady + Auditeers + + + 123-456-7890 + + + + + the.lady@the-three-auditeers.com + + + + + + + diff --git a/spec/files/v2.7.0/l200_hvac/l200_rtu_ac.xml b/spec/files/v2.7.0/l200_hvac/l200_rtu_ac.xml new file mode 100644 index 0000000..67e495c --- /dev/null +++ b/spec/files/v2.7.0/l200_hvac/l200_rtu_ac.xml @@ -0,0 +1,2292 @@ + + + + + + + + + Prototype Small Office in Denver + Here we record general problems / issues identified in a walkthrough survey. + + + City Custom Building ID + some ID + + + Custom ID 1 + some other ID + + +
+ + + Some address + + + Denver + CO + 80014 +
+ -104.830000 + 39.660000 + Commercial + Office + + 1 + 0 + 1 + 0 + true + false + + + Gross + 5500.000000 + + + + + + Conditioned + 5500.000000 + + + + + + 6500.000000 + 0.000000 + 0.213300 + 0.050000 + 2012 + 2000 + 2010 + 2020-03-01 + 2012 + +
+ Space function + Office + Office + + + Peak total occupants + 31.000000 + + + + + 40.000000 + Hours per week + + + 50.000000 + Weeks per year + + + + + Gross + 5500.000000 + + + Conditioned + 5500.000000 + + + Single zone +
+
+ Whole building + Rectangular + + + A1 + + + 909.012230 + + + + + 180.187860 + + + + + 42.086890 + + + + + B1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + C1 + + + 909.012230 + + + + + 180.187860 + + + + + 0.000000 + + + + + D1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + + + + 6444.999000 + Good + + + + + + + 3891.153600 + + + +
+
+ + + + + + + + Single zoneWarm airNatural gasAirPackaged/unitary direct expansion/RTUCentral fanCAV terminal box no reheatNone +
+ + + + + +
+
+
+ + + + + T8 + + + Standard Electronic + + 0.200000 + + 100.000000 + 5.500000 + 32.000000 + 4 + 1.000000 + 43 + false + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + T12 + + + Standard Electronic + 100.000000 + 1.582575 + 316.516000 + 1 + 1.000000 + 5 + true + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + LED + + + Standard Electronic + + 0.100000 + + 100.000000 + 2.752000 + 16.000000 + 4 + 1.000000 + 43 + false + + + + + + + Photocell + Continuous + + + + false + +
+ + + + + +
+
+
+
+ + + + + + + + 40.000000 + 123.000000 + + + Notes + + 1 + 3.600000 + Continuous + 123.000000 + 1.870180 + + Looped + Thermal Efficiency + 1.000000 + 40.000000 + 140.000000 + 1950.520000 + 11722.840000 + W + + + + + + + + + + 2000 + Electricity + Good + + + + +
+ +
+
+ 1 +
+
+ + + 0.536000 + 880.000000 + 880.000000 + Constant Volume + + + + + + 0.536000 + 872.000000 + 872.000000 + Variable Volume + + + + + + 0.536000 + 836.000000 + 836.000000 + Constant Volume + + + + + + 0.536000 + 830.000000 + 830.000000 + Variable Volume + + + + + + 0.536000 + 671.000000 + 671.000000 + Constant Volume + + + + + + 0.536000 + 664.000000 + 664.000000 + Variable Volume + + + + + + 0.536000 + 774.000000 + 774.000000 + Constant Volume + + + + + + 0.536000 + 766.000000 + 766.000000 + Variable Volume + + + + + + 0.536000 + 841.000000 + 841.000000 + Constant Volume + + + + + + 0.536000 + 833.000000 + 833.000000 + Variable Volume + + + + + + + + Wood frame + 0.547000 + + + + + Wood frame + 4.706000 + + + + + + + + Vinyl + Clear uncoated + Single pane + 3.241000 + 0.391000 + 0.391000 + + + + + + Vinyl + Low e + Triple pane + 0.300000 + 0.391000 + 0.391000 + + + + + Insulated metal + 0.500000 + + + Steel + 2.839000 + + + + + + + + 0.345000 + + + + Concrete poured + + + + + Miscellaneous Electric Load + 0.630000 + +
+ + + + + +
+
+
+
+ + + Notes on test + Tight + 0.151000 + ACHnatural + Blower door + +
+ +
+
+
+
+ + + Notes on test + +
+ +
+
+
+
+
+ + + + + Weekday + Occupied + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + Occupied + 06:00:00 + 07:00:00 + 11.000000 + + + Weekday + Occupied + 07:00:00 + 08:00:00 + 21.000000 + + + Weekday + Occupied + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Occupied + 12:00:00 + 13:00:00 + 53.000000 + + + Weekday + Occupied + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Occupied + 17:00:00 + 18:00:00 + 32.000000 + + + Weekday + Occupied + 18:00:00 + 22:00:00 + 11.000000 + + + Weekday + Occupied + 22:00:00 + 23:00:00 + 5.000000 + + + Weekday + Occupied + 23:00:00 + 23:59:59 + 0.000000 + + + Weekend + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + + + + +
+ +
+
+
+ + + + Weekday + Lighting + 00:00:00 + 05:00:00 + 18.000000 + + + Weekday + Lighting + 05:00:00 + 07:00:00 + 23.000000 + + + Weekday + Lighting + 07:00:00 + 08:00:00 + 42.000000 + + + Weekday + Lighting + 08:00:00 + 12:00:00 + 90.000000 + + + Weekday + Lighting + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + Lighting + 13:00:00 + 17:00:00 + 90.000000 + + + Weekday + Lighting + 17:00:00 + 18:00:00 + 61.000000 + + + Weekday + Lighting + 18:00:00 + 20:00:00 + 42.000000 + + + Weekday + Lighting + 20:00:00 + 22:00:00 + 32.000000 + + + Weekday + Lighting + 22:00:00 + 23:00:00 + 23.000000 + + + Weekday + Lighting + 23:00:00 + 23:59:59 + 18.000000 + + + Weekend + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + Holiday + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + + + + + + + + + + Weekday + Miscellaneous equipment + 00:00:00 + 08:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 12:00:00 + 13:00:00 + 94.000000 + + + Weekday + Miscellaneous equipment + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 17:00:00 + 18:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 18:00:00 + 23:59:59 + 20.000000 + + + Weekend + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + Holiday + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 19:00:00 + 100.000000 + + + Weekday + HVAC equipment + 19:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 07:00:00 + 60.000000 + + + Weekday + HVAC equipment + 07:00:00 + 12:00:00 + 100.000000 + + + Weekday + HVAC equipment + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + HVAC equipment + 13:00:00 + 18:00:00 + 100.000000 + + + Weekday + HVAC equipment + 18:00:00 + 20:00:00 + 60.000000 + + + Weekday + HVAC equipment + 20:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + +
+ + + + + + + + + + + Lighting + + + + Retrofit with light emitting diode technologies + + + + Individual system + This measure is designed to replace all fluorescent bulbs with LEDs + 1 + 50.000000 + 774.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + Fan + + + + Add VSD motor controller + + + + Individual system + This measure is designed to retrofit all RTU fans with a VSD + 1 + 750.000000 + 1250.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + + + + + + Electricity + This is required to document irregularities in monthly energy patterns (Std 211 6.1.2.1.j). No irregularities found. + kWh + All end uses + 67334.150000 + 229.753657 + + + + + + + + + + + + + + + kW + 26.040000 + 26.040000 + 4613.820000 + + + + + + Natural gas + No irregularities in monthly energy consumption found. + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + + + + + + 540.830000 + + + + + + Electricity + kWh + Interior lighting + 28.705000 + 20062.690000 + 68.453898 + + + + Electricity + kWh + Heating + 6.722000 + 4698.230000 + 16.030361 + + + + Electricity + kWh + Cooling + 8.769000 + 6128.870000 + 20.911704 + + + + Electricity + kWh + Domestic hot water + 10.281000 + 7185.370000 + 24.516482 + + + + Electricity + kWh + Plug load + 21.379000 + 14942.150000 + 50.982616 + + + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 5933.100000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 5446.100000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 5736.490000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 4980.500000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 5187.210000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 5842.950000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 5801.730000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 6220.160000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 5682.870000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 5571.930000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 5525.150000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 5405.940000 + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 1.720000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 1.250000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.430000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.010000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.200000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.400000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 4.300000 + + + + Peak + On-peak + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 23.580000 + + + + Peak + On-peak + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 25.380000 + + + + Peak + On-peak + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 26.040000 + + + + Peak + On-peak + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 24.450000 + + + + Peak + On-peak + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 17.030000 + + + + Peak + On-peak + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 22.710000 + + + + Peak + On-peak + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 22.010000 + + + + Peak + On-peak + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 21.810000 + + + + Peak + On-peak + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 20.630000 + + + + Peak + On-peak + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 21.870000 + + + + Peak + On-peak + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 21.630000 + + + + Peak + On-peak + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 21.780000 + + + + Load factor + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 0.320000 + + + + Load factor + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.300000 + + + + Load factor + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.280000 + + + + Load factor + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Load factor + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.360000 + + + + Load factor + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 0.330000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 332.160000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 306.290000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 321.720000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 281.540000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 292.530000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 534.100000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 530.450000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 567.490000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 519.930000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 312.970000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 310.490000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 304.150000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 46.690000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 45.930000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 44.550000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 44.580000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 43.900000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 44.210000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 44.530000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 50.920000 + + + + + + 238473.656550 + 43.358800 + 737088.900000 + 134.000000 + 238473.656550 + 43.358800 + 238.473657 + 0.000000 + 0.000000 + 0.000000 + 4952.480000 + 0.900000 + + + + + + + + + + + + + + 2022-06-01 + + + Portfolio Manager + 2019 + 80.000000 + + + + + 238473.656550 + 43.358800 + 4952.480000 + + + + + + + + + + + + + 39070.530000 + 995 + 89.000000 + + + + + 190348.600000 + 34.600000 + 4846.040000 + 0.881000 + + + + + + + + + + + + + + TMY3 + Finished + + + + + + + Electricity + kWh + All end uses + 67334.150000 + 229.753657 + kW + 26.040000 + 26.040000 + + + Natural gas + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + POM-LEDs + + + + + + + Capital + 35.713000 + 772 + + + Electricity + kWh + 11524.540000 + + + Natural gas + MMBtu + 0.000000 + + + 3.220000 + 0 + 0.000000 + 0.000000 + 1 + 824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 1.070000 + 0.000000 + + + + + + + + + + POM-VSDs + + + + + + + Capital + 5.175000 + 9 + + + Electricity + kWh + 207.240000 + + + Natural gas + MMBtu + 4.460000 + + + 0.420000 + 0 + 0.000000 + 0.000000 + 1 + 2000.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 230.150000 + 0.000000 + + + + + + + + + + POM-LEDs-VSDs + + + + + + + + Capital + 41.827000 + 781 + + + Electricity + kWh + 11701.620000 + + + Natural gas + MMBtu + 1.890000 + + + 4.700000 + 0 + 0.000000 + 0.000000 + 1 + 2824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 3.620000 + 0.000000 + + + + + + + + + + Level 2: Energy Survey and Analysis + + + + + + + + + --06-01 + --09-30 + --06-01 + --09-30 + 0.088520 + 0.000000 + + + --01-01 + --05-31 + --01-01 + --05-31 + 0.053140 + 0.000000 + + + --10-01 + --12-31 + --10-01 + --12-31 + 0.053140 + 0.000000 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 16.880000 + + + 12345 + Xcel Energy + + Some-meter-ID + + some-account-number + Building Owner + + + + + + + + + --01-01 + --12-31 + 0.163600 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 43.880000 + + + Xcel Energy + + Some-meter-ID + + some-other-account-number + Building Owner + + + + + + + + + + + + + + Owner + + The dude + Some big company + + + 123-456-7890 + + + + + the.dude@somebigco.net + + + + + + Energy Auditor + + The lady + Auditeers + + + 123-456-7890 + + + + + the.lady@the-three-auditeers.com + + + + + + + diff --git a/spec/files/v2.7.0/l200_hvac/l200_rtu_hp_electric_backup.xml b/spec/files/v2.7.0/l200_hvac/l200_rtu_hp_electric_backup.xml new file mode 100644 index 0000000..70f2c2c --- /dev/null +++ b/spec/files/v2.7.0/l200_hvac/l200_rtu_hp_electric_backup.xml @@ -0,0 +1,2292 @@ + + + + + + + + + Prototype Small Office in Denver + Here we record general problems / issues identified in a walkthrough survey. + + + City Custom Building ID + some ID + + + Custom ID 1 + some other ID + + +
+ + + Some address + + + Denver + CO + 80014 +
+ -104.830000 + 39.660000 + Commercial + Office + + 1 + 0 + 1 + 0 + true + false + + + Gross + 5500.000000 + + + + + + Conditioned + 5500.000000 + + + + + + 6500.000000 + 0.000000 + 0.213300 + 0.050000 + 2012 + 2000 + 2010 + 2020-03-01 + 2012 + +
+ Space function + Office + Office + + + Peak total occupants + 31.000000 + + + + + 40.000000 + Hours per week + + + 50.000000 + Weeks per year + + + + + Gross + 5500.000000 + + + Conditioned + 5500.000000 + + + Single zone +
+
+ Whole building + Rectangular + + + A1 + + + 909.012230 + + + + + 180.187860 + + + + + 42.086890 + + + + + B1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + C1 + + + 909.012230 + + + + + 180.187860 + + + + + 0.000000 + + + + + D1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + + + + 6444.999000 + Good + + + + + + + 3891.153600 + + + +
+
+ + + + + + + + Single zonePackaged UnitaryElectricityPackaged/unitary heat pumpCentral fanCAV terminal box no reheatNone +
+ + + + + +
+
+
+ + + + + T8 + + + Standard Electronic + + 0.200000 + + 100.000000 + 5.500000 + 32.000000 + 4 + 1.000000 + 43 + false + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + T12 + + + Standard Electronic + 100.000000 + 1.582575 + 316.516000 + 1 + 1.000000 + 5 + true + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + LED + + + Standard Electronic + + 0.100000 + + 100.000000 + 2.752000 + 16.000000 + 4 + 1.000000 + 43 + false + + + + + + + Photocell + Continuous + + + + false + +
+ + + + + +
+
+
+
+ + + + + + + + 40.000000 + 123.000000 + + + Notes + + 1 + 3.600000 + Continuous + 123.000000 + 1.870180 + + Looped + Thermal Efficiency + 1.000000 + 40.000000 + 140.000000 + 1950.520000 + 11722.840000 + W + + + + + + + + + + 2000 + Electricity + Good + + + + +
+ +
+
+ 1 +
+
+ + + 0.536000 + 880.000000 + 880.000000 + Constant Volume + + + + + + 0.536000 + 872.000000 + 872.000000 + Variable Volume + + + + + + 0.536000 + 836.000000 + 836.000000 + Constant Volume + + + + + + 0.536000 + 830.000000 + 830.000000 + Variable Volume + + + + + + 0.536000 + 671.000000 + 671.000000 + Constant Volume + + + + + + 0.536000 + 664.000000 + 664.000000 + Variable Volume + + + + + + 0.536000 + 774.000000 + 774.000000 + Constant Volume + + + + + + 0.536000 + 766.000000 + 766.000000 + Variable Volume + + + + + + 0.536000 + 841.000000 + 841.000000 + Constant Volume + + + + + + 0.536000 + 833.000000 + 833.000000 + Variable Volume + + + + + + + + Wood frame + 0.547000 + + + + + Wood frame + 4.706000 + + + + + + + + Vinyl + Clear uncoated + Single pane + 3.241000 + 0.391000 + 0.391000 + + + + + + Vinyl + Low e + Triple pane + 0.300000 + 0.391000 + 0.391000 + + + + + Insulated metal + 0.500000 + + + Steel + 2.839000 + + + + + + + + 0.345000 + + + + Concrete poured + + + + + Miscellaneous Electric Load + 0.630000 + +
+ + + + + +
+
+
+
+ + + Notes on test + Tight + 0.151000 + ACHnatural + Blower door + +
+ +
+
+
+
+ + + Notes on test + +
+ +
+
+
+
+
+ + + + + Weekday + Occupied + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + Occupied + 06:00:00 + 07:00:00 + 11.000000 + + + Weekday + Occupied + 07:00:00 + 08:00:00 + 21.000000 + + + Weekday + Occupied + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Occupied + 12:00:00 + 13:00:00 + 53.000000 + + + Weekday + Occupied + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Occupied + 17:00:00 + 18:00:00 + 32.000000 + + + Weekday + Occupied + 18:00:00 + 22:00:00 + 11.000000 + + + Weekday + Occupied + 22:00:00 + 23:00:00 + 5.000000 + + + Weekday + Occupied + 23:00:00 + 23:59:59 + 0.000000 + + + Weekend + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + + + + +
+ +
+
+
+ + + + Weekday + Lighting + 00:00:00 + 05:00:00 + 18.000000 + + + Weekday + Lighting + 05:00:00 + 07:00:00 + 23.000000 + + + Weekday + Lighting + 07:00:00 + 08:00:00 + 42.000000 + + + Weekday + Lighting + 08:00:00 + 12:00:00 + 90.000000 + + + Weekday + Lighting + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + Lighting + 13:00:00 + 17:00:00 + 90.000000 + + + Weekday + Lighting + 17:00:00 + 18:00:00 + 61.000000 + + + Weekday + Lighting + 18:00:00 + 20:00:00 + 42.000000 + + + Weekday + Lighting + 20:00:00 + 22:00:00 + 32.000000 + + + Weekday + Lighting + 22:00:00 + 23:00:00 + 23.000000 + + + Weekday + Lighting + 23:00:00 + 23:59:59 + 18.000000 + + + Weekend + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + Holiday + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + + + + + + + + + + Weekday + Miscellaneous equipment + 00:00:00 + 08:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 12:00:00 + 13:00:00 + 94.000000 + + + Weekday + Miscellaneous equipment + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 17:00:00 + 18:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 18:00:00 + 23:59:59 + 20.000000 + + + Weekend + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + Holiday + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 19:00:00 + 100.000000 + + + Weekday + HVAC equipment + 19:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 07:00:00 + 60.000000 + + + Weekday + HVAC equipment + 07:00:00 + 12:00:00 + 100.000000 + + + Weekday + HVAC equipment + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + HVAC equipment + 13:00:00 + 18:00:00 + 100.000000 + + + Weekday + HVAC equipment + 18:00:00 + 20:00:00 + 60.000000 + + + Weekday + HVAC equipment + 20:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + +
+ + + + + + + + + + + Lighting + + + + Retrofit with light emitting diode technologies + + + + Individual system + This measure is designed to replace all fluorescent bulbs with LEDs + 1 + 50.000000 + 774.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + Fan + + + + Add VSD motor controller + + + + Individual system + This measure is designed to retrofit all RTU fans with a VSD + 1 + 750.000000 + 1250.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + + + + + + Electricity + This is required to document irregularities in monthly energy patterns (Std 211 6.1.2.1.j). No irregularities found. + kWh + All end uses + 67334.150000 + 229.753657 + + + + + + + + + + + + + + + kW + 26.040000 + 26.040000 + 4613.820000 + + + + + + Natural gas + No irregularities in monthly energy consumption found. + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + + + + + + 540.830000 + + + + + + Electricity + kWh + Interior lighting + 28.705000 + 20062.690000 + 68.453898 + + + + Electricity + kWh + Heating + 6.722000 + 4698.230000 + 16.030361 + + + + Electricity + kWh + Cooling + 8.769000 + 6128.870000 + 20.911704 + + + + Electricity + kWh + Domestic hot water + 10.281000 + 7185.370000 + 24.516482 + + + + Electricity + kWh + Plug load + 21.379000 + 14942.150000 + 50.982616 + + + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 5933.100000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 5446.100000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 5736.490000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 4980.500000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 5187.210000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 5842.950000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 5801.730000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 6220.160000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 5682.870000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 5571.930000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 5525.150000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 5405.940000 + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 1.720000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 1.250000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.430000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.010000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.200000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.400000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 4.300000 + + + + Peak + On-peak + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 23.580000 + + + + Peak + On-peak + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 25.380000 + + + + Peak + On-peak + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 26.040000 + + + + Peak + On-peak + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 24.450000 + + + + Peak + On-peak + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 17.030000 + + + + Peak + On-peak + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 22.710000 + + + + Peak + On-peak + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 22.010000 + + + + Peak + On-peak + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 21.810000 + + + + Peak + On-peak + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 20.630000 + + + + Peak + On-peak + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 21.870000 + + + + Peak + On-peak + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 21.630000 + + + + Peak + On-peak + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 21.780000 + + + + Load factor + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 0.320000 + + + + Load factor + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.300000 + + + + Load factor + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.280000 + + + + Load factor + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Load factor + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.360000 + + + + Load factor + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 0.330000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 332.160000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 306.290000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 321.720000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 281.540000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 292.530000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 534.100000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 530.450000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 567.490000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 519.930000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 312.970000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 310.490000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 304.150000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 46.690000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 45.930000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 44.550000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 44.580000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 43.900000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 44.210000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 44.530000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 50.920000 + + + + + + 238473.656550 + 43.358800 + 737088.900000 + 134.000000 + 238473.656550 + 43.358800 + 238.473657 + 0.000000 + 0.000000 + 0.000000 + 4952.480000 + 0.900000 + + + + + + + + + + + + + + 2022-06-01 + + + Portfolio Manager + 2019 + 80.000000 + + + + + 238473.656550 + 43.358800 + 4952.480000 + + + + + + + + + + + + + 39070.530000 + 995 + 89.000000 + + + + + 190348.600000 + 34.600000 + 4846.040000 + 0.881000 + + + + + + + + + + + + + + TMY3 + Finished + + + + + + + Electricity + kWh + All end uses + 67334.150000 + 229.753657 + kW + 26.040000 + 26.040000 + + + Natural gas + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + POM-LEDs + + + + + + + Capital + 35.713000 + 772 + + + Electricity + kWh + 11524.540000 + + + Natural gas + MMBtu + 0.000000 + + + 3.220000 + 0 + 0.000000 + 0.000000 + 1 + 824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 1.070000 + 0.000000 + + + + + + + + + + POM-VSDs + + + + + + + Capital + 5.175000 + 9 + + + Electricity + kWh + 207.240000 + + + Natural gas + MMBtu + 4.460000 + + + 0.420000 + 0 + 0.000000 + 0.000000 + 1 + 2000.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 230.150000 + 0.000000 + + + + + + + + + + POM-LEDs-VSDs + + + + + + + + Capital + 41.827000 + 781 + + + Electricity + kWh + 11701.620000 + + + Natural gas + MMBtu + 1.890000 + + + 4.700000 + 0 + 0.000000 + 0.000000 + 1 + 2824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 3.620000 + 0.000000 + + + + + + + + + + Level 2: Energy Survey and Analysis + + + + + + + + + --06-01 + --09-30 + --06-01 + --09-30 + 0.088520 + 0.000000 + + + --01-01 + --05-31 + --01-01 + --05-31 + 0.053140 + 0.000000 + + + --10-01 + --12-31 + --10-01 + --12-31 + 0.053140 + 0.000000 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 16.880000 + + + 12345 + Xcel Energy + + Some-meter-ID + + some-account-number + Building Owner + + + + + + + + + --01-01 + --12-31 + 0.163600 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 43.880000 + + + Xcel Energy + + Some-meter-ID + + some-other-account-number + Building Owner + + + + + + + + + + + + + + Owner + + The dude + Some big company + + + 123-456-7890 + + + + + the.dude@somebigco.net + + + + + + Energy Auditor + + The lady + Auditeers + + + 123-456-7890 + + + + + the.lady@the-three-auditeers.com + + + + + + + diff --git a/spec/files/v2.7.0/l200_hvac/l200_rtu_hp_gas_backup.xml b/spec/files/v2.7.0/l200_hvac/l200_rtu_hp_gas_backup.xml new file mode 100644 index 0000000..04a47d8 --- /dev/null +++ b/spec/files/v2.7.0/l200_hvac/l200_rtu_hp_gas_backup.xml @@ -0,0 +1,2292 @@ + + + + + + + + + Prototype Small Office in Denver + Here we record general problems / issues identified in a walkthrough survey. + + + City Custom Building ID + some ID + + + Custom ID 1 + some other ID + + +
+ + + Some address + + + Denver + CO + 80014 +
+ -104.830000 + 39.660000 + Commercial + Office + + 1 + 0 + 1 + 0 + true + false + + + Gross + 5500.000000 + + + + + + Conditioned + 5500.000000 + + + + + + 6500.000000 + 0.000000 + 0.213300 + 0.050000 + 2012 + 2000 + 2010 + 2020-03-01 + 2012 + +
+ Space function + Office + Office + + + Peak total occupants + 31.000000 + + + + + 40.000000 + Hours per week + + + 50.000000 + Weeks per year + + + + + Gross + 5500.000000 + + + Conditioned + 5500.000000 + + + Single zone +
+
+ Whole building + Rectangular + + + A1 + + + 909.012230 + + + + + 180.187860 + + + + + 42.086890 + + + + + B1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + C1 + + + 909.012230 + + + + + 180.187860 + + + + + 0.000000 + + + + + D1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + + + + 6444.999000 + Good + + + + + + + 3891.153600 + + + +
+
+ + + + + + + + Single zonePackaged UnitaryNatural gasPackaged/unitary heat pumpCentral fanCAV terminal box no reheatNone +
+ + + + + +
+
+
+ + + + + T8 + + + Standard Electronic + + 0.200000 + + 100.000000 + 5.500000 + 32.000000 + 4 + 1.000000 + 43 + false + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + T12 + + + Standard Electronic + 100.000000 + 1.582575 + 316.516000 + 1 + 1.000000 + 5 + true + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + LED + + + Standard Electronic + + 0.100000 + + 100.000000 + 2.752000 + 16.000000 + 4 + 1.000000 + 43 + false + + + + + + + Photocell + Continuous + + + + false + +
+ + + + + +
+
+
+
+ + + + + + + + 40.000000 + 123.000000 + + + Notes + + 1 + 3.600000 + Continuous + 123.000000 + 1.870180 + + Looped + Thermal Efficiency + 1.000000 + 40.000000 + 140.000000 + 1950.520000 + 11722.840000 + W + + + + + + + + + + 2000 + Electricity + Good + + + + +
+ +
+
+ 1 +
+
+ + + 0.536000 + 880.000000 + 880.000000 + Constant Volume + + + + + + 0.536000 + 872.000000 + 872.000000 + Variable Volume + + + + + + 0.536000 + 836.000000 + 836.000000 + Constant Volume + + + + + + 0.536000 + 830.000000 + 830.000000 + Variable Volume + + + + + + 0.536000 + 671.000000 + 671.000000 + Constant Volume + + + + + + 0.536000 + 664.000000 + 664.000000 + Variable Volume + + + + + + 0.536000 + 774.000000 + 774.000000 + Constant Volume + + + + + + 0.536000 + 766.000000 + 766.000000 + Variable Volume + + + + + + 0.536000 + 841.000000 + 841.000000 + Constant Volume + + + + + + 0.536000 + 833.000000 + 833.000000 + Variable Volume + + + + + + + + Wood frame + 0.547000 + + + + + Wood frame + 4.706000 + + + + + + + + Vinyl + Clear uncoated + Single pane + 3.241000 + 0.391000 + 0.391000 + + + + + + Vinyl + Low e + Triple pane + 0.300000 + 0.391000 + 0.391000 + + + + + Insulated metal + 0.500000 + + + Steel + 2.839000 + + + + + + + + 0.345000 + + + + Concrete poured + + + + + Miscellaneous Electric Load + 0.630000 + +
+ + + + + +
+
+
+
+ + + Notes on test + Tight + 0.151000 + ACHnatural + Blower door + +
+ +
+
+
+
+ + + Notes on test + +
+ +
+
+
+
+
+ + + + + Weekday + Occupied + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + Occupied + 06:00:00 + 07:00:00 + 11.000000 + + + Weekday + Occupied + 07:00:00 + 08:00:00 + 21.000000 + + + Weekday + Occupied + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Occupied + 12:00:00 + 13:00:00 + 53.000000 + + + Weekday + Occupied + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Occupied + 17:00:00 + 18:00:00 + 32.000000 + + + Weekday + Occupied + 18:00:00 + 22:00:00 + 11.000000 + + + Weekday + Occupied + 22:00:00 + 23:00:00 + 5.000000 + + + Weekday + Occupied + 23:00:00 + 23:59:59 + 0.000000 + + + Weekend + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + + + + +
+ +
+
+
+ + + + Weekday + Lighting + 00:00:00 + 05:00:00 + 18.000000 + + + Weekday + Lighting + 05:00:00 + 07:00:00 + 23.000000 + + + Weekday + Lighting + 07:00:00 + 08:00:00 + 42.000000 + + + Weekday + Lighting + 08:00:00 + 12:00:00 + 90.000000 + + + Weekday + Lighting + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + Lighting + 13:00:00 + 17:00:00 + 90.000000 + + + Weekday + Lighting + 17:00:00 + 18:00:00 + 61.000000 + + + Weekday + Lighting + 18:00:00 + 20:00:00 + 42.000000 + + + Weekday + Lighting + 20:00:00 + 22:00:00 + 32.000000 + + + Weekday + Lighting + 22:00:00 + 23:00:00 + 23.000000 + + + Weekday + Lighting + 23:00:00 + 23:59:59 + 18.000000 + + + Weekend + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + Holiday + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + + + + + + + + + + Weekday + Miscellaneous equipment + 00:00:00 + 08:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 12:00:00 + 13:00:00 + 94.000000 + + + Weekday + Miscellaneous equipment + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 17:00:00 + 18:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 18:00:00 + 23:59:59 + 20.000000 + + + Weekend + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + Holiday + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 19:00:00 + 100.000000 + + + Weekday + HVAC equipment + 19:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 07:00:00 + 60.000000 + + + Weekday + HVAC equipment + 07:00:00 + 12:00:00 + 100.000000 + + + Weekday + HVAC equipment + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + HVAC equipment + 13:00:00 + 18:00:00 + 100.000000 + + + Weekday + HVAC equipment + 18:00:00 + 20:00:00 + 60.000000 + + + Weekday + HVAC equipment + 20:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + +
+ + + + + + + + + + + Lighting + + + + Retrofit with light emitting diode technologies + + + + Individual system + This measure is designed to replace all fluorescent bulbs with LEDs + 1 + 50.000000 + 774.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + Fan + + + + Add VSD motor controller + + + + Individual system + This measure is designed to retrofit all RTU fans with a VSD + 1 + 750.000000 + 1250.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + + + + + + Electricity + This is required to document irregularities in monthly energy patterns (Std 211 6.1.2.1.j). No irregularities found. + kWh + All end uses + 67334.150000 + 229.753657 + + + + + + + + + + + + + + + kW + 26.040000 + 26.040000 + 4613.820000 + + + + + + Natural gas + No irregularities in monthly energy consumption found. + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + + + + + + 540.830000 + + + + + + Electricity + kWh + Interior lighting + 28.705000 + 20062.690000 + 68.453898 + + + + Electricity + kWh + Heating + 6.722000 + 4698.230000 + 16.030361 + + + + Electricity + kWh + Cooling + 8.769000 + 6128.870000 + 20.911704 + + + + Electricity + kWh + Domestic hot water + 10.281000 + 7185.370000 + 24.516482 + + + + Electricity + kWh + Plug load + 21.379000 + 14942.150000 + 50.982616 + + + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 5933.100000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 5446.100000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 5736.490000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 4980.500000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 5187.210000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 5842.950000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 5801.730000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 6220.160000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 5682.870000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 5571.930000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 5525.150000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 5405.940000 + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 1.720000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 1.250000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.430000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.010000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.200000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.400000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 4.300000 + + + + Peak + On-peak + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 23.580000 + + + + Peak + On-peak + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 25.380000 + + + + Peak + On-peak + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 26.040000 + + + + Peak + On-peak + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 24.450000 + + + + Peak + On-peak + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 17.030000 + + + + Peak + On-peak + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 22.710000 + + + + Peak + On-peak + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 22.010000 + + + + Peak + On-peak + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 21.810000 + + + + Peak + On-peak + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 20.630000 + + + + Peak + On-peak + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 21.870000 + + + + Peak + On-peak + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 21.630000 + + + + Peak + On-peak + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 21.780000 + + + + Load factor + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 0.320000 + + + + Load factor + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.300000 + + + + Load factor + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.280000 + + + + Load factor + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Load factor + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.360000 + + + + Load factor + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 0.330000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 332.160000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 306.290000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 321.720000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 281.540000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 292.530000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 534.100000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 530.450000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 567.490000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 519.930000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 312.970000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 310.490000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 304.150000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 46.690000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 45.930000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 44.550000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 44.580000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 43.900000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 44.210000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 44.530000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 50.920000 + + + + + + 238473.656550 + 43.358800 + 737088.900000 + 134.000000 + 238473.656550 + 43.358800 + 238.473657 + 0.000000 + 0.000000 + 0.000000 + 4952.480000 + 0.900000 + + + + + + + + + + + + + + 2022-06-01 + + + Portfolio Manager + 2019 + 80.000000 + + + + + 238473.656550 + 43.358800 + 4952.480000 + + + + + + + + + + + + + 39070.530000 + 995 + 89.000000 + + + + + 190348.600000 + 34.600000 + 4846.040000 + 0.881000 + + + + + + + + + + + + + + TMY3 + Finished + + + + + + + Electricity + kWh + All end uses + 67334.150000 + 229.753657 + kW + 26.040000 + 26.040000 + + + Natural gas + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + POM-LEDs + + + + + + + Capital + 35.713000 + 772 + + + Electricity + kWh + 11524.540000 + + + Natural gas + MMBtu + 0.000000 + + + 3.220000 + 0 + 0.000000 + 0.000000 + 1 + 824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 1.070000 + 0.000000 + + + + + + + + + + POM-VSDs + + + + + + + Capital + 5.175000 + 9 + + + Electricity + kWh + 207.240000 + + + Natural gas + MMBtu + 4.460000 + + + 0.420000 + 0 + 0.000000 + 0.000000 + 1 + 2000.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 230.150000 + 0.000000 + + + + + + + + + + POM-LEDs-VSDs + + + + + + + + Capital + 41.827000 + 781 + + + Electricity + kWh + 11701.620000 + + + Natural gas + MMBtu + 1.890000 + + + 4.700000 + 0 + 0.000000 + 0.000000 + 1 + 2824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 3.620000 + 0.000000 + + + + + + + + + + Level 2: Energy Survey and Analysis + + + + + + + + + --06-01 + --09-30 + --06-01 + --09-30 + 0.088520 + 0.000000 + + + --01-01 + --05-31 + --01-01 + --05-31 + 0.053140 + 0.000000 + + + --10-01 + --12-31 + --10-01 + --12-31 + 0.053140 + 0.000000 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 16.880000 + + + 12345 + Xcel Energy + + Some-meter-ID + + some-account-number + Building Owner + + + + + + + + + --01-01 + --12-31 + 0.163600 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 43.880000 + + + Xcel Energy + + Some-meter-ID + + some-other-account-number + Building Owner + + + + + + + + + + + + + + Owner + + The dude + Some big company + + + 123-456-7890 + + + + + the.dude@somebigco.net + + + + + + Energy Auditor + + The lady + Auditeers + + + 123-456-7890 + + + + + the.lady@the-three-auditeers.com + + + + + + + diff --git a/spec/files/v2.7.0/l200_hvac/l200_vav_hw_reheat.xml b/spec/files/v2.7.0/l200_hvac/l200_vav_hw_reheat.xml new file mode 100644 index 0000000..87bc7b5 --- /dev/null +++ b/spec/files/v2.7.0/l200_hvac/l200_vav_hw_reheat.xml @@ -0,0 +1,2292 @@ + + + + + + + + + Prototype Small Office in Denver + Here we record general problems / issues identified in a walkthrough survey. + + + City Custom Building ID + some ID + + + Custom ID 1 + some other ID + + +
+ + + Some address + + + Denver + CO + 80014 +
+ -104.830000 + 39.660000 + Commercial + Office + + 1 + 0 + 1 + 0 + true + false + + + Gross + 5500.000000 + + + + + + Conditioned + 5500.000000 + + + + + + 6500.000000 + 0.000000 + 0.213300 + 0.050000 + 2012 + 2000 + 2010 + 2020-03-01 + 2012 + +
+ Space function + Office + Office + + + Peak total occupants + 31.000000 + + + + + 40.000000 + Hours per week + + + 50.000000 + Weeks per year + + + + + Gross + 5500.000000 + + + Conditioned + 5500.000000 + + + Single zone +
+
+ Whole building + Rectangular + + + A1 + + + 909.012230 + + + + + 180.187860 + + + + + 42.086890 + + + + + B1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + C1 + + + 909.012230 + + + + + 180.187860 + + + + + 0.000000 + + + + + D1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + + + + 6444.999000 + Good + + + + + + + 3891.153600 + + + +
+
+ + + + + + + + Hot waterNatural gasVapor compressionElectric MotorCooling towerMulti zoneHot waterChilled water1Central fanVAV terminal box not fan powered with reheatHeating plant +
+ + + + + +
+
+
+ + + + + T8 + + + Standard Electronic + + 0.200000 + + 100.000000 + 5.500000 + 32.000000 + 4 + 1.000000 + 43 + false + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + T12 + + + Standard Electronic + 100.000000 + 1.582575 + 316.516000 + 1 + 1.000000 + 5 + true + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + LED + + + Standard Electronic + + 0.100000 + + 100.000000 + 2.752000 + 16.000000 + 4 + 1.000000 + 43 + false + + + + + + + Photocell + Continuous + + + + false + +
+ + + + + +
+
+
+
+ + + + + + + + 40.000000 + 123.000000 + + + Notes + + 1 + 3.600000 + Continuous + 123.000000 + 1.870180 + + Looped + Thermal Efficiency + 1.000000 + 40.000000 + 140.000000 + 1950.520000 + 11722.840000 + W + + + + + + + + + + 2000 + Electricity + Good + + + + +
+ +
+
+ 1 +
+
+ + + 0.536000 + 880.000000 + 880.000000 + Constant Volume + + + + + + 0.536000 + 872.000000 + 872.000000 + Variable Volume + + + + + + 0.536000 + 836.000000 + 836.000000 + Constant Volume + + + + + + 0.536000 + 830.000000 + 830.000000 + Variable Volume + + + + + + 0.536000 + 671.000000 + 671.000000 + Constant Volume + + + + + + 0.536000 + 664.000000 + 664.000000 + Variable Volume + + + + + + 0.536000 + 774.000000 + 774.000000 + Constant Volume + + + + + + 0.536000 + 766.000000 + 766.000000 + Variable Volume + + + + + + 0.536000 + 841.000000 + 841.000000 + Constant Volume + + + + + + 0.536000 + 833.000000 + 833.000000 + Variable Volume + + + + + + + + Wood frame + 0.547000 + + + + + Wood frame + 4.706000 + + + + + + + + Vinyl + Clear uncoated + Single pane + 3.241000 + 0.391000 + 0.391000 + + + + + + Vinyl + Low e + Triple pane + 0.300000 + 0.391000 + 0.391000 + + + + + Insulated metal + 0.500000 + + + Steel + 2.839000 + + + + + + + + 0.345000 + + + + Concrete poured + + + + + Miscellaneous Electric Load + 0.630000 + +
+ + + + + +
+
+
+
+ + + Notes on test + Tight + 0.151000 + ACHnatural + Blower door + +
+ +
+
+
+
+ + + Notes on test + +
+ +
+
+
+
+
+ + + + + Weekday + Occupied + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + Occupied + 06:00:00 + 07:00:00 + 11.000000 + + + Weekday + Occupied + 07:00:00 + 08:00:00 + 21.000000 + + + Weekday + Occupied + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Occupied + 12:00:00 + 13:00:00 + 53.000000 + + + Weekday + Occupied + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Occupied + 17:00:00 + 18:00:00 + 32.000000 + + + Weekday + Occupied + 18:00:00 + 22:00:00 + 11.000000 + + + Weekday + Occupied + 22:00:00 + 23:00:00 + 5.000000 + + + Weekday + Occupied + 23:00:00 + 23:59:59 + 0.000000 + + + Weekend + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + + + + +
+ +
+
+
+ + + + Weekday + Lighting + 00:00:00 + 05:00:00 + 18.000000 + + + Weekday + Lighting + 05:00:00 + 07:00:00 + 23.000000 + + + Weekday + Lighting + 07:00:00 + 08:00:00 + 42.000000 + + + Weekday + Lighting + 08:00:00 + 12:00:00 + 90.000000 + + + Weekday + Lighting + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + Lighting + 13:00:00 + 17:00:00 + 90.000000 + + + Weekday + Lighting + 17:00:00 + 18:00:00 + 61.000000 + + + Weekday + Lighting + 18:00:00 + 20:00:00 + 42.000000 + + + Weekday + Lighting + 20:00:00 + 22:00:00 + 32.000000 + + + Weekday + Lighting + 22:00:00 + 23:00:00 + 23.000000 + + + Weekday + Lighting + 23:00:00 + 23:59:59 + 18.000000 + + + Weekend + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + Holiday + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + + + + + + + + + + Weekday + Miscellaneous equipment + 00:00:00 + 08:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 12:00:00 + 13:00:00 + 94.000000 + + + Weekday + Miscellaneous equipment + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 17:00:00 + 18:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 18:00:00 + 23:59:59 + 20.000000 + + + Weekend + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + Holiday + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 19:00:00 + 100.000000 + + + Weekday + HVAC equipment + 19:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 07:00:00 + 60.000000 + + + Weekday + HVAC equipment + 07:00:00 + 12:00:00 + 100.000000 + + + Weekday + HVAC equipment + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + HVAC equipment + 13:00:00 + 18:00:00 + 100.000000 + + + Weekday + HVAC equipment + 18:00:00 + 20:00:00 + 60.000000 + + + Weekday + HVAC equipment + 20:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + +
+ + + + + + + + + + + Lighting + + + + Retrofit with light emitting diode technologies + + + + Individual system + This measure is designed to replace all fluorescent bulbs with LEDs + 1 + 50.000000 + 774.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + Fan + + + + Add VSD motor controller + + + + Individual system + This measure is designed to retrofit all RTU fans with a VSD + 1 + 750.000000 + 1250.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + + + + + + Electricity + This is required to document irregularities in monthly energy patterns (Std 211 6.1.2.1.j). No irregularities found. + kWh + All end uses + 67334.150000 + 229.753657 + + + + + + + + + + + + + + + kW + 26.040000 + 26.040000 + 4613.820000 + + + + + + Natural gas + No irregularities in monthly energy consumption found. + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + + + + + + 540.830000 + + + + + + Electricity + kWh + Interior lighting + 28.705000 + 20062.690000 + 68.453898 + + + + Electricity + kWh + Heating + 6.722000 + 4698.230000 + 16.030361 + + + + Electricity + kWh + Cooling + 8.769000 + 6128.870000 + 20.911704 + + + + Electricity + kWh + Domestic hot water + 10.281000 + 7185.370000 + 24.516482 + + + + Electricity + kWh + Plug load + 21.379000 + 14942.150000 + 50.982616 + + + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 5933.100000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 5446.100000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 5736.490000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 4980.500000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 5187.210000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 5842.950000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 5801.730000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 6220.160000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 5682.870000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 5571.930000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 5525.150000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 5405.940000 + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 1.720000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 1.250000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.430000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.010000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.200000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.400000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 4.300000 + + + + Peak + On-peak + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 23.580000 + + + + Peak + On-peak + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 25.380000 + + + + Peak + On-peak + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 26.040000 + + + + Peak + On-peak + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 24.450000 + + + + Peak + On-peak + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 17.030000 + + + + Peak + On-peak + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 22.710000 + + + + Peak + On-peak + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 22.010000 + + + + Peak + On-peak + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 21.810000 + + + + Peak + On-peak + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 20.630000 + + + + Peak + On-peak + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 21.870000 + + + + Peak + On-peak + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 21.630000 + + + + Peak + On-peak + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 21.780000 + + + + Load factor + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 0.320000 + + + + Load factor + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.300000 + + + + Load factor + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.280000 + + + + Load factor + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Load factor + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.360000 + + + + Load factor + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 0.330000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 332.160000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 306.290000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 321.720000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 281.540000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 292.530000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 534.100000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 530.450000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 567.490000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 519.930000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 312.970000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 310.490000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 304.150000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 46.690000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 45.930000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 44.550000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 44.580000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 43.900000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 44.210000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 44.530000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 50.920000 + + + + + + 238473.656550 + 43.358800 + 737088.900000 + 134.000000 + 238473.656550 + 43.358800 + 238.473657 + 0.000000 + 0.000000 + 0.000000 + 4952.480000 + 0.900000 + + + + + + + + + + + + + + 2022-06-01 + + + Portfolio Manager + 2019 + 80.000000 + + + + + 238473.656550 + 43.358800 + 4952.480000 + + + + + + + + + + + + + 39070.530000 + 995 + 89.000000 + + + + + 190348.600000 + 34.600000 + 4846.040000 + 0.881000 + + + + + + + + + + + + + + TMY3 + Finished + + + + + + + Electricity + kWh + All end uses + 67334.150000 + 229.753657 + kW + 26.040000 + 26.040000 + + + Natural gas + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + POM-LEDs + + + + + + + Capital + 35.713000 + 772 + + + Electricity + kWh + 11524.540000 + + + Natural gas + MMBtu + 0.000000 + + + 3.220000 + 0 + 0.000000 + 0.000000 + 1 + 824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 1.070000 + 0.000000 + + + + + + + + + + POM-VSDs + + + + + + + Capital + 5.175000 + 9 + + + Electricity + kWh + 207.240000 + + + Natural gas + MMBtu + 4.460000 + + + 0.420000 + 0 + 0.000000 + 0.000000 + 1 + 2000.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 230.150000 + 0.000000 + + + + + + + + + + POM-LEDs-VSDs + + + + + + + + Capital + 41.827000 + 781 + + + Electricity + kWh + 11701.620000 + + + Natural gas + MMBtu + 1.890000 + + + 4.700000 + 0 + 0.000000 + 0.000000 + 1 + 2824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 3.620000 + 0.000000 + + + + + + + + + + Level 2: Energy Survey and Analysis + + + + + + + + + --06-01 + --09-30 + --06-01 + --09-30 + 0.088520 + 0.000000 + + + --01-01 + --05-31 + --01-01 + --05-31 + 0.053140 + 0.000000 + + + --10-01 + --12-31 + --10-01 + --12-31 + 0.053140 + 0.000000 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 16.880000 + + + 12345 + Xcel Energy + + Some-meter-ID + + some-account-number + Building Owner + + + + + + + + + --01-01 + --12-31 + 0.163600 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 43.880000 + + + Xcel Energy + + Some-meter-ID + + some-other-account-number + Building Owner + + + + + + + + + + + + + + Owner + + The dude + Some big company + + + 123-456-7890 + + + + + the.dude@somebigco.net + + + + + + Energy Auditor + + The lady + Auditeers + + + 123-456-7890 + + + + + the.lady@the-three-auditeers.com + + + + + + + diff --git a/spec/files/v2.7.0/l200_hvac/l200_vrf.xml b/spec/files/v2.7.0/l200_hvac/l200_vrf.xml new file mode 100644 index 0000000..9cfd710 --- /dev/null +++ b/spec/files/v2.7.0/l200_hvac/l200_vrf.xml @@ -0,0 +1,2292 @@ + + + + + + + + + Prototype Small Office in Denver + Here we record general problems / issues identified in a walkthrough survey. + + + City Custom Building ID + some ID + + + Custom ID 1 + some other ID + + +
+ + + Some address + + + Denver + CO + 80014 +
+ -104.830000 + 39.660000 + Commercial + Office + + 1 + 0 + 1 + 0 + true + false + + + Gross + 5500.000000 + + + + + + Conditioned + 5500.000000 + + + + + + 6500.000000 + 0.000000 + 0.213300 + 0.050000 + 2012 + 2000 + 2010 + 2020-03-01 + 2012 + +
+ Space function + Office + Office + + + Peak total occupants + 31.000000 + + + + + 40.000000 + Hours per week + + + 50.000000 + Weeks per year + + + + + Gross + 5500.000000 + + + Conditioned + 5500.000000 + + + Single zone +
+
+ Whole building + Rectangular + + + A1 + + + 909.012230 + + + + + 180.187860 + + + + + 42.086890 + + + + + B1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + C1 + + + 909.012230 + + + + + 180.187860 + + + + + 0.000000 + + + + + D1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + + + + 6444.999000 + Good + + + + + + + 3891.153600 + + + +
+
+ + + + + + + + Variable refrigerant flow1VRF terminal units +
+ + + + + +
+
+
+ + + + + T8 + + + Standard Electronic + + 0.200000 + + 100.000000 + 5.500000 + 32.000000 + 4 + 1.000000 + 43 + false + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + T12 + + + Standard Electronic + 100.000000 + 1.582575 + 316.516000 + 1 + 1.000000 + 5 + true + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + LED + + + Standard Electronic + + 0.100000 + + 100.000000 + 2.752000 + 16.000000 + 4 + 1.000000 + 43 + false + + + + + + + Photocell + Continuous + + + + false + +
+ + + + + +
+
+
+
+ + + + + + + + 40.000000 + 123.000000 + + + Notes + + 1 + 3.600000 + Continuous + 123.000000 + 1.870180 + + Looped + Thermal Efficiency + 1.000000 + 40.000000 + 140.000000 + 1950.520000 + 11722.840000 + W + + + + + + + + + + 2000 + Electricity + Good + + + + +
+ +
+
+ 1 +
+
+ + + 0.536000 + 880.000000 + 880.000000 + Constant Volume + + + + + + 0.536000 + 872.000000 + 872.000000 + Variable Volume + + + + + + 0.536000 + 836.000000 + 836.000000 + Constant Volume + + + + + + 0.536000 + 830.000000 + 830.000000 + Variable Volume + + + + + + 0.536000 + 671.000000 + 671.000000 + Constant Volume + + + + + + 0.536000 + 664.000000 + 664.000000 + Variable Volume + + + + + + 0.536000 + 774.000000 + 774.000000 + Constant Volume + + + + + + 0.536000 + 766.000000 + 766.000000 + Variable Volume + + + + + + 0.536000 + 841.000000 + 841.000000 + Constant Volume + + + + + + 0.536000 + 833.000000 + 833.000000 + Variable Volume + + + + + + + + Wood frame + 0.547000 + + + + + Wood frame + 4.706000 + + + + + + + + Vinyl + Clear uncoated + Single pane + 3.241000 + 0.391000 + 0.391000 + + + + + + Vinyl + Low e + Triple pane + 0.300000 + 0.391000 + 0.391000 + + + + + Insulated metal + 0.500000 + + + Steel + 2.839000 + + + + + + + + 0.345000 + + + + Concrete poured + + + + + Miscellaneous Electric Load + 0.630000 + +
+ + + + + +
+
+
+
+ + + Notes on test + Tight + 0.151000 + ACHnatural + Blower door + +
+ +
+
+
+
+ + + Notes on test + +
+ +
+
+
+
+
+ + + + + Weekday + Occupied + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + Occupied + 06:00:00 + 07:00:00 + 11.000000 + + + Weekday + Occupied + 07:00:00 + 08:00:00 + 21.000000 + + + Weekday + Occupied + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Occupied + 12:00:00 + 13:00:00 + 53.000000 + + + Weekday + Occupied + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Occupied + 17:00:00 + 18:00:00 + 32.000000 + + + Weekday + Occupied + 18:00:00 + 22:00:00 + 11.000000 + + + Weekday + Occupied + 22:00:00 + 23:00:00 + 5.000000 + + + Weekday + Occupied + 23:00:00 + 23:59:59 + 0.000000 + + + Weekend + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + + + + +
+ +
+
+
+ + + + Weekday + Lighting + 00:00:00 + 05:00:00 + 18.000000 + + + Weekday + Lighting + 05:00:00 + 07:00:00 + 23.000000 + + + Weekday + Lighting + 07:00:00 + 08:00:00 + 42.000000 + + + Weekday + Lighting + 08:00:00 + 12:00:00 + 90.000000 + + + Weekday + Lighting + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + Lighting + 13:00:00 + 17:00:00 + 90.000000 + + + Weekday + Lighting + 17:00:00 + 18:00:00 + 61.000000 + + + Weekday + Lighting + 18:00:00 + 20:00:00 + 42.000000 + + + Weekday + Lighting + 20:00:00 + 22:00:00 + 32.000000 + + + Weekday + Lighting + 22:00:00 + 23:00:00 + 23.000000 + + + Weekday + Lighting + 23:00:00 + 23:59:59 + 18.000000 + + + Weekend + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + Holiday + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + + + + + + + + + + Weekday + Miscellaneous equipment + 00:00:00 + 08:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 12:00:00 + 13:00:00 + 94.000000 + + + Weekday + Miscellaneous equipment + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 17:00:00 + 18:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 18:00:00 + 23:59:59 + 20.000000 + + + Weekend + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + Holiday + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 19:00:00 + 100.000000 + + + Weekday + HVAC equipment + 19:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 07:00:00 + 60.000000 + + + Weekday + HVAC equipment + 07:00:00 + 12:00:00 + 100.000000 + + + Weekday + HVAC equipment + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + HVAC equipment + 13:00:00 + 18:00:00 + 100.000000 + + + Weekday + HVAC equipment + 18:00:00 + 20:00:00 + 60.000000 + + + Weekday + HVAC equipment + 20:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + +
+ + + + + + + + + + + Lighting + + + + Retrofit with light emitting diode technologies + + + + Individual system + This measure is designed to replace all fluorescent bulbs with LEDs + 1 + 50.000000 + 774.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + Fan + + + + Add VSD motor controller + + + + Individual system + This measure is designed to retrofit all RTU fans with a VSD + 1 + 750.000000 + 1250.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + + + + + + Electricity + This is required to document irregularities in monthly energy patterns (Std 211 6.1.2.1.j). No irregularities found. + kWh + All end uses + 67334.150000 + 229.753657 + + + + + + + + + + + + + + + kW + 26.040000 + 26.040000 + 4613.820000 + + + + + + Natural gas + No irregularities in monthly energy consumption found. + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + + + + + + 540.830000 + + + + + + Electricity + kWh + Interior lighting + 28.705000 + 20062.690000 + 68.453898 + + + + Electricity + kWh + Heating + 6.722000 + 4698.230000 + 16.030361 + + + + Electricity + kWh + Cooling + 8.769000 + 6128.870000 + 20.911704 + + + + Electricity + kWh + Domestic hot water + 10.281000 + 7185.370000 + 24.516482 + + + + Electricity + kWh + Plug load + 21.379000 + 14942.150000 + 50.982616 + + + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 5933.100000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 5446.100000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 5736.490000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 4980.500000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 5187.210000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 5842.950000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 5801.730000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 6220.160000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 5682.870000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 5571.930000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 5525.150000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 5405.940000 + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 1.720000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 1.250000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.430000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.010000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.200000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.400000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 4.300000 + + + + Peak + On-peak + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 23.580000 + + + + Peak + On-peak + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 25.380000 + + + + Peak + On-peak + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 26.040000 + + + + Peak + On-peak + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 24.450000 + + + + Peak + On-peak + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 17.030000 + + + + Peak + On-peak + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 22.710000 + + + + Peak + On-peak + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 22.010000 + + + + Peak + On-peak + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 21.810000 + + + + Peak + On-peak + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 20.630000 + + + + Peak + On-peak + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 21.870000 + + + + Peak + On-peak + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 21.630000 + + + + Peak + On-peak + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 21.780000 + + + + Load factor + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 0.320000 + + + + Load factor + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.300000 + + + + Load factor + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.280000 + + + + Load factor + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Load factor + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.360000 + + + + Load factor + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 0.330000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 332.160000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 306.290000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 321.720000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 281.540000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 292.530000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 534.100000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 530.450000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 567.490000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 519.930000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 312.970000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 310.490000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 304.150000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 46.690000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 45.930000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 44.550000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 44.580000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 43.900000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 44.210000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 44.530000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 50.920000 + + + + + + 238473.656550 + 43.358800 + 737088.900000 + 134.000000 + 238473.656550 + 43.358800 + 238.473657 + 0.000000 + 0.000000 + 0.000000 + 4952.480000 + 0.900000 + + + + + + + + + + + + + + 2022-06-01 + + + Portfolio Manager + 2019 + 80.000000 + + + + + 238473.656550 + 43.358800 + 4952.480000 + + + + + + + + + + + + + 39070.530000 + 995 + 89.000000 + + + + + 190348.600000 + 34.600000 + 4846.040000 + 0.881000 + + + + + + + + + + + + + + TMY3 + Finished + + + + + + + Electricity + kWh + All end uses + 67334.150000 + 229.753657 + kW + 26.040000 + 26.040000 + + + Natural gas + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + POM-LEDs + + + + + + + Capital + 35.713000 + 772 + + + Electricity + kWh + 11524.540000 + + + Natural gas + MMBtu + 0.000000 + + + 3.220000 + 0 + 0.000000 + 0.000000 + 1 + 824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 1.070000 + 0.000000 + + + + + + + + + + POM-VSDs + + + + + + + Capital + 5.175000 + 9 + + + Electricity + kWh + 207.240000 + + + Natural gas + MMBtu + 4.460000 + + + 0.420000 + 0 + 0.000000 + 0.000000 + 1 + 2000.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 230.150000 + 0.000000 + + + + + + + + + + POM-LEDs-VSDs + + + + + + + + Capital + 41.827000 + 781 + + + Electricity + kWh + 11701.620000 + + + Natural gas + MMBtu + 1.890000 + + + 4.700000 + 0 + 0.000000 + 0.000000 + 1 + 2824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 3.620000 + 0.000000 + + + + + + + + + + Level 2: Energy Survey and Analysis + + + + + + + + + --06-01 + --09-30 + --06-01 + --09-30 + 0.088520 + 0.000000 + + + --01-01 + --05-31 + --01-01 + --05-31 + 0.053140 + 0.000000 + + + --10-01 + --12-31 + --10-01 + --12-31 + 0.053140 + 0.000000 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 16.880000 + + + 12345 + Xcel Energy + + Some-meter-ID + + some-account-number + Building Owner + + + + + + + + + --01-01 + --12-31 + 0.163600 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 43.880000 + + + Xcel Energy + + Some-meter-ID + + some-other-account-number + Building Owner + + + + + + + + + + + + + + Owner + + The dude + Some big company + + + 123-456-7890 + + + + + the.dude@somebigco.net + + + + + + Energy Auditor + + The lady + Auditeers + + + 123-456-7890 + + + + + the.lady@the-three-auditeers.com + + + + + + + diff --git a/spec/files/v2.7.0/l200_hvac/l200_vrf_doas.xml b/spec/files/v2.7.0/l200_hvac/l200_vrf_doas.xml new file mode 100644 index 0000000..3a6df77 --- /dev/null +++ b/spec/files/v2.7.0/l200_hvac/l200_vrf_doas.xml @@ -0,0 +1,2292 @@ + + + + + + + + + Prototype Small Office in Denver + Here we record general problems / issues identified in a walkthrough survey. + + + City Custom Building ID + some ID + + + Custom ID 1 + some other ID + + +
+ + + Some address + + + Denver + CO + 80014 +
+ -104.830000 + 39.660000 + Commercial + Office + + 1 + 0 + 1 + 0 + true + false + + + Gross + 5500.000000 + + + + + + Conditioned + 5500.000000 + + + + + + 6500.000000 + 0.000000 + 0.213300 + 0.050000 + 2012 + 2000 + 2010 + 2020-03-01 + 2012 + +
+ Space function + Office + Office + + + Peak total occupants + 31.000000 + + + + + 40.000000 + Hours per week + + + 50.000000 + Weeks per year + + + + + Gross + 5500.000000 + + + Conditioned + 5500.000000 + + + Single zone +
+
+ Whole building + Rectangular + + + A1 + + + 909.012230 + + + + + 180.187860 + + + + + 42.086890 + + + + + B1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + C1 + + + 909.012230 + + + + + 180.187860 + + + + + 0.000000 + + + + + D1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + + + + 6444.999000 + Good + + + + + + + 3891.153600 + + + +
+
+ + + + + + + + Variable refrigerant flow1VRF terminal unitsCentral fanCAV terminal box no reheatNoneDedicated outdoor air systemStand-alone +
+ + + + + +
+
+
+ + + + + T8 + + + Standard Electronic + + 0.200000 + + 100.000000 + 5.500000 + 32.000000 + 4 + 1.000000 + 43 + false + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + T12 + + + Standard Electronic + 100.000000 + 1.582575 + 316.516000 + 1 + 1.000000 + 5 + true + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + LED + + + Standard Electronic + + 0.100000 + + 100.000000 + 2.752000 + 16.000000 + 4 + 1.000000 + 43 + false + + + + + + + Photocell + Continuous + + + + false + +
+ + + + + +
+
+
+
+ + + + + + + + 40.000000 + 123.000000 + + + Notes + + 1 + 3.600000 + Continuous + 123.000000 + 1.870180 + + Looped + Thermal Efficiency + 1.000000 + 40.000000 + 140.000000 + 1950.520000 + 11722.840000 + W + + + + + + + + + + 2000 + Electricity + Good + + + + +
+ +
+
+ 1 +
+
+ + + 0.536000 + 880.000000 + 880.000000 + Constant Volume + + + + + + 0.536000 + 872.000000 + 872.000000 + Variable Volume + + + + + + 0.536000 + 836.000000 + 836.000000 + Constant Volume + + + + + + 0.536000 + 830.000000 + 830.000000 + Variable Volume + + + + + + 0.536000 + 671.000000 + 671.000000 + Constant Volume + + + + + + 0.536000 + 664.000000 + 664.000000 + Variable Volume + + + + + + 0.536000 + 774.000000 + 774.000000 + Constant Volume + + + + + + 0.536000 + 766.000000 + 766.000000 + Variable Volume + + + + + + 0.536000 + 841.000000 + 841.000000 + Constant Volume + + + + + + 0.536000 + 833.000000 + 833.000000 + Variable Volume + + + + + + + + Wood frame + 0.547000 + + + + + Wood frame + 4.706000 + + + + + + + + Vinyl + Clear uncoated + Single pane + 3.241000 + 0.391000 + 0.391000 + + + + + + Vinyl + Low e + Triple pane + 0.300000 + 0.391000 + 0.391000 + + + + + Insulated metal + 0.500000 + + + Steel + 2.839000 + + + + + + + + 0.345000 + + + + Concrete poured + + + + + Miscellaneous Electric Load + 0.630000 + +
+ + + + + +
+
+
+
+ + + Notes on test + Tight + 0.151000 + ACHnatural + Blower door + +
+ +
+
+
+
+ + + Notes on test + +
+ +
+
+
+
+
+ + + + + Weekday + Occupied + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + Occupied + 06:00:00 + 07:00:00 + 11.000000 + + + Weekday + Occupied + 07:00:00 + 08:00:00 + 21.000000 + + + Weekday + Occupied + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Occupied + 12:00:00 + 13:00:00 + 53.000000 + + + Weekday + Occupied + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Occupied + 17:00:00 + 18:00:00 + 32.000000 + + + Weekday + Occupied + 18:00:00 + 22:00:00 + 11.000000 + + + Weekday + Occupied + 22:00:00 + 23:00:00 + 5.000000 + + + Weekday + Occupied + 23:00:00 + 23:59:59 + 0.000000 + + + Weekend + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + + + + +
+ +
+
+
+ + + + Weekday + Lighting + 00:00:00 + 05:00:00 + 18.000000 + + + Weekday + Lighting + 05:00:00 + 07:00:00 + 23.000000 + + + Weekday + Lighting + 07:00:00 + 08:00:00 + 42.000000 + + + Weekday + Lighting + 08:00:00 + 12:00:00 + 90.000000 + + + Weekday + Lighting + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + Lighting + 13:00:00 + 17:00:00 + 90.000000 + + + Weekday + Lighting + 17:00:00 + 18:00:00 + 61.000000 + + + Weekday + Lighting + 18:00:00 + 20:00:00 + 42.000000 + + + Weekday + Lighting + 20:00:00 + 22:00:00 + 32.000000 + + + Weekday + Lighting + 22:00:00 + 23:00:00 + 23.000000 + + + Weekday + Lighting + 23:00:00 + 23:59:59 + 18.000000 + + + Weekend + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + Holiday + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + + + + + + + + + + Weekday + Miscellaneous equipment + 00:00:00 + 08:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 12:00:00 + 13:00:00 + 94.000000 + + + Weekday + Miscellaneous equipment + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 17:00:00 + 18:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 18:00:00 + 23:59:59 + 20.000000 + + + Weekend + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + Holiday + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 19:00:00 + 100.000000 + + + Weekday + HVAC equipment + 19:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 07:00:00 + 60.000000 + + + Weekday + HVAC equipment + 07:00:00 + 12:00:00 + 100.000000 + + + Weekday + HVAC equipment + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + HVAC equipment + 13:00:00 + 18:00:00 + 100.000000 + + + Weekday + HVAC equipment + 18:00:00 + 20:00:00 + 60.000000 + + + Weekday + HVAC equipment + 20:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + +
+ + + + + + + + + + + Lighting + + + + Retrofit with light emitting diode technologies + + + + Individual system + This measure is designed to replace all fluorescent bulbs with LEDs + 1 + 50.000000 + 774.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + Fan + + + + Add VSD motor controller + + + + Individual system + This measure is designed to retrofit all RTU fans with a VSD + 1 + 750.000000 + 1250.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + + + + + + Electricity + This is required to document irregularities in monthly energy patterns (Std 211 6.1.2.1.j). No irregularities found. + kWh + All end uses + 67334.150000 + 229.753657 + + + + + + + + + + + + + + + kW + 26.040000 + 26.040000 + 4613.820000 + + + + + + Natural gas + No irregularities in monthly energy consumption found. + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + + + + + + 540.830000 + + + + + + Electricity + kWh + Interior lighting + 28.705000 + 20062.690000 + 68.453898 + + + + Electricity + kWh + Heating + 6.722000 + 4698.230000 + 16.030361 + + + + Electricity + kWh + Cooling + 8.769000 + 6128.870000 + 20.911704 + + + + Electricity + kWh + Domestic hot water + 10.281000 + 7185.370000 + 24.516482 + + + + Electricity + kWh + Plug load + 21.379000 + 14942.150000 + 50.982616 + + + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 5933.100000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 5446.100000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 5736.490000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 4980.500000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 5187.210000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 5842.950000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 5801.730000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 6220.160000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 5682.870000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 5571.930000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 5525.150000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 5405.940000 + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 1.720000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 1.250000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.430000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.010000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.200000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.400000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 4.300000 + + + + Peak + On-peak + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 23.580000 + + + + Peak + On-peak + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 25.380000 + + + + Peak + On-peak + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 26.040000 + + + + Peak + On-peak + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 24.450000 + + + + Peak + On-peak + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 17.030000 + + + + Peak + On-peak + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 22.710000 + + + + Peak + On-peak + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 22.010000 + + + + Peak + On-peak + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 21.810000 + + + + Peak + On-peak + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 20.630000 + + + + Peak + On-peak + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 21.870000 + + + + Peak + On-peak + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 21.630000 + + + + Peak + On-peak + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 21.780000 + + + + Load factor + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 0.320000 + + + + Load factor + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.300000 + + + + Load factor + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.280000 + + + + Load factor + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Load factor + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.360000 + + + + Load factor + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 0.330000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 332.160000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 306.290000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 321.720000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 281.540000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 292.530000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 534.100000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 530.450000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 567.490000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 519.930000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 312.970000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 310.490000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 304.150000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 46.690000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 45.930000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 44.550000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 44.580000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 43.900000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 44.210000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 44.530000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 50.920000 + + + + + + 238473.656550 + 43.358800 + 737088.900000 + 134.000000 + 238473.656550 + 43.358800 + 238.473657 + 0.000000 + 0.000000 + 0.000000 + 4952.480000 + 0.900000 + + + + + + + + + + + + + + 2022-06-01 + + + Portfolio Manager + 2019 + 80.000000 + + + + + 238473.656550 + 43.358800 + 4952.480000 + + + + + + + + + + + + + 39070.530000 + 995 + 89.000000 + + + + + 190348.600000 + 34.600000 + 4846.040000 + 0.881000 + + + + + + + + + + + + + + TMY3 + Finished + + + + + + + Electricity + kWh + All end uses + 67334.150000 + 229.753657 + kW + 26.040000 + 26.040000 + + + Natural gas + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + POM-LEDs + + + + + + + Capital + 35.713000 + 772 + + + Electricity + kWh + 11524.540000 + + + Natural gas + MMBtu + 0.000000 + + + 3.220000 + 0 + 0.000000 + 0.000000 + 1 + 824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 1.070000 + 0.000000 + + + + + + + + + + POM-VSDs + + + + + + + Capital + 5.175000 + 9 + + + Electricity + kWh + 207.240000 + + + Natural gas + MMBtu + 4.460000 + + + 0.420000 + 0 + 0.000000 + 0.000000 + 1 + 2000.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 230.150000 + 0.000000 + + + + + + + + + + POM-LEDs-VSDs + + + + + + + + Capital + 41.827000 + 781 + + + Electricity + kWh + 11701.620000 + + + Natural gas + MMBtu + 1.890000 + + + 4.700000 + 0 + 0.000000 + 0.000000 + 1 + 2824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 3.620000 + 0.000000 + + + + + + + + + + Level 2: Energy Survey and Analysis + + + + + + + + + --06-01 + --09-30 + --06-01 + --09-30 + 0.088520 + 0.000000 + + + --01-01 + --05-31 + --01-01 + --05-31 + 0.053140 + 0.000000 + + + --10-01 + --12-31 + --10-01 + --12-31 + 0.053140 + 0.000000 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 16.880000 + + + 12345 + Xcel Energy + + Some-meter-ID + + some-account-number + Building Owner + + + + + + + + + --01-01 + --12-31 + 0.163600 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 43.880000 + + + Xcel Energy + + Some-meter-ID + + some-other-account-number + Building Owner + + + + + + + + + + + + + + Owner + + The dude + Some big company + + + 123-456-7890 + + + + + the.dude@somebigco.net + + + + + + Energy Auditor + + The lady + Auditeers + + + 123-456-7890 + + + + + the.lady@the-three-auditeers.com + + + + + + + diff --git a/spec/files/v2.7.0/l200_hvac/l200_warm_air_furnace.xml b/spec/files/v2.7.0/l200_hvac/l200_warm_air_furnace.xml new file mode 100644 index 0000000..7055f2f --- /dev/null +++ b/spec/files/v2.7.0/l200_hvac/l200_warm_air_furnace.xml @@ -0,0 +1,2292 @@ + + + + + + + + + Prototype Small Office in Denver + Here we record general problems / issues identified in a walkthrough survey. + + + City Custom Building ID + some ID + + + Custom ID 1 + some other ID + + +
+ + + Some address + + + Denver + CO + 80014 +
+ -104.830000 + 39.660000 + Commercial + Office + + 1 + 0 + 1 + 0 + true + false + + + Gross + 5500.000000 + + + + + + Conditioned + 5500.000000 + + + + + + 6500.000000 + 0.000000 + 0.213300 + 0.050000 + 2012 + 2000 + 2010 + 2020-03-01 + 2012 + +
+ Space function + Office + Office + + + Peak total occupants + 31.000000 + + + + + 40.000000 + Hours per week + + + 50.000000 + Weeks per year + + + + + Gross + 5500.000000 + + + Conditioned + 5500.000000 + + + Single zone +
+
+ Whole building + Rectangular + + + A1 + + + 909.012230 + + + + + 180.187860 + + + + + 42.086890 + + + + + B1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + C1 + + + 909.012230 + + + + + 180.187860 + + + + + 0.000000 + + + + + D1 + + + 606.008200 + + + + + 120.125240 + + + + + 0.000000 + + + + + + + + 6444.999000 + Good + + + + + + + 3891.153600 + + + +
+
+ + + + + + + + Single zoneWarm airNatural gasAirCentral fanCAV terminal box no reheatNone +
+ + + + + +
+
+
+ + + + + T8 + + + Standard Electronic + + 0.200000 + + 100.000000 + 5.500000 + 32.000000 + 4 + 1.000000 + 43 + false + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + T12 + + + Standard Electronic + 100.000000 + 1.582575 + 316.516000 + 1 + 1.000000 + 5 + true + + + + + + + Programmable + + + + false + +
+ + + + + +
+
+
+ + + + LED + + + Standard Electronic + + 0.100000 + + 100.000000 + 2.752000 + 16.000000 + 4 + 1.000000 + 43 + false + + + + + + + Photocell + Continuous + + + + false + +
+ + + + + +
+
+
+
+ + + + + + + + 40.000000 + 123.000000 + + + Notes + + 1 + 3.600000 + Continuous + 123.000000 + 1.870180 + + Looped + Thermal Efficiency + 1.000000 + 40.000000 + 140.000000 + 1950.520000 + 11722.840000 + W + + + + + + + + + + 2000 + Electricity + Good + + + + +
+ +
+
+ 1 +
+
+ + + 0.536000 + 880.000000 + 880.000000 + Constant Volume + + + + + + 0.536000 + 872.000000 + 872.000000 + Variable Volume + + + + + + 0.536000 + 836.000000 + 836.000000 + Constant Volume + + + + + + 0.536000 + 830.000000 + 830.000000 + Variable Volume + + + + + + 0.536000 + 671.000000 + 671.000000 + Constant Volume + + + + + + 0.536000 + 664.000000 + 664.000000 + Variable Volume + + + + + + 0.536000 + 774.000000 + 774.000000 + Constant Volume + + + + + + 0.536000 + 766.000000 + 766.000000 + Variable Volume + + + + + + 0.536000 + 841.000000 + 841.000000 + Constant Volume + + + + + + 0.536000 + 833.000000 + 833.000000 + Variable Volume + + + + + + + + Wood frame + 0.547000 + + + + + Wood frame + 4.706000 + + + + + + + + Vinyl + Clear uncoated + Single pane + 3.241000 + 0.391000 + 0.391000 + + + + + + Vinyl + Low e + Triple pane + 0.300000 + 0.391000 + 0.391000 + + + + + Insulated metal + 0.500000 + + + Steel + 2.839000 + + + + + + + + 0.345000 + + + + Concrete poured + + + + + Miscellaneous Electric Load + 0.630000 + +
+ + + + + +
+
+
+
+ + + Notes on test + Tight + 0.151000 + ACHnatural + Blower door + +
+ +
+
+
+
+ + + Notes on test + +
+ +
+
+
+
+
+ + + + + Weekday + Occupied + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + Occupied + 06:00:00 + 07:00:00 + 11.000000 + + + Weekday + Occupied + 07:00:00 + 08:00:00 + 21.000000 + + + Weekday + Occupied + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Occupied + 12:00:00 + 13:00:00 + 53.000000 + + + Weekday + Occupied + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Occupied + 17:00:00 + 18:00:00 + 32.000000 + + + Weekday + Occupied + 18:00:00 + 22:00:00 + 11.000000 + + + Weekday + Occupied + 22:00:00 + 23:00:00 + 5.000000 + + + Weekday + Occupied + 23:00:00 + 23:59:59 + 0.000000 + + + Weekend + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + Occupied + 00:00:00 + 23:59:59 + 0.000000 + + + + + + +
+ +
+
+
+ + + + Weekday + Lighting + 00:00:00 + 05:00:00 + 18.000000 + + + Weekday + Lighting + 05:00:00 + 07:00:00 + 23.000000 + + + Weekday + Lighting + 07:00:00 + 08:00:00 + 42.000000 + + + Weekday + Lighting + 08:00:00 + 12:00:00 + 90.000000 + + + Weekday + Lighting + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + Lighting + 13:00:00 + 17:00:00 + 90.000000 + + + Weekday + Lighting + 17:00:00 + 18:00:00 + 61.000000 + + + Weekday + Lighting + 18:00:00 + 20:00:00 + 42.000000 + + + Weekday + Lighting + 20:00:00 + 22:00:00 + 32.000000 + + + Weekday + Lighting + 22:00:00 + 23:00:00 + 23.000000 + + + Weekday + Lighting + 23:00:00 + 23:59:59 + 18.000000 + + + Weekend + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + Holiday + Lighting + 00:00:00 + 23:59:59 + 18.000000 + + + + + + + + + + + + Weekday + Miscellaneous equipment + 00:00:00 + 08:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 08:00:00 + 12:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 12:00:00 + 13:00:00 + 94.000000 + + + Weekday + Miscellaneous equipment + 13:00:00 + 17:00:00 + 100.000000 + + + Weekday + Miscellaneous equipment + 17:00:00 + 18:00:00 + 50.000000 + + + Weekday + Miscellaneous equipment + 18:00:00 + 23:59:59 + 20.000000 + + + Weekend + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + Holiday + Miscellaneous equipment + 00:00:00 + 23:59:59 + 20.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 19:00:00 + 100.000000 + + + Weekday + HVAC equipment + 19:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + + + + + Weekday + HVAC equipment + 00:00:00 + 06:00:00 + 0.000000 + + + Weekday + HVAC equipment + 06:00:00 + 07:00:00 + 60.000000 + + + Weekday + HVAC equipment + 07:00:00 + 12:00:00 + 100.000000 + + + Weekday + HVAC equipment + 12:00:00 + 13:00:00 + 80.000000 + + + Weekday + HVAC equipment + 13:00:00 + 18:00:00 + 100.000000 + + + Weekday + HVAC equipment + 18:00:00 + 20:00:00 + 60.000000 + + + Weekday + HVAC equipment + 20:00:00 + 23:59:59 + 0.000000 + + + Weekend + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + Holiday + HVAC equipment + 00:00:00 + 23:59:59 + 0.000000 + + + + + + + + +
+ + + + + + + + + + + Lighting + + + + Retrofit with light emitting diode technologies + + + + Individual system + This measure is designed to replace all fluorescent bulbs with LEDs + 1 + 50.000000 + 774.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + Fan + + + + Add VSD motor controller + + + + Individual system + This measure is designed to retrofit all RTU fans with a VSD + 1 + 750.000000 + 1250.000000 + true + 2021-01-01 + 2021-12-30 + + + + + + + + + + + + + + + + Electricity + This is required to document irregularities in monthly energy patterns (Std 211 6.1.2.1.j). No irregularities found. + kWh + All end uses + 67334.150000 + 229.753657 + + + + + + + + + + + + + + + kW + 26.040000 + 26.040000 + 4613.820000 + + + + + + Natural gas + No irregularities in monthly energy consumption found. + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + + + + + + 540.830000 + + + + + + Electricity + kWh + Interior lighting + 28.705000 + 20062.690000 + 68.453898 + + + + Electricity + kWh + Heating + 6.722000 + 4698.230000 + 16.030361 + + + + Electricity + kWh + Cooling + 8.769000 + 6128.870000 + 20.911704 + + + + Electricity + kWh + Domestic hot water + 10.281000 + 7185.370000 + 24.516482 + + + + Electricity + kWh + Plug load + 21.379000 + 14942.150000 + 50.982616 + + + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 5933.100000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 5446.100000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 5736.490000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 4980.500000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 5187.210000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 5842.950000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 5801.730000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 6220.160000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 5682.870000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 5571.930000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 5525.150000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 5405.940000 + + + + Total + Energy + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 1.720000 + + + + Total + Energy + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 1.250000 + + + + Total + Energy + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Total + Energy + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.430000 + + + + Total + Energy + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.010000 + + + + Total + Energy + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.000000 + + + + Total + Energy + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.000000 + + + + Total + Energy + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.200000 + + + + Total + Energy + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.400000 + + + + Total + Energy + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 4.300000 + + + + Peak + On-peak + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 23.580000 + + + + Peak + On-peak + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 25.380000 + + + + Peak + On-peak + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 26.040000 + + + + Peak + On-peak + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 24.450000 + + + + Peak + On-peak + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 17.030000 + + + + Peak + On-peak + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 22.710000 + + + + Peak + On-peak + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 22.010000 + + + + Peak + On-peak + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 21.810000 + + + + Peak + On-peak + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 20.630000 + + + + Peak + On-peak + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 21.870000 + + + + Peak + On-peak + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 21.630000 + + + + Peak + On-peak + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 21.780000 + + + + Load factor + Power + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 0.320000 + + + + Load factor + Power + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 0.300000 + + + + Load factor + Power + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 0.280000 + + + + Load factor + Power + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 0.410000 + + + + Load factor + Power + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 0.360000 + + + + Load factor + Power + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 0.380000 + + + + Load factor + Power + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 0.340000 + + + + Load factor + Power + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 0.350000 + + + + Load factor + Power + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 0.330000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 332.160000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 306.290000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 321.720000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 281.540000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 292.530000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 534.100000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 530.450000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 567.490000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 519.930000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 312.970000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 310.490000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 304.150000 + + + + Cost + Cost + 2019-01-01T00:00:00 + 2019-02-01T00:00:00 + 31 + Day + Month + 46.690000 + + + + Cost + Cost + 2019-02-01T00:00:00 + 2019-03-01T00:00:00 + 28 + Day + Month + 45.930000 + + + + Cost + Cost + 2019-03-01T00:00:00 + 2019-04-01T00:00:00 + 31 + Day + Month + 44.550000 + + + + Cost + Cost + 2019-04-01T00:00:00 + 2019-05-01T00:00:00 + 30 + Day + Month + 44.580000 + + + + Cost + Cost + 2019-05-01T00:00:00 + 2019-06-01T00:00:00 + 31 + Day + Month + 43.900000 + + + + Cost + Cost + 2019-06-01T00:00:00 + 2019-07-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-07-01T00:00:00 + 2019-08-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-08-01T00:00:00 + 2019-09-01T00:00:00 + 31 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-09-01T00:00:00 + 2019-10-01T00:00:00 + 30 + Day + Month + 43.880000 + + + + Cost + Cost + 2019-10-01T00:00:00 + 2019-11-01T00:00:00 + 31 + Day + Month + 44.210000 + + + + Cost + Cost + 2019-11-01T00:00:00 + 2019-12-01T00:00:00 + 30 + Day + Month + 44.530000 + + + + Cost + Cost + 2019-12-01T00:00:00 + 2020-01-01T00:00:00 + 31 + Day + Month + 50.920000 + + + + + + 238473.656550 + 43.358800 + 737088.900000 + 134.000000 + 238473.656550 + 43.358800 + 238.473657 + 0.000000 + 0.000000 + 0.000000 + 4952.480000 + 0.900000 + + + + + + + + + + + + + + 2022-06-01 + + + Portfolio Manager + 2019 + 80.000000 + + + + + 238473.656550 + 43.358800 + 4952.480000 + + + + + + + + + + + + + 39070.530000 + 995 + 89.000000 + + + + + 190348.600000 + 34.600000 + 4846.040000 + 0.881000 + + + + + + + + + + + + + + TMY3 + Finished + + + + + + + Electricity + kWh + All end uses + 67334.150000 + 229.753657 + kW + 26.040000 + 26.040000 + + + Natural gas + MMBtu + All end uses + 8.720000 + 8.720000 + + + + + + + + + + POM-LEDs + + + + + + + Capital + 35.713000 + 772 + + + Electricity + kWh + 11524.540000 + + + Natural gas + MMBtu + 0.000000 + + + 3.220000 + 0 + 0.000000 + 0.000000 + 1 + 824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 1.070000 + 0.000000 + + + + + + + + + + POM-VSDs + + + + + + + Capital + 5.175000 + 9 + + + Electricity + kWh + 207.240000 + + + Natural gas + MMBtu + 4.460000 + + + 0.420000 + 0 + 0.000000 + 0.000000 + 1 + 2000.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 230.150000 + 0.000000 + + + + + + + + + + POM-LEDs-VSDs + + + + + + + + Capital + 41.827000 + 781 + + + Electricity + kWh + 11701.620000 + + + Natural gas + MMBtu + 1.890000 + + + 4.700000 + 0 + 0.000000 + 0.000000 + 1 + 2824.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0.000000 + 0 + 0 + 3.620000 + 0.000000 + + + + + + + + + + Level 2: Energy Survey and Analysis + + + + + + + + + --06-01 + --09-30 + --06-01 + --09-30 + 0.088520 + 0.000000 + + + --01-01 + --05-31 + --01-01 + --05-31 + 0.053140 + 0.000000 + + + --10-01 + --12-31 + --10-01 + --12-31 + 0.053140 + 0.000000 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 16.880000 + + + 12345 + Xcel Energy + + Some-meter-ID + + some-account-number + Building Owner + + + + + + + + + --01-01 + --12-31 + 0.163600 + + + + + https://www.xcelenergy.com/company/rates_and_regulations/rates/rate_books + 43.880000 + + + Xcel Energy + + Some-meter-ID + + some-other-account-number + Building Owner + + + + + + + + + + + + + + Owner + + The dude + Some big company + + + 123-456-7890 + + + + + the.dude@somebigco.net + + + + + + Energy Auditor + + The lady + Auditeers + + + 123-456-7890 + + + + + the.lady@the-three-auditeers.com + + + + + + + diff --git a/spec/tests/integration/write_and_run_osws_spec.rb b/spec/tests/integration/write_and_run_osws_spec.rb index 4012703..55c2e07 100644 --- a/spec/tests/integration/write_and_run_osws_spec.rb +++ b/spec/tests/integration/write_and_run_osws_spec.rb @@ -19,15 +19,15 @@ ['BuildingEQ-1.0.0.xml', ASHRAE90_1, nil, 'v2.7.0'], ['Chula_Vista_ASHRAE_L1_Example_Building.xml', ASHRAE90_1, nil, 'v2.7.0'], ['Demo_ASHRAE_L2_Example_Building.xml', ASHRAE90_1, nil, 'v2.7.0'], - ['Example_ASHRAE_L2_Report_-_with_Energy_Use_Data_2.xml', ASHRAE90_1, nil, 'v2.7.0'], ['Example_ASHRAE_L2_Report_-_with_Energy_Use_Data.xml', ASHRAE90_1, nil, 'v2.7.0'], + # ['Example_ASHRAE_L2_Report_-_with_Energy_Use_Data_2.xml', ASHRAE90_1, nil, 'v2.7.0'], # same building as above with renumbered IDs ['Example_ASHRAE_L2_Report.xml', ASHRAE90_1, nil, 'v2.7.0'], ['Example_HOMES_Template_Building.xml', ASHRAE90_1, nil, 'v2.7.0'], ['Example_NYC_Energy_Efficiency_Report_Property_2.xml', ASHRAE90_1, nil, 'v2.7.0'], ['Example_San_Francisco_Audit_Report.xml', ASHRAE90_1, nil, 'v2.7.0'], ['example-smalloffice-level1.xml', ASHRAE90_1, nil, 'v2.7.0'], ['Golden Test File.xml', ASHRAE90_1, nil, 'v2.7.0'], - ['L100_Audit-1.0.0_and_BSyncr-1.0.0.xml', ASHRAE90_1, nil, 'v2.7.0'], + # ['L100_Audit-1.0.0_and_BSyncr-1.0.0.xml', ASHRAE90_1, nil, 'v2.7.0'], # L100_Audit-1.0.0.xml plus latitude/longitude ['L100_Audit-1.0.0.xml', ASHRAE90_1, nil, 'v2.7.0'], ['L100_Pre-Simulation-1.0.0.xml', ASHRAE90_1, nil, 'v2.7.0'], ['NYC_BBL_AT_Demo_Property.xml', ASHRAE90_1, nil, 'v2.7.0'], @@ -38,16 +38,36 @@ SMOKE_FILES = ['building_151.xml', 'example-smalloffice-level1.xml'].freeze test_configs = test_configs.select { |config| SMOKE_FILES.include?(config[0]) } if ENV['BOSS_SMOKE'] == '1' +# L200 topology baselines: file_name (under spec/files/v2.7.0) => expected topology measures in step order. +# The l200_hvac files come from spec/files/v2.7.0/l200_hvac/generate.rb; all use template 90.1-2013. +topology_configs = { + 'example-smalloffice-level2.xml' => [['hvac_packaged_rooftop_heat_pump'], 'DOE Ref 1980-2004'], + 'example-smalloffice-level2-built-2012.xml' => [['hvac_packaged_rooftop_heat_pump'], '90.1-2013'], + 'l200_hvac/l200_ptac.xml' => [['hvac_ptac'], '90.1-2013'], + 'l200_hvac/l200_pthp.xml' => [['hvac_pthp'], '90.1-2013'], + 'l200_hvac/l200_rtu_ac.xml' => [['hvac_packaged_rooftop_ac'], '90.1-2013'], + 'l200_hvac/l200_rtu_hp_electric_backup.xml' => [['hvac_packaged_rooftop_heat_pump'], '90.1-2013'], + 'l200_hvac/l200_rtu_hp_gas_backup.xml' => [['hvac_packaged_rooftop_heat_pump'], '90.1-2013'], + 'l200_hvac/l200_warm_air_furnace.xml' => [['hvac_warm_air_furnace'], '90.1-2013'], + 'l200_hvac/l200_packaged_vav_hw_reheat.xml' => [['hvac_packaged_rooftop_vav_hw_reheat'], '90.1-2013'], + 'l200_hvac/l200_vav_hw_reheat.xml' => [['hvac_vav_hw_reheat'], '90.1-2013'], + 'l200_hvac/l200_four_pipe_fan_coil.xml' => [['hvac_four_pipe_fan_coil'], '90.1-2013'], + 'l200_hvac/l200_vrf.xml' => [['hvac_vrf'], '90.1-2013'], + 'l200_hvac/l200_ptac_ventilation_only.xml' => [['hvac_ptac', 'hvac_ventilation_only'], '90.1-2013'], + 'l200_hvac/l200_pthp_doas.xml' => [['hvac_pthp', 'hvac_doas'], '90.1-2013'], + 'l200_hvac/l200_four_pipe_fan_coil_doas.xml' => [['hvac_four_pipe_fan_coil', 'hvac_doas'], '90.1-2013'], + 'l200_hvac/l200_vrf_doas.xml' => [['hvac_vrf', 'hvac_doas'], '90.1-2013'] +} +topology_configs = {} if ENV['BOSS_SMOKE'] == '1' + # BOSS_SHARD / BOSS_SHARDS split the fixtures across parallel CI jobs. -run_extra_examples = ENV['BOSS_SMOKE'] != '1' if ENV['BOSS_SHARDS'] shards = Integer(ENV['BOSS_SHARDS']) shard = Integer(ENV.fetch('BOSS_SHARD', '0')) raise ArgumentError, "BOSS_SHARD must be in 0...#{shards}" if shards < 1 || shard.negative? || shard >= shards test_configs = test_configs.select.with_index { |_config, index| index % shards == shard } - # Examples outside test_configs run once, in shard 0. - run_extra_examples &&= shard.zero? + topology_configs = topology_configs.select.with_index { |_config, index| index % shards == shard } end RSpec.describe 'BOSS' do @@ -80,28 +100,29 @@ end - next unless run_extra_examples - - { - 'example-smalloffice-level2.xml' => ['smalloffice_l2_topology_doe_ref', 'DOE Ref 1980-2004'], - 'example-smalloffice-level2-built-2012.xml' => ['smalloffice_l2_topology', '90.1-2013'] - }.each do |file_name, (output_name, template)| + topology_configs.each do |file_name, (measures, template)| it "write and run a topology HVAC baseline. File: #{file_name}, Template: #{template}" do xml_path = File.join(SPEC_FILES_DIR, 'v2.7.0', file_name) - output_path = File.join(SPEC_OUTPUT_DIR, 'v2.7.0', 'write_and_run_baseline_osw', output_name) + output_path = File.join(SPEC_OUTPUT_DIR, 'v2.7.0', 'write_and_run_baseline_osw', + "topology_#{File.basename(file_name, '.xml')}") BOSS::Boss.write_baseline_osw(xml_path, output_path, nil, ASHRAE90_1) BOSS::Boss.run_baseline_osw(output_path) out_osw = JSON.parse(File.read(File.join(output_path, 'baseline', 'out.osw')), symbolize_names: true) expect(out_osw[:completed_status]).to eq 'Success' - steps = out_osw[:steps].to_h { |step| [step[:measure_dir_name], step] } - expect(steps['create_typical_building_from_model'][:arguments][:add_hvac]).to be false - topology = steps['apply_hvac_topology_to_zone_scope'] - expect(topology[:result][:step_result]).to eq 'Success' - expect(topology[:result][:step_final_condition]) - .to match(/Created \d+ PSZ-HP loops \(NaturalGas supplemental heat\).*#{Regexp.escape(template)}/) - expect(steps['apply_standard_hvac_sizing_and_efficiency'][:result][:step_result]).to eq 'Success' + steps = out_osw[:steps] + typical = steps.find { |step| step[:measure_dir_name] == 'create_typical_building_from_model' } + expect(typical[:arguments][:add_hvac]).to be false + topology = steps.select { |step| step[:measure_dir_name] == 'apply_hvac_topology_to_zone_scope' } + expect(topology.map { |step| step[:arguments][:topology_measure] }).to eq(measures) + topology.each { |step| expect(step[:result][:step_result]).to eq 'Success' } + if file_name.start_with?('example-smalloffice-level2') + expect(topology.first[:result][:step_final_condition]) + .to match(/Created \d+ PSZ-HP loops \(NaturalGas supplemental heat\).*#{Regexp.escape(template)}/) + end + sizing = steps.find { |step| step[:measure_dir_name] == 'apply_standard_hvac_sizing_and_efficiency' } + expect(sizing[:result][:step_result]).to eq 'Success' end end end From a1a662b9e9e37fe042f171dc6bf9ce0bbbaf8887 Mon Sep 17 00:00:00 2001 From: JieXiong9119 <69597597+JieXiong9119@users.noreply.github.com> Date: Fri, 20 Nov 2026 10:13:50 -0700 Subject: [PATCH 12/12] revise new examples format --- spec/files/v2.7.0/l200_hvac/generate.rb | 15 ++- .../l200_hvac/l200_four_pipe_fan_coil.xml | 70 +++++++++++- .../l200_four_pipe_fan_coil_doas.xml | 104 +++++++++++++++++- .../l200_hvac/l200_packaged_vav_hw_reheat.xml | 51 ++++++++- spec/files/v2.7.0/l200_hvac/l200_ptac.xml | 33 +++++- .../l200_hvac/l200_ptac_ventilation_only.xml | 67 ++++++++++- spec/files/v2.7.0/l200_hvac/l200_pthp.xml | 37 ++++++- .../files/v2.7.0/l200_hvac/l200_pthp_doas.xml | 71 +++++++++++- spec/files/v2.7.0/l200_hvac/l200_rtu_ac.xml | 42 ++++++- .../l200_hvac/l200_rtu_hp_electric_backup.xml | 42 ++++++- .../l200_hvac/l200_rtu_hp_gas_backup.xml | 42 ++++++- .../v2.7.0/l200_hvac/l200_vav_hw_reheat.xml | 68 +++++++++++- spec/files/v2.7.0/l200_hvac/l200_vrf.xml | 54 ++++++++- spec/files/v2.7.0/l200_hvac/l200_vrf_doas.xml | 88 ++++++++++++++- .../l200_hvac/l200_warm_air_furnace.xml | 40 ++++++- 15 files changed, 795 insertions(+), 29 deletions(-) diff --git a/spec/files/v2.7.0/l200_hvac/generate.rb b/spec/files/v2.7.0/l200_hvac/generate.rb index 298fc81..b6fc626 100644 --- a/spec/files/v2.7.0/l200_hvac/generate.rb +++ b/spec/files/v2.7.0/l200_hvac/generate.rb @@ -6,6 +6,8 @@ # # ruby spec/files/v2.7.0/l200_hvac/generate.rb +require 'rexml/document' + BASE = File.expand_path('../example-smalloffice-level2-built-2012.xml', __dir__) def dx(type, condenser: nil, quantity: false) @@ -108,12 +110,23 @@ def hvac_system(spec, ventilation, premises) "#{delivery}#{others}#{premises}" end +# Indent the generated element to match the base file (HVACSystem sits at 10 spaces). +def pretty(xml, indent) + doc = REXML::Document.new(xml.gsub(/>\s+<'), attribute_quote: :quote) + formatter = REXML::Formatters::Pretty.new(2) + formatter.compact = true + formatter.width = 1000 + out = +'' + formatter.write(doc.root, out) + out.gsub("\n", "\n#{' ' * indent}") +end + base = File.read(BASE) block = base[%r{.*?}m] or abort 'HVACSystem-1 not found' premises = block[%r{.*?}m] or abort 'LinkedPremises not found' EXAMPLES.each do |name, (conditioning, ventilation)| - xml = base.sub(block, hvac_system(CONDITIONING.fetch(conditioning), ventilation, premises)) + xml = base.sub(block, pretty(hvac_system(CONDITIONING.fetch(conditioning), ventilation, premises), 10)) File.write(File.join(__dir__, "l200_#{name}.xml"), xml) puts "l200_#{name}.xml" end diff --git a/spec/files/v2.7.0/l200_hvac/l200_four_pipe_fan_coil.xml b/spec/files/v2.7.0/l200_hvac/l200_four_pipe_fan_coil.xml index d1ee87e..69e64d1 100644 --- a/spec/files/v2.7.0/l200_hvac/l200_four_pipe_fan_coil.xml +++ b/spec/files/v2.7.0/l200_hvac/l200_four_pipe_fan_coil.xml @@ -201,7 +201,72 @@ - Hot waterNatural gasVapor compressionElectric MotorCooling towerHot waterChilled water1Fan coil 4 pipe + + + + + + Hot water + + Natural gas + + + + + + Vapor compression + Electric Motor + + + + + + + + + + Cooling tower + + + + + + + + + + + Hot water + + + + + + + + Chilled water + 1 + + + + + + + + + + Fan coil 4 pipe + + + + + + + + + + +
@@ -209,7 +274,8 @@
-
+
+
diff --git a/spec/files/v2.7.0/l200_hvac/l200_four_pipe_fan_coil_doas.xml b/spec/files/v2.7.0/l200_hvac/l200_four_pipe_fan_coil_doas.xml index 280849c..60be464 100644 --- a/spec/files/v2.7.0/l200_hvac/l200_four_pipe_fan_coil_doas.xml +++ b/spec/files/v2.7.0/l200_hvac/l200_four_pipe_fan_coil_doas.xml @@ -201,7 +201,106 @@ - Hot waterNatural gasVapor compressionElectric MotorCooling towerHot waterChilled water1Fan coil 4 pipeCentral fanCAV terminal box no reheatNoneDedicated outdoor air systemStand-alone + + + + + + Hot water + + Natural gas + + + + + + Vapor compression + Electric Motor + + + + + + + + + + Cooling tower + + + + + + + + + + + Hot water + + + + + + + + + + + + + Chilled water + 1 + + + + + + + + + + + + + + + Fan coil 4 pipe + + + + + + + + + + + + Central fan + CAV terminal box no reheat + None + + + + + + + + + + + + Dedicated outdoor air system + + + Stand-alone + + + + + +
@@ -209,7 +308,8 @@
-
+
+
diff --git a/spec/files/v2.7.0/l200_hvac/l200_packaged_vav_hw_reheat.xml b/spec/files/v2.7.0/l200_hvac/l200_packaged_vav_hw_reheat.xml index 0cb9edc..009ece7 100644 --- a/spec/files/v2.7.0/l200_hvac/l200_packaged_vav_hw_reheat.xml +++ b/spec/files/v2.7.0/l200_hvac/l200_packaged_vav_hw_reheat.xml @@ -201,7 +201,53 @@ - Hot waterNatural gasMulti zoneHot waterPackaged/unitary direct expansion/RTU1Central fanVAV terminal box not fan powered with reheatHeating plant + + + + + + Hot water + + Natural gas + + + + + Multi zone + + + + + + Hot water + + + + + + + Packaged/unitary direct expansion/RTU + + + 1 + + + + + + + Central fan + VAV terminal box not fan powered with reheat + Heating plant + + + + + + + + +
@@ -209,7 +255,8 @@
-
+
+
diff --git a/spec/files/v2.7.0/l200_hvac/l200_ptac.xml b/spec/files/v2.7.0/l200_hvac/l200_ptac.xml index e28f457..60c39fe 100644 --- a/spec/files/v2.7.0/l200_hvac/l200_ptac.xml +++ b/spec/files/v2.7.0/l200_hvac/l200_ptac.xml @@ -201,7 +201,35 @@ - Packaged terminal air conditioner (PTAC) + + + + + + + + + + + + + + Packaged terminal air conditioner (PTAC) + + + + + + + + + + + + + + +
@@ -209,7 +237,8 @@
-
+
+
diff --git a/spec/files/v2.7.0/l200_hvac/l200_ptac_ventilation_only.xml b/spec/files/v2.7.0/l200_hvac/l200_ptac_ventilation_only.xml index ab49b9d..10ebd12 100644 --- a/spec/files/v2.7.0/l200_hvac/l200_ptac_ventilation_only.xml +++ b/spec/files/v2.7.0/l200_hvac/l200_ptac_ventilation_only.xml @@ -201,7 +201,69 @@ - Packaged terminal air conditioner (PTAC)Central fanCAV terminal box no reheatNoneSupply onlyStand-alone + + + + + + + + + + + + + + + + + + + Packaged terminal air conditioner (PTAC) + + + + + + + + + + + + + + + + + + + + + Central fan + CAV terminal box no reheat + None + + + + + + + + + + + + Supply only + + + Stand-alone + + + + + +
@@ -209,7 +271,8 @@
-
+
+
diff --git a/spec/files/v2.7.0/l200_hvac/l200_pthp.xml b/spec/files/v2.7.0/l200_hvac/l200_pthp.xml index 8d00efc..4002501 100644 --- a/spec/files/v2.7.0/l200_hvac/l200_pthp.xml +++ b/spec/files/v2.7.0/l200_hvac/l200_pthp.xml @@ -201,7 +201,39 @@ - Packaged TerminalElectricityPackaged terminal heat pump (PTHP) + + + + + + + Packaged Terminal + Electricity + + + + + + + + + + Packaged terminal heat pump (PTHP) + + + + + + + + + + + + + + +
@@ -209,7 +241,8 @@
-
+
+
diff --git a/spec/files/v2.7.0/l200_hvac/l200_pthp_doas.xml b/spec/files/v2.7.0/l200_hvac/l200_pthp_doas.xml index 561e4bb..ef03969 100644 --- a/spec/files/v2.7.0/l200_hvac/l200_pthp_doas.xml +++ b/spec/files/v2.7.0/l200_hvac/l200_pthp_doas.xml @@ -201,7 +201,73 @@ - Packaged TerminalElectricityPackaged terminal heat pump (PTHP)Central fanCAV terminal box no reheatNoneDedicated outdoor air systemStand-alone + + + + + + + Packaged Terminal + Electricity + + + + + + + + + + + + + + + Packaged terminal heat pump (PTHP) + + + + + + + + + + + + + + + + + + + + + Central fan + CAV terminal box no reheat + None + + + + + + + + + + + + Dedicated outdoor air system + + + Stand-alone + + + + + +
@@ -209,7 +275,8 @@
-
+
+
diff --git a/spec/files/v2.7.0/l200_hvac/l200_rtu_ac.xml b/spec/files/v2.7.0/l200_hvac/l200_rtu_ac.xml index 67e495c..a2fa859 100644 --- a/spec/files/v2.7.0/l200_hvac/l200_rtu_ac.xml +++ b/spec/files/v2.7.0/l200_hvac/l200_rtu_ac.xml @@ -201,7 +201,44 @@ - Single zoneWarm airNatural gasAirPackaged/unitary direct expansion/RTUCentral fanCAV terminal box no reheatNone + + + Single zone + + + + + Warm air + + + Natural gas + Air + + + + + + + Packaged/unitary direct expansion/RTU + + + + + + + + + Central fan + CAV terminal box no reheat + None + + + + + + + +
@@ -209,7 +246,8 @@
-
+
+
diff --git a/spec/files/v2.7.0/l200_hvac/l200_rtu_hp_electric_backup.xml b/spec/files/v2.7.0/l200_hvac/l200_rtu_hp_electric_backup.xml index 70f2c2c..6ad5e6a 100644 --- a/spec/files/v2.7.0/l200_hvac/l200_rtu_hp_electric_backup.xml +++ b/spec/files/v2.7.0/l200_hvac/l200_rtu_hp_electric_backup.xml @@ -201,7 +201,44 @@ - Single zonePackaged UnitaryElectricityPackaged/unitary heat pumpCentral fanCAV terminal box no reheatNone + + + Single zone + + + + + Packaged Unitary + Electricity + + + + + + + + + + Packaged/unitary heat pump + + + + + + + + + Central fan + CAV terminal box no reheat + None + + + + + + + +
@@ -209,7 +246,8 @@
-
+
+
diff --git a/spec/files/v2.7.0/l200_hvac/l200_rtu_hp_gas_backup.xml b/spec/files/v2.7.0/l200_hvac/l200_rtu_hp_gas_backup.xml index 04a47d8..412674b 100644 --- a/spec/files/v2.7.0/l200_hvac/l200_rtu_hp_gas_backup.xml +++ b/spec/files/v2.7.0/l200_hvac/l200_rtu_hp_gas_backup.xml @@ -201,7 +201,44 @@ - Single zonePackaged UnitaryNatural gasPackaged/unitary heat pumpCentral fanCAV terminal box no reheatNone + + + Single zone + + + + + Packaged Unitary + Natural gas + + + + + + + + + + Packaged/unitary heat pump + + + + + + + + + Central fan + CAV terminal box no reheat + None + + + + + + + +
@@ -209,7 +246,8 @@
-
+
+
diff --git a/spec/files/v2.7.0/l200_hvac/l200_vav_hw_reheat.xml b/spec/files/v2.7.0/l200_hvac/l200_vav_hw_reheat.xml index 87bc7b5..929de3c 100644 --- a/spec/files/v2.7.0/l200_hvac/l200_vav_hw_reheat.xml +++ b/spec/files/v2.7.0/l200_hvac/l200_vav_hw_reheat.xml @@ -201,7 +201,70 @@ - Hot waterNatural gasVapor compressionElectric MotorCooling towerMulti zoneHot waterChilled water1Central fanVAV terminal box not fan powered with reheatHeating plant + + + + + + Hot water + + Natural gas + + + + + + Vapor compression + Electric Motor + + + + + + + + + + Cooling tower + + + + + + Multi zone + + + + + + Hot water + + + + + + + + Chilled water + 1 + + + + + + + Central fan + VAV terminal box not fan powered with reheat + Heating plant + + + + + + + + +
@@ -209,7 +272,8 @@
-
+
+
diff --git a/spec/files/v2.7.0/l200_hvac/l200_vrf.xml b/spec/files/v2.7.0/l200_hvac/l200_vrf.xml index 9cfd710..63923d0 100644 --- a/spec/files/v2.7.0/l200_hvac/l200_vrf.xml +++ b/spec/files/v2.7.0/l200_hvac/l200_vrf.xml @@ -201,7 +201,56 @@ - Variable refrigerant flow1VRF terminal units + + + + + + + + + + + + + + + + + + + + + + + Variable refrigerant flow + + + + + + 1 + + + + + + + + + + VRF terminal units + + + + + + + + + + +
@@ -209,7 +258,8 @@
-
+
+
diff --git a/spec/files/v2.7.0/l200_hvac/l200_vrf_doas.xml b/spec/files/v2.7.0/l200_hvac/l200_vrf_doas.xml index 3a6df77..f7a5019 100644 --- a/spec/files/v2.7.0/l200_hvac/l200_vrf_doas.xml +++ b/spec/files/v2.7.0/l200_hvac/l200_vrf_doas.xml @@ -201,7 +201,90 @@ - Variable refrigerant flow1VRF terminal unitsCentral fanCAV terminal box no reheatNoneDedicated outdoor air systemStand-alone + + + + + + + + + + + + + + + + + + + + + + + + + + + + Variable refrigerant flow + + + + + + 1 + + + + + + + + + + + + + + + VRF terminal units + + + + + + + + + + + + Central fan + CAV terminal box no reheat + None + + + + + + + + + + + + Dedicated outdoor air system + + + Stand-alone + + + + + +
@@ -209,7 +292,8 @@
-
+
+
diff --git a/spec/files/v2.7.0/l200_hvac/l200_warm_air_furnace.xml b/spec/files/v2.7.0/l200_hvac/l200_warm_air_furnace.xml index 7055f2f..bee040c 100644 --- a/spec/files/v2.7.0/l200_hvac/l200_warm_air_furnace.xml +++ b/spec/files/v2.7.0/l200_hvac/l200_warm_air_furnace.xml @@ -201,7 +201,42 @@ - Single zoneWarm airNatural gasAirCentral fanCAV terminal box no reheatNone + + + Single zone + + + + + Warm air + + + Natural gas + Air + + + + + + + + + + + + + + Central fan + CAV terminal box no reheat + None + + + + + + + +
@@ -209,7 +244,8 @@
-
+
+