Skip to content

Conversation

@chipbarnaby
Copy link
Contributor

@chipbarnaby chipbarnaby commented Aug 29, 2025

Description

Additional XSURF probes to support details per-surface solar gains

  • @xsurf[ ].glzTrans = subhour glazing transmitted short wave power, Btuh (w/o adjustment for room cavity reflection)
  • @xsurf[ ].glzInward = subhour glazing inward flowing convection and long wave radiation rate, Btuh

ACCUMULATOR improvements

  • Member names now acmValue, acmMin, acmMean, acmMax, and acmSum. This avoids conflicts with CSE reserved names and function names.
  • Calculation order re-fiddled. However, calculation order problems remain. Known example: accumulating from @ZnRes members uses prior-step value.
  • Added test case / updated skeleton documentation.

Accumulators currently have evaluation order issues, use with caution. Run test case(s) and check for lagged values.

@chipbarnaby chipbarnaby marked this pull request as draft August 29, 2025 13:58
@chipbarnaby chipbarnaby self-assigned this Aug 29, 2025
@chipbarnaby chipbarnaby requested a review from nealkruis August 29, 2025 13:59
src/CNRECS.DEF Outdated
Comment on lines 1379 to 1380
*s *e FLOAT xs_glzTrans // ASHWAT windows: transmitted solar gain, Btuh (w/o cavity absorp adjustment)
*s *e FLOAT xs_glzInward // ASHWAT windows: inward flowing convective and LW radiant gain to zone, Btuh
Copy link
Contributor

Choose a reason for hiding this comment

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

Units should be Btu/h-ft2, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

src/CNRECS.DEF Outdated
FLOAT acmMean // mean value seen in interval
FLOAT acmMax // max value seen in interval
FLOAT acmTotal // sum of values in interval

Copy link
Contributor

Choose a reason for hiding this comment

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

Add:

  • Time of min
  • Time of max

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

@nealkruis
Copy link
Contributor

Can we also add a warning when a higher frequency probe is used in a lower frequency application (and using the last set value)? I don't think this is ever intentional and now with accumulators shouldn't be necessary.

@chipbarnaby chipbarnaby marked this pull request as ready for review September 19, 2025 16:55
@nealkruis nealkruis merged commit 5a004c2 into main Sep 22, 2025
4 checks passed
@nealkruis nealkruis deleted the transmitted-solar branch September 22, 2025 17:29
@nealkruis nealkruis mentioned this pull request Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants