Diffusion Equation and Mean Free Path - Stony Brookchenx/notes/diffusion_equation.pdfMean Free...

21
Diffusion Equation and Mean Free Path Speaker: Xiaolei Chen Advisor: Prof. Xiaolin Li Department of Applied Mathematics and Statistics Stony Brook University (SUNY)

Transcript of Diffusion Equation and Mean Free Path - Stony Brookchenx/notes/diffusion_equation.pdfMean Free...

Page 1: Diffusion Equation and Mean Free Path - Stony Brookchenx/notes/diffusion_equation.pdfMean Free Path--- Kinematic Viscosity Eddy Diffusion It is mixing that is caused by eddies with

Diffusion Equation and

Mean Free Path

Speaker: Xiaolei Chen Advisor: Prof. Xiaolin Li

Department of Applied Mathematics and Statistics

Stony Brook University (SUNY)

Page 2: Diffusion Equation and Mean Free Path - Stony Brookchenx/notes/diffusion_equation.pdfMean Free Path--- Kinematic Viscosity Eddy Diffusion It is mixing that is caused by eddies with

Content

General Introduction

Analytic Solution of Diffusion Equation

Numerical Schemes

Mean Free Path

Page 3: Diffusion Equation and Mean Free Path - Stony Brookchenx/notes/diffusion_equation.pdfMean Free Path--- Kinematic Viscosity Eddy Diffusion It is mixing that is caused by eddies with

General Introduction

Page 4: Diffusion Equation and Mean Free Path - Stony Brookchenx/notes/diffusion_equation.pdfMean Free Path--- Kinematic Viscosity Eddy Diffusion It is mixing that is caused by eddies with

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

Page 5: Diffusion Equation and Mean Free Path - Stony Brookchenx/notes/diffusion_equation.pdfMean Free Path--- Kinematic Viscosity Eddy Diffusion It is mixing that is caused by eddies with

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 π‘₯ π‘’βˆ’π‘–π‘˜π‘₯𝑑π‘₯.

Page 6: Diffusion Equation and Mean Free Path - Stony Brookchenx/notes/diffusion_equation.pdfMean Free Path--- Kinematic Viscosity Eddy Diffusion It is mixing that is caused by eddies with

Analytic SolutionThen, apply inverse Fourier Transform to 𝑒 π‘˜, 𝑑 .

𝑒 π‘₯, 𝑑 =1

2πœ‹ βˆ’βˆž

+∞

𝑒 π‘˜, 𝑑 π‘’π‘–π‘˜π‘₯π‘‘π‘˜

𝑒 π‘₯, 𝑑 =1

2πœ‹ βˆ’βˆž

+∞

βˆ’βˆž

+∞

𝑒0 𝑦 π‘’βˆ’πœˆπ‘˜2𝑑+π‘–π‘˜(π‘₯βˆ’π‘¦)π‘‘π‘˜ 𝑑𝑦

Consider the integral of π‘˜.

𝐼(𝛽) = βˆ’βˆž

+∞

π‘’βˆ’πœˆπ‘˜2𝑑+π‘–π‘˜(π‘₯βˆ’π‘¦)π‘‘π‘˜ =

βˆ’βˆž

+∞

π‘’βˆ’π›Ό2π‘˜2+π›½π‘˜ π‘‘π‘˜

Where 𝛼 = πœˆπ‘‘ and 𝛽 = 𝑖(π‘₯ βˆ’ 𝑦).

Page 7: Diffusion Equation and Mean Free Path - Stony Brookchenx/notes/diffusion_equation.pdfMean Free Path--- Kinematic Viscosity Eddy Diffusion It is mixing that is caused by eddies with

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πœˆπ‘‘ 𝑑𝑦

Page 8: Diffusion Equation and Mean Free Path - Stony Brookchenx/notes/diffusion_equation.pdfMean Free Path--- Kinematic Viscosity Eddy Diffusion It is mixing that is caused by eddies with

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πœˆπ‘‘

Page 9: Diffusion Equation and Mean Free Path - Stony Brookchenx/notes/diffusion_equation.pdfMean Free Path--- Kinematic Viscosity Eddy Diffusion It is mixing that is caused by eddies with

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𝑑𝑦

Page 10: Diffusion Equation and Mean Free Path - Stony Brookchenx/notes/diffusion_equation.pdfMean Free Path--- Kinematic Viscosity Eddy Diffusion It is mixing that is caused by eddies with

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

Page 11: Diffusion Equation and Mean Free Path - Stony Brookchenx/notes/diffusion_equation.pdfMean Free Path--- Kinematic Viscosity Eddy Diffusion It is mixing that is caused by eddies with

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

Page 12: Diffusion Equation and Mean Free Path - Stony Brookchenx/notes/diffusion_equation.pdfMean Free Path--- Kinematic Viscosity Eddy Diffusion It is mixing that is caused by eddies with

Numerical Schemes

Du Fort-Frankel Scheme

𝑒𝑗𝑛+1 βˆ’ 𝑒𝑗

π‘›βˆ’1

2βˆ†π‘‘= 𝜈

𝑒𝑗+1𝑛 βˆ’ (𝑒𝑗

𝑛+1 + π‘’π‘—π‘›βˆ’1) + π‘’π‘—βˆ’1

𝑛

βˆ†π‘₯2

Consistency: 𝑂 Δ𝑑2/Ξ”π‘₯2, Δ𝑑2 conditionally consistent

Stability: unconditionally stable

Page 13: Diffusion Equation and Mean Free Path - Stony Brookchenx/notes/diffusion_equation.pdfMean Free Path--- Kinematic Viscosity Eddy Diffusion It is mixing that is caused by eddies with

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.

Page 14: Diffusion Equation and Mean Free Path - Stony Brookchenx/notes/diffusion_equation.pdfMean Free Path--- Kinematic Viscosity Eddy Diffusion It is mixing that is caused by eddies with

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.

Page 15: Diffusion Equation and Mean Free Path - Stony Brookchenx/notes/diffusion_equation.pdfMean Free Path--- Kinematic Viscosity Eddy Diffusion It is mixing that is caused by eddies with

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.

Page 16: Diffusion Equation and Mean Free Path - Stony Brookchenx/notes/diffusion_equation.pdfMean Free Path--- Kinematic Viscosity Eddy Diffusion It is mixing that is caused by eddies with

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/Ξ”πœ)

Page 17: Diffusion Equation and Mean Free Path - Stony Brookchenx/notes/diffusion_equation.pdfMean Free Path--- Kinematic Viscosity Eddy Diffusion It is mixing that is caused by eddies with

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πœ†π‘’π‘Žπ‘£π‘’

Page 18: Diffusion Equation and Mean Free Path - Stony Brookchenx/notes/diffusion_equation.pdfMean Free Path--- Kinematic Viscosity Eddy Diffusion It is mixing that is caused by eddies with

Mean Free Path--- Kinematic Viscosity

Molecular Diffusion

Page 19: Diffusion Equation and Mean Free Path - Stony Brookchenx/notes/diffusion_equation.pdfMean Free Path--- Kinematic Viscosity Eddy Diffusion It is mixing that is caused by eddies with

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/𝑠

Page 20: Diffusion Equation and Mean Free Path - Stony Brookchenx/notes/diffusion_equation.pdfMean Free Path--- Kinematic Viscosity Eddy Diffusion It is mixing that is caused by eddies with

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

Page 21: Diffusion Equation and Mean Free Path - Stony Brookchenx/notes/diffusion_equation.pdfMean Free Path--- Kinematic Viscosity Eddy Diffusion It is mixing that is caused by eddies with

References

Notes by Prof. XiaolinLi

Wikipedia: diffusion, viscosity, mean free path,

turbulence, Brownian motion, molecular diffusion, eddy

diffusion