Skip to content

Fix negative cooling coil capacity warning when system cooling load available#11617

Draft
joseph-robertson wants to merge 10 commits into
developfrom
cooldesday
Draft

Fix negative cooling coil capacity warning when system cooling load available#11617
joseph-robertson wants to merge 10 commits into
developfrom
cooldesday

Conversation

@joseph-robertson
Copy link
Copy Markdown
Collaborator

@joseph-robertson joseph-robertson commented Jun 3, 2026

Pull request overview

  • Fixes Cooling Design Day name not populated by the time VariableSpeedCoil sizing happens. #11250
  • Basically breaks the existing negative cooling coil capacity CoolCapAtPeak < 0 warning into 2 separate warnings (per suggestion):
    • when there is no system cooling load (sensible/total capacity is zero, and no cooling design day is assigned/reported) <-- update the existing unit test
    • when there is system cooling load (rare, but technically possible; sensible/total capacity greater than zero, and cooling design day is assigned/reported) <-- add a new unit test

Description of the purpose of this PR

Pull Request Author

  • Title of PR should be user-synopsis style (clearly understandable in a standalone changelog context)
  • Label the PR with at least one of: Defect, Refactoring, NewFeature, Performance, and/or DoNoPublish
  • Pull requests that impact EnergyPlus code must also include unit tests to cover enhancement or defect repair
  • Author should provide a "walkthrough" of relevant code changes using a GitHub code review comment process
  • If any diffs are expected, author must demonstrate they are justified using plots and descriptions
  • If changes fix a defect, the fix should be demonstrated in plots and descriptions
  • If any defect files are updated to a more recent version, upload new versions here or on DevSupport
  • If IDD requires transition, transition source, rules, ExpandObjects, and IDFs must be updated, and add IDDChange label
  • If structural output changes, add to output rules file and add OutputChange label
  • If adding/removing any LaTeX docs or figures, update that document's CMakeLists file dependencies
  • If adding/removing any output files (e.g., eplustbl.*)
    • Update ..\scripts\Epl-run.bat
    • Update ..\scripts\RunEPlus.bat
    • Update ..\src\EPLaunch\ MainModule.bas, epl-ui.frm, and epl.vbp (VersionComments)
    • Update ...github\workflows\energyplus.py

Reviewer

  • Perform a Code Review on GitHub
  • If branch is behind develop, merge develop and build locally to check for side effects of the merge
  • If defect, verify by running develop branch and reproducing defect, then running PR and reproducing fix
  • If feature, test running new feature, try creative ways to break it
  • CI status: all green or justified
  • Check that performance is not impacted (CI Linux results include performance check)
  • Run Unit Test(s) locally
  • Check any new function arguments for performance impacts
  • Verify IDF naming conventions and styles, memos and notes and defaults
  • If new idf included, locally check the err file and other outputs

@joseph-robertson joseph-robertson self-assigned this Jun 3, 2026
@joseph-robertson joseph-robertson added the Defect Includes code to repair a defect in EnergyPlus label Jun 3, 2026
"7, !- Month",
"21, !- Day of Month",
"SummerDesignDay, !- Day Type",
"50.0, !- Maximum Dry-Bulb Temperature {C}",
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

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}",
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This is increased from 32.222 relative the VSCoilUnitary_NoNegativeCapacity test.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 CoolDDNum during system sizing peak selection and copy it into FinalSysSizing for 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.

Comment thread tst/EnergyPlus/unit/UnitarySystem.unit.cc Outdated
Comment thread tst/EnergyPlus/unit/UnitarySystem.unit.cc Outdated
Comment thread tst/EnergyPlus/unit/UnitarySystem.unit.cc Outdated
Comment thread tst/EnergyPlus/unit/UnitarySystem.unit.cc Outdated
Comment thread tst/EnergyPlus/unit/UnitarySystem.unit.cc Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Defect Includes code to repair a defect in EnergyPlus

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cooling Design Day name not populated by the time VariableSpeedCoil sizing happens.

5 participants