Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RS/YJ/Rule 22-41 #1161

Merged
merged 2 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions rct229/rulesets/ashrae9012019/section22/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"section22rule38",
"section22rule39",
"section22rule40",
"section22rule41",
]


Expand Down
27 changes: 27 additions & 0 deletions rct229/rulesets/ashrae9012019/section22/section22rule41.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
from rct229.rule_engine.partial_rule_definition import PartialRuleDefinition
from rct229.rule_engine.user_baseline_proposed_vals import UserBaselineProposedVals
from rct229.rulesets.ashrae9012019.ruleset_functions.check_purchased_chw_hhw_status_dict import (
check_purchased_chw_hhw_status_dict,
)


class Section22Rule41(PartialRuleDefinition):
"""Rule 41 of ASHRAE 90.1-2019 Appendix G Section 22 (Chilled water loop)"""

def __init__(self):
super(Section22Rule41, self).__init__(
rmrs_used=UserBaselineProposedVals(False, True, False),
id="22-41",
description="Purchased CHW systems must be modeled with only one external fluid loop in the baseline design.",
ruleset_section_title="HVAC - Chiller",
standard_section="Section 22 CHW&CW Loop",
is_primary_rule=False,
rmr_context="ruleset_model_descriptions/0/heat_rejections",
manual_check_required_msg="B-RMD IS MODELED WITH PURCHASED CHILLED WATER. VERIFY THAT THERE IS ONLY ONE PURCHASED CHILLED WATER LOOP IN THE BASELINE MODEL.",
)

def rule_check(self, context, calc_vals=None, data=None):
rmd_b = context.baseline
purchased_chw_hhw_status_dict_b = check_purchased_chw_hhw_status_dict(rmd_b)

return not purchased_chw_hhw_status_dict_b["purchased_cooling"]
Loading