Docsity

Diffusion Equation: Understanding Flux, Advection, and Diffusion in Environmental Science, Lecture notes of Law

Toggle sidebar
bg1
1
Chapter 2
–
Diffusion Equation
Part 1
Environmental Transport and Fate
Benoit Cushman-Roisin
Thayer School of Engineering
Dartmouth College
Recall: Flux of a substance
The flux of a substance in a particular direction
is defined as the quantity of that substance
passing through a section perpendicular to that
direction per unit area and per unit time:
tA
m
q
duration time area sectional-cross
section-cross through passest amount tha
flux
If the amount is a mass, then the flux qis a rate of mass per area per time,
and its units are kg/m2s.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Diffusion Equation: Understanding Flux, Advection, and Diffusion in Environmental Science and more Lecture notes Law in PDF only on Docsity!

Chapter 2

Diffusion Equation

Part 1

Environmental Transport and Fate

Benoit Cushman-Roisin

Thayer School of Engineering

Dartmouth College

Recall: Flux of a substance

The flux of a substance in a particular direction

is defined as the quantity of that substance passing through a section perpendicular to that

direction per unit area and per unit time:

A t

m q

cross-sectionalarea timeduration

amount thatpassesthroughcross-section flux

If the amount is a mass, then the flux q is a rate of mass per area per time,

and its units are kg/m 2 s.

For the moment (first part of Chapter 2), we restrict our attention to the diffusive

component of the flux. Thus,

q cu j

q

 advectiondiffusion

In general, the flux consists of two components:

advection (= passive movement by carrying fluid)

diffusion (= random movement with respect to mean motion of fluid) due either to molecular agitation

or turbulent fluctuations in fluid flow.

qj only.

We saw that the diffusive component of the flux can be expressed as

dx

dc j  D

in which D is the diffusivity coefficient

and dc/dx is the concentration gradient along the length of the domain.

We now use this form of flux into the mass budget for a short portion [ x , x+  x ] of a

one-dimensional domain.

qxt A qx xt A

dt

dc V

Import Export

Mass budget

Since the volume V of the slice is equal to A  x , we can write after division by V :

x

qx xt qx t

dt

dc

And, in the limit of a vanishingly short distance  x :

x

q

t

c

[A switch from total (straight) to partial (curved) derivative is warranted because there are now more than one variable in the derivatives at this stage.]

Flux boundary conditions are:

2 2

1 1

() at

() at

q t x x x

c D

q t x x x

c D

A common situation is that of an impermeable boundary.

In that case, there cannot be any flux across the boundary,

and there is no concentration gradient at that boundary:

x

c at an impermeable boundary

Mixed conditions (e.g., concentration given at one end of the domain and

flux specified at the other) are possible.

Prototypical 1D solution

The diffusion equation is a linear one, and a solution can, therefore, be

obtained by adding several other solutions. An elementary solution (‘building block’)

that is particularly useful is the solution to an instantaneous, localized release

in an infinite domain initially free of the substance.

Mathematically, the problem is stated as follows:

 Infinite domain: – ∞ < x < +∞

D = constant

 No initial concentration, except for a localized release: c ( x ) = M ( x ) at t = 0

 Since the substance will take an infinite time to reach the infinitely far ends of the

domain, we impose:

lim  lim  0   

c c x x at finite times ( t < ∞ ).

In the above, M is the total mass of the substance released per unit cross-sectional area,

and ( x ) is the Dirac function [ ( x ) = 0 for x ≠ 0, ( x ) = + ∞ at x = 0, with area under the

infinitely tall and infinitely narrow peak being unity].

We expect the substance to spread gradually from its location of release and

the concentration distribution therefore to look like this:

After some rather lengthy mathematics (see written notes), we find that the solution is:

Dt

x

Dt

M

c xt 4

exp 4

2

We note that this solution already meets the boundary conditions (vanishing

concentrations far away on both sides). The initial condition is also met away from x = 0,

because when t = 0, the exponent is –∞ and the exponential vanishes.

Conservation of the total amount of the substance is what sets the front coefficient.

It requires that

c xt dxc xt dxM  









And one can show that the above solution satisfies this requirement.

Because of the random nature of the problem, the answer can only be in terms

of probabilities. We thus define

p ( nx, mt )

as the probability that the particle is in bin number n at time t = mt.

We can calculate the probability at one time step based on the previous time step:

At time ( m + 1)  t , the probability that the particle is in bin n is equal to the probability

that it was already there [ p ( nx, mt ) ] times the probability that it stayed there (50%),

plus the probability that it was one bin to the left [ p (( n- 1 ) x, mt ) ] times the probability

that it jumped to the right (25%), plus the probability that it was one bin to the right

[ p (( n+ 1 ) x, mt ) ] times the probability that it jumped to the left (25%).

Mathematically, we have:

[( 1 ) , ]

[( 1 ) , ]

[ ,( 1 ) ]

pn xm t

pn xmt

pnx m t pnxmt

      And, the initial condition is:

( , 0 ) 0 for 0

pn x n

p

The solution to this discretized system is:

m=6 0.0029 0.016 0.054 0.121 0.193 0.226 0.193 0.121 0.054 0.016 0.

m=5 0.0010 0.010 0.044 0.117 0.205 0.246 0.205 0.117 0.044 0.010^ 0.

m=4 0.004 0.031 0.109 0.219 0.273 0.219 0.109 0.031^ 0.

m=3 0.016 0.094 0.234 0.313 0.234 0.094^ 0.

m=2 0.063 0.250 0.375 0.250^ 0.

m=1 0.250 0.500^ 0.

m=0^ 1.

n= -5 -4 -3 -2 -1 0 +1 +2 +3 +4 +

Note the spreading over time and the thinning of the fringes.

To compare with the continuous solution obtained from the diffusion equation, we sample

the continuous solution at x = nx and t = mt :

Dm t

n x

Dmt

M

c n xm t 4

exp 4

2

Then, let us set ( x )^2 equal to 4 Dt to clean up the exponent:

m

n

m x

M

cn xm t

2

( , ) exp 

Finally, let us set the front coefficient to match the probability value at

( n = 0 , m =5):

m

n

m

cn xm t

2

exp

The c values thus calculated compare quite favorably to the probabilities of the

random-walk process, at least for the larger times.

m=6 0.0029 0.016 0.054 0.121 0.193 0.226 0.193 0.121 0.054 0.016 0.

m=5 0.0010 0.010 0.044 0.117 0.205 0.246 0.205 0.117 0.044 0.010^ 0.

m=4 0.004 0.031 0.109 0.219 0.273 0.219 0.109 0.031^ 0.

m=3 0.016 0.094 0.234 0.313 0.234 0.094^ 0.

m=2 0.063 0.250 0.375 0.250^ 0.

m=1 0.250 0.500^ 0.

m=0 1.

n= -5 -4 -3 -2 -1 0 +1 +2 +3 +4 +

m=6 0.0035 0.016 0.050 0.115 0.190 0.225 0.190 0.115 0.050 0.016^ 0.

m=5 0.0017 0.010 0.041 0.111 0.201 0.246 0.201 0.111 0.041 0.010^ 0.

m=4 0.005 0.029 0.101 0.214 0.275 0.214 0.101 0.029^ 0.

m=3 0.016 0.084 0.228 0.318 0.228 0.084^ 0.

m=2 0.053 0.236 0.389 0.236^ 0.

m=1 0.202 0.550^ 0.

m=0 ∞

n= -5 -4 -3 -2 -1 0 +1 +2 +3 +4 +

p values

c values

We conclude that the random-walk and diffusion are similar processes (Einstein, 1905).

= anchor between both representations

Spreading

Spreading induced by diffusion implies that the spatial extent of contamination grows with

time. For practical purposes, we wish therefore to quantify this spreading, viz. to have an

answer to the question:

How wide is the zone affected by the contaminant?

We easily conceive that the quantity that tells us how wide is a diffusing patch of contamination should be a function of time. However, what should be its precise

definition is not trivial. Indeed, the prototypical solution

Dt

x

Dt

M

c xt 4

exp 4

2

exhibits spreading over time but does not yield a specific width because c is nonzero all

the way to infinity, starting immediately after the moment of release. [ This instantaneous infinitely wide effect is obviously unrealistic and is attributed to the mathematical simplification of a continuum medium.] Therefore, looking for the edges of the concentration distribution does

not yield an answer. We need to do something else.

To determine objectively the width of a pollutant patch, we then resort to integral

quantities. Let us explore a few of them.

A first integral is the area under the curve:

constant



cdx M

giving the total amount of substance; this tells nothing about the width of the patch.

A second integral is formed by inserting the coordinate x , to inject the notion of distance,



xc dx

which vanishes by symmetry; this tells us where the mean position of the patch is

( for this solution) but still nothing about the width.

A third integral is

x  0

2   



x x c dx

2   



x x c dx

is a function of time, positive and always nonzero.

Because represents the squared distance to the mean position, the above

integral says something about the average distance to the center of the patch and therefore holds information about the patch width.

The time evolution of this width should then provide information about the rate of spreading.

2 2    



x x c dx M

2 ( xx )

M c dx



in which

and (^) xcdx M

x



For convenience, we define the normalized quantity

For the prototypical solution above, calculations yield

Dt

Dt

x e d

Dt

dx Dt

x

Dt

M

x M

with

exp 4

2 2

2 2 2









Thus,  2 Dt

We immediately note that the distance 

grows in time, but as the square root of time rather than time itself. Thus, the

spreading goes on with time, never

stopping but gradually slowing down.

A remark

There are occasions when one should distinguish between

4  – the full width, and

2  – the spreading distance from the location of release.

Take for example a smokestack plume.

A pertinent question is:

By which distance does the ground level

become affected?

The answer is: where the underside of

the plume begins to touch the ground,

that is, where 2  = , the height of the

stack.

x ut

H Dt H

D

uH x 8

2 

An example

A tank aboard a barge traveling along the Chicago Ship Canal suddenly collapses, releasing its benzene content (C 6 H 6 , density = 0.879 g/cm^3 ), of which 100 liters find their

way quickly to the water. The rest of the benzene remains contained on the barge. Assuming rapid mixing across the canal section (8.07 m deep and 48.8 m wide) and

estimating the turbulent diffusion coefficient at 3.0 m 2 /s, what are the concentrations of

benzene 2, 6, 12 and 24 hours after the accident, at the site of the spill and 300 m away?

To solve this problem, we first determine the mass of benzene that was spilled. Since

the density of benzene is 0.879 g/cm 3 = 0.879 kg/L, this mass m is:

Over the cross-section of the canal, we have

m mass densityvolume 0. 879 kg/L 100 L 87. 9 kg

2 m

kg

(8.07m)(48.8m)

  1. 9 kg

cros sectionalarea

mass    

A

m

s

M

The concentration at the location of the spill ( x = 0) is given by

(inhrs )

  1. 606 mg/L

(insec)

  1. 0364 kg/m

3

max

t t

Dt

M

c (^) spillt c t c t

24 hours 0.124 mg/L

12 hours 0.175 mg/L

6 hours 0.247 mg/L

2 hours 0.428 mg/L

Concentration

at spill

Time

since spill

The peak concentration decreases over time. This can be expected since diffusion

spreads the pollutant away from the point of release.

At a distance x = 300 m away, the concentration is obtained from the full formula

Dt

x

Dt

M

c xt 4

exp 4

2

with (inhrs)

4 ( 3. 0 m /s)

( 300 m)

2

2 2

Dt t t

x  

Thus 

(inhrs)

exp (inhrs)

  1. 606 mg/L ( 300 m,) t t

c t

24 hours 0.113 mg/L

12 hours 0.147 mg/L

6 hours 0.175 mg/L

2 hours 0.151 mg/L

Concentration

300 m away

Time

since spill Note how the concentration at 300 m first

increases (because it takes time for the benzene to diffuse over that distance) and

then decreases (because further diffusion

leads to dilution).