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

Fix Zone Contaminant Source or Sink CO2 Gain Volume Flow Rate output #7909

Merged
merged 3 commits into from Apr 8, 2020

Conversation

mjwitte
Copy link
Contributor

@mjwitte mjwitte commented Apr 7, 2020

Pull request overview

The #7905 defect file should report exactly the same values in columns B and C:
CO2PEOPLE:Contaminant Source or Sink CO2 Gain Volume Flow Rate m3/s
CLASSROOM:Zone Contaminant Source or Sink CO2 Gain Volume Flow Rate m3/s

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
    No diffs expected, because Zone Contaminant Source or Sink CO2 Gain Volume Flow Rate is not used in any of the testfiles.
    Added outputs to HeatPumpIAQP_GenericContamControl.idf
  • 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

@mjwitte mjwitte added the Defect Includes code to repair a defect in EnergyPlus label Apr 7, 2020
@@ -5265,6 +5265,7 @@ namespace InternalHeatGains {
e.HWPower = 0.0;
e.SteamPower = 0.0;
e.BaseHeatPower = 0.0;
e.CO2Rate = 0.0;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was forgotten here. Note that not all variables in ZnRpt are set to zero here. Just the ones that are accumulated with += in this function.

@mjwitte
Copy link
Contributor Author

mjwitte commented Apr 7, 2020

Note the increase in unit test coverage.

Develop:                         Line Coverage         Function Coverage
InternalHeatGains.cc |   |   | 55.7 % | 2089 / 3751 | 76.5 % | 26 / 34
This branch:
InternalHeatGains.cc |   |   | 72.8 % | 2733 / 3752 | 76.5 % | 26 / 34

 

 

@rraustad
Copy link
Contributor

rraustad commented Apr 7, 2020

No example files use this report variable? Should add it to one or more?

@rraustad
Copy link
Contributor

rraustad commented Apr 7, 2020

Looked over the function where this change was made. This change looks like it includes everything.

@rraustad
Copy link
Contributor

rraustad commented Apr 7, 2020

CO2 report looks correct now.

image

@rraustad
Copy link
Contributor

rraustad commented Apr 7, 2020

Unit tests run to completion locally.

@rraustad
Copy link
Contributor

rraustad commented Apr 7, 2020

The 1 unit test failure appears unrelated and this specific failure is occurring more often.

@rraustad
Copy link
Contributor

rraustad commented Apr 7, 2020

@mjwitte this all looks good and is ready to merge. What do you think about adding the report to one of the example files?

EXPECT_EQ(DataHeatBalance::ZnRpt(1).SteamPower, 300.0);
EXPECT_EQ(DataHeatBalance::ZnRpt(1).BaseHeatPower, 1500.0);
EXPECT_EQ(DataHeatBalance::ZnRpt(1).CO2Rate, 0.0001125);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why isn't this showing that little error with no line feed after the last bracket?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, because it's not showing line 1006.

@mjwitte
Copy link
Contributor Author

mjwitte commented Apr 8, 2020

@rraustad Added output variables to one test file and corrected the docs for some of the output variables.

Copy link
Contributor

@rraustad rraustad left a comment

Choose a reason for hiding this comment

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

  • Reports added to example file
  • Review doc changes, built IO Ref and reviewed changes
  • CI reports show expected results

@rraustad rraustad merged commit d9449ea into develop Apr 8, 2020
@rraustad rraustad deleted the FixZoneCO2Gain-7905 branch April 8, 2020 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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.

Zone Contaminant Source or Sink CO2 Gain Volume Flow Rate does not reset to zero each timestep
7 participants