1 of 30 Once Upon a Time... Constant diffusion: J = - D u - - PowerPoint PPT Presentation

1 of 30 once upon a time constant diffusion j d u u
SMART_READER_LITE
LIVE PREVIEW

1 of 30 Once Upon a Time... Constant diffusion: J = - D u - - PowerPoint PPT Presentation

1 of 30 Once Upon a Time... Constant diffusion: J = - D u u t = - J = D D u But is this truly realistic??? 2 of 30 Problems With Constant Diffusion Any initial


slide-1
SLIDE 1
  • «

  • 1 of 30

Once Upon a Time...

Constant diffusion:

J = -D “ ÿ u ∑u ÅÅÅÅÅÅÅÅÅÅ ∑t = -“ ÿ J = D D u

But is this truly realistic???

slide-2
SLIDE 2
  • «

  • 2 of 30

Problems With Constant Diffusion

Any initial condition, even a point distribution, instantly "spreads out" to cover an infinite domain. Consider the one-dimensional case:

l

  • m

n

  • ∑u

ÅÅÅÅÅÅÅ

∑t = D ∑2u

ÅÅÅÅÅÅÅÅ ÅÅÅ

∑ x2

uHx, 0L = dHxL fl uHx, tL = 1 ÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅ ÅÅÅÅÅÅÅÅ ÅÅÅÅ è!!!!!!!!!!!!! 4 p D t expi k j j j- x2 ÅÅÅÅÅÅÅÅ ÅÅÅÅÅÅÅ 4 D t y { z z z

slide-3
SLIDE 3
  • «

  • 3 of 30

Problems With Constant Diffusion

  • 10
  • 5

5 10 0.2 0.4 0.6 0.8

slide-4
SLIDE 4
  • «

  • 4 of 30

How Can We Improve This?

Use a non-constant diffusion term:

J = -DHuL “ ÿ uHx, tL ∑u ÅÅÅÅÅÅÅÅÅÅ ∑t = -“ ÿ J = “ ÿ HDHuL “ ÿuL

This makes intuitive sense - in an insect population, for example, we would expect very densely populated areas to diffuse outwards more quickly than sparsely populated areas.

slide-5
SLIDE 5
  • «

  • 5 of 30

Crap!

Of course, now we need to figure out how to deal with non-constant diffusion in our solution.

slide-6
SLIDE 6
  • «

  • 6 of 30

A General Approach

Rewrite our equation as

∑u ÅÅÅÅÅÅÅÅÅÅ ∑t - “ ÿ HDHuL “ ÿ uL = 0

We can consider this to be an example of a general class of functions of the form

GHx, t, u, ux, ut, uxx, uxt, uttL = 0

slide-7
SLIDE 7
  • «

  • 7 of 30

A General Approach

The one-parameter family of stretching functions:

x êê = ea x t ê = eb t u êê = ec u

slide-8
SLIDE 8
  • «

  • 8 of 30

A General Approach

The one-parameter family of stretching functions:

x êê = ea x t ê = eb t u êê = ec u

a, b, and c are constants; e is a real parameter on some open interval that contains 1. Define G to be invariant if there exists a smooth function f HeL such that

GHx êê, t ê, u êê, u êêx

êê, u

êê

t ê, u

êêx

êêx êê, u

êê

x êêt ê, u

êê

t êt êL = f HeL GHx, t, u, ux, ut, uxx, uxt, uttL

slide-9
SLIDE 9
  • «

  • 9 of 30

A General Approach

Assume G is invariant. This gives us

GHx êê, t ê, u êêL = f HeL GHx, t, uL GHea x, eb t, ec uL = f HeL GHx, t, uL GHea x, eb t, ec uL = f HeL H0L GHea x, eb t, ec uL = 0

(Because G is homogenous.)

slide-10
SLIDE 10
  • «

  • 10 of 30

A General Approach

Differentiate with respect to e:

a x ea ∑G ÅÅÅÅÅÅÅÅ ÅÅÅ ∑x + b t eb ∑G ÅÅÅÅÅÅÅÅ ÅÅÅ ∑t + c u ec ∑G ÅÅÅÅÅÅÅÅ ÅÅÅ ∑u = 0

Set e = 1 (which we can do because we restrict e to a domain that contains 1):

a x ∑G ÅÅÅÅÅÅÅÅ ÅÅÅ ∑x + b t ∑G ÅÅÅÅÅÅÅÅ ÅÅÅ ∑t + c u ∑G ÅÅÅÅÅÅÅÅ ÅÅÅ ∑u = 0

Clever people look at this and see that the transformation we want to use is

u = tcêb rHzL z = x ÅÅÅÅÅÅÅÅ ÅÅÅ taêb

slide-11
SLIDE 11
  • «

  • 11 of 30

A General Approach

Verification of the transformation:

a x ∑G ÅÅÅÅÅÅÅÅ ÅÅÅ ∑x + b t ∑G ÅÅÅÅÅÅÅÅ ÅÅÅ ∑t + c u ∑G ÅÅÅÅÅÅÅÅ ÅÅÅ ∑u = 0 a x ∑G ÅÅÅÅÅÅÅÅ ÅÅÅ ∑z ∑z ÅÅÅÅÅÅÅÅÅ ∑x + b t ∑G ÅÅÅÅÅÅÅÅ ÅÅÅ ∑z ∑z ÅÅÅÅÅÅÅÅÅ ∑t + c u ∑G ÅÅÅÅÅÅÅÅ ÅÅÅ ∑z ∑z ÅÅÅÅÅÅÅÅÅÅ ∑u = 0 ∑z ÅÅÅÅÅÅÅÅÅ ∑x = 1 ÅÅÅÅÅÅÅÅ ÅÅÅ taêb , ∑z ÅÅÅÅÅÅÅÅÅ ∑t = ∫

slide-12
SLIDE 12
  • «

  • 12 of 30

A General Approach

What have we accomplished with all our fancy math?

GHx, t, u, ux, ut, uxx, uxt, uttL = 0 ó gHz, r, r', r''L = 0

slide-13
SLIDE 13
  • «

  • 13 of 30

A Specific Example

Recall the problem we're actually working on:

∑u ÅÅÅÅÅÅÅÅÅÅ ∑t = “ ÿ HDHuL “ ÿ uL DHuL = D0J u ÅÅÅÅÅÅÅÅ u0 N

m

slide-14
SLIDE 14
  • «

  • 14 of 30

A Specific Example

Letting m = 1 gives us

∑u ÅÅÅÅÅÅÅÅÅÅ ∑t = ∑ ÅÅÅÅÅÅÅÅÅ ∑x J D0 ÅÅÅÅÅÅÅÅÅÅ u0 u ∑u ÅÅÅÅÅÅÅÅÅÅ ∑x N

And because we're lazy, we'll assume D0 ÅÅÅÅÅÅÅÅ

u0 = 1, so

∑u ÅÅÅÅÅÅÅÅÅÅ ∑t = ∑ ÅÅÅÅÅÅÅÅÅ ∑x Ju ∑u ÅÅÅÅÅÅÅÅÅÅ ∑x N

The problem is now

l

  • m

n

  • ∑u

ÅÅÅÅÅÅÅ

∑t = ∑

ÅÅÅÅÅÅÅ

∑x Iu ∑u

ÅÅÅÅÅÅÅ

∑x M

uHx, 0L = dHxL

slide-15
SLIDE 15
  • «

  • 15 of 30

A Specific Example

Other assumptions: Since no organisms are being born or dying, we require for all t > 0

uHx, tL „ x = 1

and

lim

xØ≤¶ uHx, tL = 0

slide-16
SLIDE 16
  • «

  • 16 of 30

A Specific Example

Check for invariance:

GHx êê, t ê, u êê, u êêx

êê, u

êê

t ê, u

êêx

êêx êê, u

êê

x êêt ê, u

êê

t êt êL = f HeL GHx, t, u, ux, ut, uxx, uxt, uttL

x êê = ea x t ê = eb t u êê = ec u ∑u êê ÅÅÅÅÅÅÅÅÅÅ ∑t ê - ∑ ÅÅÅÅÅÅÅÅÅÅ ∑ x êê Ju êê ∑u êê ÅÅÅÅÅÅÅÅÅÅ ∑ x êê N = ec-b ∑u ÅÅÅÅÅÅÅÅÅÅ ∑t - e2 c-2 a ∑ ÅÅÅÅÅÅÅÅÅ ∑x Ju ∑u ÅÅÅÅÅÅÅÅÅÅ ∑x N

We have invariance if

c - b = 2 c - 2 a fl c = 2 a - b

slide-17
SLIDE 17
  • «

  • 17 of 30

A Specific Example

u = tcêb rHzL z = x ÅÅÅÅÅÅÅÅ ÅÅÅ taêb

With our invariance condition,

u = tH2 a-bLêb rHzL z = x ÅÅÅÅÅÅÅÅ ÅÅÅ taêb

slide-18
SLIDE 18
  • «

  • 18 of 30

A Specific Example

Let's be clever:

uHx, tL „ x = 1 tH2 a-bLêb ‡

rJ x ÅÅÅÅÅÅÅÅ ÅÅÅ taêb N „x = 1 tH3 a-bLêb ‡

rHzL „ z = 1

Time-independence requires

b = 3 a

Which simplifies the transformation to

u = t-1ê3 rHzL z = x t-1ê3

slide-19
SLIDE 19
  • «

  • 19 of 30

A Specific Example

l

  • m

n

  • ∑u

ÅÅÅÅÅÅÅ

∑t = ∑

ÅÅÅÅÅÅÅ

∑x Iu ∑u

ÅÅÅÅÅÅÅ

∑x M

u = t-1ê3 r HzL z = x t-1ê3 ï3 Hr r'L' + r + z r' = 0

This equation can be integrated to give

3 r r' + z r = constant

Take the constant to be zero; the solution is

rHzL = A2 - z2 ÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅ ÅÅÅÅÅÅÅ 6

slide-20
SLIDE 20
  • «

  • 20 of 30

A Specific Example

Use our conditions to clean it up:

lim

xØ≤¶ uHx, tL = 0

means that

rHzL = l

  • m

n

  • A2-z2

ÅÅÅÅÅÅÅÅ ÅÅÅÅÅÅÅÅÅ

6

, †x§ < A †x§ > A

And

uHx, tL „ x = 1

means that

A = J 9 ÅÅÅÅÅ 2 N

1ê3

Now switch everything back to original coordinates.

slide-21
SLIDE 21
  • «

  • 21 of 30

A Specific Example

uHx, tL = l

  • m

n

  • 1

ÅÅÅÅÅÅÅ

6 t HA2 t2ê3 - x2L, †x§ < A t1ê3

†x§ > A t1ê3

About time. Let's take a look!

slide-22
SLIDE 22
  • «

  • 22 of 30

A Specific Example - Pretty Pictures

  • 1
  • 0.5

0.5 1 0.05 0.1 0.15 0.2 0.25 0.3 0.35

slide-23
SLIDE 23
  • «

  • 23 of 30

A Specific Example

The key feature of this solution is the sharp wave front at

x f = A t1ê3

This wave is moving with speed

„x f ÅÅÅÅÅÅÅÅ ÅÅÅÅÅÅ „t = 1 ÅÅÅÅÅ 3 A t-2ê3

slide-24
SLIDE 24
  • «

  • 24 of 30

Comparing Constant and Density-Dependent Diffusion at t = .1

  • 1
  • 0.5

0.5 1 0.2 0.4 0.6 0.8

slide-25
SLIDE 25
  • «

  • 25 of 30

Comparing Constant and Density-Dependent Diffusion at t = 10

  • 10
  • 5

5 10 0.02 0.04 0.06 0.08

slide-26
SLIDE 26
  • «

  • 26 of 30

What About the Not-Simple Case, You Ask?

Recall that the general form is

∑u ÅÅÅÅÅÅÅÅÅÅ ∑t = “ ÿ HDHuL “ ÿ uL DHuL = D0J u ÅÅÅÅÅÅÅÅ u0 N

m

and we assumed m = 1 for all the work we just did. Is there a general solution?

slide-27
SLIDE 27
  • «

  • 27 of 30

What About the Not-Simple Case, You Ask?

Yes, and here it is:

uHx, tL = l

  • m

n

  • u0

ÅÅÅÅÅÅÅÅÅÅ

lHtL J1 - J x

ÅÅÅÅÅÅÅÅ ÅÅÅÅÅÅÅ

r0 lHtL N 2N 1êm, †x§ § r0 lHtL

†x§ > r0 lHtL

Where

lHtL = J t ÅÅÅÅÅÅÅ t0 N

1êH2+mL

r0 =

Q GI 1 ÅÅÅÅÅÅÅ m + 3 ÅÅÅÅÅ 2 M

ÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅ ÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅ ÅÅÅÅÅÅÅ

p1ê2 u0 GI 1 ÅÅÅÅÅÅÅ m +1M , t0 = r0 2 m

ÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅ ÅÅÅÅÅÅÅÅÅÅ

2 D0Hm+2L

D0 and n0 are positive constants; Q is the initial density at the origin, and r0 comes from requiring that the integral over the domain at all times be equal to Q.

slide-28
SLIDE 28
  • «

  • 28 of 30

Not-Simple Case, t = .1 and m = 1, 2, 3

  • 2
  • 1

1 2 0.2 0.4 0.6 0.8 1

slide-29
SLIDE 29
  • «

  • 29 of 30

Not-Simple Case, t = 10 and m = 1, 2, 3

  • 2
  • 1

1 2 0.1 0.2 0.3 0.4

slide-30
SLIDE 30
  • «

  • 30 of 30

Pay No Attention to the Man Behind the Curtain

In[30]:=

u@x_, t_D := WhichAAbs@xD < t1ê3, 1

  • 6 t

Ht2ê3 − x2L, True, 0E

In[31]:=

uConstantD@x_, t_D := 1

  • è!!!!!!!!

!! ! 4 π t ExpA −x2

  • 4 t

E

In[39]:=

Plot@8u@x, .1D, u@x, .2D, u@x, .3D<, 8x, −1, 1<, PlotStyle → 8RGBColor@1, 0, 0D, RGBColor@0, 1, 0D, RGBColor@0, 0, 1D<D;

In[40]:=

Plot@8u@x, .1D, uConstantD@x, .1D<, 8x, −1, 1<, PlotStyle → 8RGBColor@1, 0, 0D, RGBColor@0, 1, 0D, RGBColor@0, 0, 1D<D;

slide-31
SLIDE 31

In[46]:=

Plot@8u@x, 10D, uConstantD@x, 10D<, 8x, −10, 10<, PlotRange → All, PlotStyle → 8RGBColor@1, 0, 0D, RGBColor@0, 1, 0D, RGBColor@0, 0, 1D<D;

In[47]:=

λ@t_, m_D := i k j j j t

  • t0@mD

y { z z z

1

  • 2+m

In[48]:=

r0@m_D := GammaA 1

  • m + 3 ê 2E
  • è!!!

! π Gamma@1 ê m + 1D

In[49]:=

t0@m_D := r0@mD2 ∗ m

  • 2 Hm + 1L

In[50]:=

uGeneral@x_, t_, m_D := WhichAAbs@xD ≤ r0@mD λ@t, mD, 1

  • λ@t, mD

i k j j j1 − i k j j j x

  • r0@mD λ@t, mD

y { z z z

2y

{ z z z

1êm

, True, 0E

slide-32
SLIDE 32

In[54]:=

Plot@8uGeneral@x, .1, 1D, uGeneral@x, .1, 2D, uGeneral@x, .1, 3D<, 8x, −2, 2<, PlotRange → All, PlotStyle → 8RGBColor@1, 0, 0D, RGBColor@0, 1, 0D, RGBColor@0, 0, 1D<D;

In[55]:=

Plot@8uGeneral@x, 10, 1D, uGeneral@x, 10, 2D, uGeneral@x, 10, 3D<, 8x, −2, 2<, PlotRange → All, PlotStyle → 8RGBColor@1, 0, 0D, RGBColor@0, 1, 0D, RGBColor@0, 0, 1D<D;