TotalVolume gives a running total of the computed Volume that passes through a given point.
When the flow reverses and flowrate measurements are negative, TotalVolume will subtract from its cumulative volume (i.e. it "adds the negative volumes").
TotalVolume must be run directly on sensor data of flowrate or tank water level. Do not apply additional functions inside of the TotalVolume() function (e.g. TotalVolume(Close())), as these do not pass all the required information.
Defines the time series data fed into the function. This must be the Sensor() function applied to a flowrate sensor.
*Input data is optional in most cases. If Info360 detects that the first input is time series data, it will be applied to the function. Otherwise, the current active sensor's data will be used, which is often the case in Reference Charts.
Example Usage as an Expression:
TotalVolume() - calculates the TotalVolume that has passed through the current active flowrate sensor (e.g. the sensor that was used to open a Historic Chart).
TotalVolume(Sensor('13090.Flow Rate')) - Calculate the TotalVolume for a specified sensor.
TotalVolume('13090.Flow Rate') - Error; TotalVolume requires a sensor feed, not a string. Info360 will interpret this as "TotalVolume()".
Example Reference Chart:
The following Chart shows the flowrate from a pump station with several functions applied to view the volumes that are delivered. The Volume() function shows the volume delivered each timestep, which is per hour in this case.
TotalVolume() cumulates the volume that has passed through the pump over time, while Sum(Volume(),24) yields the volume that was delivered over just the previous 24 hours.
For information on setting up custom equations and syntax, please refer to Analytical Functions.