Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1.1 Overview
4. Interpretation
1
1.2 User's perspective
1.4 FV Method
2
1.5 FV for transport equation
δx Α
w e
W P E
These two terms are now being evaluated on the boundary face between the
cells. However we do not know the value of the variables on w and e. Need to
interpolate to get these values.
Upwind dierencing
(uq)w = (uq)W ; (uq)e = (uq)P
3
Central dierencing
(uq)W + (uq)P
(uq)w =
2
Diusion can be treated similarly
Discretised equations :
d
@q
@q
(qV ) + (uqA)e (uqA)w = A A
dt @x e @x w
Explicit scheme :
+1 =
ut
(qi+1 j
1)
j j
qi qi qi
2x
t
+ (qi+1 2qi + qi 1 )j
x2
Write
ut t
C = ; D =
x x2
4
D relates to the diusion.
A rule for advancing the values of q through one timestep, which could be
written into a spreadsheet.
Implicit scheme : write as a matrix equation :
0. 10 . 1 0 . 1
.. .. ..
B
B C
C B
B +1 C B C
qi 1 C B qi 1 C
j j
B D U 0 C B C B C
B
B C
C B
B qi C
j +1
=B qi C
j
+1 C Bqj C
C B
L D U
B
@ 0 L D AB
C @qij+1 A @ i+1 C A
... .. ..
. .
Inverting this matrix provides the solution without the stability problems. (al-
though the Courant number is still worth calculating if there are problems).