Direct Numerical Simulations of Multiphase Flows - PowerPoint PPT Presentation

1 / 47
About This Presentation
Title:

Direct Numerical Simulations of Multiphase Flows

Description:

Explicit, implicit, Crank-Nicolson. Accuracy, stability. Various schemes ... Approximate Factorization of Crank-Nicolson. Outline. Solution Methods for ... – PowerPoint PPT presentation

Number of Views:467
Avg rating:3.0/5.0
Slides: 48
Provided by: grtartry
Category:

less

Transcript and Presenter's Notes

Title: Direct Numerical Simulations of Multiphase Flows


1
Numerical Methods for Parabolic Equations
Instructor Hong G. Im University of Michigan
Fall 2005
2
Outline
Solution Methods for Parabolic Equations
  • One-Dimensional Problems
  • Explicit, implicit, Crank-Nicolson
  • Accuracy, stability
  • Various schemes
  • Keller Box method and block tridiagonal system
  • Multi-Dimensional Problems
  • Alternating Direction Implicit (ADI)
  • Approximate Factorization of Crank-Nicolson

3
Numerical Methods for One-Dimensional Heat
Equations
4
In this lecture, we consider a model equation
which is a parabolic equation requiring
Initial Condition
and
Boundary Condition (Dirichlet)
or
Boundary Condition (Neumann)
5
Explicit Method FTCS - 1
Explicit FTCS
n1
n
j?1 j j1
6
Explicit Method FTCS - 2
Modified Equation
where
- Accuracy
- If then
- No odd derivatives dissipative
7
Explicit Method FTCS - 3
Stability von Neumann Analysis
(Recall Lecture 2, p. 60)
Fourier Condition
8
Explicit Method FTCS - 4
Domain of Dependence for Explicit Scheme
t
P
Boundary effect is not felt at P for many time
steps This may result in unphysical
solution behavior
?t
h
BC
BC
x
Initial Data
9
Implicit Method - 1
Implicit Method Laasonen (1949)
Tri-diagonal matrix system
n1
n
j?1 j j1
10
Implicit Method - 2
Modified Equation
- The sign suggests that implicit method may
be less accurate than a carefully implemented
explicit method.
Amplification Factor (von Neumann analysis)
Unconditionally stable
11
Crank-Nicolson - 1
Crank-Nicolson Method (1947)
Tri-diagonal matrix system
n1
n
j?1 j j1
12
Crank-Nicolson - 2
Modified Equation
- Second-order accuracy
Amplification Factor (von Neumann analysis)
Unconditionally stable
13
Combined Method A - 1
Generalization
n1
n
j?1 j j1
14
Combined Method A - 2
Modified Equation
Other Special Cases (for further accuracy
improvement)
(a) If
(b) If and
15
Combined Method A - 3
Stability Property
? unconditionally stable
? stable only if
16
Combined Method B - 1
Generalized Three-Time-Level Implicit
Scheme Richtmyer and Morton (1967)
j?1 j j1
n1
n
n?1
17
Combined Method B - 2
Modified Equation
Special Cases
(a) If
(b) If
18
Richardson Method
Richardson Method A Case of Failure
Similar to Leapfrog
but unconditionally unstable!
n1
n
n?1
j?1 j j1
19
DuFort-Frankel - 1
The Richardson method can be made stable by
splitting by time average
n1
n
n?1
j?1 j j1
20
DuFort-Frankel - 2
Modified Equation (Recall Homework 1)
Conditionally consistent
Amplification factor
Unconditionally stable
21
Parabolic Equation - Summary
22
Parabolic Equation - Summary
23
Keller Box - 1
The Keller Box Method (1970)
- Implicit with
Basic Concept
Define
yielding
24
Keller Box - 2
In discretized form
n1
?tn1
hj
n
j?1 j
n1
where
n
j?1 j
25
Keller Box - 3
Substituting
or
26
Keller Box - 4
Adding boundary conditions, e.g.
27
Keller Box - 5
In Matrix Form
Block Tridiagonal Matrix ? Appendix, Linpack
28
Keller Box - 6
Modified Keller Box Method Express in terms
of
Starting with original Keller box method
(a)
(b)
Eliminating from (b) using (a)
29
Keller Box - 7
Further elimination of yields
(Tannehill, p. 136)
Tridiagonal Matrix ? Thomas Algorithm
30
Keller Box - 8
Notes on Keller Box Method
  • Second-order accurate in time and space
  • Accuracy is preserved for nonuniform grids
  • More operations per timestep compared to
  • Crank-Nicolson

31
Numerical Methods for Multi-Dimensional Heat
Equations
32
Explicit Method - 1
Consider a 2-D heat equation
Applying forward Euler scheme
If
33
Explicit Method - 2
In matrix form
34
Explicit Method - 3
Von Neumann Analysis
Worst case
35
Explicit Method - 4
Stability Condition for Heat Equation
(2-D)
(3-D)
(1-D)
Explicit method for multi-dimensional heat
equation is not desirable.
36
Crank-Nicolson
Crank-Nicolson Method for 2-D Heat Equation
If
Too expensive!!
37
ADI - 1
A Clever Remedy Alternating Direction Implicit
(ADI)
Fractional Step
Step 1
Step 2
Combining the two becomes equivalent to
38
ADI - 2
Computational Molecules for ADI Method
n1
n1/2
n
j1
j
i?1
i
j?1
i1
39
ADI - 3
ADI Method is accurate
Stability Analysis
Similarly,
40
ADI - 4
Combining
Unconditionally stable!
Unfortunately, a 3-D version does not have the
same desirable stability properties. ?
Conditionally stable and
41
ADI - 5
Advantages
  • Stability limits of 1-D case apply.
  • Different ?t can be used in x and y directions.
  • 1. Cannot be directly extended to 3-D problems.
  • ? Approximate factorization

Limitations
42
Approximate Factorization - 1
Define
The Crank-Nicolson for heat equation becomes
which can be rewritten as
43
Approximate Factorization - 2
Factoring each side
or
44
Approximate Factorization - 3
Final factored form of the discrete equation
at an accuracy of
Note that the ADI method can be written as
which is equivalent to factorized Crank-Nicolson
45
Approximate Factorization - 4
Two-step algorithm
can be written into two steps
(Step 1)
(Step 2)
each of which can be solved by TDMA (Thomas
algorithm).
46
Approximate Factorization - 5
Note Boundary condition for is needed at
This can be determined from
For example, at
Similarly, at
47
Approximate Factorization - 6
Generalized 3-D Algorithm unconditionally
stable,
where
(Step 1)
(Step 2)
(Step 3)
Write a Comment
User Comments (0)
About PowerShow.com