-
Notifications
You must be signed in to change notification settings - Fork 7
Window solar gain accounting / ACCUMULATOR improvements #570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
33991d8
First working version
chipbarnaby 9b4a8e6
Test case; stub documentation
chipbarnaby 656fe85
Update test cse
chipbarnaby f14a8bc
Added probable XSURF members for glazing transmittance and inward flo…
chipbarnaby b9f493a
Merge branch 'accumulator' into transmitted-solar
chipbarnaby c5094e0
Probable window transmitted SW
chipbarnaby b751b7e
Code out ASHWAT_REV2 (unsuccessful results caching idea)
chipbarnaby 4f82815
Coded out 'using namespace std'
chipbarnaby f1f66a4
Merge branch 'main' into transmitted-solar
chipbarnaby c31255d
Accumulator bug fixes, doc, and test case
chipbarnaby 99c6f0b
ASHWAT interface cleanup; update ashwat1 test re glzTrans
chipbarnaby 1bab5e6
Add accumulator examples.
nathancoliver 6f9b904
Replace hourly accumulator with zone sensible cooling probe.
nathancoliver afb58b8
Remove average, min, and max hourly outputs.
nathancoliver 6341e76
Change subhourly probe to zone solar gain.
nathancoliver c478dfc
Capitalize notes.
nathancoliver ac1a349
Change spacing.
nathancoliver 85257f7
ACCUMULATOR progress
chipbarnaby 87e0d72
Merge branch 'main' into transmitted-solar
chipbarnaby e699a30
ACCUMULATOR bug fixes
chipbarnaby 941c022
ACCUMULATOR refinements; improved test accumulator.cse
chipbarnaby 72dd8f3
Fixed cnrecs.def comments; enhanced documentation
chipbarnaby c29c4e3
Merge remote-tracking branch 'origin/main' into transmitted-solar
nealkruis 9a0afff
Drop Mac regression testing until we develop an improved regression t…
nealkruis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| # ACCUMULATOR | ||
|
|
||
| An ACCUMULATOR is driven by arbitrary subhourly expression value computed during the CSE simulation and calculates minimum, maximum, mean, and sum values for hour, day, month, and year intervals. In addition, timestamps are retained for the minimum and maximum values. ACCUMULATORs are useful for summarizing and reporting values for which there is not built-in accounting (for example, ZNRES or RSYSRES). One common use case is for reporting hour average values of internal variables that vary subhourly. | ||
|
|
||
| ACCUMULATORs are "observing" devices -- they have no effect on the CSE building model or calculations. ACCUMULATOR values must be reported using user-defined REPORTs or EXPORTs. | ||
|
|
||
| As a simple example, a report of monthly outdoor drybulb temperatures can be generated as follows -- | ||
|
|
||
| ACCUMULATOR "ACTDB" acmValue=$tdbosh | ||
|
|
||
| REPORT "TODB" rpType=UDT rpFreq=Month rpTitle="Outdoor drybulb temp (F)" | ||
| REPORTCOL colHead="Mon" colVal=$Month colWid=3 | ||
| REPORTCOL colHead="Min" colVal=@Accumulator[ "ACTDB"].M.acmMin colDec=2 colWid=6 | ||
| REPORTCOL colHead="Mean" colVal=@Accumulator[ "ACTDB"].M.acmMean colDec=2 colWid=6 | ||
| REPORTCOL colHead="Max" colVal=@Accumulator[ "ACTDB"].M.acmMax colDec=2 colWid=6 | ||
| REPORT rpType=UDT rpFreq=Year rpHeader=No | ||
| REPORTCOL colVal="Yr" colWid=3 | ||
| REPORTCOL colVal=@Accumulator[ "ACTDB"].Y.acmMin colDec=2 colWid=6 | ||
| REPORTCOL colVal=@Accumulator[ "ACTDB"].Y.acmMean colDec=2 colWid=6 | ||
| REPORTCOL colVal=@Accumulator[ "ACTDB"].Y.acmMax colDec=2 colWid=6 | ||
|
|
||
| Resulting output -- | ||
|
|
||
| Outdoor drybulb temp (F) | ||
|
|
||
| Mon Min Mean Max | ||
| --- ------ ------ ------ | ||
| 1 28.22 46.87 60.08 | ||
| 2 32.00 49.26 69.98 | ||
| 3 42.08 60.79 91.40 | ||
| 4 34.70 58.13 79.16 | ||
| 5 44.42 67.07 97.88 | ||
| 6 50.36 73.43 107.96 | ||
| 7 55.04 74.02 101.48 | ||
| 8 53.60 74.99 104.18 | ||
| 9 48.92 69.24 97.52 | ||
| 10 47.84 64.00 98.42 | ||
| 11 32.54 54.47 77.00 | ||
| 12 28.04 46.58 64.04 | ||
|
|
||
| Yr 28.04 61.65 107.96 | ||
|
|
||
| Generalizing what is illustrated, probing @accumulator[ ].H yields statistics for the current hour, .D for the current day, .M the current month, and .Y for the year (or, more precisely, the full run, which may or may not be a full year). | ||
|
|
||
| A complete list of the available statistics for each interval is found in the ACCUMULATOR probe documentation. | ||
|
|
||
| Note: The initial version of ACCUMULATOR contains unresolved bugs related to the timing of the determination of acmValue. In some cases, acmValue is set to the expression value from the prior substep. This is being investigated. | ||
|
|
||
|
|
||
| **acmName** | ||
|
|
||
| Name of ACCUMULATOR: required for referencing in reports. | ||
|
|
||
| <%= member_table( | ||
| units: "", | ||
| legal_range: "*63 characters*", | ||
| default: "*none*", | ||
| required: "Yes", | ||
| variability: "constant") %> | ||
|
|
||
| **acmValue=*float*** | ||
|
|
||
| The value being accumulated. Generally expression with subhourly variability. | ||
|
|
||
| <%= member_table( | ||
| units: "any", | ||
| legal_range: "", | ||
| default: "", | ||
| required: "Yes", | ||
| variability: "subhourly") %> | ||
|
|
||
|
|
||
| **endACCUMULATOR** | ||
|
|
||
| Indicates the end of the ACCUMULATOR definition. Alternatively, the end of the definition can be indicated by the declaration of another object or by END. | ||
|
|
||
| <%= member_table( | ||
| units: "", | ||
| legal_range: "", | ||
| default: "*none*", | ||
| required: "No", | ||
| variability: "constant") %> | ||
|
|
||
| **Related Probes:** | ||
|
|
||
| - @[accumulator](#p_accumulator) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.