Professional Documents
Culture Documents
Examples3 PDF
Examples3 PDF
061
Examples for home preparation
∂T ∂T
+u =0 (1)
∂t ∂x
which we discretize with Leapfrog method:
Tjn+1 − Tjn−1 n
Tj+1 n
− Tj−1
= −u (2)
2∆t 2∆x
(a) Determine the order of accuracy of the scheme in time and space
(b) Investigate the stability of this scheme using von Neumann analysis. Provide
the conditions of stability if relevant.
Tjn+1 − 12 (Tj+1
n n
+ Tj−1 ) n
Tj+1 n
− Tj−1
= −u (3)
∆t 2∆x
Show that (3) is equivalent to stabilizing forward-time central-space (FCTS) method
by adding an artificial diffusion to the original equation:
∂T ∂T (∆x)2 ∂ 2 u
+u = (4)
∂t ∂x 2∆t ∂x2
Hint: Compute the error of the approximation unj ≈ 21 (unj+1 + unj−1 )
~ = Au~n
un+1 (5)
1
Exercise 3 322.061: Fundamentals of Numerical Thermo-Fluid Dynamics
T1n+1 = T1n at x1 = 0
(x−0.5)2
T (x, t0 = 0) = e− 0.08 , (6)
compute the solution at t = 0.2. Then show that one can solve equation (1) with the
method of characteristics to obtain the exact solution
(x−ct−0.5)2
T (x, t) = e− 0.08 (7)
and compare your numerical result with this analytical solution. Explain your ob-
servations.
with any scheme from the table 6.18 of the lecture Skriptum.
(a) How many initial and boundary conditions do we need such that the problem
has a unique solution?
(b) Implement the discretization in MatLab, using initial and boundary conditions
of your choice
(c) Vary ∆x and ∆t to verify the stability boundaries of the scheme.