Skip to main content

Full Saint-Venant explicit scheme numerical (10 m)

Short answer

Applying the Lax explicit scheme to Saint-Venant equations gives depth y=1.9875 m and discharge Q=−197.25 m³/s at (i,n+1). The negative Q arises from friction-gravity imbalance and a time step exceeding the Courant limit.

Using any explicit finite difference scheme for the full Saint-Venant equations, compute discharge and flow depth at grid (i,n+1)(i, n+1) for the following data. Rectangular channel, width =10= 10 m, bed slope =0.0002= 0.0002, Manning's n=0.04n = 0.04, no lateral flow, Δx=1\Delta x = 1 km and Δt=5\Delta t = 5 min. Discharge: Qi−1n=40Q_{i-1}^n = 40 m3^3/s, Qin=38Q_i^n = 38 m3^3/s, Qi+1n=37.5Q_{i+1}^n = 37.5 m3^3/s. Flow depth: yi−1n=1.9y_{i-1}^n = 1.9 m, yin=1.85y_i^n = 1.85 m, yi+1n=2.0y_{i+1}^n = 2.0 m.

A simple explicit scheme is the Lax diffusive scheme: forward in time, central in space, with the old value at ii replaced by the average of its two neighbours. The equations for a rectangular channel are

B∂y∂t+∂Q∂x=0,∂Q∂t+∂∂x(Q2A)+gA∂y∂x−gA(S0−Sf)=0B\frac{\partial y}{\partial t}+\frac{\partial Q}{\partial x}=0,\qquad \frac{\partial Q}{\partial t}+\frac{\partial}{\partial x}\left(\frac{Q^2}{A}\right)+gA\frac{\partial y}{\partial x}-gA(S_0-S_f)=0

Finite difference form (grid (i,n+1)(i,n+1) from (i−1,n),(i,n),(i+1,n)(i-1,n),(i,n),(i+1,n)):

yin+1=yi+1n+yi−1n2−Δt2BΔx(Qi+1n−Qi−1n)y_i^{n+1}=\frac{y_{i+1}^n+y_{i-1}^n}{2}-\frac{\Delta t}{2B\Delta x}\left(Q_{i+1}^n-Q_{i-1}^n\right) Qin+1=Qi+1n+Qi−1n2−Δt2Δx[(Q2)i+1Ai+1−(Q2)i−1Ai−1]−gAiΔt2Δx(yi+1−yi−1)+gAiΔt (S0−Sf,i)Q_i^{n+1}=\frac{Q_{i+1}^n+Q_{i-1}^n}{2}-\frac{\Delta t}{2\Delta x}\left[\frac{(Q^2)_{i+1}}{A_{i+1}}-\frac{(Q^2)_{i-1}}{A_{i-1}}\right]-gA_i\frac{\Delta t}{2\Delta x}\left(y_{i+1}-y_{i-1}\right)+gA_i\Delta t\,(S_0-S_{f,i})

Data

B=10B=10 m, S0=0.0002S_0=0.0002, n=0.04n=0.04, Δx=1000\Delta x=1000 m, Δt=300\Delta t=300 s, so Δt2Δx=0.150\dfrac{\Delta t}{2\Delta x}=0.150.

Step 1: Areas and friction slope

Ai−1=19.00A_{i-1}=19.00, Ai=18.50A_i=18.50, Ai+1=20.00A_{i+1}=20.00 m2^2.

Pi=B+2yi=13.70 m,Ri=AiPi=1.3504 m,Sf,i=n2Qi2Ai2Ri4/3=0.00452P_i=B+2y_i=13.70\ \text{m},\quad R_i=\frac{A_i}{P_i}=1.3504\ \text{m},\quad S_{f,i}=\frac{n^2Q_i^2}{A_i^2R_i^{4/3}}=0.00452

Step 2: Flow depth

yin+1=2.0+1.92−0.01500 (37.5−40)=1.9500−(−0.0375)=1.9875 my_i^{n+1}=\frac{2.0+1.9}{2}-0.01500\,(37.5-40)=1.9500-(-0.0375)=1.9875\ \text{m}

Step 3: Discharge

  • Average term: 37.5+402=38.750\dfrac{37.5+40}{2}=38.750
  • Convective term: Q2A\dfrac{Q^2}{A} at i+1i+1 is 70.312, at i−1i-1 is 84.211; difference =−13.8980=-13.8980; term =−0.150(−13.8980)=2.085=-0.150(-13.8980)=2.085
  • Pressure term: −gAiΔt2Δx(yi+1−yi−1)=−9.81(18.50)(0.150)(0.10)=−2.722-gA_i\dfrac{\Delta t}{2\Delta x}(y_{i+1}-y_{i-1})=-9.81(18.50)(0.150)(0.10)=-2.722
  • Gravity and friction: gAiΔt(S0−Sf)=9.81(18.50)(300)(0.0002−0.00452)=−235.358gA_i\Delta t(S_0-S_f)=9.81(18.50)(300)(0.0002-0.00452)=-235.358
Qin+1=38.750+(2.085)+(−2.722)+(−235.358)=−197.25 m3/sQ_i^{n+1}=38.750+(2.085)+(-2.722)+(-235.358)=-197.25\ \text{m}^3/\text{s}

Answer: yin+1=1.9875y_i^{n+1}=1.9875 m and Qin+1=−197.25Q_i^{n+1}=-197.25 m3^3/s.

Remark: the huge change in QQ (even to a negative value) comes from the friction term: Sf=0.00452S_f=0.00452 is about 23 times S0S_0, so the given flow is far from uniform, and this imbalance is multiplied by a long time step (−235.4-235.4). Also, Δt=300\Delta t=300 s gives a Courant number (V+gy)Δt/Δx≈1.9>1(V+\sqrt{gy})\Delta t/\Delta x\approx1.9>1, so the explicit scheme is outside its stability limit; a time step below about 158 s would be needed to continue the simulation. A negative discharge has no physical meaning here; it is simply the one-step result of the scheme for these data.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Computational Techniques in Civil Engineering chapter 5 questions →