explicit approximation

20
t h h T S x h h h n i n i n i n i n i 1 2 1 1 ) ( 2 Explicit Approximation t h T S x h 2 2 t h h T S x h h h n i n i i i i 1 2 1 1 ) ( 2

Upload: kirk-page

Post on 30-Dec-2015

42 views

Category:

Documents


0 download

DESCRIPTION

Explicit Approximation. Explicit Solution. Eqn. 4.11 (W&A). Everything on the RHS of the equation is known. Solve explicitly for ; no iteration is needed. Explicit approximations are unstable unless small time steps are used. Problems with explicit solution: - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Explicit Approximation

t

hh

T

S

x

hhh ni

ni

ni

ni

ni

1

211

)(

2

Explicit Approximation

t

h

T

S

x

h

2

2

t

hh

T

S

x

hhh ni

niiii

1

211

)(

2

Page 2: Explicit Approximation

t

hh

T

S

x

hhh ni

ni

ni

ni

ni

1

211 2

Explicit Solution

))(

2(

2111

x

hhh

S

tThh

ni

ni

nin

ini

Eqn. 4.11(W&A)

Everything on the RHS of the equation is known.Solve explicitly for ; no iteration is needed.1n

ih

Explicit approximations are unstable unless small time steps are used.

Page 3: Explicit Approximation

Problems with explicit solution:1. Requires small time step2. Unnatural propagation of boundary effect3. Large mass balance error for some time steps suggests t = 5 minutes is too large.

Page 4: Explicit Approximation

211

2

11

111

)(

21(

)(

2

x

hhh

x

hhh ni

ni

ni

ni

ni

ni

2

2

x

h

where = 1 for fully implicit = 0.5 for Crank-Nicolson = 0 for explicit

In general:

Page 5: Explicit Approximation

t

hh

T

S

x

hhh ni

ni

ni

ni

ni

1

2

11

111

)(

2

Implicit Approximation

t

h

T

S

x

h

2

2

t

hh

T

S

x

hhh ni

niiii

1

211 2

Page 6: Explicit Approximation

t

hh

T

S

x

hhh ni

ni

ni

ni

ni

1

2

11

111 2

Solve for 1nih and use Gauss-Seidel iteration.

11)( mnih },)(,){( 1

111

1ni

mni

mni hhhfunction

Implicit Solution

Page 7: Explicit Approximation

tIterationplanes

n

n+1

m+2

m+1

m+3

Page 8: Explicit Approximation

Implicit Solution

Page 9: Explicit Approximation

t = 5

Note: at t=5 min, the boundary effect is propagatedpast the first node near the boundary.

Page 10: Explicit Approximation

Implicit solution

Explicit solution

Computational molecules

Page 11: Explicit Approximation

t = 10

Compare with matrix solution givenin directions for Problem Set 3.

Page 12: Explicit Approximation

t = 5

Note: at t=5 min, the boundary effect is propagatedpast the first node near the boundary.

Page 13: Explicit Approximation

t = 1

Page 14: Explicit Approximation

t = 0.5

Page 15: Explicit Approximation

t Implicit

Solution

10. 14.09

5.0 13.89

1.0 13.68

0.5 13.65

0.1 13.62

t = 10 minutes

t Implicit

Solution

5.0 14.66

1.0 14.44

0.5 14.41

0.1 14.38

0.01 14.37

t = 5 minutes

Sensitivity to time step at x = 90 m

Explicit

solution

13.50

14.28

14.33

14.36

14.36

Explicit

solution

--

13.50

13.56

13.59

13.61

Page 16: Explicit Approximation

Note small water balance errort = 5

Page 17: Explicit Approximation

Use of a time step multiplier

Most transient problems will “shock” the system atthe beginning of the simulation. The shock could be adrop in water level or the start of pumping, for example.

The system will respond rapidly to the “shock” and tocapture this rapid response it is necessary to use smalltime steps.

Such small time steps are not necessary later in thesimulation. Hence, a time step multiplier increasesthe size of the time step as the solution progresses.

Page 18: Explicit Approximation

tnew = told x MULT

where MULT is the time step multiplier,e.g., 1.2

Use of a time step multiplier

Page 19: Explicit Approximation

Could also solve the implicitfinite difference equation using SOR iteration.

])()[( )()( 111111 mni

mni

mni

mni hhhh

Gauss-Seidel value

Page 20: Explicit Approximation

Another option for solving the implicit finite difference eqn.is a “direct solution” using matrix methods. All known terms are on the RHS; all unknown terms are on the LHS.

ni

ni

ni

ni

ni hhhhh

xS

tT

11

111

12]2[

)(

t

hh

T

S

x

hhh ni

ni

ni

ni

ni

1

2

11

111 2

ni

ni

ni

ni h

tT

xShh

tT

xSh

21

11

21

1)(

))(

2(

ni

ni

ni

ni

ni h

tT

xSh

tT

xShhh

21

21

111

1)()(

]2[

Solve this equation using matrix methods. See W&A, p. 95