Calculates volume change since the last interval using a Flow Rate or Tank Level sensor.
Volume = Average() * [delta T]
For a flow rate sensor, Volume() is equal to the average flow rate over the past interval multiplied by the length of the time interval.
The resulting units correlate to the input units. For example:
Flow rate input | Output |
---|---|
GPM | Gallons |
CFS | ft3 |
L/s | Liters |
Volume = (Close() - Previous(Close(),1)) * [Tank Area(Close())]
Tank volume changes are based on a backwards difference calculation.
The resulting units correlate to the input units. For example:
Tank level input | Output |
---|---|
ft | ft3 |
m | m3 |
volume(TimeSeries)
Parameter | Description |
---|---|
TimeSeries | This must be an input node with a Flow Rate or Tank Level sensor. |
sum(volume(@input_node),24): For hourly flow rate data, this outputs the cumulative flow volume over a 24-hour window.
sum(volume(@input_node),24): For hourly tank level data, this outputs the net volume that has entered or left the tank over the previous 24 hours.
volume(@input_node): Calculates the volume for the time series data specified in the input node.
The following chart shows the flow rate from a pump station with several functions applied to view the volumes that are delivered.
Note that the results will differ according to the interval selected. That is, daily and 15-minute intervals will report very different volumes.