-
Notifications
You must be signed in to change notification settings - Fork 489
Add Plant Manager dynamic operating capacity calls to Chiller:Electric:EIR #11727
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
Open
rraustad
wants to merge
7
commits into
develop
Choose a base branch
from
6436-Chiller-RefCap-at-PLRof1-is-constant
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
621f45d
Add getDynamicMaxCapacity to EIR chiller
rraustad d3ec896
Add more plant manager calls to getDynamicMaxCapacity
rraustad 84c84bc
Protect CapFT curve index = 0
rraustad 172aae5
Merge branch 'develop' into 6436-Chiller-RefCap-at-PLRof1-is-constant
mitchute 97155e2
Honor dynamic component capacity during plant dispatch
mitchute 90e14e0
Honor dynamic capacity in plant load distribution
mitchute 2fcaec6
Merge branch 'develop' into 6436-Chiller-RefCap-at-PLRof1-is-constant
mitchute File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -328,8 +328,8 @@ TEST_F(EnergyPlusFixture, ChillerElectricEIR_AirCooledChiller) | |
| " ThermoCapFracCurve; !- Thermosiphon Capacity Fraction Curve Name", | ||
|
|
||
| "Curve:Linear, ThermoCapFracCurve, 0.0, 0.06, 0.0, 10.0, 0.0, 1.0, Dimensionless, Dimensionless;", | ||
| "Curve:Biquadratic, Air cooled CentCapFT, 0.257896, 0.0389016, -0.00021708, 0.0468684, -0.00094284, -0.00034344, 5, 10, 24, 35, , , , , ;", | ||
| "Curve:Biquadratic, Air cooled CentEIRFT, 0.933884, -0.058212, 0.00450036, 0.00243, 0.000486, -0.001215, 5, 10, 24, 35, , , , , ;", | ||
| "Curve:Biquadratic, Air cooled CentCapFT, 0.257896, 0.0389016, -0.00021708, 0.0468684, -0.00094284, -0.00034344, 5, 10, 5, 35, , , , , ;", | ||
| "Curve:Biquadratic, Air cooled CentEIRFT, 0.933884, -0.058212, 0.00450036, 0.00243, 0.000486, -0.001215, 5, 10, 5, 35, , , , , ;", | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The minimum input limit for OAT in these curves was not providing the change expected when calling getDynamicMaxCapacity, because OAT was 12C and 5C in this unit test, so the minimum OAT limit for the curve object was expanded. |
||
| "Curve:Quadratic, Air cooled CentEIRFPLR, 0.222903, 0.313387, 0.46371, 0, 1, , , , ;", | ||
|
|
||
| }); | ||
|
|
@@ -400,17 +400,28 @@ TEST_F(EnergyPlusFixture, ChillerElectricEIR_AirCooledChiller) | |
|
|
||
| thisEIR.initialize(*state, RunFlag, MyLoad); | ||
| thisEIR.calculate(*state, MyLoad, RunFlag); | ||
| EXPECT_GT(thisEIR.ChillerPartLoadRatio, 0.4); // load is large | ||
| EXPECT_GT(thisEIR.ChillerPartLoadRatio, 0.4); // load is largeMax | ||
| EXPECT_EQ(thisEIR.thermosiphonStatus, 0); // thermosiphon is off | ||
| EXPECT_GT(thisEIR.Power, 1500.0); // power is non-zero | ||
| EXPECT_GT(thisEIR.Power, 1300.0); // power is non-zero | ||
|
|
||
| // Test getDynamicMaxCapacity function for use by plant manager | ||
| PlantComponent *thisChiller = &thisEIR; | ||
| Real64 dynCap = thisChiller->getDynamicMaxCapacity(*state); | ||
| EXPECT_NEAR(18582.6, dynCap, 1.0); // capacity used by plant manager, calculated at 12 C OAT and 6 C leaving CHW temperature | ||
| EXPECT_NEAR(20987.5, thisEIR.RefCap, 1.0); // chiller reference capacity used by plant manager (prior to getDynamicMaxCapacity call) | ||
|
|
||
| state->dataLoopNodes->Node(thisEIR.CondInletNodeNum).OutAirDryBulb = 5.0; // condenser inlet temp < evap outlet temp | ||
|
|
||
| thisEIR.initialize(*state, RunFlag, MyLoad); | ||
| thisEIR.calculate(*state, MyLoad, RunFlag); | ||
| EXPECT_GT(thisEIR.ChillerPartLoadRatio, 0.4); // load is large | ||
| EXPECT_EQ(thisEIR.thermosiphonStatus, 0); // thermosiphon is off | ||
| EXPECT_GT(thisEIR.Power, 1500.0); // power is non-zero | ||
| EXPECT_GT(thisEIR.Power, 1200.0); // power is non-zero | ||
|
|
||
| // Test getDynamicMaxCapacity function for use by plant manager | ||
| dynCap = thisChiller->getDynamicMaxCapacity(*state); | ||
| EXPECT_NEAR(14354.6, dynCap, 1.0); // capacity used by plant manager, calculated at 5 C OAT and 6 C leaving CHW temperature | ||
| EXPECT_NEAR(20987.5, thisEIR.RefCap, 1.0); // chiller reference capacity used by plant manager (prior to getDynamicMaxCapacity call) | ||
|
|
||
| MyLoad /= 25.0; // reduce load such that thermosiphon can meet load | ||
| thisEIR.initialize(*state, RunFlag, MyLoad); | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this new function, wrote a unit test that tested this function, and then tried to prove the value using a test file. I found no changes at all between develop and this branch and then realized that the Plant Manager was not calling the getDynamicMaxCapacity function in places that mattered. The new calls were added to PlantCondLoopOperation such that the plant manager now knows the dynamic capacity of the EIR chiller.