You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/src/records/accumulator.md
+43-9Lines changed: 43 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,51 @@
1
1
# ACCUMULATOR
2
2
3
-
An ACCUMULATOR object is a user-defined "device" that records arbitrary values computed during the CSE simulation.
3
+
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.
4
4
5
-
TODO: expand description and example
5
+
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.
6
6
7
-
ACCUMULATOR results must be reported using user-defined REPORTs or EXPORTs. For example --
7
+
As a simple example, a report of monthly outdoor drybulb temperatures can be generated as follows --
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).
44
+
45
+
A complete list of the available statistics for each interval is found in the ACCUMULATOR probe documentation.
46
+
47
+
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.
13
48
14
-
(Note use of colHead=" Sum" (not colHead="Sum") to avoid a CSE parsing quirk. See REPORTCOL.)
15
49
16
50
**acmName**
17
51
@@ -26,7 +60,7 @@ Name of ACCUMULATOR: required for referencing in reports.
26
60
27
61
**acmValue=*float***
28
62
29
-
The value being accumulated. Generally expression.
63
+
The value being accumulated. Generally expression with subhourly variability.
0 commit comments