Diffusion Equation and Mean Free Path - Stony Brookchenx/notes/diffusion_equation.pdfMean Free...
Transcript of Diffusion Equation and Mean Free Path - Stony Brookchenx/notes/diffusion_equation.pdfMean Free...
Diffusion Equation and
Mean Free Path
Speaker: Xiaolei Chen Advisor: Prof. Xiaolin Li
Department of Applied Mathematics and Statistics
Stony Brook University (SUNY)
Content
General Introduction
Analytic Solution of Diffusion Equation
Numerical Schemes
Mean Free Path
General Introduction
General Introduction
1D diffusion equation
π’π‘ = ππ’π₯π₯
β’ Parabolic partial differential equation
β’ π: thermal conductivity, or diffusion coefficient
β’ In physics, it is the transport of mass, heat, or momentum
within a system
β’ In connection with Probability, Brownian motion, Black-
Scholes equation, etc
Analytic SolutionFor the parabolic diffusion equation
π’π‘ = ππ’π₯π₯ and initial condition π’ π₯, 0 = π’0 π₯ ,
use Fourier Transform to obtain the analytic solution.
π’ π, π‘ =1
2π ββ
+β
π’(π₯, π‘)πβπππ₯ππ₯
Apply the Fourier Transform to the diffusion equation.
π’π‘ = βππ2 π’ and initial condition π’ π, 0 = π’0 π
The solution to the above equation is given by
π’ π, π‘ = π’0 π πβππ2π‘
where π’0 π =1
2π ββ+β
π’0 π₯ πβπππ₯ππ₯.
Analytic SolutionThen, apply inverse Fourier Transform to π’ π, π‘ .
π’ π₯, π‘ =1
2π ββ
+β
π’ π, π‘ ππππ₯ππ
π’ π₯, π‘ =1
2π ββ
+β
ββ
+β
π’0 π¦ πβππ2π‘+ππ(π₯βπ¦)ππ ππ¦
Consider the integral of π.
πΌ(π½) = ββ
+β
πβππ2π‘+ππ(π₯βπ¦)ππ =
ββ
+β
πβπΌ2π2+π½π ππ
Where πΌ = ππ‘ and π½ = π(π₯ β π¦).
Analytic Solution
Easy to verify that ππΌ(π½)
ππ½=
π½
2πΌ2πΌ πΌ(π½) = πΆππ½
2/4πΌ2
The constant πΆ = πΌ 0 = ββ+β
πβπΌ2π2
ππ =π
πΌ2. So,
πΌ =π
πΌ2ππ½
2/4πΌ2=
π
ππ‘πβ π₯βπ¦ 2/4ππ‘
Therefore, the analytic solution of the diffusion equation is
π’ π₯, π‘ =1
4πππ‘ ββ
+β
π’0 π¦ πβ π₯βπ¦ 2/4ππ‘ ππ¦
Analytic Solution---initial condition is the delta function
Example 1: π’π‘ = ππ’π₯π₯ and initial condition
π’ π₯, 0 = π’0 π₯ = πΏ(π₯)
The solution is given by
π’ π₯, π‘ =1
4πππ‘ ββ
+β
π’0 π¦ πβ π₯βπ¦ 2/4ππ‘ππ¦
π’ π₯, π‘ =1
4πππ‘ ββ
+β
πΏ π¦ πβ π₯βπ¦ 2/4ππ‘ ππ¦
π’ π₯, π‘ =1
4πππ‘πβπ₯
2/4ππ‘
Analytic Solution---initial condition is a step function
Example 2: π’π‘ = ππ’π₯π₯ and initial condition
π’ π₯, 0 = π’0 π₯ = π’π , ππ π₯ < 0π’π , ππ π₯ > 0
The solution is given by
π’ π₯, π‘ =1
4πππ‘ ββ
+β
π’0 π¦ πβ π₯βπ¦ 2/4ππ‘ππ¦
π’ π₯, π‘ =1
4πππ‘(
ββ
0
π’ππβ
π₯βπ¦ 2
4ππ‘ ππ¦ + 0
+β
π’ππβ
π₯βπ¦ 2
4ππ‘ ππ¦)
π’ π₯, π‘ = π’π +1
π(π’π β π’π)
ββ
π₯
4ππ‘πβπ¦
2ππ¦
Numerical Schemes
Central Explicit Scheme
π’ππ+1 β π’π
π
βπ‘= π
π’π+1π β 2π’π
π + π’πβ1π
βπ₯2
Consistency: π Ξπ₯2, Ξπ‘ Stability: πΞπ‘
Ξπ₯2 <1
2
Central Implicit Scheme
π’ππ+1 β π’π
π
βπ‘= π
π’π+1π+1 β 2π’π
π+1 + π’πβ1π+1
βπ₯2
Consistency: π Ξπ₯2, Ξπ‘ Stability: unconditionally stable
Numerical Schemes
Crank-Nicolson Scheme
π’ππ+1 β π’π
π
βπ‘=
1
2π(π’π+1π β 2π’π
π + π’πβ1π
βπ₯2+π’π+1π+1 β 2π’π
π+1 + π’πβ1π+1
βπ₯2)
Consistency: π Ξπ₯2, Ξπ‘2 Stability: unconditionally stable
Leap Frog Scheme
π’ππ+1 β π’π
πβ1
2βπ‘= π
π’π+1π β 2π’π
π + π’πβ1π
βπ₯2
Consistency: π Ξπ₯2, Ξπ‘2 Stability: unconditionally unstable
Numerical Schemes
Du Fort-Frankel Scheme
π’ππ+1 β π’π
πβ1
2βπ‘= π
π’π+1π β (π’π
π+1 + π’ππβ1) + π’πβ1
π
βπ₯2
Consistency: π Ξπ‘2/Ξπ₯2, Ξπ‘2 conditionally consistent
Stability: unconditionally stable
Mean Free Path In physics, mean free path is the average distance
travelled by a moving particle between successive
collisions, which modify its direction or energy or other
particle properties.
Relation to diffusion coefficient π
π =1
2
π2
Ξπ=
1
2ππ’ππ£π
where π is the mean free path, Ξπ is the average time
between collisions, and π’ππ£π is the average molecular
speed.
Mean Free Path--- 1D Brownian Motion
Consider a 1D random walk:
during each time step size Ξπ, a particle can move by +πor βπ so that a collision happens.
Mean Free Path--- 1D Brownian Motion
The displacement from the original location after π time
steps (or π collisions) is
π(π) =
π=1
π
π₯π
where π₯π = Β±π with equal probability. Then, we have
πΈ π₯π = 0, πΈ π π = πΈ π=0
π
π₯π = 0
πππ π₯π = π2, πππ π π = πΈ π π β πΈ π π 2= ππ2
Note: Brownian motion is a markov process, which means the
movement at each time step is independent of the previous ones.
Mean Free Path--- 1D Brownian Motion
According to the Central Limit Theorem,
π π=1π π₯ππ
β πΈ π₯π πΞ 0, πππ π₯π
as π β. This is equivalent to
π π πΞ 0, ππ2 = Ξ(0,
π‘π2
Ξπ)
where, π‘ is the total time.
Then, the distribution of π π
π π₯, π‘ =1
2ππ‘π2/Ξππβπ₯
2/(2π‘π2/Ξπ)
Mean Free Path--- 1D Brownian Motion
Now, consider the diffusion process with initial condition
π’ π₯, 0 = π’0 π₯ = πΏ(π₯)
Its solution is given in example 1.
π’ π₯, π‘ =1
4πππ‘πβπ₯
2/4ππ‘
Particle Movement Diffusion Process
So, π π₯, π‘ = π’(π₯, π‘) and this leads to π‘π2
Ξπ= 2ππ‘ π =
1
2
π2
Ξπ=
1
2ππ’ππ£π
Mean Free Path--- Kinematic Viscosity
Molecular Diffusion
Mean Free Path--- Kinematic Viscosity
Molecular Diffusion
For typical air at room conditions, the average speed of molecular is about 500 π/π .And the mean free path of the
air at the same condition is about 68ππ. So,
π =1
2ππ’ππ£π β
1
2Γ 500 Γ 68 Γ 10β9 = 1.7 Γ 10β5π2/π
This is close to the ratio of dynamic viscosity (1.81Γ10β5ππ/(π β π )) to the density (1.205ππ/π3)
π =π
πβ
1.81 Γ 10β5
1.205β 1.502 Γ 10β5π2/π
Mean Free Path--- Kinematic Viscosity
Eddy Diffusion
It is mixing that is caused by eddies with various sizes.
The mean free path is related to the size of the vortices.
And it is usually much larger than that of the molecular
diffusion process.
Larger Mean Free Path Large Kinematic Viscosity
Use RANS (Reynolds-Averaged Navier Stokes), LES (Large
Eddy Simulation) to modify the viscosity
References
Notes by Prof. XiaolinLi
Wikipedia: diffusion, viscosity, mean free path,
turbulence, Brownian motion, molecular diffusion, eddy
diffusion