-
Couldn't load subscription status.
- Fork 451
Allow zone terminal unit HW coil UA sizing failure to proceed when using ReverseWithLimit in heating dominated climates #11079
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
base: develop
Are you sure you want to change the base?
Changes from all commits
8fdd5b0
a81ec44
a94af4e
0ab8445
134fa7a
b232a09
ffec3a1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -176,12 +176,12 @@ TEST_F(AutoSizingFixture, WaterHeatingCoilUASizingGauntlet) | |
| state->dataSize->ZoneSizingInput(1).ZoneNum = 1; | ||
| sizer.initializeWithinEP(*this->state, HVAC::cAllCoilTypes(HVAC::Coil_HeatingWater), "MyWaterCoil", printFlag, routineName); | ||
| sizedValue = sizer.size(*state, inputValue, errorsFound); | ||
| EXPECT_TRUE(errorsFound); | ||
| EXPECT_TRUE(state->dataSize->DataErrorsFound); | ||
| EXPECT_TRUE(sizer.dataErrorsFound); | ||
| EXPECT_ENUM_EQ(AutoSizingResultType::ErrorType1, sizer.errorType); | ||
| EXPECT_FALSE(errorsFound); | ||
| EXPECT_FALSE(state->dataSize->DataErrorsFound); | ||
| EXPECT_FALSE(sizer.dataErrorsFound); | ||
| EXPECT_ENUM_EQ(AutoSizingResultType::NoError, sizer.errorType); | ||
| EXPECT_TRUE(sizer.wasAutoSized); | ||
| EXPECT_NEAR(3.0, sizedValue, 0.01); // 0.1% of 3000 W capacity | ||
| EXPECT_NEAR(3000.0, sizedValue, 0.01); // 100% of 3000 W capacity | ||
|
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. If HW coil UA sizing fails with -2, the maximum UA limit is now used to size the coil. Previously the lower limit was used (because that's what gets returned from SolveRoot when that function fails with -2) and the coil was severely undersized (with associated error and a fatal). |
||
| state->dataWaterCoils->WaterCoil(1).InletAirTemp = 21.0; | ||
| state->dataSize->DataErrorsFound = false; | ||
| sizer.dataErrorsFound = false; | ||
|
|
@@ -272,9 +272,9 @@ TEST_F(AutoSizingFixture, WaterHeatingCoilUASizingGauntlet) | |
| EXPECT_ENUM_EQ(AutoSizingResultType::ErrorType1, sizer.errorType); | ||
| EXPECT_TRUE(sizer.wasAutoSized); | ||
| EXPECT_TRUE(errorsFound); | ||
| EXPECT_TRUE(state->dataSize->DataErrorsFound); | ||
| EXPECT_TRUE(sizer.dataErrorsFound); | ||
| EXPECT_NEAR(3.0, sizedValue, 0.01); // 0.1% of 3000 W capacity | ||
| EXPECT_FALSE(state->dataSize->DataErrorsFound); | ||
| EXPECT_FALSE(sizer.dataErrorsFound); | ||
| EXPECT_NEAR(3000.0, sizedValue, 0.01); // 100% of 3000 W capacity | ||
| state->dataWaterCoils->WaterCoil(1).InletAirTemp = 21.0; | ||
| state->dataSize->DataErrorsFound = false; | ||
| sizer.dataErrorsFound = false; | ||
|
|
||
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.
Failed SolveRoot with a -1 for iterations exceeded or -2 for bad limits are now not an error but instead a diagnostic, with messages and sizing data to aid the user in a resolution,