Gradually Varied Flow
Gradually Varied Flow
Hydraulic Engineering
1
3/22/23
2
3/22/23
Nonuniform Flow
• GVF and RVF can be steady or unsteady
• Both types of varied flow can accelerate (dV/dx > 0) or decelerate (dV/dx < 0), depending
on the variation of velocity in the direction of flow due to changes in So and A
• In GVF, the change in the flow depth in the x direction is very gradual and the flow is
treated as being quasi-uniform with a constant V
V
So
So
Site C Dam (Fort St. John, BC) (@ Abbotsford News) The Saskatoon weir (Saskatoon, SK) (@ CBC News)
3
3/22/23
4
3/22/23
"%
"$
= −𝑆- [2]
"#
"$
= −𝑆. [3]
𝑑 1 𝑑 1 𝑑𝐴
=
𝑑𝑥 𝐴! 𝑑𝐴 𝐴! 𝑑𝑥
𝑑 1 𝑑𝐴 𝑑𝑦
=
𝑑𝐴 𝐴! 𝑑𝑦 𝑑𝑥
10
5
3/22/23
!
𝑄 !
!
𝛼𝑄 −2𝐵 𝑑𝑦 −𝛼𝐵𝑄 𝑑𝑦 𝑑𝑦 𝑑𝑦 𝑑𝑦
= =− 𝐴 = −𝛼𝐹.! ≅ −𝐹.!
2𝑔 𝐴- 𝑑𝑥 𝑔𝐴- 𝑑𝑥 𝑔𝐴 𝑑𝑥 𝑑𝑥 𝑑𝑥
𝛼𝐵
11
𝑑𝑦 𝑑𝑦
−𝑆. = −𝑆- + − 𝐹1)
𝑑𝑥 𝑑𝑥
𝒅𝒚 𝑺𝒐-𝑺𝒇
𝒅𝒙
= 𝟏-𝑭𝟐𝒓
[4]
12
6
3/22/23
• In order to achieve this, it is necessary to plot the water surface profile, which is a plot of
the flow depth y as a function of streamwise location x
• There are many methods to computationally estimate water surface profiles in GVF
(which we will be discussing in a forthcoming lecture)
• However, it is important to be able to first qualitatively classify the water surface profiles
using So and y, in order to then select an appropriate computational method
13
14
7
3/22/23
15
• the NDL
16
8
3/22/23
17
Slope Types
MILD
Zone 1
yn Zone 2
yc
Zone 3
STEEP
yc Zone 1
yn
Zone 2
Zone 3
18
9
3/22/23
Slope Types
CRITICAL
Zone 1
yn yc Zone 2
ADVERSE
Zone 3
Zone 3
yc
HORIZONTAL
Zone 2
yc Zone 3
19
𝒅𝒚 𝑺𝒐 − 𝑺𝒇 NDL
=
𝒅𝒙 𝟏 − 𝑭𝟐𝒓
21
10
3/22/23
𝒅𝒚 𝑺𝒐 − 𝑺𝒇 NDL
=
𝒅𝒙 𝟏 − 𝑭𝟐𝒓
22
• Recall that
𝒅𝒚 𝑺𝒐6𝑺𝒇 Zone 1
𝒅𝒙
= 𝟏6𝑭𝟐
𝒓
yn Zone 2
yc
Zone 3
23
11
3/22/23
• Recall that
𝒅𝒚 𝑺𝒐 )𝑺𝒇
=
𝒅𝒙 𝟏)𝑭 𝟐
𝒓
Zone 1
• In Zone 1
yn Zone 2
• y > yn and so Sf < So
• y > yc and so Fr < 1 yc
Zone 3
• From which
"& 9,69- ;
• "$
= +6:/
=;= +
.
24
Zone 1
• There are many surface profiles that
would satisfy the condition that
yn Zone 2
dy/dx > 0
yc
Zone 3
25
12
3/22/23
26
27
13
3/22/23
𝑑𝑦 𝑆- − 𝑆. − yn Zone 2
= = = −
𝑑𝑥 1 − F<) +
yc
Zone 3
• So we know that y is decreasing in the
downstream direction
28
𝑑𝑦 𝑆- − 𝑆. − yn Zone 2
= = = −
𝑑𝑥 1 − F<) +
yc
Zone 3
• So we know that y is decreasing in the
downstream direction
29
14
3/22/23
30
31
15
3/22/23
• y < yn
• y < yc Zone 1
𝒅𝒚 𝑺𝒐 − 𝑺𝒇 − yn Zone 2
= =+
𝒅𝒙 𝟏 − 𝑭𝟐𝒓 −
yc
Zone 3
• Flow in this zone is supercritical, so we
look from upstream to downstream for
the shape of the profile (because the
control is upstream)
32
Zone 1
The flow depth is increasing in the DS
direction
yn Zone 2
• As y → yc, Fr2
→ 1 and so the
yc
denominator approaches 0 and dy/dx
→∞ Zone 3
• Conversely, in the US direction, as y
becomes small, the denominator
becomes very large, and dy/dx
becomes practically small (i.e. tends
towards zero)
33
16
3/22/23
34
35
17
3/22/23
36
37
18
3/22/23
38
NDL - different
in both channels
CDL - the same
39
19
3/22/23
Flow profile
40
Example
41
20
3/22/23
42
Critical Slope
43
21
3/22/23
44
• Furthermore, they provide a good qualitative basis for accurate computation of the water
surface profiles, which is required for engineering applications in practice
• Detailed water surface information is required at specific discharges to carry out planning,
design and operation of open channels with respect to control structures, hydraulic
structures and channel modification
• In computational modelling of steady flows, the initial conditions drive the simulation
• If the initial conditions are incorrect because they have been improperly estimated, errors
may be incurred in the simulation and the results
45
22
3/22/23
𝒅𝒚 𝑺𝒐 − 𝑺𝒇
=
𝒅𝒙 𝟏 − 𝑭𝟐𝒓
𝜶𝑩𝑸𝟐
≈ 𝑭𝟐𝒓
𝒈𝑨𝟑
46
"& 9,69-
"$
= 012/
[5]
+6
345
• Equation [5] is a first-order ordinary differential equation (ODE); we will return to the
significance of this momentarily
• Essentially
𝑑𝑦
= 𝑓 𝑦, 𝑄, 𝐵, 𝐴
𝑑𝑥
47
23
3/22/23
• This allows us to reduce the RHS of Eq. [5] to a function of y, which is a function of x in
GVF, such that
"&
"$
= 𝑓 𝑥, 𝑦 [6]
and
𝑆4 − 𝑆5
𝑓(𝑥, 𝑦) =
𝛼𝐵𝑄!
1−
𝑔𝐴-
48
Computing dy/dx
• You may recall that ODEs are solved by actual integration or finite difference
approximations
• However, a closed-form solution of Equation [5] is only available for very simplified cases
because f(x,y) is a nonlinear function
"& 96 697
"$
= 89:"
[5]
+6
;<=
49
24
3/22/23
Computing dy/dx
• You may recall that ODEs are solved by actual integration or finite difference
approximations
• However, a closed-form solution of Equation [5] is only available for very simplified cases
because f(x,y) is a nonlinear function
• Therefore, numerical methods are used for integration to determine y at specific x
locations
How is this done?
50
'!"# %!"#
H 𝑑𝑦 = H 𝑓 𝑥, 𝑦 𝑑𝑥
'! %!
$
𝑦A;+ = 𝑦A + ∫$ 678 𝑓 𝑥, 𝑦 𝑑𝑥 [7]
6
• From [7], we can see that yi+1 can be determined by evaluating the integral term on the
RHS and so computing the flow depth at location i+1
51
25
3/22/23
• From [10], we can see that xi+1 can be determined by evaluating the integral term on the
RHS and so computing the water surface profile
52
+
𝑆0. = ) (𝑆.,A + 𝑆.,A;+ ) [11]
53
26
3/22/23
+
ℎC = ) (𝑆.,A + 𝑆.,A;+ )(𝑥A;+ − 𝑥A ) [12] hL/L = Sf
+
𝑧A;+ + 𝐸A = 𝑧A + 𝐸A;+ + ) (𝑆.,A + 𝑆.,A;+ )(𝑥A;+ − 𝑥A ) [13]
• Recall that
𝑧A;+ = 𝑧A − 𝑆- (𝑥A;+ − 𝑥A ) [14]
54
D6786D6
𝑥A;+ = 𝑥A + 8 [15]
9,6 (9-,6;9-,678)
/
• From [15], the streamwise location (xi+1) of yi+1 can be determined; similarly, xi+2…xi+n can
be determined for yi+2…yi+n in order to obtain the water surface profile over the desired
channel reach
• As previously noted, the step size in both the x (e.g. xi+1 – xi) and y (e.g. yi+1 – yi)
directions should be very small in order to avoid large errors
• Furthermore, it is very important to use proper significant digits in the computations and
exercise care in rounding off values
55
27
3/22/23
• The flow depth has not been computed at all x locations; therefore, if y is required at a
specific location, it will need to be interpolated and the corresponding cross-sectional
details will be estimated, reducing accuracy
56
Example 2. Computing the Water Surface Profile Using the Direct Step Method
Consider a trapezoidal prismatic channel with Manning’s n = 0.025 and So = 0.001.
Compute the water surface profile for a design Q of 30 m3/s if the channel ends in a free
overfall B
1 y
2
• Recall
>$ !/- 8m
𝑄= 𝐴 𝑅@ 𝑆 +/!
?
𝐸BC+ − 𝐸B
𝑥BC+ = 𝑥B +
1
𝑆4 − (𝑆5,B + 𝑆5,BC+ )
2
57
28
3/22/23
Example 2. Computing the Water Surface Profile Using the Direct Step Method
Determining yi
B
• In order to select yi, both yn and yc need to be determined
1 y
𝑘? !/- 2
𝑄= 𝐴 𝑅@ 𝑆 +/!
𝑛
8m
1 !/-
30 m- /s = 𝐴 𝑅@ (0.001)+/!
0.025
• Recall that
• 𝐴 = 𝑦? 𝑏 + 2𝑦?
• 𝑝 = 𝑏 + 2 5𝑦? yn = 1.754 m
,
• 𝑅@ =
E
58
Example 2. Computing the Water Surface Profile Using the Direct Step Method
Determining yc
B
F
• Fr =
*'%
1 y
2
• Setting Fr = 1 and V = Q/A
) ,%
&/( 8m
= ; from which yc = ?
* G #/(
M2
yn
yc
59
29
3/22/23
Example 2. Computing the Water Surface Profile Using the Direct Step Method
Determining yc
B
F
• Fr =
*'%
1 y
2
• Setting Fr = 1 and V = Q/A
) ,%
&/( 8m
= ; from which yc = 1.0298 m
* G #/(
60
Example 2. Computing the Water Surface Profile Using the Direct Step Method
yc
• However, theoretically we could begin at any y
< yn and still arrive at the same solution
61
30
3/22/23
Example 2. Computing the Water Surface Profile Using the Direct Step Method
• We can begin the computations at any location
where the flow depth for the specified
discharge is known B
62
Example 2. Computing the Water Surface Profile Using the Direct Step Method
M2
• Whether we proceed in the positive or yn
negative x direction should make little
difference provided the computational step is
properly selected in the computations yc
63
31
3/22/23
Example 2. Computing the Water Surface Profile Using the Direct Step Method
Direct Step Computation Procedure
3. Calculate Rh,i
64
Example 2. Computing the Water Surface Profile Using the Direct Step Method
Direct Step Computation Procedure
3. Calculate Rh,i
𝐴B 𝑦B 𝑏 + 2𝑦B 10.35938 m!
𝑅@,B = = = = 0.82182 m
𝑝B 𝑏 + 2 5𝑦B 8 m + 2 5(1.0298 m)
65
32
3/22/23
Example 2. Computing the Water Surface Profile Using the Direct Step Method
4. Calculate Vi
5. Calculate Ei
66
Example 2. Computing the Water Surface Profile Using the Direct Step Method
4. Calculate Vi
𝑄 𝑄 30 m- /s
𝑉B = = = = 2.89593 m/s
𝐴B 𝑦B 𝑏 + 2𝑦B 10.35938 m!
5. Calculate Ei
m
𝑉B! (2.89593 )!
𝐸B = 𝑦B + = 1.0298 m + s = 1.45724 m
2𝑔 2𝑔
𝑘? m- 1 ! +
!/- +/!
𝑄= 𝐴B 𝑅@,B 𝑆5 = 30 = 10.35938 m! 0.82182 m - 𝑆5! ; 𝑆5 = 0.00681
𝑛 s 0.025
(1) (2) (3) (4) (5) (6)
Location y (m) A (m2) Rh (m) V (m/s) E (m) Sf
i 1.0298 10.35938 0.82182 2.89593 1.45724 0.00681
67
33
3/22/23
Computing dy/dx
y
Given y and x at location i, yi and xi
1. The value of yi+1 can be determined at yi xi, yi xi+1, yi+1
a prescribed xi+1 yi+1
2. The value of xi+1 can be determined
for a prescribed yi+1
x
xi xi+1
The Direct Step Method
• Since the specific energy E is a function of y and y varies with streamwise distance x, the slope
of the EGL (Sf) is also a function x
• Since we will not know what dx is prior to the computation, the value of Sf must be estimated
using some expression
• Several methods of determining Sf have been investigated, and it has been determined that as
long as dy and dx are sufficiently small, using the following expression for estimating Sf yields
satisfactory results:
+
𝑆0. = ) (𝑆.,A + 𝑆.,A;+ )
68
Example 2. Computing the Water Surface Profile Using the Direct Step Method
Direct Step Computation Procedure
1. Start with yi = yc as previously calculated (yi = 1.0298 m)
2. Calculate Ai for the trapezoidal section
3. Calculate Rh,I
4. Calculate Vi
5. Calculate Ei
6. Calculate Sf,i from Manning’s equation
69
34
3/22/23
Example 2. Computing the Water Surface Profile Using the Direct Step Method
• Recall that the procedure for determining the slope of the EGL requires Sf at locations i
as well as i+1:
+
𝑆5,B = (𝑆5,B + 𝑆5,BC+ ) [11]
!
70
Example 2. Computing the Water Surface Profile Using the Direct Step Method
• Now, steps 1 - 6 are now repeated using yi+1 to determine Ai+1, Rh,i+1, Vi+1, Ei+1 and Sf,i+1
7. Now, we can return to location yi and calculate 𝑆5,B using Eq. [11]
1
𝑆5,B = 𝑆 + 𝑆5,BC+
2 5,B
71
35
3/22/23
Example 2. Computing the Water Surface Profile Using the Direct Step Method
• Now, steps 1 - 6 are now repeated using yi+1 to determine Ai+1, Rh,i+1, Vi+1, Ei+1 and Sf,i+1
7. Now, we can return to location yi and calculate 𝑆5,B using Eq. [11]
1 1
𝑆5,B = 𝑆 + 𝑆5,BC+ = 0.00681 + 0.00658 = 0.00669
2 5,B 2
• ΔE at any i+n cannot be calculated without E at the preceding location (i+n-1), which does
not exist when n = 0 (as it is for location i)
𝐸BC+ − 𝐸B
𝑥BC+ = 𝑥B +
1
𝑆4 − (𝑆5,B + 𝑆5,BC+ )
2
(1) (2) (3) (4) (5) (6) (7)
Location y (m) A (m )2 Rh (m) V (m/s) E (m) Sf 𝑆_5 ΔE Δx ∑Δx
i 1.0298 10.35938 0.82182 2.89593 1.45724 0.00681 0.00669
i+1 1.0398 10.48077 0.82851 2.86239 1.45740 0.00658
72
Example 2. Computing the Water Surface Profile Using the Direct Step Method
• In order to proceed further at yi, we first need to proceed to yi+2
• So we complete steps 1 through 6, using yi+2 (calculated using the same Δy, 0.01 m) to
determine Ai+2, Rh,i+2, Vi+2, Ei+2 and Sf,i+2
7. Now, we can return to i+1 and calculate 𝑆5,BC+ using Eq. [11]:
1
𝑆5,BC+ = 𝑆 + 𝑆5,BC!
2 5,BC+
73
36
3/22/23
Example 2. Computing the Water Surface Profile Using the Direct Step Method
• In order to proceed further at yi, we first need to proceed to yi+2
• So we complete steps 1 through 6, using yi+2 (calculated using the same Δy, 0.01 m) to
determine Ai+2, Rh,i+2, Vi+2, Ei+2 and Sf,i+2
7. Now, we can return to i+1 and calculate 𝑆5,BC+ using Eq. [11]:
1 1
𝑆5,BC+ = 𝑆5,BC+ + 𝑆5,BC! = 0.00658 + 0.00636 = 0.00647
2 2
8. We are now able to calculate ΔEi+1 from 𝐸BC+ − 𝐸B = 1.45740 − 1.45724 = 0.00016
(1) (2) (3) (4) (5) (6) (7) (8)
Location y (m) A (m2) Rh (m) V (m/s) E (m) Sf 𝑆_5 ΔE Δx ∑Δx
i 1.0298 10.35938 0.82182 2.89593 1.45724 0.00681 0.00669
i+1 1.0398 10.48077 0.82851 2.86239 1.45740 0.00658 0.00647 0.00016
i+2 1.0498 10.60256 0.83519 2.82951 1.45786 0.00636
74
Example 2. Computing the Water Surface Profile Using the Direct Step Method
9. Now, we can determine Δxi+1 by rearranging Eq. [15]:
∆𝐸BC+
∆𝑥BC+ = 𝑥BC+ − 𝑥B =
𝑆4 − 𝑆5,BC+
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10)
Location y (m) A (m2) Rh (m) V (m/s) E (m) Sf 𝑆_5 ΔE Δx (m) ∑Δx
i 1.0298 10.35938 0.82182 2.89593 1.45724 0.00681 0.00669
i+1 1.0398 10.48077 0.82851 2.86239 1.45740 0.00658 0.00647 0.00016
i+2 1.0498 10.60256 0.83519 2.82951 1.45786 0.00636
75
37
3/22/23
Example 2. Computing the Water Surface Profile Using the Direct Step Method
9. Now, we can determine Δxi+1 by rearranging Eq. [15]:
∆𝐸BC+ 0.00016
∆𝑥BC+ = 𝑥BC+ − 𝑥B = = = −0.02847 m
𝑆4 − 𝑆5,BC+ 0.001 − 0.00647
• Note: Δx is negative because we are moving in the upstream direction (recall that we
have started at the location of the CDL for an M2 profile, and are moving upstream in
positive y increments, since dy/dx is increasing in the upstream direction)
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10)
Location y (m) A (m2) Rh (m) V (m/s) E (m) Sf 𝑆_5 ΔE Δx (m) ∑Δx
i 1.0298 10.35938 0.82182 2.89593 1.45724 0.00681 0.00669
i+1 1.0398 10.48077 0.82851 2.86239 1.45740 0.00658 0.00647 0.00016 -0.02847
i+2 1.0498 10.60256 0.83519 2.82951 1.45786 0.00636
76
Example 2. Computing the Water Surface Profile Using the Direct Step Method
9. Now, we can determine Δxi+1 by rearranging Eq. [15]:
∆𝐸BC+ 0.00016
∆𝑥BC+ = 𝑥BC+ − 𝑥B = = = −0.02847 m
𝑆4 − 𝑆5,BC+ 0.001 − 0.00647
• Note: Δx is negative because we are moving in the upstream direction (recall that we
have started at the location of the CDL for an M2 profile, and are moving upstream in
positive y increments, since dy/dx is increasing in the upstream direction)
10. Now we can calculate the cumulative value of Δx, which is the quantity which will be
used to plot the water surface profile
• Since we have no preceding value for Δx, ∑Δxi+1 = Δxi+1
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10)
Location y (m) A (m2) Rh (m) V (m/s) E (m) Sf 𝑆_5 ΔE Δx (m) ∑Δx
i 1.0298 10.35938 0.82182 2.89593 1.45724 0.00681 0.00669
i+1 1.0398 10.48077 0.82851 2.86239 1.45740 0.00658 0.00647 0.00016 -0.02847 -0.02847
i+2 1.0498 10.60256 0.83519 2.82951 1.45786 0.00636
77
38
3/22/23
Example 2. Computing the Water Surface Profile Using the Direct Step Method
• Steps 1-10 are now repeated at subsequent i+n locations
• Again, we know that the NDL for an M2 profile is an asymptote of the water surface
profile
• For each y location, we can calculate y/yn and stop calculations when y = 0.99yn
• Finally, we plot ∑Δx vs. y, which gives the water surface profile.
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10)
y/yn Location y (m) A (m2) Rh (m) V (m/s) E (m) Sf 𝑆_5 ΔE Δx (m) ∑Δx
0.587 i 1.0298 10.35938 0.82182 2.89593 1.45724 0.00681 0.00669
0.593 i+1 1.0398 10.48077 0.82851 2.86239 1.45740 0.00658 0.00647 0.00016 -0.02847 -0.02847
0.599 i+2 1.0498 10.60256 0.83519 2.82951 1.45786 0.00636
78
Final solution
79
39
3/22/23
80
• As in the direct step method, in the single step method the unknown depth at a
section is expressed in terms of f(x,y) at a neighboring point where y is known or has
been computed during the previous step
81
40
3/22/23
• In Eq. [16], the subscript i refers to quantities at distance xi, and a prime (') on y indicates
a derivative of y with respect to x
9,69-,6
𝑓(𝑥A , 𝑦A ) = 162/
[17]
+6
345
:,6
• In the above expression, all of the variables on the RHS are known and so 𝑓 𝑥B , 𝑦B (which
is equal to 𝑦BH ) can be computed
82
𝑦;<= = 𝑦; + 𝑓 𝑥; , 𝑦; ∆𝑥 [19]
• We can see that O (Δx)2 is the local truncation error; from Eq. [19], the global error is O (Δx)
and so this method is first-order accurate
83
41
3/22/23
• However, since we don’t know the slope of y at xi+1 since we do not yet know yi+1, this is not
possible using Eq. [19] in its current form
• If we initially predict a value of yi+1 using the Euler method, we may then evaluate the slope of
y, f(yi+1), at xi+1
∗
• We will call the predicted flow depth at xi+1 obtained from Eq. [19] as 𝑦BC+ such that
∗
𝑦;<= = 𝑦; + 𝑦;> ∆𝑥
∗
• Using 𝑦BC+ , we can compute the slope of the solution curve y at x = xi+1
G ∗
𝑦A;+ = 𝑓 𝑥A;+ , 𝑦A;+ [20]
84
=
𝑦;<= = 𝑦; + (𝑦;> + 𝑦;<=
>
)∆𝑥 [21]
?
= ∗
𝑦;<= = 𝑦; + 𝑓 𝑦; + 𝑓 𝑦;<= ∆𝑥 [22a]
?
= ∗
𝑦;<= = 𝑦; + 𝑓 𝑥; , 𝑦; + 𝑓 𝑥;<= , 𝑦;<= ∆𝑥 [22b]
?
• Eq. [22] is called the improved Euler method; by expanding Eq. [22] in Taylor series, the
method is shown to be second-order accurate
• This method is a predictor-corrector method whose solution can be refined by multiple inner
iterations; however, if this is not properly executed, the solution may diverge
85
42
3/22/23
Example 3. Computing the Water Surface Profile Using the Improved Euler
Method
Consider a trapezoidal prismatic channel with Manning’s n = 0.025 and So = 0.001.
Compute the water surface profile for a design Q of 30 m3/s if the channel ends in a drop.
B
• From Example 2
1 y
• yn = 1.754 m 2
• yc = 1.0298 m
8m
for this problem
1. Recall that we are still dealing with an M2 profile, so we will still start with yi ≈ yc;
however, we will choose a slightly higher value for yi in order to avoid an error which
may occur in calculating dy/dx
(1)
xi (m) yi (m)
0 1.0300
86
Example 3. Computing the Water Surface Profile Using the Improved Euler
Method
2. Calculate Ai for the trapezoidal channel using yi
3. Calculate Rh,i
B
4. Calculate Bi
1 y
2
8m
xi (m) yi (m) Ai (m2) Rh,i (m) Bi (m) Fri Vi (m/s) Sf,i (m) f(yi)
0 1.0300
87
43
3/22/23
Example 3. Computing the Water Surface Profile Using the Improved Euler
Method
2. Calculate Ac,i for the trapezoidal channel using yi
3. Calculate Rh,i
B
4. Calculate Bi
5. Calculate Fri 1 y
!
𝐵B 𝑄! 2
Fr =
𝑔𝐴-J,B
8m
2. Calculate Vi = Q/Ai
xi (m) yi (m) Ai (m2) Rh,i (m) Bi (m) Fri Vi (m/s) Sf,i (m) f(yi)
88
Example 3. Computing the Water Surface Profile Using the Improved Euler
Method
7. Calculate Sf,i using Manning’s equation
B
8. Calculate f(yi) from the GVF equation
1 y
𝑑𝑦 𝑆4 − 𝑆5,B 2
= f(yi) =
𝑑𝑥 1 − FrB!
8m
xi (m) yi (m) Ai (m2) Rh,i (m) Bi (m) Fri Vi (m/s) Sf,i (m) f(yi)
89
44
3/22/23
Example 3. Computing the Water Surface Profile Using the Improved Euler
Method
7. Calculate Sf,i using Manning’s equation
𝑑𝑦 𝑆4 − 𝑆5,B
= f(yi) =
𝑑𝑥 1 − FrB!
xi (m) yi (m) Ai (m2) Rh,i (m) Bi (m) Fri Vi (m/s) Sf,i (m) f(yi)
90
Example 3. Computing the Water Surface Profile Using the Improved Euler
Method
∗
9. Calculate 𝑦BC+ from Eq. [ 19] by prescribing Δx
∗
𝑦BC+ = 𝑦B + 𝑓(𝑦B )∆𝑥
• The value of Δx does not need to be held constant throughout the computation process
• It is common practice to begin with smaller intervals and then gradually increase the step
size as the computation proceeds
• We will begin with a small step size of Δx = 0.005 m, such that x at location i+1 = - 0.005
m (recall that we are moving upstream in our computation)
(1), (12) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11)
A*c,i+1 Rh*,i+1 V*i+1
xi (m) yi (m) Ai (m2) Rh,i (m) Bi (m) Fri Vi (m/s) Sf,i (m) f(yi) y*i+1 (m) B*i+1 (m) Fr*i+1 Sf*,i+1 f(y*i+1)
(m2) (m) (m/s)
0 1.0300 10.3618 0.8220 12.1200 0.9997 2.8952 0.0068 -10.9871
91
45
3/22/23
Example 3. Computing the Water Surface Profile Using the Improved Euler
Method
∗
9. Calculate 𝑦BC+ from Eq. [ 19] by prescribing Δx
∗
𝑦BC+ = 𝑦B + 𝑓(𝑦B )∆𝑥
• The value of Δx does not need to be held constant throughout the computation process
• It is common practice to begin with smaller intervals and then gradually increase the step
size as the computation proceeds
• We will begin with a small step size of Δx = 0.005 m, such that x at location i+1 = - 0.005
m (recall that we are moving upstream in our computation)
(1), (12) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11)
A*c,i+1 Rh*,i+1 V*i+1
xi (m) yi (m) Ai (m2) Rh,i (m) Bi (m) Fri Vi (m/s) Sf,i (m) f(yi) y*i+1 (m) B*i+1 (m) Fr*i+1 Sf*,i+1 f(y*i+1)
(m2) (m) (m/s)
0 1.0300 10.3618 0.8220 12.1200 0.9997 2.8952 0.0068 -10.9871
-0.005
92
Example 3. Computing the Water Surface Profile Using the Improved Euler
Method
∗
9. Calculate 𝑦BC+ from Eq. [ 19] by prescribing Δx
∗
𝑦BC+ = 𝑦B + 𝑓(𝑦B )∆𝑥
• The value of Δx does not need to be held constant throughout the computation process
• It is common practice to begin with smaller intervals and then gradually increase the step
size as the computation proceeds
• We will begin with a small step size of Δx = 0.005 m, such that x at location i+1 = - 0.005
m (recall that we are moving upstream in our computation)
(1), (12) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11)
A*c,i+1 Rh*,i+1 V*i+1
xi (m) yi (m) Ai (m2) Rh,i (m) Bi (m) Fri Vi (m/s) Sf,i (m) f(yi) y*i+1 (m) B*i+1 (m) Fr*i+1 Sf*,i+1 f(y*i+1)
(m2) (m) (m/s)
0 1.0300 10.3618 0.8220 12.1200 0.9997 2.8952 0.0068 -10.9871 1.0849
-0.005
93
46
3/22/23
Example 3. Computing the Water Surface Profile Using the Improved Euler
Method
∗
10. Calculate A*i+1, Rh*,i+1, B*i+1, Fr*i+1, Vi+1, and Sf*,i+1 from 𝑦BC+
(1), (12) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11)
A*c,i+1 Rh*,i+1 V*i+1
xi (m) yi (m) Ai (m2) Rh,i (m) Bi (m) Fri Vi (m/s) Sf,i (m) f(yi) y*i+1 (m) B*i+1 (m) Fr*i+1 Sf*,i+1 f(y*i+1)
(m2) (m) (m/s)
0 1.0300 10.3618 0.8220 12.1200 0.9997 2.8952 0.0068 -10.9871
-0.005
94
Example 3. Computing the Water Surface Profile Using the Improved Euler
Method
∗
10. Calculate A*i+1, Rh*,i+1, B*i+1, Fr*i+1, Vi+1, and Sf*,i+1 from 𝑦BC+
11. Calculate f(y*i+1) from GVF equation
𝑑𝑦 𝑆4 − 𝑆 ∗5,BC+
= f(y∗i+1) = ∗!
𝑑𝑥 1 − FrBC+
(1), (12) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11)
A*c,i+1 Rh*,i+1 V*i+1
xi (m) yi (m) Ai (m2) Rh,i (m) Bi (m) Fri Vi (m/s) Sf,i (m) f(yi) y*i+1 (m) B*i+1 (m) Fr*i+1 Sf*,i+1 f(y*i+1)
(m2) (m) (m/s)
0 1.0300 10.3618 0.8220 12.1200 0.9997 2.8952 0.0068 -10.9871 1.0849 11.0337 0.8585 12.3397 0.9180 2.7190 0.0057
-0.005
95
47
3/22/23
Example 3. Computing the Water Surface Profile Using the Improved Euler
Method
∗
10. Calculate A*i+1, Rh*,i+1, B*i+1, Fr*i+1, Vi+1, and Sf*,i+1 from 𝑦BC+
11. Calculate f(y*i+1) from GVF equation
𝑑𝑦 𝑆4 − 𝑆 ∗5,BC+
= f(y∗i+1) = ∗!
𝑑𝑥 1 − FrBC+
12. Calculate yi+1 from Eq. 22a
+ ∗
𝑦BC+ = 𝑦B + 𝑓 𝑦B + 𝑓 𝑦BC+ ∆𝑥
!
(1), (12) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11)
A*c,i+1 Rh*,i+1 V*i+1
xi (m) yi (m) Ai (m2) Rh,i (m) Bi (m) Fri Vi (m/s) Sf,i (m) f(yi) y*i+1 (m) B*i+1 (m) Fr*i+1 Sf*,i+1 f(y*i+1)
(m2) (m) (m/s)
0 1.0300 10.3618 0.8220 12.1200 0.9997 2.8952 0.0068 -10.9871 1.0849 11.0337 0.8585 12.3397 0.9180 2.7190 0.0057 -0.0297
-0.005
96
Example 3. Computing the Water Surface Profile Using the Improved Euler
Method
∗
10. Calculate A*i+1, Rh*,i+1, B*i+1, Fr*i+1, Vi+1, and Sf*,i+1 from 𝑦BC+
11. Calculate f(y*i+1) from GVF equation
𝑑𝑦 𝑆4 − 𝑆 ∗5,BC+
= f(y∗i+1) = ∗!
𝑑𝑥 1 − FrBC+
12. Calculate yi+1 from Eq. 22a
+ ∗
𝑦BC+ = 𝑦B + 𝑓 𝑦B + 𝑓 𝑦BC+ ∆𝑥
!
• Repeat for subsequent steps
• Plot xi vs yi
(1), (12) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11)
A*c,i+1 Rh*,i+1 V*i+1
xi (m) yi (m) Ai (m2) Rh,i (m) Bi (m) Fri Vi (m/s) Sf,i (m) f(yi) y*i+1 (m) B*i+1 (m) Fr*i+1 Sf*,i+1 f(y*i+1)
(m2) (m) (m/s)
0 1.0300 10.3618 0.8220 12.1200 0.9997 2.8952 0.0068 -10.9871 1.0849 11.0337 0.8585 12.3397 0.9180 2.7190 0.0057 -0.0297
-0.005 1.0575
97
48
3/22/23
Tutorial Assignment
• For this week’s practice problem, complete Examples 2 and 3 (e.g. computation of the
water surface profile using both the Direct Step Method and the Improved Euler Method)
• Show all calculations for one iteration of each method, including preliminary
calculations and analysis which precede the computation procedure (yc, yn, classification
of water surface profile, etc.)
• Develop spreadsheets as shown in class for both methods and plot the water surface
profiles
• Plots should be appropriately formatted with axis titles, etc.
98
99
49
3/22/23
Solutions
100
Example 2. Computing the Water Surface Profile Using the Direct Step Method
Determining yi
B
• In order to select yi, both yn and yc need to be determined
1 y
𝑘? !/- 2
𝑄= 𝐴 𝑅 𝑆 +/!
𝑛 J @
8m
1 !/-
30 m- /s = 𝐴 𝑅 (0.001)+/!
0.025 J @
• Recall that
• 𝐴J = 𝑦? 𝑏 + 2𝑦?
• 𝑝 = 𝑏 + 2 5𝑦? yn = 1.754 m
,
• 𝑅@ = %
E
101
50
3/22/23
Example 2. Computing the Water Surface Profile Using the Direct Step Method
Determining yc
F
B
• Fr = *'%
1 y
2
• Setting Fr = 1 and V = Q/A (taking yc= Ac/B for a trapezoidal channel)
&/(
8m
) ,%
= #/( ; from which yc = 1.0298 m
* G
102
Example 2. Computing the Water Surface Profile Using the Direct Step Method
yc
• However, theoretically we could begin at any y
< yn and still arrive at the same solution
103
51
3/22/23
Example 2. Computing the Water Surface Profile Using the Direct Step Method
• We can begin the computations at any location
where the flow depth for the specified
discharge is known B
104
Example 2. Computing the Water Surface Profile Using the Direct Step Method
M2
• Whether we proceed in the positive or yn
negative x direction should make little
difference provided the computational step is
properly selected in the computations yc
105
52
3/22/23
Example 2. Computing the Water Surface Profile Using the Direct Step Method
Direct Step Computation Procedure
3. Calculate Rh,I
106
Example 2. Computing the Water Surface Profile Using the Direct Step Method
4. Calculate Vi
𝑄 𝑄 30 m- /s
𝑉B = = = = 2.89593 m/s
𝐴J,B 𝑦B 𝑏 + 2𝑦B 10.35938 m!
5. Calculate Ei
m
𝑉B! (2.89593 )!
𝐸B = 𝑦B + = 1.0298 m + s = 1.45724 m
2𝑔 2𝑔
𝑘? m- 1 ! +
!/- +/!
𝑄= 𝐴J,B 𝑅@,B 𝑆5 = 30 = 10.35938 m! 0.82182 m - 𝑆5! ; 𝑆5 = 0.00681
𝑛 s 0.025
(1) (2) (3) (4) (5) (6)
Location y (m) Ac (m2) Rh (m) V (m/s) E (m) Sf
i 1.0298 10.35938 0.82182 2.89593 1.45724 0.00681
107
53
3/22/23
Example 2. Computing the Water Surface Profile Using the Direct Step Method
• Recall that the procedure for determining the slope of the EGL requires Sf at locations i
as well as i+1:
+
𝑆5,B = (𝑆5,B + 𝑆5,BC+ ) [11]
!
108
Example 2. Computing the Water Surface Profile Using the Direct Step Method
• Now, steps 1 - 6 are now repeated using yi+1 to determine Ac,i+1, Rh,i+1, Vi+1, Ei+1 and Sf,i+1
7. Now, we can return to location yi and calculate 𝑆5,B using Eq. [11]
1 1
𝑆5,B = 𝑆5,B + 𝑆5,BC+ = 0.00681 + 0.00658 = 0.00669
2 2
• ΔE at any i+n cannot be calculated without E at the preceding location (i+n-1), which does
not exist when n = 0 (as it is for location i)
𝐸BC+ − 𝐸B
𝑥BC+ = 𝑥B +
1
𝑆4 − (𝑆5,B + 𝑆5,BC+ )
2
(1) (2) (3) (4) (5) (6) (7)
Location y (m) Ac (m2) Rh (m) V (m/s) E (m) Sf 𝑆_5 ΔE Δx ∑Δx
i 1.0298 10.35938 0.82182 2.89593 1.45724 0.00681 0.00669
i+1 1.0398 10.48077 0.82851 2.86239 1.45740 0.00658
109
54
3/22/23
Example 2. Computing the Water Surface Profile Using the Direct Step Method
• In order to proceed further at yi, we first need to proceed to yi+2
• So we complete steps 1 through 6, using yi+2 (calculated using the same Δy, 0.01 m) to
determine Ac,i+2, Rh,i+2, Vi+2, Ei+2 and Sf,i+2
7. Now, we can return to i+1 and calculate 𝑆5,BC+ using Eq. [11]:
1 1
𝑆5,BC+ = 𝑆5,BC+ + 𝑆5,BC! = 0.00658 + 0.00636 = 0.00647
2 2
8. We are now able to calculate ΔEi+1 from 𝐸BC+ − 𝐸B = 1.45740 − 1.45724 = 0.00016
(1) (2) (3) (4) (5) (6) (7) (8)
Location y (m) Ac (m2) Rh (m) V (m/s) E (m) Sf 𝑆_5 ΔE Δx ∑Δx
i 1.0298 10.35938 0.82182 2.89593 1.45724 0.00681 0.00669
i+1 1.0398 10.48077 0.82851 2.86239 1.45740 0.00658 0.00647 0.00016
i+2 1.0498 10.60256 0.83519 2.82951 1.45786 0.00636
110
Example 2. Computing the Water Surface Profile Using the Direct Step Method
9. Now, we can determine Δxi+1 by rearranging Eq. [15]:
10. Now we can calculate the cumulative value of Δx, which is the quantity which will be
used to plot the water surface profile
• Since we have no preceding value for Δx, ∑Δxi+1 = Δxi+1
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10)
Location y (m) Ac (m2) Rh (m) V (m/s) E (m) Sf 𝑆_5 ΔE Δx (m) ∑Δx
i 1.0298 10.35938 0.82182 2.89593 1.45724 0.00681 0.00669
i+1 1.0398 10.48077 0.82851 2.86239 1.45740 0.00658 0.00647 0.00016 -0.02847 -0.02847
i+2 1.0498 10.60256 0.83519 2.82951 1.45786 0.00636
111
55
3/22/23
Example 2. Computing the Water Surface Profile Using the Direct Step Method
• Steps 1-10 are now repeated at
subsequent i+n locations
• How do we know when to
truncate the computation?
• Again, we know that the NDL for an
M2 profile is an asymptote of the
water surface profile
• For each y location, we can
calculate y/yn and stop calculations
when y = 0.99yn
• Finally, we plot ∑Δx vs. y, which
gives the water surface profile:
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10)
y/yn Location y (m) Ac (m2) Rh (m) V (m/s) E (m) Sf 𝑆_5 ΔE Δx (m) ∑Δx
0.587 i 1.0298 10.35938 0.82182 2.89593 1.45724 0.00681 0.00669
0.593 i+1 1.0398 10.48077 0.82851 2.86239 1.45740 0.00658 0.00647 0.00016 -0.02847 -0.02847
0.599 i+2 1.0498 10.60256 0.83519 2.82951 1.45786 0.00636 0.00626 0.00046 -0.08773 -0.11620
112
Example 2. Computing the Water Surface Profile Using the Direct Step Method
• Steps 1-10 are now repeated at 2.0
subsequent i+n locations
• How do we know when to 1.5
truncate the computation?
• Again, we know that the NDL for an
y (m)
113
56
3/22/23
Example 3. Computing the Water Surface Profile Using the Improved Euler
Method
Consider a trapezoidal prismatic channel with Manning’s n = 0.025 and So = 0.001.
Compute the water surface profile for a design Q of 30 m3/s.
B
• From Example 2
1 y
• yn = 1.754 m 2
• yc = 1.0298 m
8m
for this problem
1. Recall that we are still dealing with an M2 profile, so we will still start with yi ≈ yc;
however, we will choose a slightly higher value for yi in order to avoid an error which
may occur in calculating dy/dx
(1)
xi (m) yi (m)
0 1.0300
114
Example 3. Computing the Water Surface Profile Using the Improved Euler
Method
2. Calculate Ac,i for the trapezoidal channel using yi
3. Calculate Rh,i
B
4. Calculate Bi
5. Calculate Fri 1 y
6. Calculate Vi = Q/Ai 2
𝑑𝑦 𝑆4 − 𝑆5
= f(yi) =
𝑑𝑥 1 − 𝐹.!
xi (m) yi (m) Ac,i (m2) Rh,i (m) Bi (m) Fri Vi (m/s) Sf,i (m) f(yi)
0 1.0300
115
57
3/22/23
Example 3. Computing the Water Surface Profile Using the Improved Euler
Method
2. Calculate Ac,i for the trapezoidal channel using yi
3. Calculate Rh,i
B
4. Calculate Bi
5. Calculate Fri 1 y
6. Calculate Vi = Q/Ai 2
𝑑𝑦 𝑆4 − 𝑆5
= f(yi) =
𝑑𝑥 1 − 𝐹.!
xi (m) yi (m) Ac,i (m2) Rh,i (m) Bi (m) Fri Vi (m/s) Sf,i (m) f(yi)
116
Example 3. Computing the Water Surface Profile Using the Improved Euler
Method
∗ ∗
9. Calculate 𝑦BC+ from 𝑦BC+ = 𝑦B + 𝑦BH ∆𝑥 = 𝑦B + 𝑓(𝑦B )∆𝑥 by prescribing Δx
∗
10. Calculate A*i+1, Rh*,i+1, B*i+1, Fr*i+1, Vi+1, and Sf*,i+1 from 𝑦BC+
B
11. Calculate f(y*i+1) from GVF equation
12. Calculate yi+1 from Eq. 22a 1 y
+ ∗ 2
𝑦BC+ = 𝑦B + 𝑓 𝑦B + 𝑓 𝑦BC+ ∆𝑥
!
8m
• Repeat until yi begins to decrease (indicating that y has approached the NDL)
• Plot xi vs yi
(1), (12) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11)
A*c,i+1 Rh*,i+1 V*i+1
xi (m) yi (m) Ac,i (m2) Rh,i (m) Bi (m) Fri Vi (m/s) Sf,i (m) f(yi) y*i+1 (m) B*i+1 (m) Fr*i+1 Sf*,i+1 f(y*i+1)
(m2) (m) (m/s)
0 1.0300 10.3618 0.8220 12.1200 0.9997 2.8952 0.0068 -10.9871
1.0575
117
58
3/22/23
Example 3. Computing the Water Surface Profile Using the Improved Euler
Method
∗ ∗
9. Calculate 𝑦BC+ from 𝑦BC+ = 𝑦B + 𝑦BH ∆𝑥 = 𝑦B + 𝑓(𝑦B )∆𝑥 by prescribing Δx
∗
10. Calculate A*i+1, Rh*,i+1, B*i+1, Fr*i+1, Vi+1, and Sf*,i+1 from 𝑦BC+
B
11. Calculate f(y*i+1) from GVF equation
12. Calculate yi+1 from Eq. 22a 1 y
2
+ ∗
𝑦BC+ = 𝑦B + 𝑓 𝑦B + 𝑓 𝑦BC+ ∆𝑥 8m
!
• Repeat until yi begins to decrease (indicating that y has approached the NDL)
• Plot xi vs yi
(1), (12) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11)
A*c,i+1 Rh*,i+1 V*i+1
xi (m) yi (m) Ac,i (m2) Rh,i (m) Bi (m) Fri Vi (m/s) Sf,i (m) f(yi) y*i+1 (m) B*i+1 (m) Fr*i+1 Sf*,i+1 f(y*i+1)
(m2) (m) (m/s)
0 1.0300 10.3618 0.8220 12.1200 0.9997 2.8952 0.0068 -10.9871 1.0849 11.0337 0.8585 12.3397 0.9180 2.7190 0.0057 -0.0297
1.0575
118
Example 3. Computing the Water Surface Profile Using the Improved Euler
Method
1 y
2
8m
(1), (12) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11)
A*c,i+1 Rh*,i+1 V*i+1
xi (m) yi (m) Ac,i (m2) Rh,i (m) Bi (m) Fri Vi (m/s) Sf,i (m) f(yi) y*i+1 (m) B*i+1 (m) F*i+1 Sf*,i+1 f(yi+1)
(m2) (m) (m/s)
0 1.0300 10.3618 0.8220 12.1200 0.9997 2.8952 0.0068 -10.9871 1.0849 11.0337 0.8585 12.3397 0.9180 2.7190 0.0057 -0.0297
-0.005 1.0575 10.6971 0.8403 12.2302 0.9574 2.8045 0.0062 -0.0624 1.0582 10.7048 0.8408 12.2327 0.9565 2.8025 0.0062 -0.0609
-0.01 1.0579 10.7009 0.8405 12.2314 0.9570 2.8035 0.0062 -0.0617 1.0591 10.7160 0.8414 12.2363 0.9551 2.7996 0.0062 -0.0589
119
59
3/22/23
Example 3. Computing the Water Surface Profile Using the Improved Euler
Method
1 y
2
8m
(1), (12) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11)
A*c,i+1 Rh*,i+1 V*i+1
xi (m) yi (m) Ac,i (m2) Rh,i (m) Bi (m) Fri Vi (m/s) Sf,i (m) f(yi) y*i+1 (m) B*i+1 (m) F*i+1 Sf*,i+1 f(yi+1)
(m2) (m) (m/s)
0 1.0300 10.3618 0.8220 12.1200 0.9997 2.8952 0.0068 -10.9871 1.0849 11.0337 0.8585 12.3397 0.9180 2.7190 0.0057 -0.0297
-0.005 1.0575 10.6971 0.8403 12.2302 0.9574 2.8045 0.0062 -0.0624 1.0582 10.7048 0.8408 12.2327 0.9565 2.8025 0.0062 -0.0609
-0.01 1.0579 10.7009 0.8405 12.2314 0.9570 2.8035 0.0062 -0.0617 1.0591 10.7160 0.8414 12.2363 0.9551 2.7996 0.0062 -0.0589
120
A review
121
60
3/22/23
Flow profiles
with various controls
122
61