Skip to content

Add Heating Design Capacity sizing report for ZoneHVAC:Baseboard:RadiantConvective:Water - #11765

Merged
mitchute merged 7 commits into
developfrom
7017-Autosize-Fields-Inconsistent
Sep 9, 2026
Merged

Add Heating Design Capacity sizing report for ZoneHVAC:Baseboard:RadiantConvective:Water#11765
mitchute merged 7 commits into
developfrom
7017-Autosize-Fields-Inconsistent

Conversation

@rraustad

Copy link
Copy Markdown
Collaborator

Pull request overview

Description of the purpose of this PR

ZoneHVAC:Baseboard:RadiantConvective:Water does not report Heating Design Capacity as expected.

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

@rraustad rraustad self-assigned this Aug 21, 2026
@rraustad rraustad added the Defect Includes code to repair a defect in EnergyPlus label Aug 21, 2026
Real64 constexpr HighWaterMassFlowRate(10.0); // Maximum limit of water mass flow rate in kg/s - these should be 1000x of volume flow
Real64 constexpr LowWaterMassFlowRate(0.00001); // Minimum limit of water mass flow rate in kg/s
Real64 constexpr MaxWaterFlowRate(10.0); // Maximum limit of water volume flow rate in m3/s
Real64 constexpr MaxWaterFlowRate(10.0); // Maximum limit of water volume flow rate in m3/s - these should be 1/1000 of mass flow

@rraustad rraustad Aug 21, 2026

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.

@RKStrand, which of these seems to be a proper limit? Probably kg/s because m3 -> gal is 264x so 2640 gal/sec for volume. That's quite the pump. I just noticed this while working through this issue and highlighted it with a comment.

 ! m3  =>  gal             264.172037284185

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@rraustad Sorry--just getting to this. You caught me at a busy time with the semester starting yesterday. I think your assessment is correct. I think it's supposed to be kg/s and that was likely a mistake in the original implementation, which on second thought I think might have been done by me (rather than Daeho). In that case, it probably was done 20 years ago.

DesCoilLoad = RatedCapacityUser;
WaterMassFlowRateStd = hWBaseboard.WaterMassFlowRateStd;
} else if (hWBaseboard.RatedCapacity == DataSizing::AutoSize || hWBaseboard.RatedCapacity == 0.0) {
DesCoilLoad = RatedCapacityDes;

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.

I need to think about this block a little more.

@rraustad rraustad Aug 22, 2026

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 boils down to a simple choice. BB size > 0, else use zone design load, WaterTempAvg and WaterMassFlowRateStd cannot be <= 0 so those were removed and that leaves the BB capacity. If > 0 then use it, else use the zone load. If both are 0 then the BB (actually UA in this area of code, which is the last parameter sized) sizes to 0.

thisHWBaseboard.WaterTempAvg = state.dataIPShortCut->rNumericArgs(1);

ZoneHVAC:Baseboard:RadiantConvective:Water,
 N1,  \field Rated Average Water Temperature
   \maximum 150.0
   \minimum 20.0
   \units C
   \default 87.78

thisHWBaseboard.WaterMassFlowRateStd = state.dataIPShortCut->rNumericArgs(2);

ZoneHVAC:Baseboard:RadiantConvective:Water,
 N2,  \field Rated Water Mass Flow Rate
   \maximum 10.0
   \minimum> 0.0
   \units kg/s
   \default 0.063

@rraustad rraustad Aug 25, 2026

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 change is also the reason the unit test value changed at line 368. If the BB is hard-sized then sizing uses the BB input for Rated Water Mass Flow Rate (line 1113) to calculate UA. If the BB is autosized (as in the unit test) then sizing uses the BB Maximum Water Flow Rate (line 1117). This branch always uses the Rated Water Mass Flow Rate as the design condition. Rated Average Water Temperature is used in either case. But this only holds true when Heating Design Capacity Method = HeatingDesignCapacity. CapacityPerFloorArea and FractionOfAutosizedHeatingCapacity always uses Rated Water Mass Flow Rate. @RKStrand, do you have some insight into which would be correct? i.e., when should rated vs actual water flow rate be used in the design UA calculation? If this unit test had used a different Heating Design Capacity Method then the answer would not have changed. I could revise this if necessary.

    "    87.78,                   !- Rated Average Water Temperature {C}",
    "    0.063,                   !- Rated Water Mass Flow Rate {kg/s}",
    "    autosize,                !- Heating Design Capacity {W}",
    "    autosize,                !- Maximum Water Flow Rate {m3/s}",

    "  ZoneHVAC:Baseboard:RadiantConvective:Water:Design,", both use 
    "    Baseboard Design,        !- Name",
    "    HeatingDesignCapacity,   !- Heating Design Capacity Method",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is actually a really good question but also one from a long time ago. While Fred B did a lot of the autosizing stuff, I think this came after his work and I think was done by Daeho Kang. If I remember correctly, and that's a big IF, the sizing in the baseboard routine followed the prevailing baseboard standard (I-B-R or something like that) at the time. That was so that if users got rating information from a manufacturer which presumably followed that standard they could get that to function in E+. Of course, that was over 10 years ago and the standard was several years old at the time so maybe close to 20 years old. I have no idea what if anything has been done in the meantime. So, I think that is why the code did what it did. Is that still correct and/or should we do something else? Someone would have to track down whatever is current and see. I'll admit that the standard back then felt a bit clunky to implement so I have a tough time advocating for it and not some other common sense approach. Not sure if any of that helps...

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.

Thanks @RKStrand. Safest bet is to revert this back to where it was. This is not the correct branch to make this type of change.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This comment looks unresolved. Is there something to revert back here?

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.

de6395a reverted the behavior to what it was before.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

de6395a reverted the behavior to what it was before.

Thank you

@github-actions

Copy link
Copy Markdown

⚠️ Regressions detected on macos-14 for commit 14d832a

Regression Summary
  • Audit: 7
  • EIO: 7
  • ESO Big Diffs: 7
  • MTR Small Diffs: 7
  • Table Big Diffs: 7
  • Table String Diffs: 5

@github-actions

Copy link
Copy Markdown

⚠️ Regressions detected on ubuntu-24.04 for commit 14d832a

Regression Summary
  • Audit: 7
  • EIO: 7
  • ESO Big Diffs: 7
  • MTR Small Diffs: 7
  • Table Big Diffs: 7
  • Table String Diffs: 5

} else {
CheckZoneSizing(state, cCMO_BBRadiator_Water, hWBaseboard.Name);
DesCoilLoad = RatedCapacityDes;
DesCoilLoad = RatedCapacityUser;

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 looks like a change, but I'm not sure it is. Line 1048 saved the BB capacity in RatedCapacityDes, now it's saved in RatedCapacityUser. Eyes on diffs because existing unit test changed.

@github-actions

Copy link
Copy Markdown

⚠️ Regressions detected on macos-14 for commit 7f2e6dc

Regression Summary
  • Audit: 7
  • EIO: 7
  • ESO Big Diffs: 7
  • MTR Small Diffs: 7
  • Table Big Diffs: 7
  • Table String Diffs: 5

"Design Size Heating Design Capacity [W], 1300",
false));
EXPECT_TRUE(compare_eio_stream_substring("Component Sizing Information, ZoneHVAC:Baseboard:RadiantConvective:Water, THISISABASEBOARD, "
"User-Specified Heating Design Capacity [W], 650"));

@rraustad rraustad Aug 22, 2026

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.

Do these result make sense? If the capacity is reduced by half (650 vs 1300), and the water flow rate is reduced by half (1.6E-5 vs 3E-5), then I would think UA would be roughly the same, But UA was also reduced by half (11.7 vs 24.4?? Any HX theory experts out there?

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.

Q = Mdot * Cp * deltaT shows Mdot is proportional to Q, assuming deltaT is fixed, and Q = UA * deltaT shows UA is proportional to Q. So this does make sense that when Q is reduced by 1/2, both Mdot and UA are reduced by 1/2. So this result seems reasonable.

@github-actions

Copy link
Copy Markdown

⚠️ Regressions detected on ubuntu-24.04 for commit 7f2e6dc

Regression Summary
  • Audit: 7
  • EIO: 7
  • ESO Big Diffs: 7
  • MTR Small Diffs: 7
  • Table Big Diffs: 7
  • Table String Diffs: 5

@rraustad

rraustad commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator Author

I tested 5ZoneWaterCooled_Baseboard every way I could think of. Hard-sized, autosized, and all 3 scalable sizing methods. Results made sense in all cases. Example output:

ZoneHVAC:Baseboard:RadiantConvective:Water,
  SPACE2-1 Baseboard,      !- Name
  Baseboard Design,        !- Design Object
  2589.0,                !- Heating Design Capacity {W}
  0.00004,                !- Maximum Water Flow Rate {m3/s}

ZoneHVAC:Baseboard:RadiantConvective:Water,
  SPACE4-1 Baseboard,      !- Name
  Baseboard Design,        !- Design Object
  1589,                !- Heating Design Capacity {W}
  0.00002,                !- Maximum Water Flow Rate {m3/s}

ZoneHVAC:Baseboard:RadiantConvective:Water:Design,
  Baseboard Design,        !- Name
  HeatingDesignCapacity,   !- Heating Design Capacity Method


Component Sizing Information, ZoneHVAC:Baseboard:RadiantConvective:Water, SPACE2-1 BASEBOARD, Design Size Heating Load [W], 2089.45
Component Sizing Information, ZoneHVAC:Baseboard:RadiantConvective:Water, SPACE2-1 BASEBOARD, Design Size Maximum Water Flow Rate [m3/s], 5.72008E-05
Component Sizing Information, ZoneHVAC:Baseboard:RadiantConvective:Water, SPACE2-1 BASEBOARD, User-Specified Maximum Water Flow Rate [m3/s], 4E-05
Component Sizing Information, ZoneHVAC:Baseboard:RadiantConvective:Water, SPACE2-1 BASEBOARD, U-Factor times Area [W/C], 49.5415
Component Sizing Information, ZoneHVAC:Baseboard:RadiantConvective:Water, SPACE2-1 BASEBOARD, Design Size Heating Design Capacity [W], 2089.45
Component Sizing Information, ZoneHVAC:Baseboard:RadiantConvective:Water, SPACE2-1 BASEBOARD, User-Specified Heating Design Capacity [W], 2589

Component Sizing Information, ZoneHVAC:Baseboard:RadiantConvective:Water, SPACE4-1 BASEBOARD, Design Size Heating Load [W], 2089.45
Component Sizing Information, ZoneHVAC:Baseboard:RadiantConvective:Water, SPACE4-1 BASEBOARD, Design Size Maximum Water Flow Rate [m3/s], 3.5107E-05
Component Sizing Information, ZoneHVAC:Baseboard:RadiantConvective:Water, SPACE4-1 BASEBOARD, User-Specified Maximum Water Flow Rate [m3/s], 2E-05
Component Sizing Information, ZoneHVAC:Baseboard:RadiantConvective:Water, SPACE4-1 BASEBOARD, U-Factor times Area [W/C], 33.6523
Component Sizing Information, ZoneHVAC:Baseboard:RadiantConvective:Water, SPACE4-1 BASEBOARD, Design Size Heating Design Capacity [W], 2089.45
Component Sizing Information, ZoneHVAC:Baseboard:RadiantConvective:Water, SPACE4-1 BASEBOARD, User-Specified Heating Design Capacity [W], 1589
image

@rraustad

rraustad commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator Author

The issue notes the water cooling coil is missing the Design Air Flow Rate sizing result (using same test file). I see that report in the eio:

Coil:Cooling:Water, field N2, Design Air Flow Rate. There is no corresponding field in the eplusout.sql table

Component Sizing Information, Coil:Cooling:Water, MAIN COOLING COIL 1, Design Size Design Air Flow Rate [m3/s], 1.60335
image

@github-actions

Copy link
Copy Markdown

⚠️ Regressions detected on macos-14 for commit 8da96d3

Regression Summary
  • Audit: 7
  • EIO: 7
  • Table Big Diffs: 7

@github-actions

Copy link
Copy Markdown

⚠️ Regressions detected on ubuntu-24.04 for commit 8da96d3

Regression Summary
  • Audit: 7
  • EIO: 7
  • Table Big Diffs: 7

@RKStrand

Copy link
Copy Markdown
Contributor

@mitchute My name was added here as a reviewer, but I generally only provide comments on various aspects of some bug fixes. What are you needing from me with this one?

@mitchute

mitchute commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

@mitchute My name was added here as a reviewer, but I generally only provide comments on various aspects of some bug fixes. What are you needing from me with this one?

@RKStrand I'm guessing that @rraustad added you, but it looks like you two have already worked out your questions, so I think you're done ✔️

@mitchute

mitchute commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

@rraustad I think you can take one more quick look here, then this one is probably ready.

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

⚠️ Regressions detected on macos-14 for commit d7a7ce4

Regression Summary
  • Audit: 7
  • EIO: 7
  • Table Big Diffs: 7

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

⚠️ Regressions detected on ubuntu-24.04 for commit d7a7ce4

Regression Summary
  • Audit: 7
  • EIO: 7
  • Table Big Diffs: 7

@rraustad

rraustad commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator Author

@mitchute My name was added here as a reviewer, but I generally only provide comments on various aspects of some bug fixes. What are you needing from me with this one?

@RKStrand I'm guessing that @rraustad added you, but it looks like you two have already worked out your questions, so I think you're done ✔️

Yes, if I ever touch a Radiant component I do like when @RKStrand says it looks OK.

@mitchute

mitchute commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

@mitchute My name was added here as a reviewer, but I generally only provide comments on various aspects of some bug fixes. What are you needing from me with this one?

@RKStrand I'm guessing that @rraustad added you, but it looks like you two have already worked out your questions, so I think you're done ✔️

Yes, if I ever touch a Radiant component I do like when @RKStrand says it looks OK.

The Oracle of Delphi Urbana-Champaign

@RKStrand

RKStrand commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Well, there's always something radiating here...not always good, sometimes kinda not so great. But glad to have been reassuring here. Definitely not claiming any sort of oracle status...curmudgeon maybe?

@mitchute

mitchute commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

Thanks @rraustad and @RKStrand. All good here. Merging.

@mitchute
mitchute merged commit ce3a556 into develop Sep 9, 2026
8 checks passed
@mitchute
mitchute deleted the 7017-Autosize-Fields-Inconsistent branch September 9, 2026 20:47
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.

Autosize Fields Inconsistent in Output Reporting and Missing Autosize Values

4 participants