Skip to content

Commit

Permalink
Remove duplicate information. (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
lymereJ authored Nov 1, 2024
1 parent 16c1d92 commit 206ab69
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
5 changes: 1 addition & 4 deletions copper/data/equipment_references.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@
"numofreducedcap": 4,
"reducedplr": [1.0, 0.75, 0.5, 0.25],
"weightingfactor": [0.02, 0.617, 0.238, 0.125]
},
"outdoor_unit_inlet_air_dry_bulb_rated": 35,
"outdoor_unit_inlet_air_dry_bulb_reduced": 18.3,
"cooling_coil_inlet_air_wet_bulb_rated": 19.44
}
},
"ahri_341/361": {}
}
Expand Down
34 changes: 19 additions & 15 deletions copper/unitarydirectexpansion.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,12 +344,12 @@ def calc_rated_eff(
"weightingfactor"
]
tot_cap_temp_mod_fac = cap_f_t.evaluate(
equipment_references[eqp_type][std][
"cooling_coil_inlet_air_wet_bulb_rated"
],
equipment_references[eqp_type][std][
"outdoor_unit_inlet_air_dry_bulb_rated"
],
Equipment.convert_to_deg_c(
value=equipment_references[eqp_type][std][self.condenser_type]["aew"]
),
Equipment.convert_to_deg_c(
value=equipment_references[eqp_type][std][self.condenser_type]["ect"][0]
),
)

# Calculate NET rated capacity
Expand All @@ -372,15 +372,19 @@ def calc_rated_eff(
5.0 + 30.0 * reduced_plr[red_cap_num]
)
else:
outdoor_unit_inlet_air_dry_bulb_temp_reduced = equipment_references[
eqp_type
][std]["outdoor_unit_inlet_air_dry_bulb_reduced"]
outdoor_unit_inlet_air_dry_bulb_temp_reduced = (
Equipment.convert_to_deg_c(
equipment_references[eqp_type][std][self.condenser_type]["ect"][
-1
]
)
)

# Calculate capacity at rating conditions
tot_cap_temp_mod_fac = cap_f_t.evaluate(
equipment_references[eqp_type][std][
"cooling_coil_inlet_air_wet_bulb_rated"
],
Equipment.convert_to_deg_c(
equipment_references[eqp_type][std][self.condenser_type]["aew"]
),
outdoor_unit_inlet_air_dry_bulb_temp_reduced,
)
load_factor_gross = min(
Expand All @@ -394,9 +398,9 @@ def calc_rated_eff(

# Calculate efficency at rating conditions
eir_temp_mod_fac = eir_f_t.evaluate(
equipment_references[eqp_type][std][
"cooling_coil_inlet_air_wet_bulb_rated"
],
Equipment.convert_to_deg_c(
equipment_references[eqp_type][std][self.condenser_type]["aew"]
),
outdoor_unit_inlet_air_dry_bulb_temp_reduced,
)
if rated_cop > 0.0:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_unitarydirectexpansion.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def test_NN_wght_avg(self):
assert len(set_of_curves) == 5

# Check normalization
assert round(set_of_curves[0].evaluate(19.44, 35), 2) == 1.0
assert round(set_of_curves[0].evaluate(19.44, 35), 2) == 0.99
assert round(set_of_curves[1].evaluate(19.44, 35), 2) == 1.0
assert round(set_of_curves[2].evaluate(1.0, 0), 2) == 1.0
assert round(set_of_curves[3].evaluate(1.0, 0), 2) == 1.0
Expand Down

0 comments on commit 206ab69

Please sign in to comment.