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

Simplify sys params to closer match reality #659

Open
wants to merge 154 commits into
base: develop
Choose a base branch
from

Conversation

vtnate
Copy link
Contributor

@vtnate vtnate commented Sep 18, 2024

Any background context you want to provide?

We developed the schema to cover many potential 5G parameters. This cleans up a few of them, to reduce duplication and have parameters where they make sense.

This says 154 commits but that is because it was originally based off the multi-ghe PR, so Github thinks those 140 commits are a part of this PR. It's not that big, just changing schema and test sys-param files to match.

What does this PR accomplish?

  • Move pump_design_head & pump_flow_rate to district params instead of individual ETS params.
  • Spread out district param definitions in the schema
  • Use more precise validation in several instances
  • Require ETS for all buildings
  • Update a few tests to match new schema

How should this be manually tested?

CI is technically efficient. Manual review to determine if this is the appropriate place for them to be.

What are the relevant tickets?

Resolves #629

vtnate and others added 30 commits July 11, 2024 08:05
@vtnate vtnate added the enhancement New feature or request label Sep 18, 2024
@vtnate vtnate self-assigned this Sep 18, 2024
@vtnate vtnate marked this pull request as ready for review September 18, 2024 21:58
Copy link
Collaborator

@JingWang-CUB JingWang-CUB left a comment

Choose a reason for hiding this comment

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

Hi @vtnate , please see the detailed review comments. Otherwise, it looks good!

@@ -118,7 +116,8 @@
"chp_installed": false
},
"central_pump_parameters": {
"pump_design_head": 60000
"pump_design_head": 60000,
"pump_flow_rate": 0.01
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think for fourth gen districts, the central pump design head and flow rate should be under central cooling/heating plant parameters, as in chw_pump_head, cw_pump_head, and chiller_water_flow_nominal in the cooling plant, and pressure_drop_hhw_nominal and mass_hhw_flow_nominal in the heating plant.

Copy link
Collaborator

Choose a reason for hiding this comment

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

In other words, these should be 5G only changes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should the entire central_pump_parameters block be removed from 4G districts?

We still want to remove the head & flow-rate from all ETS parameters, correct (as I did in this PR)?

Copy link
Collaborator

Choose a reason for hiding this comment

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

To your first question, yes. Can you provide an example of your second question?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I mean deleting the lines from the building ETS parameters. Confirming that what I did in this PR is appropriate.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, deleting the pump_flow_rate and pump_design_head from the 5g ETS parameters is appropriate.

},
"central_pump_parameters": {
"pump_design_head": 60000,
"pump_flow_rate": 0.01
Copy link
Collaborator

Choose a reason for hiding this comment

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

ThermalNetwork should be aware of these changes for its sizing of GHEs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have an open PR on TN doing just that: NREL/ThermalNetwork#37.

Base automatically changed from ghe-couplings to develop September 25, 2024 22:39
@vtnate vtnate requested a review from nllong September 26, 2024 21:06
Copy link
Member

@nllong nllong left a comment

Choose a reason for hiding this comment

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

we are probably need to start versioning this file soon...

changes look swell.

@@ -217,7 +217,7 @@
"type": "object",
"properties": {
"geojson_id": {
"description": "The GeoJSON ID as defined in the GeoJSON file. This is used to overwrite the default data for a specific building. This option is not used in the default section.",
"description": "The GeoJSON ID as defined in the GeoJSON file.",
Copy link
Member

Choose a reason for hiding this comment

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

nice cleanup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove duplicated system parameters file inputs
3 participants