Skip to content

Commit 8314bba

Browse files
author
Wan, Hanlong
committed
ieer new update
1 parent 20b666e commit 8314bba

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

copper/chiller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,4 +682,4 @@ def get_seed_curves(self, lib=None, filters=None, csets=None):
682682
return curves
683683

684684
def get_ref_vars_for_aggregation(self):
685-
return ["ref_cap", "full_eff"]
685+
return ["ref_cap", "full_eff"]

tests/test_unitarydirectexpansion.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,26 @@ class UnitaryDirectExpansion(TestCase):
2929
set_of_curves=lib.get_set_of_curves_by_name("D208122216").curves,
3030
)
3131

32+
def test_new_ieer(self):
33+
lib = cp.Library(path=DX_lib)
34+
dx_unit_new = cp.UnitaryDirectExpansion(
35+
compressor_type="scroll",
36+
condenser_type="air",
37+
compressor_speed="constant",
38+
ref_cap_unit="W",
39+
ref_gross_cap=471000,
40+
full_eff=5.89,
41+
full_eff_unit="cop",
42+
part_eff_ref_std="ahri_340/360",
43+
model="simplified_bf",
44+
sim_engine="energyplus",
45+
set_of_curves=lib.get_set_of_curves_by_name("D208122216").curves,
46+
compressor_stage_input=True,
47+
compressor_stage=[0.3, 0.6],
48+
)
49+
ieer = round(self.dx_unit_dft.calc_rated_eff(unit="eer"), 1)
50+
self.assertTrue(7.5 == ieer, f"{ieer} is different than 7.5")
51+
3252
def test_calc_eff_ect(self):
3353
ieer = round(self.dx_unit_dft.calc_rated_eff(unit="eer"), 1)
3454
self.assertTrue(7.5 == ieer, f"{ieer} is different than 7.5")

0 commit comments

Comments
 (0)