Tech Univ of Darmstadt (Germany)
Univ of Alabama Tuscaloosa (USA)
Univ of Cape Town (South Africa)
University of Guelph (Canada)
U of Guelph website - course outline for 
UAT 491/691 Special problems in wet weather flow management 
UoG05661 Urban stormwater management 
UoG05662 Water pollution control planning

| Note copyright and disclaimer restrictions.© Wm James 1999-2002  |   Questions?  |  Updated 02/01/10 |
| Cite: "James, Wm. (1999). 05-661,05-662 Web site. U. of Guelph, Sch. of Eng'rg. www.eos.uoguelph.ca/ webfiles/james"  | 

05-661 Urban stormwater management is a graduate engineering course, comprising the six odd-numbered modules: 1.continuous stormwater management models and model structure (SWMM and PCSWMM); 3.GIS data management, model complexity, catchment discretization and process disaggregation (PCSWMMGIS); 5.routing in complex, looped, partially surcharged pipe/channel networks (SWMM-EXTRAN); 7.pollutant build-up, washoff and transport (SWMM-RUNOFF, -TRANS); 9.pollutant removal in sewer networks, storage facilities and treatment plants (DETPOND); 11.Sewer network designs for the future; appropriate technologies for wastewater in urban infrastructureMore info is provided in module 0.

05-662 Water pollution control planning (for UCT students, CIV530Z  is a programme of individual study on a specialized topic - examination by report/s and possibly an oral) is a graduate engineering course, comprising the six even-numbered modules below: 2. philosophy underlying public water pollution; 4. methods of developing area-wide pollution control plans and sustainable use plans in Ontario and elsewhere; 6. introduction to BMPs and the SLAMM model; 8.  introduction to the WASP model; 10. Urban litter in drainage systems;  12. examination of quantitative and non-quantitative information in the context of planning. No field trips are planned for Jan-Apr 2000. More info is provided in module 0.   

Current modules in this website are for January to April 2002.   

module 5

Flow and pollutant routing in complex, looped, partially-surcharged pipe/channel networks (SWMM-EXTRAN)

contents

Introduction
Unsteady flow equations
Pollutant routing in TRANS
Dynamic wave equations
Difference solutions of the wave equations
Convergence and stability
Conceptual representation of the drainage network
Derivation of unsteady flow equations for sewers
Finite difference formulation
Numerical solutions
Numerical stability
Flow control devices
Assignment A5
Frequently asked questions
Reading
Reminders


Introduction

Pedagogic note: This module attempts to provide some of the background theoretical development in modelling flow in partially surcharged, looped sewer networks, as used in EXTRAN. You are required to summarise the main points of your potential interest in this topic, and present them on your web page. Learning objectives for this module include the underlying theories from hydraulics, numerical analysis, and the limitations imposed on model applications. Once again, you will be expected to explore the potential applications to problems in your area. Also once again, in this module SWMM code is used as the case study, as it remains the only widely-used, advanced program whose source code is available in the public domain.

Source: Much of the material in this module has been cut and edited from my version of the SWMM 1988 User's Manual and Program Documentation, originally published by the USEPA. Some of it comes from my other publications, principally with Stu Wylie. Some of the equation numbers got corrupted in the conversion to html, so I would appreciate your help in locating errors.

Introduction: SWMM-EXTRAN is a dynamic flow routing model that routes inflow hydrographs through an open channel and/or closed conduit system, computing the time variant flows and heads throughout the system. It is intended for application in systems where the assumption of steady flow cannot be made. The program solves the "full" dynamic equations for gradually varied flow (St. Venant equations) using various explicit solution techniques. As a result, the solution time-step is governed by the wave celerity in the shorter conveyances in the system. Time-steps of 5-seconds to 60-seconds are typically used, which means that computer time is a significant consideration in the use of the model. The conceptual representation of the drainage system is based on the "link-node" concept which does not constrain the drainage system to a dendritic form. This permits parallel pipes, looped systems, lateral diversions and partial surcharge within the system. The program will simulate backwater due to tidal or nontidal conditions, free-surface flow, pressure flow or surcharge, flow reversals, flow transfer by weirs, orifices and pumping facilities, and storage at on- or off-line facilities. Types of channels that can be simulated include circular, rectangular, horseshoe, egg, and baskethandle pipes, trapezoidal, parabolic and natural channels.

While the computer program was developed primarily for use in urban drainage systems -- including combined systems and separate systems -- it also can be used for stream channels through the use of arbitrary cross sections or if the cross-section can be adequately represented as a trapezoidal channel. The program receives hydrograph input at specific nodal locations by interface file transfer from an upstream module (e.g., RUNOFF) and/or by direct user input. The model performs dynamic routing of these flows throughout the drainage system to the points of outfall to the receiving water or treatment system.  

The significant limitations are:

  • EXTRAN is not capable of simulating water quality.
  • Changes in hydraulic head due to rapid expansions or contractions are neglected. At expansions, the headloss will tend to equalize the heads; but at contractions, the headloss could aggravate the problem.
  • Headloss at manholes, expansions, contractions, bends, etc. are not explicitly accounted for. These losses must be reflected in the value of the Manning n specified for the channels or conduits where the loss occurs.
  • At a manhole where the inverts of connecting pipes are different (e.g., a drop manhole), computational errors will occur during surcharge periods if the invert of the highest pipe lies above the crown of the lowest pipe. The severity of the error increases as the separation increases.
  • Computational instabilities can occur at junctions with weirs if: 1) the junction is surcharged, and 2) the weir becomes submerged to the extent that the downstream head equals or exceeds the upstream head.

Unsteady flow equations

Hyperbolic equations, in which category the dynamic wave equations fall, are those for which (b2 - 4 ac) is greater than zero in the general equation [2.1]:

Such phenomena are characterized by disturbances that propagate seemingly uncontrollably away from a stationary observer. In the case where (b2 - 4 ac) equals zero, the equation is said to be parabolic, and when (b2 - 4 ac) is less than zero, elliptic. Parabolic equations describe processes that are slow and damped, like groundwater flow. Elliptical equations describe steady-state problems. These coefficients appear also in equation [2.2] below whose roots are the slopes of the characteristic curves when the partial differential equation is reduced to one involving total differentials only:

            

If the coefficients a, b, … g are constants or functions of x and t only, the partial differential equation is said to be linear. If the coefficients of the second-order derivatives are functions of x, t, U, U/ x and U/ t, but not of second-order derivatives, the equation is described as quasi-linear, even though it is non-linear. The dynamic wave equations, with which this part of this chapter is concerned, are of this type. (A linear equation is one for which the sum of separate solutions is also a solution). 


Pollutant routing in TRANS

Integrated Form of Complete Mixing Quality Routing

In SWMM Transport and Runoff Modules (not EXTRAN as it has no qulaity routing routines), quality routing through conduit segments assumes complete mixing within the conduit in the manner of a continuously stirred tank reactor or "CSTR". It may easily be shown that negative concentrations could be computed if

             

where D t = time step, s,
V = average volume in the conduit or storage unit, ft3, and
Q = average flow through the conduit or storage unit, cfs.

This rarely causes a problem for storage unit simulation due to their large volumes. But when long time steps (e.g. 1 h) are used in Runoff or Transport, instabilities in the predicted concentrations may arise.

These may readily be avoided with minimal loss of accuracy by using the integrated form of the solution to the differential equation. The procedure is described by Medina et al. (1981) and is outlined below as applied to Runoff and Transport.

The governing differential equation for a completely mixed volume is

where C = concentration in effluent and in the mixed volume, e.g., mg/L,
V = volume, ft3,
Qi = inflow rate, cfs
Ci = concentration of influent, e.g., mg/L,
Q = outflow rate, cfs,
K = first order decay coefficient, L/sec, and
L = source (or sink) of pollutant to the mixed volume, mass/time, e.g., cfs. mg/L.

An analytical solution of this equation is seldom possible when Q, Qi, Ci, V, and L vary arbitrarily with time, as in the usual routing through conduits. However, a simple solution is available to the ordinary, first order differential equaiton with constant coefficients if parameters Q, Qi, Ci, V, L, and dV/dt are assumed to be constant over the solution time interval, t to t + D t. In practice, average values over the time interval are used at each time step. The above equation is then readily integrated over the time interval t to t + D t with

to yield

where DENOM = Q/V + K + 1/V. dV/dt                 

Thus, the concentration at the end of the time step is computed to be the sum of a weighted inflow concentration and a decaying concentration from the previous time step. The latter equation is used in both Runoff and Transport and is completely stable with respect to changes in Dt. It is updated at each time step. Given the many other uncertainties of quality routing within the sewer system, it should be adequate.

Reference for this part

Medina, M.A., Huber, W.C. and Heaney, J.P., "Modeling Stormwater Storage/Treatment Transients: Theory," Journal of the Environmental Engineering Division, ASCE, Vol. 107, No. EE4, August 1981, pp. 787-797.


The dynamic wave equations

The well-known equations of unsteady, spatially-varied flow on an impervious surface are:

Momentum [2.3] :

Continuity [2.4] :

In these equations,
x = distance along the channel,
t = time,
h = depth of flow,
v = average velocity of flow,
Sb = channel bottom slope,
Sf = friction slope,
g = acceleration due to gravity,
q = precipitation intensity.

The one-dimensional form of the equations is used because this form is highly suited to the presentation of the basic concepts of the numerical procedures to be discussed. Extension to irregular surfaces can be accomplished with little difficulty. Derivation of these equations is given in standard reference works (e.g. Chow, 1959, 1969; Henderson, 1966; Daily and Harleman, 1966; Grace and Eagleson, 1965, 1966), and follows from the following assumptions:

  • a moderately wide flow surface (h/width << 1),
  • small bottom slope (q @ sin q @ tan q ),
  • uniform velocity distribution (momentum distribution coefficient is unity),
  • overpressure due to vertical inflow is negligible,
  • precipitation has negligible effect on flow dynamics (Eagleson, 1970) in comparison with that of gravity,
  • friction slope for steady, uniform flow applies to unsteady, non-uniform flow of the same depth and average velocity.

Formulation of the dynamic wave equations is reviewed here since this has more general application than the simpler kinematic formulation. We use simpler kinematic routing methods in TRANS and RUNOFF.

Woolhiser and Liggett (1967) found the kinematic wave formulation to be sufficiently accurate for most practical overland flow problems. To determine when satisfactory overland flow solutions can be obtained from the kinematic wave method, they introduced the dimensionless numbers:

kinematic flow number =

Here Sb is bed slope,
Lo is the bed length,
Ho is the normal depth at the downstream overfall and
Fo is the Froude number for normal flow at x = Lo

Difference solutions of the dynamic wave equations

Partial differential equations may be solved numerically by replacing derivatives at a point with difference quotients over a small interval, i.e. f / x is replaced by D f /D x, where D x is small. This manipulation amounts to replacing the differential equations with corresponding algebraic equations. No major simplifications need be made to the unsteady flow equations, but, as Brakensiek (1967) illustrates, the procedure for representing the partial differential equations by algebraic equations is fraught with difficulties. Many factors, such as accuracy, convergence, efficiency and stability, must be considered.

Finite-difference methods are approximate only in the sense that derivatives at a point are approximated by difference quotients over a small interval. Observed data are invariably subject to errors of measurement; and all arithmetical work is limited to a finite number of significant figures and contains rounding-off errors, so even analytical solutions provide only approximate numerical answers. Finite-difference methods can generally give solutions that are either as accurate as the data warrant, or as accurate as is necessary for the technical purposes for which the solutions are required. In both cases, a finite difference solution is often as satisfactory as one calculated from any other approximation.

Numerical integration techniques used to solve the wave equations are classified as either direct methods or characteristic methods. In the latter case, the equations are transformed into their characteristic form before utilizing the finite difference representation. No transformation is required before using finite differences in the direct methods. A fixed rectangular network in the x-t plane is used to identify points at which solutions are obtained by direct methods. On the other hand, solution points are identified in the characteristic methods by the intersection of characteristic curves in the x-t plane, or at rectangular network points by interpolation between characteristic curve intersections.

Finite-difference schemes may be classified further as either explicit or implicit. In an explicit scheme, the solution at a given time step depends only on the known solution from the previous time step. In an implicit scheme the solution at a given time step depends on both the known solution at the previous time step and on the adjacent unknown solution at the given time step. The unknowns in the finite-difference equations of an explicit scheme can be evaluated directly, whereas the equations of an implicit scheme are generally solved by iteration.

Comparisons of the various finite difference schemes have been reported in the literature. Brakensiek (1967) considered both direct explicit and direct implicit methods and compared error growth for the various schemes applied to the kinematic formulation of the unsteady flow equations. Implicit schemes were found to be far more stable than were explicit schemes. Liggett and Woolhiser (1967b) concluded that both characteristic and direct implicit schemes provide stable solutions, while direct explicit schemes were generally unsatisfactory.

Convergence and stability

Conditions that must be satisfied for the solution of the finite-difference equations to be a reasonably accurate approximation to the solution of the corresponding partial differential equations are associated with:

  • firstly, the convergence of the solution of the approximating equations to the solution of the differential equations, and
  • secondly, with the stable decay of errors in the arithmetical operations employed in the solutions of the finite-difference equations.

If U represents the exact solution of a partial differential equation with independent variables x and t, and u the exact solution of the difference equation used to approximate the partial differential equation, then the finite-difference solution is convergent if u tends to U as Dx and Dt both tend to zero. Conditions under which u converges to U have been established for linear partial differential equations with solutions satisfying fairly general boundary and initial conditions, but they are not yet known for non-linear equations, except in a few particular instances. The difference (U - u) is the discretization error (Smith, 1965), the magnitude of which, at any mesh point, depends on the mesh size, i.e. on Dx and Dt, and on the number of finite-differences in the truncated series used to approximate the derivatives. The more terms used in the series, the better will be the approximation, but a greater number of pivotal values are then involved in the solution.

In general, the discretization error can be reduced by decreasing Dx and Dt, subject usually to some conditional relationship between them. As this leads to an increase in the number of equations to be solved, a solution is limited by such factors as computer time and memory and the accuracy required. The problem of convergence is difficult to investigate usefully, because the final expression for the discretization error is generally in terms of unknown derivatives for which no upper and lower bounds can be estimated.

If all calculations in a solution could be taken to an infinite number of decimal places, an exact solution of the finite-difference equations would be obtained. However, calculations are taken to only a finite number of decimal places. This procedure introduces a round-off error with each calculation, and the solution computed is not u, but a numerical solution, N.

Generally, a set of finite-difference equations is stable when the cumulative effect of all rounding errors is negligible. More specifically, if the moduli of errors introduced at mesh points are each less than the first difference (d ), then the finite-difference equations are stable when the maximum value of (u - N) tends to zero as d tends to zero and does not increase exponentially with the number of rows of calculation (i.e. with j for all i where j is in time and i is in distance dimensions). Errors which persist as linear combinations of the initial errors may be tolerable, provided their sum remains much smaller than u (Smith, 1965). Numerical solutions are invariably more accurate than estimates of (u - N) indicate, because stability analysis always assumes that all errors have the same sign, which is not the case. Stability is discussed in detail by Richtmyer (1957).

It is difficult to separate the concepts of stability and convergence. A difference scheme which is a poor approximation of a particular differential equation will approach a different equation as the mesh size approaches zero. Such a scheme may be stable, but the solution of the difference equation does not converge to the solution of the particular differential equation. Conversely, a scheme that is a good approximation of the differential equation may be unstable. Numerical studies seem to indicate that the discretization error is dominant in a stable and convergent process.


Conceptual Representation of the Transport System

For the mathematical solution of the gradually-varied unsteady flow (St. Venant) equations, we use a link-node description to represent the sewer system, in which manholes are nodes, and conveyances (like sewers) are links.

As shown in Figure below, the conduit system is idealized as a series of links (or pipes) which are connected at nodes or junctions. Links and nodes have well-defined properties which permit representation of the entire pipe network, including flow control devices. The continuity equation is solved at the node and the momentum equation along the conveyance (thus a conveyance is the smallest spatial unit in this discretization - discharge and velocity are averaged along a pipe and head is averaged over an area centered on a node and roughly halfway to the next node). The specific properties of links and nodes are summarized in the Table below.

Properties of Nodes and Links in EXTRAN

    Properties and Constraints
NODES Constraint SQ = change in storage
  Properties computed at each time-step Volume; Surface area; Head
LINKS Constant Properties Invert, crown, and ground elevations
  Constraint SQin = SQout
  Properties computed at each time-step Cross-sectional area; Hydraulic radius; Surface width; Discharge; Velocity of flow
  Constant Properties Head loss coefficients; Pipe shape, length, slope, roughness

Links transmit flow from node to node, and are characterized by a discharge/head relation such as a rating curve or a weir equation Q = f(H). Properties associated with the links are roughness, length, cross-sectional area, hydraulic radius, and surface width. The last three properties are functions of the instantaneous depth of flow. The primary dependent variable in the links is the discharge, Q. The solution is for the average flow in each link.

Conceptual Representation of the EXTRAN Model.

Nodes are the storage elements of the system and correspond to manholes, sewer junctions or just the conceptual end of one conveyance and the start of another in the physical system. The variables associated with a node are volume, head, and surface area. The primary dependent variable is the head, H (elevation to water surface = invert elevation plus water depth), which is assumed to be changing in time but constant over the area assigned or covered by a node. (A plot of head versus distance along the sewer network yields the hydraulic grade line, HGL, and its dynamic variation is the DHGL.) Inflows, such as inlet hydrographs, and outflows, such as weir diversions, take place at the nodes of the idealized sewer system. The volume of the node at any time is equivalent to the water volume in the half- pipe lengths connected to any one node. The change in nodal volume during a given time step, dt, forms the basis of head and discharge calculations as discussed below.

Derivation of unsteady flow equations for sewers

The basic differential equations for the sewer flow problem come from the gradually varied, unsteady flow equations for open channels, otherwise known as the St. Venant or shallow water equations. The unsteady flow continuity equation with surface area and flow as dependent variables (Yen, 1986; Lai, 1986) is:

where A = cross sectional area,
Q = conduit flow,
x = distance along the pipe/channel, and
t = time.

The momentum equation may be written in several forms depending on the choice of dependent variables. Using flow, Q, and hydraulic head (invert elevation plus water depth), H, the momentum equation is (Lai, 1986);

where g = gravitational constant,
H = z + h = hydraulic head,
z = invert elevation,
h = water depth, and
Sf = friction (energy) slope.

(The bottom slope is incorporated into gradient of H).

The momentum equation is applied to the links and the continuity equation to the nodes, so momentum is conserved in the links and continuity in the nodes.

The last equation is modified by substituting the following identities:

where V = average conduit velocity.

Substituting into the equation above leads to an equivalent form:

This is the form of the momentum equation used. It has as dependent variables Q, A, V, and H.

The continuity equation may be manipulated to replace the second term of the above equation, using Q = AV,

 

or, rearranging terms and multiplying by V,

substituting equations to eliminate the V/ x term leads to the equation solved along conduits:

In EXTRAN there are three solutions. The above equation is the basis of the ISOL = 0 solution. The momentum equation for the ISOL = 1 and ISOL = 2 solutions are derived in the following manner. The (Q2/A)/ x term in equation 3-2 is expanded as the product of Q and Q/A instead of V2/A as in the ISOL = 0 solution.

Again the continuity equation is used to substitute for the Q/ x term in equation 3-9. This term is inadmissible in EXTRAN since the flow is assumed to be constant in a link. The link momentum equation used by the ISOL = 1 and ISOL = 2 solutions is:

         (3-11)

where Q = discharge along the conduit,
V = velocity in the conduit,
A = cross-sectional area of the flow,
H = hydraulic head (invert elevation plus water depth), and
Sf = friction slope.

Finite difference formulation:

The friction slope is defined by Manning's equation, i.e.

(3-12)

 where k = g(n/1.49)2 for U.S. customary units and gn2 for metric units,
n = Mannings roughness coefficient,
g = gravitational acceleration (numerically different depending on units chosen), and
R = hydraulic radius.

Use of the absolute value sign on the flow term makes Sf a directional quantity and ensures that the frictional force always opposes the flow. Substituting in equation 3-11 and expressing in finite difference form gives

(3-13)

 

(3-14)

Solving equation 3-13 for Qt+D t gives the final finite difference form of the dynamic flow equation,

In equation 3-14, V, R, and A are weighted averages of the conduit end values at time t, and (D A/D t)t is the time derivative from the previous time step.

(3-15)

The basic unknowns in equation 3-14 are Qt+D t , H2 and H1. The various V, R and A can all be related to Q and H. Therefore, another equation is required relating Q and H. This can be obtained by writing the continuity equation at a node.

(3-16)

or, in finite difference form

where As = surface area of node.

Solution of flow equation by modified Euler method

Equations 3-14 and 3-16 can be solved sequentially to determine discharge in each link and head at each node over a time-step D t. The numerical integration of these two equations is accomplished by the improved polygon or modified Euler method. The results have proven to be relatively accurate and, when certain constraints are followed, stable. Figure 3-3 shows how the process would work if only the discharge equation were involved.

Figure 3-3. Modified Euler method for discharge based on half-step, full-step projection

The first three operations determine the slope Q/ t at the "half-step" value of discharge. In other words, it is assumed that the slope at time t+D t/2 is the mean slope during the interval. The method is extended easily to more than one equation, although graphic representation is then difficult. The corresponding half-step and full-step calculations of head are shown below:

 Half-step at node j: Time t+D t/2

(3-17)

conduits, surface runoff diversions, pumps, outfalls

Full-step at node j: Time t+D t

(3-18)

conduits, surface runoff diversions, pumps, outfalls

Note that the half-step computation of head uses the half-step computation of discharge in all connecting conduits. Similarly, the full-step computation requires the full-step discharge at time t+D t for all connecting pipes. In addition, the inflows to and diversions from each node by weirs, orifices and pumps must be computed at each half and full-step. The total sequence of discharge computations in the links and head computations in the nodes can be summarized as:

1. Compute half-step discharge at t+D t/2 in all links based on preceding full-step values of head at connecting junctions.
2. Compute half-step flow transfers by weirs, orifices, and pumps at time t+D t/2 based on preceding full-step values of head at transfer junction.
3. Compute half-step head at all nodes at time t+D t/2 based on average of preceding full-step and current half-step discharges in all connecting conduits, plus flow transfers at the current half-step.
4. Compute full-step discharge in all links at time t+D t based on half-step heads at all connecting nodes.
5. Compute full-step flow transfers between nodes at time t+D t based on current half-step heads at all weir, orifice, and pump nodes.
6. Compute full-step head at time t+D t for all nodes based on average of preceding full-step and current full-step discharges, plus flow transfers at the current full-step.

Numerical stability

Time-step restrictions

The modified Euler method yields a completely explicit solution in which the momentun equation is applied to discharge in each link and the continuity equation to head at each node, with implicit coupling during the time-step. Explicit methods involve fairly simple arithmetic and require little storage space compared to implicit methods. However, they are generally less stable and often require very short time-steps. Experience has indicated that the program is stable numerically when the following inequalities are met:

Links:

(3-19)

where D t = time-step, sec,
L = conduit length, ft [m];
g = gravitational acceleration, 32.2 ft/sec2 [9.8 m/sec2], and
D = maximum pipe depth, ft [m].

This is a form of the Courant condition, in which the time step is limited to the time required by a dynamic wave to propagate the length of a conduit.

Nodes:

(3-20)


 where C' = dimensionless constant, determined by experience to be approx 0.1,
D Hmax = maximum water-surface rise during the time-step,
As = corresponding surface area of the node, and
S Q = net inflow to the node (junction).

Examination of inequalities 3-19 and 3-20 reveals that the maximum allowable time-step, D t, will be determined by the shortest, smallest pipe having high inflows. Based on past experience with EXTRAN, a time-step of 10 seconds is nearly always sufficiently small to produce outflow hydrographs and stage-time traces which are free from spurious oscillations and also satisfy mass continuity under non-flooding conditions. If smaller time-steps are necessary the user should eliminate or aggregate the offending small pipes or channels. In most applications, 15 to 30 second time-steps are adequate; occasionally time-steps up to 60 seconds can be used.

Equivalent pipes

An equivalent pipe is the computational substitution of an element of the drainage system by an imaginary conduit which is in terms of steady state hydraulics similar to the element it replaces. Note by W James: A longer or shorter pipe will behave quite differently: substitution of the imaginary pipe will detune the network in a dynamic sense. The authors of EXTRAN use an equivalent pipe when it is suspected that a numerical instability will be caused by the element of the drainage system being replaced in the computation. Short conduits and weirs are known at times to cause stability problems and thus the authors replaced them by an equivalent pipe. (Orifices are automatically converted to equivalent pipes by the program; also a serious detuning of the problem, see the description below).

The equivalent pipe substitution involves the following steps. First the flow equation for the element in question is set equal to the flow equation for an "equivalent pipe." This, in effect, says that the head losses in the element and its equivalent pipe are the same. The length of the equivalent pipe is computed using the numerical stability equation 3-19. Then, after making any additional assumptions which may be required about the equivalent pipe's dimensions, a Manning's n is computed based on the equal head loss requirement. In the case of orifices, this conversion occurs internally, but in those cases where short pipes and weirs are found to cause instabilities, the user must make the necessary conversion and revise the input data set.

Special pipe flow considerations

The solution technique discussed in the preceding paragraphs cannot be applied without modification to every conduit for the following reasons. First, the invert elevations of pipes which join at a node may be different since sewers are frequently built with invert discontinuities. Second, critical depth may occur in the conduit and thereby restrict the discharge. Third, normal depth may control. Finally, the pipe may be dry. In all of these cases, or combinations thereof, the flow must be computed by special techniques. Figure 3-4 shows each of the possibilities and describes the way in which surface area is assigned to the nodes.

The options are:

1. Normal case. Flow computed from motion equation. Half of surface area assigned to each node.
2. Critical depth downstream. Use lesser of critical or normal depth downstream. Assign all surface area to upstream node.
3. Critical depth upstream. Use critical depth. Assign all surface area to downstream node.
4. Flow computed exceeds flow at critical depth. Set flow to normal value. Assign surface area in usual manner as in 1.
5. Dry pipe. Set flow to zero. If any surface area exists, assign to downstream node.

Once these depth and surface area corrections are applied, the computations of head and discharge can proceed in the normal way for the current time-step. Note that any of these special situations may begin and end at various times and places during simulation. EXTRAN detects these automatically.

EXTRAN now prints a summary of the special hydraulic cases illustrated in Figure 3-4, the time in minutes that a conduit was (1) dry (depth less than 0.0001 ft or m), (2) normal depth, (3) critical up stream, and (4) critical downstream. It should be noted that these designations refer strictly to the assignment of upstream and downstream nodal surface area.

During the calculation of conduit flow another normal flow approximation is used when all of the following three conditions occur:

1. The flow is positive. EXTRAN automatically designates the highest invert elevation as the upstream node and the lowest as the downstream node. This adjustment (if made) is now printed out by the model. Positive flow is from the upstream to the downstream node.
2. The water surface slope in the conduit is less than the conduit slope. See the section on Additional EXTRAN Solutions for more details.
3. The flow calculated from Manning's equation using the upstream cross-sectional area and hydraulic radius is less than the flow calculated by equation 3-14.

When all three conditions are met the flow is "normal." Normal flow is labeled with an asterisk in the intermediate printout. The conduit summary lists the number of minutes the normal flow assumption is used for each conduit.

 

Figure 3-4. Special hydraulic cases in EXTRAN flow calculations.

Head computation during surcharge and flooding

Theory

Another hydraulic situation which requires special treatment is the occurrence of surcharge and flooding. Surcharge occurs when all pipes entering a node are full or when the water surface at the node lies between the crown of the highest entering pipe and the ground surface.

Flooding is a special case of surcharge which takes place when the hydraulic grade line breaks the ground surface and water is lost from the sewer node to the overlying surface system. While it would be possible to track the water lost to flooding by surface routing, this is not done automatically in EXTRAN. To track water on the surface the user must 1) simulate the surface pathways as conduits, and 2) simulate the vertical pathways through manholes or inlets as conduits also. Since a conduit cannot be absolutely vertical, equivalent pipes must be used.

During surcharge, the head calculation in equations 3-17 and 3-18 is no longer possible because the surface area of the surcharged node (area of manhole) is too small to be used as a divisor. Instead, the continuity equation for each node is equated to zero

(3-21)

where S Q(t) is the sum of all inflows to and outflows from the node from surface runoff, conduits, diversion structures, pumps and outfalls.

Since the flow and continuity equations are not solved simultaneously in the model, the flows computed in the links connected to a node will not exactly satisfy equation 3-21. However, an iterative procedure is used in which head adjustments at each node are made on the basis of the relative changes in flow in each connecting link with respect to a change in head: Q/ H. Expressing equation 3-21 in terms of the adjusted head at node j gives

(3-22)

Solving for D Hj gives

(3-23)

This adjustment is made by half-steps during surcharge so that the half-step correction is given as

(3-24)

where Hj(t+D t/2) is given by equation 3-23 while the full-step head is computed as

(3-25)

where D Hj(t) is computed from equation 3-21. The value of the constant k theoretically should be 1.0. However, it has been found that equation 3-22 tends to over-correct the head; therefore, a value of 0.5 is used for k in the half-step computation in order to improve the results. Unfortunately, this value was found to trigger oscillations at upstream terminal junctions. To eliminate the oscillations, values of 0.3 and 0.6 are automatically set for k in the half-step and full-step computations, respectively, at upstream terminal nodes.

The head correction derivatives are computed for conduits and system inflows as follows:

Links

      (3-26)

      (3-27)

where
Dt = time-step,
A(t) = flow cross sectional area in the conduit,
L = conduit length,
n = Manning n,
m = 1.49 for U.S. customary units and 1.0 for metric units,
g = gravitational acceleration,
R = hydraulic radius for the full conduit, and
V(t) = velocity in the conduit.


System inflows

         (3-28)

      (3-28)

 Orifice, weir, pump and outfall diversions

Orifices are converted to equivalent pipes (see below); therefore, equation 3-26 is used to compute Q/H. For weirs, Q/H in the weir link is taken as zero, i.e., the effect of the flow changes over the weir due to a change in head is ignored in adjusting the head at surcharged weir junctions. (The weir flow, of course, is computed in the next time-step on the basis of the adjusted head.) As a result, the solution may go unstable under surcharge conditions. If this occurs, the weir should be changed to an equivalent pipe.

For pump junctions, Q/H is also taken as zero. For off-line pumps (with a wet well), this is a valid statement since Qpump is determined by the volume in the wet well, not the head at the junction. For in-line pumps, where the pump rate is determined by the water depth at the junction, a problem could occur if the pumping rate is not set at its maximum value at a depth less than surcharge depth at the junction. This situation should be avoided, if possible, because it could cause the solution to go unstable if a large step increase or decrease in pumping rate occurs while the pump junction is surcharged.

For all outfall pipes, the head adjustment at the outfall is treated as any other junction. Outfall weir junctions are treated the same as internal weir junctions (Q/H for the weir link is taken as zero). Thus, unstable solutions can occur at these junctions also under surcharge conditions. Converting these weirs to equivalent pipes will eliminate the stability problem.

Because the head adjustments computed in equations 3-24 and 3-25 are approximations, the computed head has a tendency to "bounce" up and down when the conduit first surcharges. This bouncing can cause the solution to go unstable in some cases; therefore, a transition function is used to smooth the changeover from head computations by equations 3-17 and 3-18 to equations 3-24 and 3-25. The transition function used is

(3-29)

where DENOM is given by

(3-30)

where Dj = pipe diameter,
yj = water depth, and
Asj = nodal surface area at 0.96 of full depth.

The exponential function causes equation 3-30 to converge to within two percent of equation 3-23 by the time the water depth is 1.25 times the full-flow depth.

Surcharge in multiple adjacent nodes

Use of Q(t)/Hj in the manner explained above satisfies continuity at a single node, but may introduce a small continuity error when several consecutive nodes are surcharged. These small continuity errors combine to artificially attenuate the hydrograph in the surcharged area. Physically, inflows to all surcharged nodes must equal outflows during a time-step since no change in storage can occur during surcharge. In order to remove this artificial attenuation, the full-step computations of flow and head in surcharge areas are repeated in an iteration loop. The iterations for a particular time-step continue until one of the following two conditions is met:

1. The net difference of inflows to and outflows from all nodes in surcharge is less than a tolerance, computed every time-step, as a fraction of the average flow through the surcharged area. The fraction is input by the user.

2. The number of iterations equals a maximum set by the user.

The iteration loop has been found to produce reasonably accurate results with little continuity error. The user may need to experiment somewhat with ITMAX and SURTOL in order to accurately simulate all surcharge points without incurring an unreasonably high computer cost due to extra iterations.

Flow control devices

Options

The link-node computations can be extended to include devices which divert sanitary sewage out of a combined sewer system or relieve the storm load on sanitary interceptors. All diversions are assumed to take place at a node and are handled as inter-nodal transfers. The special flow regulation devices include: weirs (both side-flow and transverse), orifices, pumps, and outfalls. Each of these is discussed in the paragraphs below.

Storage devices

In-line or off-line storage devices act as flow control devices by providing for storage of excessive upstream flows thereby attenuating and lagging the wet weather flow hydrograph from the upstream area. The conceptual representations of a storage junction and a regular junction are illustrated in Figure 3-5. Note that the only difference is that added surface area in the amount of ASTORE is added to that of the connecting pipes. Note also that ZCROWN(J) is set at the top of storage "tank." When the hydraulic head at junction J exceeds ZCROWN(J), the junction surcharges.

An arbitrary stage-area-volume relationship may also be input, e.g. to represent detention ponds. Routing is performed by ordinary level-surface reservoir methods. This type of storage facility is not allowed to surcharge.

 Figure 3-5. Conceptual representation of a storage junction.

 Orifices

The purpose of the orifice generally is to divert sanitary wastewater out of the stormwater system during dry weather periods and to restrict the entry of stormwater into the sanitary interceptors during periods of runoff. The orifice may divert the flow to another pipe, a pumping station or an off-line storage tank.

Figure 3-6 shows two typical diversions:

1. a dropout or sump orifice, and
2. a side outlet orifice.

EXTRAN simulates both types of orifice by converting the orifice to an equivalent pipe. The conversion is made as follows. The standard orifice equation is:

(3-31)

where Co = discharge coefficient (a function of the type of opening and the length of the orifice tube),
A = cross-sectional area of the orifice,
g = gravitational acceleration, and
h = the hydraulic head on the orifice.

Figure 3-6 Typical orifice diversions

Values of Co and A are specified by the user. To convert the orifice to a pipe, the program equates the orifice discharge equation and the Manning pipe flow equation, i.e.,

(3-32)

where m = 1.49 for U.S. customary units and 1.0 for metric units, and
S = slope of equivalent pipe.

The orifice pipe is assumed to have the same diameter, D, as the orifice and to be nearly flat, the invert on the discharge side being set 0.01 feet [3 mm] lower than the invert on the inlet side. In addition, for a sump orifice, the pipe invert is set by the program 0.96D below the junction invert so that the orifice pipe is flowing full before any outflow from the junction occurs in any other pipe. For side outlet orifices, the user specifies the height of the orifice invert above the junction floor.

If S is written as Hs/L where L is the pipe length, Hs will be identically equal to h when the orifice is submerged. When it is not submerged, h will be the height of the water surface above the orifice centerline while Hs will be the distance of the water surface above critical depth (which will occur at the discharge end) for the pipe. For practical purposes, it is assumed that Hs = h for this case also. Thus, letting S = h/L and substituting R = D/4 (where D is the orifice diameter) into equation 3-32 and simplifying gives,

(3-33)

The length of the equivalent pipe is computed as the maximum of 200 feet (61 m) or

(3-34)

to ensure that the celerity (stability) criterion for the pipe is not violated. Manning's n is then computed according to equation 3-33. This algorithm produces a solution to the orifice diversion that is not only as accurate as the orifice equation but also much more stable when the orifice junction is surcharged.

Weirs

A schematic illustration of flow transfer by weir diversion between two nodes is shown in Figure 3-7. Weir diversions provide relief to the sanitary system during periods of storm runoff. Flow over a weir is computed by

(3-35)

where Cw = discharge coefficient,
Lw = weir length (transverse to overflow),
h = driving head on the weir,
V = approach velocity, and
a = weir exponent, 3/2 for transverse weirs and 5/3 for sideflow weirs.

Both Cw and Lw are input values for transverse weirs. For sideflow weirs, Cw should be a function of the approach velocity, but the program does not provide for this because of the difficulty in defining the approach velocity. For this same reason, V, which is programmed into the weir solution, is set to zero prior to computing Qw.

Figure 3-7. Representation of weir diversions.

Normally, the driving head on the weir is computed as the difference h = Y1-Yc, where Y1 is the water depth on the upstream side of the weir and Yc is the height of the weir crest above the node invert. However, if the downstream depth Y2 also exceeds the weir crest height, the weir is submerged and the flow is computed by

(3-36)

where CSUB is a submergence coefficient representing the reduction in driving head, and all other variables are as defined above.

The submergence coefficient, CSUB, is taken from Roessert's Handbook of Hydraulics by interpolation from Table 3-3, where CRATIO is defined as:

 (3-37)

 and all other variables are as previously defined. The values of CRATIO and CSUB are computed automatically by EXTRAN and no input data values are needed.

 Table 3-3. Values of CSUB as a function of degree of weir submergence

CRATIO CSUB
0.0 1.00
0.10 0.99
0.20 0.98
0.30 0.97
0.40 0.96
0.50 0.95
0.60 0.94
0.70 0.91
0.80 0.85
0.85 0.80
0.90 0.68
0.95 0.40
1.00 0.00

If the weir is surcharged it will behave as an orifice and the flow is computed as:

       (3-38)

where YTOP = distance to top of weir opening shown in Figure 3-7,
h' = Y1 - maximum(Y2,Yc), and
CSUR = weir surcharge coefficient.

The weir surcharge coefficient, CSUR, is computed automatically at the beginning of surcharge. At the point where weir surcharge is detected, the preceding weir discharge just prior to surcharge is equated to Qw in equation 3-36, and equation 3-38 is then solved for the surcharge coefficient, CSUR. Thus, no input coefficient for surcharged weirs is required.

Finally, flow reversals are detected at weir nodes which cause the downstream water depth, Y2, to exceed the upstream depth, Y1. All equations in the weir section remain the same except that Y1 and Y2 are switched so that Y1 remains as the "upstream" head. Also, flow reversal at a sideflow weir causes it to behave more like a transverse weir and consequently the exponent a in equation 3-39 is set to 1.5.

Weirs with tide gates

Frequently, weirs are installed together with a tide gate at points of overflow into the receiving waters. Flow across the weir is restricted by the tide gate, which may be partially closed at times. This is accounted for by reducing the effective driving head across the weir according to an empirical factor published by Armco (undated):

(3-39)

where h is the previously computed head before correction for flap gate and V is the velocity of flow in the upstream conduit.

Pump stations

A pump station is conceptually represented as either an in-line lift station, or an off-line node representing a wet-well, from which the contents are pumped to another node in the system according to a programmed rule curve. Alternatively, either in-line or off-line pumps may use a three-point pump curve (head versus pumped outflow).

For an in-line lift station, the pump rate is based on the water depth, Y, at the pump junction. The step-function rule is as follows:

Pump Rate = R1 for 0 < Y < Y1

= R2 for Y1 < Y < Y2 (3-40)

= R3 for Y2 < Y < Y3

For Y = 0, the pump rate is the inflow rate to the pump junction.

Inflows to the off-line pump must be diverted from the main sewer system through an orifice, a weir, or a pipe. The influent to the wet-well node must be a free discharge regardless of the diversion structure. The pumping rule curve is based on the volume of water in the storage junction. A schematic presentation of the pump rule is shown in Figure 3-8.

The step-function rule operates as follows:

1. Up to three wet-well volumes are pre-specified as input data for each pump station: V1 < V2 < V3, where V3 is the maximum capacity of the wet well.

2. Three pumping rates are pre-specified as input data for each station. The pump rate is selected automatically by EXTRAN depending on the volume, V, in the wet-well, as follows:

Pump Rate = R1 for 0 < V < V1

= R2 for V1 < V < V2 (3-41)

= R3 for V2 < V < V3

Figure 3-8. Schematic presentation of pump diversion.

3. A mass balance of pumped outflow and inflow is performed in the wet- well during the model simulation period.

4. If the wet-well goes dry, the pump rate is reduced below rate R1 until it just equals the inflow rate. When the inflow rate again equals or exceeds R1, the pumping rate goes back to operating on the rule curve.

5. If V3 is exceeded in the wet-well, the inflow to the storage node is reduced until it does not exceed the maximum pumped flow. When the inflow falls below the maximum pumped flow, the inflow "gates" are opened. The program automatically steps down the pumping rate by the operating rule of (2) as inflows and wet-well volume decrease.

A conceptual head-discharge curve for a pump is shown in Figure 3-16. When this method is used for either type of pump, an iteration is performed until the dynamic head difference between the upstream and downstream nodes on either side of the pump corresponds to the flow given on the pump curve. In other words, the pump curve replaces equation 3-14.

Outfall Structures

EXTRAN simulates both weir outfalls and free outfalls. Either type may be subject to a backwater condition and protected by a tide gate. A weir outfall is a weir which discharges directly to the receiving waters according to relationships given previously in the weir section. The free outfall is simply an outfall conduit which discharges to a receiving water body under given backwater conditions. The free outfall may be truly "free" if the elevation of the receiving waters is low enough (i.e., the end of the conduit is elevated over the receiving waters), or it may consist of a backwater condition.

 In the former case, the water surface at the free outfall is taken as critical or normal depth, whichever is less. If backwater exists, the receiving water elevation is taken as the water surface elevation at the free outfall.

Up to twenty different head versus time relationships can be used as boundary conditions. Any outfall junction can be assigned to any of the twenty boundary conditions.

When there is a tide gate on an outfall conduit, a check is made to see whether or not the hydraulic head at the upstream end of the outfall pipe exceeds that outside the gate. If it does not, the discharge through the outfall is equated to zero. If the driving head is positive, the water surface elevation at the outfall junction is set in the same manner as that for a free outfall subjected to a backwater condition. Note that even if the tide gate is closed, water can still enter and fill an empty outfall pipe as sometimes happens at the beginning of a simulation.

Initial conditions

For each conduit, EXTRAN then computes the normal depth corresponding to the initial flow. Junction heads are then approximated as the average of the heads of adjacent conduits for purposes of beginning the computation sequence. The initial volume of water computed in this manner is included in the continuity check. A more accurate initial condition for any desired set of flows may be established by letting EXTRAN "warm up" with the initial inflows and restarted using the "hot start" feature.

Initial heads at junctions with a sump orifice are increased by 0.96 times the equivalent pipe diameter of the orifice at the start of the simulation.

Numerical procedure

The solution uses the modified Euler method and a special iterative procedure for surcharged flow. The following principal steps are performed:

1. For all the physical conduits in the system, compute the following time-changing properties based on the last full-step values of depth and flow:
· Hydraulic head at each conduit end.
· Full-step values of cross-sectional area, velocity, hydraulic radius, and surface area corresponding to preceding full-step flow. This is done by calling subroutine HEAD.
· Half-step value of discharge at time t = t+ Dt/2 by modified Euler solution.
· Check for normal flow, if appropriate. Normal flow is indicated by an asterisk in the intermediate printout.
· Set system outflows and internal transfers at time t + Dt/2 by call to subroutine BOUND. BOUND computes the half-step flow transfers at all orifices, weirs, and pumps at time t = t + Dt/2. It also computes the current value of tidal stage and the half-step value of depth and discharge at all outfalls.
2. For all physical junctions in the system, compute the half-step depth at time t = t+ Dt/2. This depth computation is based on the current net inflows to each node and the nodal surface areas computed previously in step 1. Check for surcharge and flooding at each node and compute water depth accordingly.
3. For all physical conduits, compute the following properties based on the last half-step values of depth and flow (repeat step 1 for time t+ Dt/2):
· Hydraulic head at each pipe end.
· Half-step values of pipe cross-sectional area, velocity, hydraulic radius, and surface are corresponding to preceding half-steep depth and discharge
· Full-step discharge at time t+ D t by modified Euler solution.
· Check for normal flow if appropriate.
· Set system outflows and internal transfer at time t+ D t by calling BOUND.
4. For all junctions, repeat the nodal head computation of step 6 for time t+D t. Sum the differences between inflow and outflow for each junction in surcharge.
5. Repeat steps 3 and 4 for the surcharged links and nodes until the sum of the flow differences from step 4 is less than fraction SURTOL multiplied by the average flow through the surcharged area or the number of iterations exceeds parameter ITMAX.
6. Return to subroutine TRANSX for time and output data updates.

Additional EXTRAN solutions

General

EXTRAN includes two additional solutions to the gradually varied, one-dimensional unsteady flow equations for open channels. These solutions are called using the ISOL parameter on data group BO. This section describes the formulation of the ISOL - I and ISOL - 2 solutions and their weaknesses and strengths compared to the default solution described earlier in this chapter (ISOL - 0). For explanatory purposes the ISOL - 0 solution will henceforth be called the explicit method, the ISOL - I solution will be called the enhanced explicit method, and the ISOL - 2 solution will be called the iterative method.

The explicit method is solved by Subroutine XROUTE. Subroutine YROUTE solves the enhanced explicit method and Subroutine ZROUTE is the iterative method solution.

Basic flow equations

The basic differential equations for the sewer flow problem come from the gradually varied, one-dimensional unsteady flow equations for open channels, otherwise known as the St. Venant or shallow water equations (Lai, 1986). For use in EXTRAN, the momentum equation is combined with the continuity equation to yield an equation to be solved along each link at each time-step,

(3-42)

where Q = discharge through the conduit,
V = velocity in the conduit,
A = cross-sectional area of the flow,
H = hydraulic head (invert elevation plus water depth), and
Sf = friction slope.

The fourth term of equation 3-42 is different from the term used in equation 3-11. The terms have their usual units. For example, when U.S. customary units are used, flow is in units of cfs. When metric units are used, flow is in m3/sec. These units are carried through internal calculations as well as for input and output.


Assignment A5

Allow up to 12 h for reading, and up to 6 h for writing your web page. This means perhaps that you will have to read selectively. Spend a few minutes at the outset ranking the assigned reading according to your own priorities. It's OK if you are not able to complete all the suggested reading.

Once again, you are expected to explore the relevance of the material in this module to the area where you live. What is your potential interest in the theory of modelling flow in (open channel or closed conduit or partially surcharged), (dendritic or looped) drainage networks?  You are required to summarise the main points as you see them in my pages above on the underlying theories from hydraulics and numerical analysis. The concepts, equations and models have serious limitations that may reduce their value in solving problems in your area. Suggest which of the design questions that interest you could and could not be elucidated using the models described here.

For example in Ontario we have problem areas where sewers surcharge and back up into basements. EXTRAN is an appropriate model for such problems. For sewer networks with one or more short pipes EXTRAN models often are unstable. The EXTRAN documentation recommends the use of hydraulically equivalent pipes in areas where a short pipe causes numerical instabilities. This means substituting a pipe that will be long enough to avoid the numerical problem. I say that if transients (waves) are bouncing around a network then it is paramount to keep their timing consistent, but substituting an arbitrarily longer pipe will simply solve some other different problem. The waves in the new problem are detuned - they respond at a different time. What do you think about this point?

Feel free to criticise my notes; for instance there are lots of textbooks (e.g. Chaudhry) more recent than I have cited and they will certainly have newer viewpoints. By the way I am still working on adding the list of references cited.

For a challenge to the nerdiest among the class (this task is certainly not required), you could run EXTRAN for a simple dataset, cause an incipient instability, substitute a very long equivalent pipe and see what happens. Let me know if you need help on this.

As I say, what would interest me most, is your focus on possible applications to problems in your area. Present the discussion as a brief summary on your web page.