Sewer Overflow formula (Water Overlay)

From Tygron Preview Support Wiki
Jump to navigation Jump to search

Overflow from the sewer is calculated for the entirety of the sewer, and the single attached sewer overflow.

The amount that can overflow relies on both the sewer overflow itself as well as the sewer overflow threshold:

Cthreshold = max( 0 , WHsewer - SS * SOT )
Cheight = max( 0, Tsewer + SO + WHsewer - Toverflow )
C = min ( Cthreshold, Cheight )

Actual overflow is then calculated:

Δw = min( 0 , C * Σsewer , Δt * SOS )

where:

  • Δw = The amount of sewer overflow which takes place.
  • Δt = Computational timestep.
  • C = The amount of water that can overflow out of the sewer
  • Cthreshold = The amount of water that could overflow, based on the sewer overflow threshold.
  • Cheight = The amount of water that could overflow, based on the properties of the sewer overflow.
  • Σsewer = The surface area of the sewer.
  • WHsewer = The height of the water column in the sewer.
  • Tsewer = The average height of the terrain where the sewer is present, relative to datum.
  • Toverflow = The height of the terrain at the centerpoint of the sewer overflow, relative to datum.
  • SO = The SEWER_OVERFLOW attribute of the sewer overflow.
  • SOS = The SEWER_OVERFLOW_SPEED attribute of the sewer overflow.
  • SS = The SEWER_STORAGE attribute of the sewer area.
  • SOT = The SEWER_OVERFLOW_THRESHOLD.

See also

Template:WaterOverlay nav