Professional Documents
Culture Documents
Yiqing GUAN
∂x ∂x ∂y ∂y
∂ ∂ ∂ ∂C ∂ ∂C
(hUC) + (hVC) = (hK x ) + (hK y )
∂x ∂y ∂x ∂x ∂y ∂y
Y. GUAN
Governing Equation
• 2D DA mixing equation in the non-conservative form
∂C ∂C ∂C ∂ 2C ∂ 2C
+U +V = Kx 2 + Ky 2 ± S
∂t ∂x ∂y ∂x ∂y
Y. GUAN
Governing Equation
• Cross-section averaging 2D equation
• 1D mixing equation – 1D longitudinal equation
∂AC ∂ ∂ ∂C
+ (AUC) = (AK x )
∂t ∂x ∂x ∂x
∂ ∂ ∂C
(AUC) = (AK x )
∂x ∂x ∂x
• 1D mixing equation with source/sink term
∂ ∂ ∂C
(AUC) = (AK x ) ±S
∂x ∂x ∂x
Y. Guan
Governing equation
• 2D depth-averaged ADE in the orthogonal curvilinear
coordinate system or nature system (Harden and Shen, 1979;
Krishnappan and Lau, 1980; Guan, 2003):
!C U !C V !C 1 ! hy !C 1 ! hx !C
+ + = ( hK x )+ ( hK y ) + S
!t h x !x h y !y hh x h y !x h x !x hh x h y !z h y !y
Y. Guan
Stream tube model
• 2D ADE based on the stream tube method
!C U !C 1 ! hy !C U 1 ! !C
+ = ( hK x )+ (h h 2
UK " ) + hS
!t h x !x hh x h y !x h x !x h x Q !"
2 x
!"
Y. Guan
Numerical methods
Y. Guan
Numerical method
• Operator splitting method is commonly used in solving ADE:
• 1D advection equation:
!C U !C
+ =0
!t h x !x
• 1D dispersion equations:
!C 1 ! hy !C !C U 1 ! !C
= ( hK x ) = (h h 2
UK )
!t hh x h y !x h x !x !t h x Q !"
2 x "
!"
• 1D reaction equation:
!C
= "K1C + K 0
!t
Y. Guan
Numerical method
FDM
FEM
FVM
Hybrid
1 ∂φ 1 ∂ 2 φ 2 1 ∂ 3φ 3
φ(x i + Δx) = φ(x i ) + Δx + Δx + Δx + ...
1! ∂x 2! ∂x 2
3! ∂x 3
1 ∂φ 1 ∂ 2φ 1 ∂ 3
φ
φ(x i − Δx) = φ(x i ) + (−Δx) + ( −Δx) 2
+ ( −Δx) 3
+ ...
1! ∂x 2! ∂x 2
3! ∂x 3
2 3
Δx 1 ∂φ Δx 1 ∂ 2φ ⎛ Δx ⎞ 1 ∂ 3φ ⎛ Δx ⎞
φ ( xi + ) = φ ( xi ) + + 2 ⎜ ⎟ + 3 ⎜ ⎟ + ...
2 1! ∂x 2 2! ∂x ⎝ 2 ⎠ 3! ∂x ⎝ 2 ⎠
2 3
Δx 1 ∂φ Δx 1 ∂ φ ⎛ Δx ⎞ 1 ∂ φ ⎛ Δ x ⎞
2 3
φ ( xi − ) = φ ( xi ) + (− ) + 2 ⎜
− ⎟ + 3 ⎜
− ⎟ + ...
2 1! ∂x 2 2! ∂x ⎝ 2 ⎠ 3! ∂x ⎝ 2 ⎠
Y. Guan
Flux form
first order: φi +1/2 = φi
1 ( −φi −1 + φi ) Δx
2’nd order: φi +1/2 = φi + + 0 = ( −φi −1 + 3φi ) / 2
1! Δx 2
1 ( −φi + φi +1 ) Δx
φi +1/2 = φi + + 0 = (φi + φi +1 ) / 2
1! Δx 2
⎛ − φi −1 + φi +1 ⎞ ⎛ φi −1 − 2φi + φi +1 ⎞
3’rd order: φi +1/ 2 = φi + ⎜ ⎟+⎜ ⎟
⎝ 2 ⎠ ⎝ 8 ⎠
Y. Guan
Numerical method
• Finite difference method is employed to solve ADE:
• 1D advection dispersion equations: ∂C ∂C ∂ 2C
+U = Kx
∂t ∂x ∂ x2
n +1 U Δt n K x Δt n
Ci = Ci − n
(Ci +1 − Ci ) +
n
(Ci +1 − 2Ci + Ci −1 )
n n
Δx (Δx) 2
α α 2
Cin +1 = Cin − (Cin+1 − Cin−1 ) + (Cin+1 − 2Cin + Cin−1 ) + β(Cin+1 − 2Cin + Cin−1 )
2 2
Y. Guan
Solution of advection
• Solving 1D advection equation
C =C
n
r
n
i
cin +1 − cin −1 1
=− (−cin+ 2 + 8cin+1 − 8cin−1 + cin−2 )
2Δt 6Δx
• The 2nd-order leap-frog method (second-order accuracy in space
and time ) is
cin +1 − cin −1 1
=− (cin+1 − cin−1 )
2Δt 2Δx
Y. GUAN Solution of advection equation
• To discretize C in time and space involves a clever use of
the Taylor expansion
∂C(x, t) Δt 2 ∂ 2 C(x, t)
C(x, t + Δt) = C(x, t) + Δt + + O( Δt 3
)
∂t 2! ∂t 2
∂ 2C U 2 ∂ 2C U 2 1
= ≈ (Ci +1 − 2Ci + Ci −1 )
∂t 2
h x ∂x 2
h x Δx 2
∂C ∂2C
• These two expressions for and can be substituted
∂t ∂t 2
α α 2
Cin +1 = Cin − (Cin+1 − Cin−1 ) + (Cin+1 − 2Cin + Cin−1 )
2 2
n +1
j ! Ci, j
Ci,n+1 n
U 1 j+1 ! C i, j
Ci,n+1 C ni,+1 n +1
j ! C i, j!1
=( 2
) [(h h UK # ) i, j+1/2 ) ! (h x h UK # ) i, j!1/2
2
)]
"t h x Q2 i, j x "#2 "#2
n !k1"t
C n+1
i,j = C i, je
Y. Guan
Stability conditions
C(x,0) = 10,
for 5!x < x < 15!x
"x
C(x,0) = 10sin 2 ( ),
20!x
for 40!x < x < 60!x
Y. Guan
Dispersion results
Y. Guan
Dispersion results
Y. Guan
Dispersion results
Y. Guan
Simulation of dispersion in open channels
Thanks!
1、1D problems:
C(x, 0) = 10
for 5Δx < x < 15Δx
πx
C(x, 0) = 10sin (
2
)
20Δx
for 40Δx < x < 60Δx
Y. GUAN Solution of advection dispersion
equation
α n α2 n
C = C − (Ci +1 − Ci −1 ) + (Ci +1 − 2Cin + Cin−1 ) + β (Cin+1 − 2Cin + Cin−1 )
i
n +1
i
n n
2 2
U Δt K Δt
α= , β= x 2
Δx (Δx)