Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix HeatPump:PlantLoop:EIR:* Inlet Temperatures #8072

Merged
merged 5 commits into from
Jun 28, 2020

Conversation

mitchute
Copy link
Collaborator

Fixes #8071

Pull Request Author

Add to this list or remove from it as applicable. This is a simple templated set of guidelines.

  • Title of PR should be user-synopsis style (clearly understandable in a standalone changelog context)
  • Label the PR with at least one of: Defect, Refactoring, NewFeature, Performance, and/or DoNoPublish
  • Pull requests that impact EnergyPlus code must also include unit tests to cover enhancement or defect repair
  • Author should provide a "walkthrough" of relevant code changes using a GitHub code review comment process
  • If any diffs are expected, author must demonstrate they are justified using plots and descriptions
  • If changes fix a defect, the fix should be demonstrated in plots and descriptions
  • If any defect files are updated to a more recent version, upload new versions here or on DevSupport
  • If IDD requires transition, transition source, rules, ExpandObjects, and IDFs must be updated, and add IDDChange label
  • If structural output changes, add to output rules file and add OutputChange label
  • If adding/removing any LaTeX docs or figures, update that document's CMakeLists file dependencies

Reviewer

This will not be exhaustively relevant to every PR.

  • Perform a Code Review on GitHub
  • If branch is behind develop, merge develop and build locally to check for side effects of the merge
  • 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
  • Check that performance is not impacted (CI Linux results include performance check)
  • Run Unit Test(s) locally
  • Check any new function arguments for performance impacts
  • Verify IDF naming conventions and styles, memos and notes and defaults
  • If new idf included, locally check the err file and other outputs

@mitchute mitchute added the Defect Includes code to repair a defect in EnergyPlus label Jun 10, 2020
@mitchute mitchute added this to the EnergyPlus 9.4.0 milestone Jun 10, 2020
@mitchute mitchute self-assigned this Jun 10, 2020
@mitchute mitchute marked this pull request as draft June 10, 2020 19:46
@mitchute
Copy link
Collaborator Author

From the test file provided by the user for an air-source heat pump.

The unit never operated so the temperatures were never updated.

Screen Shot 2020-06-10 at 1 53 44 PM

After the fix, the temperatures now behave as they should.

Screen Shot 2020-06-10 at 1 53 00 PM

Copy link
Member

@Myoldmopar Myoldmopar left a comment

Choose a reason for hiding this comment

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

I know this is draft, but this looks like a reasonable fix to me.

@Myoldmopar
Copy link
Member

As for the failing unit test, I wouldn't be surprised if the new value is simply the correct value.

@mitchute mitchute marked this pull request as ready for review June 25, 2020 19:59
@Myoldmopar
Copy link
Member

OK, I understand why that unit test was failing. Previously the unit test was setting the inlet node conditions to specified values so that the unit would run under those conditions. This worked because inside doPhysics is where we were pulling the data from the node onto the unit data structure. However, your change here pulled that assignment up to the simulate level, so the unit was running with zero inlet temperatures on both source and load side. To fix it, I just changed the unit test so that it sets up the data structure inlet temps directly and runs the physics calculation. Everything seems good now, so I'll let CI run and this should be able to drop in shortly.

@Myoldmopar
Copy link
Member

All good here, merging. Thanks @mitchute !

@Myoldmopar Myoldmopar merged commit a8c02bc into develop Jun 28, 2020
@Myoldmopar Myoldmopar deleted the fix_plant_loop_heat_pump_inlet_temps branch June 28, 2020 00:52
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Defect Includes code to repair a defect in EnergyPlus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HeatPump:PlantLoop:EIR:* Inlet Temperatures Don't Update When Unit Off
7 participants