Fix negative cooling coil capacity warning when system cooling load available#11617
Fix negative cooling coil capacity warning when system cooling load available#11617joseph-robertson wants to merge 10 commits into
Conversation
| "7, !- Month", | ||
| "21, !- Day of Month", | ||
| "SummerDesignDay, !- Day Type", | ||
| "50.0, !- Maximum Dry-Bulb Temperature {C}", |
There was a problem hiding this comment.
This is increased from 31.5 relative the VSCoilUnitary_NoNegativeCapacity test.
| "0.008, !- Preheat Design Humidity Ratio {kgWater/kgDryAir}", | ||
| "32.222, !- Precool Design Temperature {C}", | ||
| "0.008, !- Precool Design Humidity Ratio {kgWater/kgDryAir}", | ||
| "45.0, !- Central Cooling Design Supply Air Temperature {C}", |
There was a problem hiding this comment.
This is increased from 32.222 relative the VSCoilUnitary_NoNegativeCapacity test.
There was a problem hiding this comment.
Pull request overview
This PR addresses issue #11250 by refining the warning emitted when a VariableSpeed DX cooling coil would yield a negative sizing capacity, distinguishing between cases where a system cooling design day/load is available vs not available. It also ensures the cooling design day index is propagated into final system sizing data, and updates unit tests to cover both scenarios.
Changes:
- Split the negative-capacity sizing warning into two distinct messages depending on whether cooling sizing context (design day/load) is available.
- Record
CoolDDNumduring system sizing peak selection and copy it intoFinalSysSizingfor downstream consumers (eg, coil sizing diagnostics). - Update the existing unit test and add a new unit test to validate both warning paths.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| tst/EnergyPlus/unit/UnitarySystem.unit.cc | Updates existing test expectations for the new warning text and adds a new test case covering the “cooling load available” path. |
| src/EnergyPlus/VariableSpeedCoils.cc | Updates the warning message logic when calculated peak cooling capacity is negative during sizing. |
| src/EnergyPlus/SimAirServingZones.cc | Propagates cooling design day index (CoolDDNum) into calculated and final system sizing data used by downstream sizing/reporting. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Pull request overview
CoolCapAtPeak < 0warning into 2 separate warnings (per suggestion):Description of the purpose of this PR
Pull Request Author
Reviewer