Finite Difference Solutions to the ADE. Simplest form of the ADE Even Simpler form Plug Flow Plug...

21
Finite Difference Solutions to the ADE

description

Effect of Numerical Errors (overshoot) (MT3DMS manual)

Transcript of Finite Difference Solutions to the ADE. Simplest form of the ADE Even Simpler form Plug Flow Plug...

Page 1: Finite Difference Solutions to the ADE. Simplest form of the ADE Even Simpler form Plug Flow Plug Source Flow Equation.

Finite Difference Solutionsto the ADE

Page 2: Finite Difference Solutions to the ADE. Simplest form of the ADE Even Simpler form Plug Flow Plug Source Flow Equation.

tc

xcv

xcD

2

2Simplest form of the ADE

tc

xcv

Even Simpler form

Plug FlowPlug Source

Flow EquationthS

xhT

2

2

Page 3: Finite Difference Solutions to the ADE. Simplest form of the ADE Even Simpler form Plug Flow Plug Source Flow Equation.

Effect ofNumerical Errors

(overshoot)

(MT3DMS manual)

Page 4: Finite Difference Solutions to the ADE. Simplest form of the ADE Even Simpler form Plug Flow Plug Source Flow Equation.

tc

xcv

(See Zheng & Bennett, p. 174-181)

vj-1 j j+1

x

x

tcc

xcc

vnj

nj

nj

nj

11 )(Explicit approximation

with upstream weighting

Page 5: Finite Difference Solutions to the ADE. Simplest form of the ADE Even Simpler form Plug Flow Plug Source Flow Equation.

tc

xcv

tcc

xcc

vnj

nj

nj

nj

11 )(Explicit;

Upstream weighting

(See Zheng & Bennett, p. 174-181)

vj-1 j j+1

x

x

Page 6: Finite Difference Solutions to the ADE. Simplest form of the ADE Even Simpler form Plug Flow Plug Source Flow Equation.

Example from Zheng &Bennett

v = 100 cm/h

l = 100 cm

C1= 100 mg/l

C2= 10 mg/l

With no dispersion,breakthrough occursat t = l/v = 1 hour

Page 7: Finite Difference Solutions to the ADE. Simplest form of the ADE Even Simpler form Plug Flow Plug Source Flow Equation.

nj

nj

nj

nj ccc

ltvc

)( 1

1

tcc

xcc

vnj

nj

nj

nj

11 )(

v = 100 cm/hrl = 100 cmC1= 100 mg/lC2= 10 mg/lt = 0.1 hr

Explicit approximation with upstream weighting

Page 8: Finite Difference Solutions to the ADE. Simplest form of the ADE Even Simpler form Plug Flow Plug Source Flow Equation.

tcc

xcc

vnj

nj

nj

nj

111

11 )

2(

Implicit;central differences

tcc

xcc

vnj

nj

nj

nj

1111 )(

tcc

xcc

vnj

nj

nj

nj

111

1

)(

Implicit;upstream weighting

Implicit Approximations

Page 9: Finite Difference Solutions to the ADE. Simplest form of the ADE Even Simpler form Plug Flow Plug Source Flow Equation.
Page 10: Finite Difference Solutions to the ADE. Simplest form of the ADE Even Simpler form Plug Flow Plug Source Flow Equation.

= Finite Element Method

Page 11: Finite Difference Solutions to the ADE. Simplest form of the ADE Even Simpler form Plug Flow Plug Source Flow Equation.

tc

xcv

xcD

2

2

Governing Equationfor Ogata and Banks solution

Page 12: Finite Difference Solutions to the ADE. Simplest form of the ADE Even Simpler form Plug Flow Plug Source Flow Equation.

j-1 j j+1

x

x

j-1/2 j+1/2

Central difference approximation

Page 13: Finite Difference Solutions to the ADE. Simplest form of the ADE Even Simpler form Plug Flow Plug Source Flow Equation.

tc

xcv

xcD

2

2Governing Equationfor Ogata and Banks solution

tcc

xcc

vx

cccD

nj

nj

nj

nj

nj

nj

nj

11

211 )()

)(

2(

Finite difference formula:explicit with upstream weighting, assuming v >0

)()2()( 1112

1 nj

nj

nj

nj

nj

nj

nj cc

xtvccc

xtDcc

Solve for cj n+1

Page 14: Finite Difference Solutions to the ADE. Simplest form of the ADE Even Simpler form Plug Flow Plug Source Flow Equation.

21

)( 2 xtD

1xtv

1)(

22

xtv

xtD

Stability Criterion for Explicit Approximation

For dispersion alone

For advection alone(Courant number)

For both

Page 15: Finite Difference Solutions to the ADE. Simplest form of the ADE Even Simpler form Plug Flow Plug Source Flow Equation.

Stability Constraints for the 1D Explicit Solution(Z&B, equations 7.15, 7.16, 7.36, 7.40)

Courant NumberxtvCr

Cr < 1

1)(

22

xtv

xtD

Stability Criterion

Also need to minimize numerical dispersion.

Page 16: Finite Difference Solutions to the ADE. Simplest form of the ADE Even Simpler form Plug Flow Plug Source Flow Equation.

Numerical Dispersion controlled by theCourant Number and the Peclet Number

for all numerical solutions (both explicit and implicit approximations)

Courant NumberxtvCr

Cr < 1

Peclet Numberx

DxvPe

Controlsnumerical dispersion& oscillation, see Fig.7.5

2Pe

Page 17: Finite Difference Solutions to the ADE. Simplest form of the ADE Even Simpler form Plug Flow Plug Source Flow Equation.

Co

Boundary Conditions

a “free massoutflow” boundary(Z&B, p. 285)

SpecifiedconcentrationboundaryCb= Co Cb= Cj

j j+1j-1 j j+1j-1

Page 18: Finite Difference Solutions to the ADE. Simplest form of the ADE Even Simpler form Plug Flow Plug Source Flow Equation.

Spreadsheet solution(on course homepage)

Co a “free massoutflow” boundary

SpecifiedconcentrationboundaryCb= Co

Cb= Cj

tc

xcv

xcD

2

2

Page 19: Finite Difference Solutions to the ADE. Simplest form of the ADE Even Simpler form Plug Flow Plug Source Flow Equation.

We want to write a general formof the finite difference equation allowing foreither upstream weighting (v either + or –) or central differences.

Page 20: Finite Difference Solutions to the ADE. Simplest form of the ADE Even Simpler form Plug Flow Plug Source Flow Equation.

j-1 j j+1

x

x

j-1/2 j+1/2

Page 21: Finite Difference Solutions to the ADE. Simplest form of the ADE Even Simpler form Plug Flow Plug Source Flow Equation.

Upstream weighting:

In general:

jjj ccc 12/1 1(

See equations7.11 and 7.17 inZheng & Bennett