![]() |
The initial version of the Mass Balance Summary Slot, introduced in RiverWare 6.2, supports summations of user defined collections of flow and volume series slots. Individual groupings of series slots can be added to, or subtracted from the computed summation series slots.
The values of all referenced flow and volume series slots, and the computed series can be displayed in any flow or volume units, set by a Flow/Volume toggle push button and a unit combo box.
As a result of a recomputation (either manually, by clicking the "Recompute" button, or automatically, at the end of a run), the unit type and display units of the computed series slots are set to those unit type and unit settings (i.e. internally, not just in for the purpose of display in this dialog).
Three levels of computed summation series slots are provided: "Slot Sum" collections (of referenced series slots), "Water Balance" collections (of Slot Sums), and the overall Mass Balance Summary Slot. Any of these can be used within RiverWare where references to series slots are supported.
![]() |
In RiverWare 6.3, the Mass Balance Summary Slot has been enhanced to also support series slots with mass units (e.g. for salinity slot entities).
Mass-based operation occurs when all of the referenced series slots have mass units.
In "mass mode", the "Flow/Volume" toggle push button is replaced by an inset "Mass" unit label, and the unit combo box is populated with the configured mass units (currently defined in the external "units" file). The standard units file defines these mass units:
Correctly defined Mass Balance Summary Slots will have references to either:
An error is reported if the set of series slot references don't conform to this criteria. See below.
|
A line of information will conditionally be shown below the slot tree. Messages will be displayed in the following two circumstances:
When appropriate, a "[?]" (question mark) button will also be presented for showing additional information in a popup dialog.
The support for "mass mode" was internally implemented as support for all slot references having any single unit type. For example, "Power" series slots could also be supported. As discussed in the brief proposal document, for this to make sense, it would probably be necessary to reframe this feature in the user interface and documentation, e.g. as just "Balance Summary" (or something) instead of "Mass Balance Summary". Also, references to "Water" in "Water Balance" could be dynamically changed to the active unit type mode, e.g. "Power Balance".
Basic support for enabling an arbitrary subset of unit types was briefly tested, including informational messages shown on the status message line and auxiliary popup dialog (described above). The set of supported unit types is configured in the following C++ method, shown with only "Mass" enabled. (The related three lines are commented out).
// static const QList |
--- (end) ---