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

Add missing references for support of FanSystemModel in various HVAC/ZoneHVAC components #7721

Merged
merged 18 commits into from
Feb 13, 2020

Conversation

jmarrec
Copy link
Contributor

@jmarrec jmarrec commented Jan 28, 2020

Pull request overview

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

…ings work: missing plant equipment references etc

Note that for solar collectors, technically E+ does say it expects them on the demand side, but it works on the supply...

NREL/OpenStudio#3762
NREL/OpenStudio#3761 (comment)
NREL/OpenStudio#2880
…:COmponentModel, so update ref to more restrictive than "Fans"
@jmarrec jmarrec added Defect Includes code to repair a defect in EnergyPlus IDDChange Code changes impact the IDD file (cannot be merged after IO freeze) labels Jan 28, 2020
@jmarrec jmarrec added this to the EnergyPlus 9.3.0 milestone Jan 28, 2020
@jmarrec jmarrec self-assigned this Jan 28, 2020
Copy link
Contributor

@mjwitte mjwitte left a comment

Choose a reason for hiding this comment

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

@jmarrec Not sure if this was ready for review yet, but made some comments anyway.

idd/Energy+.idd.in Outdated Show resolved Hide resolved
\reference-class-name validPlantEquipmentTypes
\reference validPlantEquipmentNames
\reference-class-name validCondenserEquipmentTypes
\reference validCondenserEquipmentNames
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this is correct. Generators with waste heat recovery can sit on a branch, but they are not dispatchable by the load management. So, I don't think they belong in plant or condenser equipment lists. @Myoldmopar ?

Copy link
Contributor Author

@jmarrec jmarrec Feb 3, 2020

Choose a reason for hiding this comment

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

If you use an ElectricLoadCenter:Distribution object with a scheme like FollowThermalLimitElectric, then you do have to put in a PlantEquipmentOperation:HeatingLoad don't you?

That's what I'm doing in the OpenStudio-resources regression test for Generator:MicroTurbine at least... https://github.com/NREL/OpenStudio-resources/blob/9d16ac6aba234794c84438a679ce4ff54710dcc5/model/simulationtests/generator_microturbine.rb#L385

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not really sure if that does anything. You may be correct. @Myoldmopar @EnergyArchmage ?

Copy link
Member

Choose a reason for hiding this comment

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

I happen to be working with the Generator:MicroTurbine by adding it to the MediumOffice reference building (using Julien's generator_microturbine.rb code, thanks btw!), and can confirm that the PlantEquipmentOperation:HeatingLoad is needed for the ElectricLoadCenter:Distribution > FollowThermalLimitElectrical case to have any effect on a model.

idd/Energy+.idd.in Show resolved Hide resolved
@@ -68354,6 +68382,8 @@ SolarCollector:FlatPlate:Water,
\type alpha
\reference-class-name validBranchEquipmentTypes
\reference validBranchEquipmentNames
\reference-class-name validPlantEquipmentTypes
\reference validPlantEquipmentNames
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure solar collectors belong on PlantEquipmentLists? @mitchute @Myoldmopar ?

Copy link
Collaborator

@mitchute mitchute Feb 3, 2020

Choose a reason for hiding this comment

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

Looks to me like it should be there:

struct CollectorData : PlantComponent

Copy link
Contributor Author

@jmarrec jmarrec Feb 3, 2020

Choose a reason for hiding this comment

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

Lots of confusion on what the placement of solar collectors should be, especially since OpenStudio forces you to put the Flat Plate ones on the supply side (for some reason... and it appears to work fine too...)
I agree that generally speaking the documentation and example files in E+ seem to imply demand side placement (with control of the loop via availability managers).

References:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Opening a dedicated issue for this instead: #7735

@EnergyArchmage
Copy link
Contributor

It is possible for a chp generator to be operated in a thermal load following scheme. I think @jmarrec is correct. Just glanced at comments.

@jmarrec
Copy link
Contributor Author

jmarrec commented Feb 4, 2020

in Microgeneration.idf, the Generator:MicroCHP for eg is on a PlantEquipmentList used in a PlantEquipmentOperation:HeatingLoad.

(Note that I added the reference for Generator:MicroTurbine but not for Generator:MicroCHP simply because I modified that stuff while testing things that are implemented in OS, and MicroTurbine is but MicroCHP isn't. Edit: actually MicroCHP already has the same references)

Copy link
Contributor

@mjwitte mjwitte left a comment

Choose a reason for hiding this comment

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

@jmarrec I'm ok with the responses to prior comments. I've tested this with IDF Editor validity check for about 2 dozen idf files that contain Fan:SystemModel. All passed without errors. I've updated to current develop and will wait for one more round of CI results, then merge this.

@mjwitte mjwitte merged commit c6e3c11 into develop Feb 13, 2020
@mjwitte mjwitte deleted the 7697_FanSystemModel_IDD branch February 13, 2020 04:06
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 IDDChange Code changes impact the IDD file (cannot be merged after IO freeze)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fan:SystemModel inconsistencies in IDD
10 participants