-
Notifications
You must be signed in to change notification settings - Fork 448
Issue Warning Error on negative coil capacity sizing #11197
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
Draft
tanaya-mankad
wants to merge
11
commits into
develop
Choose a base branch
from
negative-coil-capacity-sizing
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.
+1,620
−6
Draft
Changes from 4 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
42c437e
Add severe error to indicate negative capacity calculation.
tanaya-mankad fd1df60
Test for too-cold entering air on design day.
tanaya-mankad 1884a53
Add Unitary test with a VSCoil for capacity error verification.
tanaya-mankad 3592a72
Merge branch 'develop' of https://github.com/NREL/EnergyPlus into neg…
tanaya-mankad 9a097d9
Correct formatting.
tanaya-mankad 237e68e
Recreate failing conditions in test after warning change.
tanaya-mankad a678190
Add design day name to error.
tanaya-mankad ff8edfd
Merge branch 'develop' of https://github.com/NREL/EnergyPlus into neg…
tanaya-mankad 78dd547
Add diagnostic information to WarningError.
tanaya-mankad ecbc41a
Add test to be enabled at a later time.
tanaya-mankad 49fc066
Updated warning message and test.
tanaya-mankad 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5953,18 +5953,18 @@ TEST_F(EnergyPlusFixture, VSCoilUnitary_NoNegativeCapacity) | |
|
||
"Sizing:System,", | ||
"Heat Pump Sys 1, !- AirLoop Name", | ||
"sensible, !- Type of Load to Size On", | ||
"VentilationRequirement, !- Type of Load to Size On", | ||
"autosize, !- Design Outdoor Air Flow Rate {m3/s}", | ||
"0.0, !- Central Heating Maximum System Air Flow Ratio", | ||
"7.0, !- Preheat Design Temperature {C}", | ||
"1.0, !- Central Heating Maximum System Air Flow Ratio", | ||
"27.0, !- Preheat Design Temperature {C}", | ||
"0.008, !- Preheat Design Humidity Ratio {kgWater/kgDryAir}", | ||
"25.0, !- Precool Design Temperature {C}", | ||
"32.222, !- Precool Design Temperature {C}", | ||
"0.008, !- Precool Design Humidity Ratio {kgWater/kgDryAir}", | ||
"25., !- Central Cooling Design Supply Air Temperature {C}", | ||
"50., !- Central Heating Design Supply Air Temperature {C}", | ||
"32.222, !- Central Cooling Design Supply Air Temperature {C}", | ||
"12.777, !- Central Heating Design Supply Air Temperature {C}", | ||
"noncoincident, !- Type of Zone Sum to Use", | ||
"no, !- 100% Outdoor Air in Cooling", | ||
"no, !- 100% Outdoor Air in Heating", | ||
"yes, !- 100% Outdoor Air in Cooling", | ||
"yes, !- 100% Outdoor Air in Heating", | ||
"0.008, !- Central Cooling Design Supply Air Humidity Ratio {kgWater/kgDryAir}", | ||
"0.008, !- Central Heating Design Supply Air Humidity Ratio {kgWater/kgDryAir}", | ||
"DesignDay, !- Cooling Supply Air Flow Rate Method", | ||
|
@@ -5978,17 +5978,17 @@ TEST_F(EnergyPlusFixture, VSCoilUnitary_NoNegativeCapacity) | |
", !- Heating Fraction of Autosized Heating Supply Air Flow Rate", | ||
", !- Heating Fraction of Autosized Cooling Supply Air Flow Rate", | ||
", !- Heating Supply Air Flow Rate Per Unit Heating Capacity {m3/s-W}", | ||
", !- System Outdoor Air Method", | ||
"1.0, !- Zone Maximum Outdoor Air Fraction {dimensionless}", | ||
"CoolingDesignCapacity, !- Cooling Design Capacity Method", | ||
"autosize, !- Cooling Design Capacity {W}", | ||
"ZoneSum, !- System Outdoor Air Method", | ||
", !- Zone Maximum Outdoor Air Fraction {dimensionless}", | ||
", !- Cooling Design Capacity Method", | ||
", !- Cooling Design Capacity {W}", | ||
", !- Cooling Design Capacity Per Floor Area {W/m2}", | ||
", !- Fraction of Autosized Cooling Design Capacity", | ||
"HeatingDesignCapacity, !- Heating Design Capacity Method", | ||
"autosize, !- Heating Design Capacity {W}", | ||
", !- Heating Design Capacity Method", | ||
", !- Heating Design Capacity {W}", | ||
", !- Heating Design Capacity Per Floor Area {W/m2}", | ||
", !- Fraction of Autosized Heating Design Capacity", | ||
"VAV; !- Central Cooling Capacity Control Method", | ||
"; !- Central Cooling Capacity Control Method", | ||
|
||
"Curve:Cubic,", | ||
"HPACHeatCapFT, !- Name", | ||
|
@@ -6767,7 +6767,7 @@ TEST_F(EnergyPlusFixture, VSCoilUnitary_NoNegativeCapacity) | |
Real64 constexpr SpeedRatio{0.0}; | ||
int constexpr SpeedCal{1}; | ||
VariableSpeedCoils::InitVarSpeedCoil(*state, DXCoilNum, SensLoad, LatentLoad, fanOp, OnOffAirFlowRatio, SpeedRatio, SpeedCal); | ||
EXPECT_TRUE(compare_err_stream_substring("entering air temperature is less than design outlet air temperature", true)); | ||
EXPECT_TRUE(compare_err_stream_substring("This will yield negative coil capacity sizing", true)); | ||
|
||
} | ||
|
||
TEST_F(EnergyPlusFixture, UnitarySystemModel_SetOnOffMassFlowRateTest) | ||
|
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.
Coil sizing is based on enthalpy. Given the sneaky use of a standard capacity if enthalpies are not correct CoilCapAtPeak should never be negative here. I would like to see the 48000 removed (i.e., delete the else) since it just forces a non-zero coil capacity. There is nothing wrong with the coil sizing to 0 if FinalSysSizing conditions warrant that result.
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.
Yes! Not knowing where it came from, I was reticent to touch a "magic number."