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

Refactor cycling degradation calculation for unitary DX equipment #105

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

lymereJ
Copy link
Collaborator

@lymereJ lymereJ commented Aug 27, 2024

Refactor cycling degradation calculation for unitary DX equipment by using a default C_d of degradation coefficient.

part_eff_ref_std="ahri_340/360",
part_eff_ref_std_alt=None,
model="simplified_bf",
sim_engine="energyplus",
condenser_type="air",
fan_control_mode="constant_speed",
degradation_coefficient=0.115170535550221, # plf = (1 - C_D) * C_D * plr in AHRI 240/210
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This value is equivalent to the default in AHRI 340/360.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on a review of the CEC appliance database that we did a couple year back we had seen an average value of 0.08. EnergyPlus' default is 0.2. We can document all of that.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, should we add a choice for the users here, like "d_f" as for 0.08, 0.2, or 0.115?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's what it is, except that it's fully spelled out, and the default value is the same as what's used by default in AHRI 340/360: C_D = 1.130 - 0.130 * LF. You can see that by seeing that the test you wrote that calculates IEER passes.

Comment on lines +132 to +143
self.degradation_coefficient = degradation_coefficient
if not "plf_f_plr" in self.get_dx_curves().keys():
plf_f_plr = Curve(eqp=self, c_type="linear")
plf_f_plr.out_var = "plf-f-plr"
plf_f_plr.type = "linear"
plf_f_plr.coeff1 = 1 - self.degradation_coefficient
plf_f_plr.coeff2 = self.degradation_coefficient
plf_f_plr.x_min = 0
plf_f_plr.x_max = 1
plf_f_plr.out_min = 0
plf_f_plr.out_max = 1
self.set_of_curves.append(plf_f_plr)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a curve based on the user-defined or default degradation coefficient.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

em, so add this curve here to calculate d_c?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's correct.

@lymereJ lymereJ requested a review from wanhanlong1130 August 27, 2024 23:23
Comment on lines -94 to -106
},
"plf-f-plr": {
"out_var": "plf-f-plr",
"type": "quad",
"coeff1": 0,
"coeff2": 0,
"coeff3": 1.0,
"x_min": 0.0,
"x_max": 1.0,
"out_min": null,
"out_max": null,
"ref_ect": 35,
"units": "si"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These defaults are not needed anymore since we handle it at the initialization.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ask Aowabin to remove these from his current curves as well?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And, we should remove all "plf-f-plr" from the jason file?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the ones that we added as defaults, yes. @aowabinr - FYI.

@wanhanlong1130 wanhanlong1130 merged commit 2a56206 into develop Sep 3, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants