




































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This lecture slide is part of course Differential Equations by Dr. Madhu Raja at Institute of Mathematics and Applications. Its main points are: Numerical, Methods, Differential, Equations, Partial, Mass, Conservation, Derivation, Conservation, Law
Typology: Slides
1 / 44
This page cannot be seen from the preview
Don't miss anything!





































inside the section and is traveling with velocity u (which is a function of space and time). For the moment we will assume that u is positive (i.e. the fluid is flowing in the direction of positive x)
b
a
d x t dx u b t b t u a t a t dt
^ ^
b
a
u b
d x t dx t b u a t t d
t t
^ ^ a
The time rate of change of total mass in the section of pipe [a,b]
The flux out of the section at the right end of the section of pipe per unit time
The flux into the section at the left end of the section of pipe per unit time
is continuous and noting that this relation holds for
all choices of a,b then we may deduce:
,^ (^) ,^ ,^ ^0
b
a
x t u x t x t dx t x
x t ,^^ (^) u x t ,^^ x t ,^ ^0 t x
u
t x
the change of variables:
u x t , (^) u
u 0 t x
where:
equation is the way that the profile of the
solution does not change shape but it does shift
in the positive x direction with constant velocity
0 t
0
0
x t , x
x ut
0 x (^) : x t , (^0)
characteristics of the equation.
back down to t=0 and we will find the value of the density which applies at all points on the dashed line
x
t
Slope =
1
u
x ut const
Let’s consider the advection equation:
Next we take a finite portion of the real line from
x 1 to xN divided into N-1 equal length sections
constant value
b
a
d x t dx u b t u a t dt
^ ^
x 1 xN
1,..., 1 i
i N
dx
In the n’th section the density will be approximated by the
constant:
x 1 xN
n
as time increases.
t
Slope =
1
u
n n
1 (^11)
n n n i i i
dt dt u u dx dx
1
1
n n i i (^) n n i i
dx u u dt
simplify
dt u dx
1 (^11)
n n n
Note we must supply a value for the left most average at each time step: 0
n
approximate the advection equation.
good at approximating the true PDE the discrete scheme is.
solution to the PDE at time T=n*dt is denoted by
1 1
1
1
1
1 1 , ,
where q satisfies:
, , ,
i i
i i
i
i
x x n i i i (^) x x
x
i i i x
q q x ndt q x ndt x x dx
d d q x t dx dxq uq x t uq x t dt dt
and the numerically obtained solution at some time T=n*dt.
related in a fixed manner (i.e. dt = Cdx for some C, independent of dx).
the scheme is said to be of order s.
, n
n n n i i i
T E q dt
n s