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

HeatPump:PlantLoop:EIR:*: new fields #4962

Merged
merged 18 commits into from
Sep 13, 2023
Merged

Conversation

joseph-robertson
Copy link
Collaborator

@joseph-robertson joseph-robertson commented Sep 6, 2023

Pull request overview

  • Support new fields for HeatPump:PlantLoop:EIR:Cooling:
    • "Control Type"
    • "Flow Mode"
    • "Minimum Part Load Ratio"
    • "Minimum Source Inlet Temperature"
    • "Maximum Source Inlet Temperature"
    • "Minimum Supply Water Temperature Curve Name"
    • "Maximum Supply Water Temperature Curve Name"
  • Support new fields for HeatPump:PlantLoop:EIR:Heating:
    • "Heating To Cooling Capacity Sizing Ratio"
    • "Heat Pump Sizing Method"
    • "Control Type"
    • "Flow Mode"
    • "Minimum Part Load Ratio"
    • "Minimum Source Inlet Temperature"
    • "Maximum Source Inlet Temperature"
    • "Minimum Supply Water Temperature Curve Name"
    • "Maximum Supply Water Temperature Curve Name"
    • "Dry Outdoor Correction Factor Curve Name"
    • "Maximum Outdoor Dry Bulb Temperature For Defrost Operation"
    • "Heat Pump Defrost Control"
    • "Heat Pump Defrost Time Period Fraction"
    • "Defrost Energy Input Ratio Function of Temperature Curve Name"
    • "Timed Empirical Defrost Frequency Curve Name"
    • "Timed Empirical Defrost Heat Load Penalty Curve Name"
    • "Timed Empirical Defrost Heat Input Energy Fraction Curve Name"

Pull Request Author

  • Model API Changes / Additions
  • Any new or modified fields have been implemented in the EnergyPlus ForwardTranslator (and ReverseTranslator as appropriate)
  • Model API methods are tested (in src/model/test)
  • EnergyPlus ForwardTranslator Tests (in src/energyplus/Test)
  • If a new object or method, added a test in NREL/OpenStudio-resources: Add Link
  • If needed, added VersionTranslation rules for the objects (src/osversion/VersionTranslator.cpp)
  • Verified that C# bindings built fine on Windows, partial classes used as needed, etc.
  • All new and existing tests passes
  • If methods have been deprecated, update rest of code to use the new methods

Labels:

  • If change to an IDD file, add the label IDDChange
  • If breaking existing API, add the label APIChange
  • If deemed ready, add label Pull Request - Ready for CI so that CI builds your PR

Review Checklist

This will not be exhaustively relevant to every PR.

  • Perform a Code Review on GitHub
  • Code Style, strip trailing whitespace, etc.
  • All related changes have been implemented: model changes, model tests, FT changes, FT tests, VersionTranslation, OS App
  • Labeling is ok
  • If defect, verify by running develop branch and reproducing defect, then running PR and reproducing fix
  • If feature, test running new feature, try creative ways to break it
  • CI status: all green or justified

@joseph-robertson joseph-robertson added Pull Request - Ready for CI This pull request if finalized and is ready for continuous integration verification prior to merge. IDDChange labels Sep 6, 2023
@joseph-robertson joseph-robertson added this to the OpenStudio SDK 3.7.0 milestone Sep 6, 2023
@joseph-robertson joseph-robertson self-assigned this Sep 6, 2023
@joseph-robertson joseph-robertson mentioned this pull request Sep 6, 2023
26 tasks
@@ -390,6 +462,11 @@ namespace model {

setReferenceCoefficientofPerformance(7.5); // IDD default
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 IDD default has changed to 3.0. Should that be captured here?

@@ -450,6 +527,11 @@ namespace model {

setReferenceCoefficientofPerformance(7.5);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Here too.

Copy link
Collaborator

@jmarrec jmarrec left a comment

Choose a reason for hiding this comment

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

Model tests, FT tests, required-field, all good.

Missing a min fields update, and some resetXXXCurve function and this is good to go!

resources/model/OpenStudio.idd Show resolved Hide resolved
resources/model/OpenStudio.idd Outdated Show resolved Hide resolved
src/model/HeatPumpPlantLoopEIRHeating.hpp Show resolved Hide resolved
src/model/HeatPumpPlantLoopEIRHeating.cpp Show resolved Hide resolved
src/model/HeatPumpPlantLoopEIRCooling.cpp Show resolved Hide resolved
@joseph-robertson
Copy link
Collaborator Author

@jmarrec segfault in tests - presumably related to new reset curve methods. do you see anything obvious?

Comment on lines 913 to 915
void HeatPumpPlantLoopEIRHeating::resetMinimumSupplyWaterTemperatureCurve() {
getImpl<detail::HeatPumpPlantLoopEIRCooling_Impl>()->resetMinimumSupplyWaterTemperatureCurve();
}
Copy link
Collaborator

@jmarrec jmarrec Sep 13, 2023

Choose a reason for hiding this comment

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

Segfault is here @joseph-robertson (couldn't see it, I had to use a debugger to notice)

-HeatPumpPlantLoopEIRCooling_Impl
+HeatPumpPlantLoopEIRHeating_Impl

@jmarrec jmarrec marked this pull request as ready for review September 13, 2023 08:34
@jmarrec jmarrec merged commit d8aa548 into v23.2.0-IOFreeze Sep 13, 2023
@jmarrec jmarrec deleted the heatpump-plantloop branch September 13, 2023 08:34
@jmarrec
Copy link
Collaborator

jmarrec commented Sep 28, 2023

We forgot VT! cf #4977

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IDDChange Pull Request - Ready for CI This pull request if finalized and is ready for continuous integration verification prior to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants