Skip to content

Conversation

@mjwitte
Copy link
Contributor

@mjwitte mjwitte commented Oct 7, 2025

Pull request overview

  • Fixes Incorrect accounting for zone multipliers in the Outdoor Air Details report #10799
    • Add Zone Multiplier column to Outdoor Air Details report "by zone" tables.
    • Fix "User Design Load per Area" in HVAC Sizing Summary table (load was multiplied but area was not).
    • Fix floor area and number of occupants in eio output for "Zone Sizing Information" (load was multiplied but area and occupants were not).
  • Fixes double-counting of zone mulipliers for OA control types ProportionalControlBasedOnDesignOccupancy and ProportionalControlBasedOnOccupancySchedule.

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

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

@mjwitte mjwitte added Defect Includes code to repair a defect in EnergyPlus OutputChange Code changes output in such a way that it cannot be merged after IO freeze labels Oct 7, 2025
@mjwitte mjwitte added this to the EnergyPlus 25.2 IO Freeze milestone Oct 7, 2025
@github-actions
Copy link

github-actions bot commented Oct 7, 2025

⚠️ Regressions detected on macos-14 for commit bae4e6c

Regression Summary
  • Audit: 801
  • Table Big Diffs: 696
  • Table String Diffs: 89
  • EIO: 43

@github-actions
Copy link

github-actions bot commented Oct 7, 2025

⚠️ Regressions detected on ubuntu-24.04 for commit bae4e6c

Regression Summary
  • Audit: 805
  • Table Big Diffs: 698
  • Table String Diffs: 89
  • EIO: 43

@rraustad
Copy link
Contributor

rraustad commented Oct 8, 2025

@mjwitte I don't see anything in these changes to comment on. Looks good so far.

@mjwitte
Copy link
Contributor Author

mjwitte commented Oct 8, 2025

Using example file RefBldgSmallOfficeNew2004_Chicago with 10x multipliers. Here is a sample of the new Outdoor Air Details report with new Zone Multiplier Column.
image
image

@mjwitte
Copy link
Contributor Author

mjwitte commented Oct 8, 2025

Using example file RefBldgSmallOfficeNew2004_Chicago with 1x vs 10x multipliers. Here's an example of the corrected "User Design Load per Area" with multipliers.

1x output (with develop and this branch):
image

10x output with develop (incorrect):
image

10x output with this branch (correct):
image

@github-actions
Copy link

github-actions bot commented Oct 8, 2025

⚠️ Regressions detected on ubuntu-24.04 for commit 1d98238

Regression Summary
  • Audit: 805
  • Table Big Diffs: 698
  • Table String Diffs: 89
  • EIO: 43

@mjwitte
Copy link
Contributor Author

mjwitte commented Oct 8, 2025

All files with multipliers show eio diffs like this, e.g. 5ZoneSwimmingPoolZoneMultipliers.
image

A bit hard to see, but at the far right, for the first zone "Floor Area" and "# Occupants" were
99.16000, 11.00000 and are now 297.48000, 33.00000.

@github-actions
Copy link

github-actions bot commented Oct 8, 2025

⚠️ Regressions detected on macos-14 for commit 1d98238

Regression Summary
  • Audit: 801
  • Table Big Diffs: 696
  • Table String Diffs: 89
  • EIO: 43

@mjwitte mjwitte marked this pull request as ready for review October 8, 2025 16:04
@mjwitte
Copy link
Contributor Author

mjwitte commented Oct 8, 2025

Zone multipliers were being double-counted for the OA proportional control options. Using example file DOAToUnitarySystem, here are the 1x and 10x outdoor air details with develop, then with this branch.

1x-develop
image

10x-develop - OA quantities are way more than 10x
image

10x-this branch - now OA quantities are 10x
image

Copy link
Contributor Author

@mjwitte mjwitte left a comment

Choose a reason for hiding this comment

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

Code walkthru

ZoneOAPeople = 0.0;
if (this->OAFlowMethod != DataSizing::OAFlowCalcMethod::PCDesOcc) {
ZoneOAPeople = curNumOccupants * thisZone.Multiplier * thisZone.ListMultiplier * this->OAFlowPerPerson;
ZoneOAPeople = curNumOccupants * this->OAFlowPerPerson;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Remove multipliers in this case block, because multipliers are applied at the end for all cases.


// Apply zone multipliers and zone list multipliers
// TODO MJW: this looks like it's double-counting the multipliers - it *is* double counting for methods PCOccSch and PCDesOcc
OAVolumeFlowRate *= thisZone.Multiplier * thisZone.ListMultiplier;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Multipliers are applied here for all OA control types.

Comment on lines +779 to +782
addFootNoteSubTable(state,
s->pdstZoneClSize,
"The Design Load is the zone sensible load only. It does not include any system effects or ventilation loads. Values "
"shown include multipliers.");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Extend the footnote for HVAC Sizing Summary tables "Value shown include multipliers."

s->pdchOaMvZoneArea = newPreDefColumn(state, s->pdstOAmechVentParByZone, "Zone Area [m2]");
s->pdchOaMvDesZnOa = newPreDefColumn(state, s->pdstOAmechVentParByZone, "Design Zone Outdoor Airflow - Voz [m3/s]");
s->pdchOaMvMinDynTrgVent = newPreDefColumn(state, s->pdstOAmechVentParByZone, "Minimum Dynamic Target Ventilation - Voz-dyn-min [m3/s]");
s->pdchOaMvZoneMult = newPreDefColumn(state, s->pdstOAmechVentParByZone, "Zone Multiplier");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

New multiplier column for Outdoor Air Details "by Zone" subtables.

PreDefTableEntry(state, state.dataOutRptPredefined->pdchOaMvAvgNumOcc, thisZone.Name, avgOcc);
totalAverageOccupants += avgOcc * zoneMult;
} else {
PreDefTableEntry(state, state.dataOutRptPredefined->pdchOaoAvgNumOcc1, thisZone.Name, 0.0);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fille some table values with zeros for unoccupied zones (previously the cells were left blank).

Comment on lines 580 to 587
reportZoneSizing(state,
state.dataHeatBal->space(spaceNum),
state.dataSize->FinalSpaceSizing(spaceNum),
state.dataSize->CalcFinalSpaceSizing(spaceNum),
state.dataSize->CalcSpaceSizing,
state.dataSize->SpaceSizing,
mult,
isSpace);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pass new parameter for multiplier to reportZoneSizing.

Comment on lines -4211 to +4219
zoneOrSpace.FloorArea,
zoneOrSpace.TotOccupants,
zoneOrSpace.FloorArea * zoneMult,
zoneOrSpace.TotOccupants * zoneMult,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Apply the multiplier to FloorArea and TotOccupants.

Comment on lines +4227 to +4230
OutputReportPredefined::PreDefTableEntry(state,
shift + state.dataOutRptPredefined->pdchZnClUserDesLdPerArea,
curName,
zsFinalSizing.DesCoolLoad / (zoneOrSpace.FloorArea * zoneMult));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also need to apply the multiplier here for "User Design Load per Area".


See Pull Request [#11153](https://github.com/NREL/EnergyPlus/pull/11153).

### EIO and HTML Table Output: Initialization Summary
Copy link
Contributor Author

Choose a reason for hiding this comment

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

OutputChanges was a bit messed up, so it's cleaned up here, along with a new section at the end for this PR.


* HVAC Sizing Summary table output values for "User Design Load per Area" have been corrected to properly account for zone multipliers.

See pull request [#11259](https://github.com/NREL/EnergyPlus/pull/10259)
Copy link
Collaborator

Choose a reason for hiding this comment

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

@mjwitte I think this is supposed to be referencing #11259, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoops, yes.

@github-actions
Copy link

github-actions bot commented Oct 8, 2025

⚠️ Regressions detected on ubuntu-24.04 for commit 5670be2

Regression Summary
  • Audit: 805
  • Table Big Diffs: 698
  • Table String Diffs: 89
  • EIO: 43

@github-actions
Copy link

github-actions bot commented Oct 8, 2025

⚠️ Regressions detected on macos-14 for commit 5670be2

Regression Summary
  • Audit: 801
  • Table Big Diffs: 696
  • Table String Diffs: 89
  • EIO: 43

@mitchute mitchute merged commit a94ab1f into develop Oct 9, 2025
11 checks passed
@mitchute mitchute deleted the 10799_ZoneMultipliersAndOA branch October 9, 2025 01:58
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 OutputChange Code changes output in such a way that it cannot be merged after IO freeze

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect accounting for zone multipliers in the Outdoor Air Details report

6 participants