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

Steam conversion factor #8266

Merged
merged 5 commits into from
Sep 16, 2020
Merged

Conversation

matthew-larson
Copy link
Contributor

@matthew-larson matthew-larson commented Sep 9, 2020

Pull request overview

  • Fixes Site-source conversion factor for steam is wrong #8265
  • This pull request updates the site-to-source conversion factor variable sourceFactorSteam from 0.3 to the correct value of 1.20 in the Site to Source Energy Conversion Factors Table to match the intent of the Pollution.SteamConvEffic variable in the PollutionModule.cc file. The Total and Net Source Energy are calculated from this sourceFactorSteam variable. The fuelSourceFactor variable for steam also needs to take into account the Pollution.SteamConvEffic variable to calculate the correct Source Energy End Use for District Heating when steam is used. Below shows the before and after for the relevant source energy use tables using an Exterior:FuelEquipment object with constant 1,000W steam use for the January.

Also, Steam is not included as an option in the FuelFactors object for the user to define it.

image

Big Table diffs are expected as this is changing the Site to Source Energy Conversion Factors for every html table output file.

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

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

@matthew-larson matthew-larson added Defect Includes code to repair a defect in EnergyPlus NotIDDChange Code does not impact IDD (can be merged after IO freeze) labels Sep 9, 2020
@matthew-larson matthew-larson self-assigned this Sep 9, 2020
@nealkruis
Copy link
Member

@JasonGlazer I think you worked on adding these originally? Do you have any insight here?

If we do make this change, shouldn't we update the other factors here while we're at it?

This might require transition rules (so old files use the same values as the old defaults), and documentation changes.

@JasonGlazer
Copy link
Contributor

I don't specifically remember but I would guess that it is based on the assumption of utilization of waste heat that is making electricity from a generator. It is possible that it needs to be that value to compensate for another conversion factor in the chain. Sorry, it was a long time ago.

Before you make such a change, have you made sure that it functions like you would expect when you put in that conversion efficiency in an input file? Have you checked the code and how it is used?

@matthew-larson
Copy link
Contributor Author

The steam factor seems to only be used for calculating the source energy use, but I will do some additional testing along with the CI checks to make sure it checks out with using an input file as well.

@matthew-larson
Copy link
Contributor Author

So it looks like this input (sourceFactorSteam) and the value in the conversion table have no effect on the models. The steam energy use ends up under the District Heating category and uses the efficiencyDistrictHeating variable, which is equal to 0.3. Need to do a little more digging on this to determine the best path forward.

image

image

@matthew-larson
Copy link
Contributor Author

Looks like the sourceFactorSteam variable is used directly for the Total and Net Source Energy for the Site and Source Energy table but a factor of 0.3 (no matter the sourceFactorSteam variable value) is used in the Source Energy End Use Components Summary report tables in being bundled with District Heating. We can probably leave it in the District Heating category if desired but just make sure the correct factor is being applied for steam vs district heating. The district heating site energy is using the natural gas source factor divided by 0.3 to calculate the source energy.

@matthew-larson matthew-larson marked this pull request as ready for review September 11, 2020 21:02
@JasonGlazer
Copy link
Contributor

I did a code review and the changes look fine. @nealkruis and @mitchute please take a look.

@mjwitte mjwitte added this to the EnergyPlus 9.4.0 milestone Sep 16, 2020
Copy link
Collaborator

@mitchute mitchute left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@Myoldmopar
Copy link
Member

Seems reasonable to me as well, merge at will.

@mitchute mitchute merged commit ca23a81 into NREL:develop Sep 16, 2020
@matthew-larson matthew-larson deleted the steam-conversion-factor branch September 16, 2020 19:02
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Defect Includes code to repair a defect in EnergyPlus NotIDDChange Code does not impact IDD (can be merged after IO freeze)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Site-source conversion factor for steam is wrong
10 participants