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

New Coil:*:WaterToAirHeatPump:EquationFit fields #4671

Merged
merged 32 commits into from Sep 20, 2022

Conversation

joseph-robertson
Copy link
Collaborator

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

Pull request overview

  • Addresses Update to EnergyPlus 22.2.0 #4649
  • Coil:Heating:WaterToAirHeatPump:EquationFit
    • Rated Entering Water Temperature
    • Rated Entering Air Dry-Bulb Temperature
    • Ratio of Rated Heating Capacity to Rated Cooling Capacity
  • Coil:Cooling:WaterToAirHeatPump:EquationFit
    • Rated Entering Water Temperature
    • Rated Entering Air Dry-Bulb Temperature
    • Rated Entering Air Wet-Bulb Temperature
  • Updates model tests
  • Update FT
  • Add VT
  • Add new (missing) FT test file

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, 2022
@joseph-robertson joseph-robertson self-assigned this Sep 6, 2022
@joseph-robertson joseph-robertson mentioned this pull request Sep 6, 2022
17 tasks
@joseph-robertson joseph-robertson changed the base branch from develop to v22.2.0-IOFreeze September 6, 2022 21:34
@joseph-robertson joseph-robertson added this to In progress in OpenStudio via automation Sep 9, 2022
@tijcolem tijcolem added this to the OpenStudio SDK 3.5.0 milestone Sep 9, 2022
@joseph-robertson joseph-robertson marked this pull request as ready for review September 16, 2022 19:58
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.

@joseph-robertson Generally looks good. I would ideally like to see the FT code cleaned up and the testing (especially FT) see a couple of changes, but I don't feel super strongly on this so up to you if you want to do it or not.

Comment on lines 93 to 99
EXPECT_EQ(hp.nameString(), idf_hp.getString(ZoneHVAC_WaterToAirHeatPumpFields::Name).get());
EXPECT_EQ(sch.nameString(), idf_hp.getString(ZoneHVAC_WaterToAirHeatPumpFields::AvailabilityScheduleName).get());
EXPECT_NE("", idf_hp.getString(ZoneHVAC_WaterToAirHeatPumpFields::AirInletNodeName, false).get());
EXPECT_NE("", idf_hp.getString(ZoneHVAC_WaterToAirHeatPumpFields::AirOutletNodeName, false).get());
EXPECT_EQ("OutdoorAir:Mixer", idf_hp.getString(ZoneHVAC_WaterToAirHeatPumpFields::OutdoorAirMixerObjectType, false).get());
EXPECT_NE("", idf_hp.getString(ZoneHVAC_WaterToAirHeatPumpFields::OutdoorAirMixerName).get());
EXPECT_EQ("Autosize", idf_hp.getString(ZoneHVAC_WaterToAirHeatPumpFields::CoolingSupplyAirFlowRate, false).get());
Copy link
Collaborator

Choose a reason for hiding this comment

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

  • I like the fact that you added a new test
  • Maybe we should actually make it a full, targeted test. I see too much EXPECT_NE("", xxx) when I would like to see actual specific checks
  • Don't use EXPECT_EQ / EXPECT_NE with an empty string. Use EXPECT_TRUE(idf_hp.isEmpty(index)); instead

src/osversion/VersionTranslator.cpp Show resolved Hide resolved
@ci-commercialbuildings
Copy link
Collaborator

ci-commercialbuildings commented Sep 19, 2022

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.

FT test is highly suspicious.

// Check Node Connections
// --- CC --- HC --- Fan --- supHC
EXPECT_EQ("", idf_hp.getString(ZoneHVAC_WaterToAirHeatPumpFields::AirInletNodeName).get());
EXPECT_EQ("", idf_hp.getString(ZoneHVAC_WaterToAirHeatPumpFields::AirOutletNodeName).get());
Copy link
Collaborator

Choose a reason for hiding this comment

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

I really doubt having nodes as blank is actually wanted here... Or am I missing something?

Taking ZoneWSHP_wDOAS.idf as an example, Nodes seem to be exactly like I expected: they match from one component to the next.

These two are actually the Zone Exhaust and Inlet Nodes

Comment on lines 120 to 121
EXPECT_EQ(idf_fan.getString(Fan_OnOffFields::AirOutletNodeName).get(),
idf_supHC.getString(Coil_Heating_ElectricFields::AirInletNodeName).get(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Unterminated macro. Does that run on MSVC ?!?!

@jmarrec
Copy link
Collaborator

jmarrec commented Sep 20, 2022

@joseph-robertson I've resolved conflicts and redid the FT testing to test everything field in both the high level object and the coils, and test that nodes are properly laid out, cf d04a448.

I'm merging without waiting.

@jmarrec jmarrec merged commit 731a156 into v22.2.0-IOFreeze Sep 20, 2022
OpenStudio automation moved this from In progress to Done Sep 20, 2022
@jmarrec jmarrec deleted the new-watertoair-fields branch September 20, 2022 09:56
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
No open projects
OpenStudio
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants