17
BENG 221: Mathematical Methods in Bioengineering Lecture 11 Heat and Diffusion Equation in Space and Time References Haberman APDE, Sec. 11.3. http://en.wikipedia.org/wiki/Heat_equation http://en.wikipedia.org/wiki/Diffusion_equation

Lecture 11 Heat and Diffusion Equation in Space …...BENG 221 M. Intaglietta Lecture 9 Time dependent solution of the heat/diffusion equation Derivation of the diffusion equation

  • Upload
    others

  • View
    7

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Lecture 11 Heat and Diffusion Equation in Space …...BENG 221 M. Intaglietta Lecture 9 Time dependent solution of the heat/diffusion equation Derivation of the diffusion equation

BENG 221: Mathematical Methods in Bioengineering Lecture 11 Heat and Diffusion Equation in Space and Time References Haberman APDE, Sec. 11.3. http://en.wikipedia.org/wiki/Heat_equation http://en.wikipedia.org/wiki/Diffusion_equation

Page 2: Lecture 11 Heat and Diffusion Equation in Space …...BENG 221 M. Intaglietta Lecture 9 Time dependent solution of the heat/diffusion equation Derivation of the diffusion equation
Page 3: Lecture 11 Heat and Diffusion Equation in Space …...BENG 221 M. Intaglietta Lecture 9 Time dependent solution of the heat/diffusion equation Derivation of the diffusion equation
Page 4: Lecture 11 Heat and Diffusion Equation in Space …...BENG 221 M. Intaglietta Lecture 9 Time dependent solution of the heat/diffusion equation Derivation of the diffusion equation
Page 5: Lecture 11 Heat and Diffusion Equation in Space …...BENG 221 M. Intaglietta Lecture 9 Time dependent solution of the heat/diffusion equation Derivation of the diffusion equation
Page 6: Lecture 11 Heat and Diffusion Equation in Space …...BENG 221 M. Intaglietta Lecture 9 Time dependent solution of the heat/diffusion equation Derivation of the diffusion equation
Page 7: Lecture 11 Heat and Diffusion Equation in Space …...BENG 221 M. Intaglietta Lecture 9 Time dependent solution of the heat/diffusion equation Derivation of the diffusion equation
Page 8: Lecture 11 Heat and Diffusion Equation in Space …...BENG 221 M. Intaglietta Lecture 9 Time dependent solution of the heat/diffusion equation Derivation of the diffusion equation
Page 9: Lecture 11 Heat and Diffusion Equation in Space …...BENG 221 M. Intaglietta Lecture 9 Time dependent solution of the heat/diffusion equation Derivation of the diffusion equation
Page 10: Lecture 11 Heat and Diffusion Equation in Space …...BENG 221 M. Intaglietta Lecture 9 Time dependent solution of the heat/diffusion equation Derivation of the diffusion equation
Page 11: Lecture 11 Heat and Diffusion Equation in Space …...BENG 221 M. Intaglietta Lecture 9 Time dependent solution of the heat/diffusion equation Derivation of the diffusion equation

11 = 19.74/L212 = 49.35/L2

13 = 98.7/L214 = 167.8/L2

15 = 256.6/L2

21 = 49.35/L222 = 78.96/L2

23 = 128.3/L224 = 197.4/L2

25 = 286.2/L2

31 = 98.7/L232 = 128.3/L2

33 = 177.7/L234 = 246.7/L2

35 = 335.6/L2

41 = 167.8/L242 = 197.4/L2

43 = 246.7/L244 = 315.8/L2

45 = 404.7/L2

51 = 256.6/L252 = 286.2/L2

53 = 335.6/L254 = 404.7/L2

Cartesian Box Value Boundary Conditions

55 = 493.5/L2

Page 12: Lecture 11 Heat and Diffusion Equation in Space …...BENG 221 M. Intaglietta Lecture 9 Time dependent solution of the heat/diffusion equation Derivation of the diffusion equation

00 = 0/L201 = 9.87/L2

02 = 39.48/L203 = 88.83/L2

04 = 157.9/L2

10 = 9.87/L211 = 19.74/L2

12 = 49.35/L213 = 98.7/L2

14 = 167.8/L2

20 = 39.48/L221 = 49.35/L2

22 = 78.96/L223 = 128.3/L2

24 = 197.4/L2

30 = 88.83/L231 = 98.7/L2

32 = 128.3/L233 = 177.7/L2

34 = 246.7/L2

40 = 157.9/L241 = 167.8/L2

42 = 197.4/L243 = 246.7/L2

Cartesian Box Flux Boundary Conditions

44 = 315.8/L2

Page 13: Lecture 11 Heat and Diffusion Equation in Space …...BENG 221 M. Intaglietta Lecture 9 Time dependent solution of the heat/diffusion equation Derivation of the diffusion equation

BENG 221 M. Intaglietta Lecture 9 Time dependent solution of the heat/diffusion equation Derivation of the diffusion equation The diffusion process is describe empirically from observations and measurements showing that the flux of the diffusing material Fx in the x direction is proportional to the negative gradient of the concentration C in the same direction, or:

xdCF Ddx

= − 1

where D, the diffusion constant, is a coefficient that may be constant, or a function of time, location and concentration.

With reference to Figure 1, the flux of material through the face of the element of volume at x, minus the flux through the face at x + dx equals the rate at which the concentration changes in the volume, assuming that fluxes occur only in the x-direction, or:

( )x xx x

F FCF F dxx t x

∂ ∂∂− + = = −

∂ ∂ ∂

Figure 1. Flux balance along the x-direction in a region of space described in Cartesian coordinates. This can be readily extended to effects in all directions yielding:

0yx zFF FC

t x y z∂∂ ∂∂

+ + + =∂ ∂ ∂ ∂

And applying (1) we obtain:

Page 14: Lecture 11 Heat and Diffusion Equation in Space …...BENG 221 M. Intaglietta Lecture 9 Time dependent solution of the heat/diffusion equation Derivation of the diffusion equation

C C CD D Dt x x y y z z

⎛ ⎞∂ ∂ ∂ ∂ ∂ ∂ ∂⎛ ⎞ ⎛= + +⎜ ⎟⎜ ⎟ ⎜∂ ∂ ∂ ∂ ∂ ∂ ∂⎝ ⎠ ⎝ ⎠⎝ ⎠

C ⎞⎟ 2

which in the nomenclature of vector analysis is expressed by:

2( ) the Laplacian operator for = constantC div D grad C D C Dt

∂= = ∇

Solution for constant diffusion coefficient from a plane source Straight forward differentiation shows that:

2142xDtC At e

−−= 3

is a solution of:

2

2

C Dt x

∂ ∂=

∂ ∂C 4

2 2

3/2 5/2 3/2 5/24 422 4 2 4

x xDt DtA Ax A Axt e t D t e t

Dt D D t− −− − −

⎛ ⎞+ = +⎜ ⎟⎜ ⎟

⎝ ⎠

This solution for C is symmetrical relative to x = 0, tends to 0 as x tends to

infinity, and is everywhere zero for t = 0, except for x = 0 where it is infinite. This solution shows the concentration of the diffusing material originating from a plane source with an amount of material M at zero time. The diffusing material is not consumed and the amount of material is constant at all times. To evaluate A we assume that material is diffusing in an infinite cylinder from a plane located at x = 0. Mass balance requires that for all times:

M Cdx∞

−∞

= ∫ 5

Changing variables and substituting in 3 and 5:

( )

122 2

12

2; 2 ; ; 2( )4 4 42

x x x xd dx d dx dx Dt dDt Dt DtDt

ξ ξ ξ ξ ξ= = = =

( )2 21 1 1 12 2 2 22( ) 2 2M At e Dt d AD e d A Dξ ξξ ξ∞ ∞

− − −

−∞ −∞

= = =∫ ∫ π

Page 15: Lecture 11 Heat and Diffusion Equation in Space …...BENG 221 M. Intaglietta Lecture 9 Time dependent solution of the heat/diffusion equation Derivation of the diffusion equation

and substituting A in 3 we obtain:

2

exp( )44

M xCDtDtπ

= − 5

In this solution half of the material diffuses in the positive x direction and the other half in the negative x. This solution is also valid for a semi infinite cylinder where diffusion takes place in the positive x-direction only from a plane located at x = 0. Clearly the concentration will be double of that of the infinite cylinder. In this case we indicate that the solution is reflected at the boundary and superposed. Note that the gradient of concentration at x = 0 is zero in both cases, indicating that in either case no material crosses the plane source (or boundary). Diffusion from a finite region consisting of a volume source The solution for the diffusion of material occupying a volume in space can be obtained by assuming that the region is composed of an infinite number of plane sources and superposing the infinite number of related solutions. This problem describes effects taking place in an infinite cylinder filled with water, where the concentration of a solute is C = Co for x < 0, C = 0 for x > 0, t = 0. Consider in the geometry of Figure 2 a plane of unit surface area containing diffusible material in a quantity Codξi located at ξi according to 5 will produce a distribution of concentration at any time t given by:

2( )( , ) exp44

o i ii

C d xC x tDtDt

ξ ξπ

⎛ ⎞−= −⎜

⎝ ⎠⎟ 6

Figure 2. Material at a concentration Co occupies the region along the negative x-axis. Therefore the effect due to the infinite number of planes at any given time t is obtained by adding the effect of each plane solution from 0 to - ∞ or:

0 20 ( )( , ) exp44

oi

i

C xC x t C dDtDtξ ξ

π=−∞ −∞

⎛ ⎞−= = −⎜

⎝ ⎠∑ ∫ ⎟ 7

Page 16: Lecture 11 Heat and Diffusion Equation in Space …...BENG 221 M. Intaglietta Lecture 9 Time dependent solution of the heat/diffusion equation Derivation of the diffusion equation

and making the substitution of variables:

and differentiating 44

x d DtDt

dξ η ξ η−= = −

Changing variables and limits of integration in 7 we obtain: for 0 / 4 and for x Dtξ η ξ η= = = −∞ = ∞ Substituting in 7 we obtain:

/ 4 0 / 42 2

0

/ 42 2

0 0

( , ) exp( ) exp( ) exp( )

exp( ) exp( )

x Dt x Dto o o

x Dto o

C C CC x t d d d

C Cd d

η η η η η ηπ π π

η η η ηπ π

−∞ −∞

= − − = − − − −

= − − −

∫ ∫ ∫

∫ ∫

2

12 2 24 4

o oC Cx xerf erfDt Dt

π ππ

⎛ ⎞ ⎛ ⎞= − = −⎜ ⎟ ⎜ ⎟⎜ ⎟ ⎝ ⎠⎝ ⎠

Note that:

2

0

2 x

erfx e dη ηπ

−= ∫

Diffusion from and in confined regions

The methods described allow to describe diffusion from a substance confined between –h < x < h along the x-axis. Solution of this problem gives the concentration in terms of:

01( , )2 4 4

h x h xC x t C erf erfDt Dt− +⎛ ⎞= +⎜ ⎟

⎝ ⎠

This solution is symmetrical about x = 0 therefore the system can be cut in half,

providing the solution for the semi-infinite system.

One dimensional diffusion from a finite system into a finite system that extends up to x = l can be analyzed by the method of reflection and superposition, where in this

Page 17: Lecture 11 Heat and Diffusion Equation in Space …...BENG 221 M. Intaglietta Lecture 9 Time dependent solution of the heat/diffusion equation Derivation of the diffusion equation

case the reflection (and superposition) occurs at x = l and x = 0. In this system the solution reflected at x = l is reflected again at x = 0, at infinitum, resulting in an infinite series of error functions, namely:

01 2 2( , )2 4 4n

h nl x h nl xC x t C erf erfDt Dt

=−∞

+ − − +⎛ ⎞= +⎜ ⎟⎝ ⎠

This solution is useful for calculating the distribution of concentration at early times, when the series converges rapidly. A solution of this type can also be obtained using the Laplace transform. Non-dimensionalization of the diffusion equation

Given the diffusion equation in one dimension (4) over a one dimensional region of total length L we introduce a non-dimensional spatial coordinate as the ratio x = x’L so that the diffusion equation becomes:

2 2

2 2( )C C DDt Lx L

∂ ∂ ∂= =

∂ ∂ ′ ∂ 2

Cx′

We can also define a non-dimensional time as t = t’t0 where t0 is an arbitrary time scale; the new equation is:

2 20

2 2 20( ) ( )

DtC D C Ct t L x t L x∂ ∂ ∂

= ∴ =∂ ′ ∂ ′ ∂ ′ ∂ ′2

C∂

Therefore setting t0 = L2/D the diffusion equation becomes:

2

2

C Ct x

∂ ∂=

∂ ′ ∂ ′

This result indicates that all diffusion problems are the same. This requires

scaling the geometry so that the basic dimension ranges from zero to one. The combination of the size and the diffusivity yield the appropriate time unit. On the scaled domain and in the proper time units, problems of different size and diffusion constants will have the same solution. Thus solving the diffusion equation for one set of boundary conditions solves it for all cases. As an example the time that it takes for diffusion to change concentration by a given amount is directly proportional to the size of its principal dimension. Thus doubling its size quadruples the time.