From e0bf48db16369eb58dcec2e8d9d7ec4d6740d4bf Mon Sep 17 00:00:00 2001 From: KarenWGard <114143532+KarenWGard@users.noreply.github.com> Date: Mon, 16 Sep 2024 16:10:47 -0400 Subject: [PATCH 1/4] create Rule1-6 --- docs/section1/Rule 1-6.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 docs/section1/Rule 1-6.md diff --git a/docs/section1/Rule 1-6.md b/docs/section1/Rule 1-6.md new file mode 100644 index 0000000000..9eee337f12 --- /dev/null +++ b/docs/section1/Rule 1-6.md @@ -0,0 +1,36 @@ + +# Section 1 - Rule 1-6 + +**Rule ID:** 1-6 +**Rule Description:** On-site renewable energy shall not be included in the baseline building performance. +**Rule Assertion:** Baseline RMD = expected value +**Appendix G Section:** G3.11 18 Baseline + +**Mandatory Rule:** True +**Evaluation Context:** Each RMD +**Function Call:** + +## Applicability Check: +- All projects are applicable + + +## Rule Logic: +- get the baseline output schema: `output = B_RMD.output` +- get the output instance: `output_instance = output.output_instance` +- set a boolean has_renewables and set it to false: `has_renewables = false` +- look at each end use result: `for end_use_result in output_instance.annual_end_use_results:` + - check if the energy source for the end_use_result is "ON_SITE_RENEWABLES": `if end_use_result.energy_source == "ON_SITE_RENEWABLES":` + - set has_renewables to true and continue to rule assertion: `has_renewables = true; CONTINUE TO RULE ASSERTION` +- if we get here without going to the rule assertion, continue to rule assertion: `CONTINUE TO RULE ASSERTION` + + **Rule Assertion:** + - Case 1: If has_renewables is true, then FAIL: `if has_renewables == true: FAIL` + - Case 2: otherwise, there are no renewables, PASS: `else: PASS` + + +**Notes:** +1. + +**[Back](../_toc.md)** + + From 48a2068daaa077f830bd109d5e76e8c1eb24e6fe Mon Sep 17 00:00:00 2001 From: KarenWGard <114143532+KarenWGard@users.noreply.github.com> Date: Wed, 6 Nov 2024 13:39:13 -0500 Subject: [PATCH 2/4] Update Rule 1-6.md --- docs/section1/Rule 1-6.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/section1/Rule 1-6.md b/docs/section1/Rule 1-6.md index 9eee337f12..49c1e69b73 100644 --- a/docs/section1/Rule 1-6.md +++ b/docs/section1/Rule 1-6.md @@ -20,7 +20,8 @@ - set a boolean has_renewables and set it to false: `has_renewables = false` - look at each end use result: `for end_use_result in output_instance.annual_end_use_results:` - check if the energy source for the end_use_result is "ON_SITE_RENEWABLES": `if end_use_result.energy_source == "ON_SITE_RENEWABLES":` - - set has_renewables to true and continue to rule assertion: `has_renewables = true; CONTINUE TO RULE ASSERTION` + - check if the energy end use is greater than 0: `if end_us_result.annual_site_energy_use > 0:` + - set has_renewables to true and continue to rule assertion: `has_renewables = true; CONTINUE TO RULE ASSERTION` - if we get here without going to the rule assertion, continue to rule assertion: `CONTINUE TO RULE ASSERTION` **Rule Assertion:** From 5c1841aa90da987610a8f53e66f0ca7c37c6a8b6 Mon Sep 17 00:00:00 2001 From: KarenWGard <114143532+KarenWGard@users.noreply.github.com> Date: Tue, 19 Nov 2024 13:55:53 -0500 Subject: [PATCH 3/4] Update Rule 1-6.md --- docs/section1/Rule 1-6.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/docs/section1/Rule 1-6.md b/docs/section1/Rule 1-6.md index 49c1e69b73..043253c145 100644 --- a/docs/section1/Rule 1-6.md +++ b/docs/section1/Rule 1-6.md @@ -15,18 +15,19 @@ ## Rule Logic: -- get the baseline output schema: `output = B_RMD.output` -- get the output instance: `output_instance = output.output_instance` - set a boolean has_renewables and set it to false: `has_renewables = false` -- look at each end use result: `for end_use_result in output_instance.annual_end_use_results:` - - check if the energy source for the end_use_result is "ON_SITE_RENEWABLES": `if end_use_result.energy_source == "ON_SITE_RENEWABLES":` - - check if the energy end use is greater than 0: `if end_us_result.annual_site_energy_use > 0:` - - set has_renewables to true and continue to rule assertion: `has_renewables = true; CONTINUE TO RULE ASSERTION` +- look at each baseline model rotation: `for rotation in [B_RMD, B_RMD_90, B_RMD_180, B_RMD_270]:` + - get the baseline output schema: `output = rotation.output` + - get the output instance: `output_instance = output.output_instance` + - look at each end use result: `for end_use_result in output_instance.annual_end_use_results:` + - check if the energy source for the end_use_result is "ON_SITE_RENEWABLES": `if end_use_result.energy_source == "ON_SITE_RENEWABLES":` + - check if the energy end use is greater than 0: `if end_us_result.annual_site_energy_use > 0:` + - set has_renewables to true and continue to rule assertion: `has_renewables = true; CONTINUE TO RULE ASSERTION` - if we get here without going to the rule assertion, continue to rule assertion: `CONTINUE TO RULE ASSERTION` - **Rule Assertion:** - - Case 1: If has_renewables is true, then FAIL: `if has_renewables == true: FAIL` - - Case 2: otherwise, there are no renewables, PASS: `else: PASS` +**Rule Assertion:** +- Case 1: If has_renewables is true, then FAIL: `if has_renewables == true: FAIL` +- Case 2: otherwise, there are no renewables, PASS: `else: PASS` **Notes:** From 80edcd0fd56d0caa84bd83c42716100a9ed17734 Mon Sep 17 00:00:00 2001 From: KarenWGard <114143532+KarenWGard@users.noreply.github.com> Date: Wed, 20 Nov 2024 12:10:11 -0500 Subject: [PATCH 4/4] Update Rule 1-6.md --- docs/section1/Rule 1-6.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/section1/Rule 1-6.md b/docs/section1/Rule 1-6.md index 043253c145..457bae11ed 100644 --- a/docs/section1/Rule 1-6.md +++ b/docs/section1/Rule 1-6.md @@ -7,7 +7,7 @@ **Appendix G Section:** G3.11 18 Baseline **Mandatory Rule:** True -**Evaluation Context:** Each RMD +**Evaluation Context:** Each baseline RMD **Function Call:** ## Applicability Check: