Bentley WaterGEMS CONNECT Edition Help

Lagrangian Transport Algorithm

WaterGEMS water quality simulator uses a Lagrangian time-based approach to track the fate of discrete parcels of water as they move along pipes and mix together at junctions between fixed-length time steps (Liou and Kroon, 1987). These water quality time steps are typically much shorter than the hydraulic time step (e.g., minutes rather than hours) to accommodate the short times of travel that can occur within pipes. As time progresses, the size of the most upstream segment in a pipe increases as water enters the pipe while an equal loss in size of the most downstream segment occurs as water leaves the link. The size of the segments in between these remains unchanged.

The following steps occur at the end of each such time step:
  1. The water quality in each segment is updated to reflect any reaction that may have occurred over the time step.
  2. The water from the leading segments of pipes with flow into each junction is blended together to compute a new water quality value at the junction. The volume contributed from each segment equals the product of its pipe's flow rate and the time step. If this volume exceeds that of the segment, then the segment is destroyed and the next one in line behind it begins to contribute its volume.
  3. Contributions from outside sources are added to the quality values at the junctions. The quality in storage tanks is updated depending on the method used to model mixing in the tank.
  4. New segments are created in pipes with flow out of each junction, reservoir, and tank. The segment volume equals the product of the pipe flow and the time step. The segment's water quality equals the new quality value computed for the node.

    To cut down on the number of segments, this step is only carried out if the new node quality differs by a user-specified tolerance from that of the last segment in the outflow pipe. If the difference in quality is below the tolerance, then the size of the current last segment in the outflow pipe is increased by the volume flowing into the pipe over the time step.

This process is then repeated for the next water-quality time step. At the start of the next hydraulic time step, the order of segments in any links that experience a flow reversal is switched. Initially each pipe in the network consists of a single segment whose quality equals the initial quality assigned to the upstream node.

Behavior of Segments in the Lagrangian Solution Method