Docsity

Heat Equation - Lecture Notes | GLY 5828, Study notes of Hydrogeology

Toggle sidebar
bg1
Heat (Diffusion) Equation
Derivation of Diffusion Equation
The fundamental mass balance equation is
∑
∑
∑
∑
∑
=−−+ ALOPI ( 1 )
where:
• I = inputs
• P = production
• O = outputs
• L = losses
• A = accumulation
Assume that no chemical is produced or lost within the control volume and hence ΣP =
ΣL = 0. So ( 1 ) simplifies to
∑
∑
∑
=− AOI ( 2 )
Considering a control volume cell where there is flux in the x direction only, we have
where Jx|x indicates the mass flux density (ML-2T-1) in the x direction at the point x.
x +
∆
x
∆y
∆
z
x
Jx|x+∆x
Jx|x
pf3
pf4
pf5

Partial preview of the text

Download Heat Equation - Lecture Notes | GLY 5828 and more Study notes Hydrogeology in PDF only on Docsity!

Heat (Diffusion) Equation

Derivation of Diffusion Equation

The fundamental mass balance equation is

∑ I^ +^ ∑ P −∑ O −∑ L =∑ A ( 1 ) where:

  • I = inputs
  • P = production
  • O = outputs
  • L = losses
  • A = accumulation

Assume that no chemical is produced or lost within the control volume and hence ΣP = ΣL = 0. So ( 1 ) simplifies to

∑ I^ −^ ∑ O =∑ A ( 2 )

Considering a control volume cell where there is flux in the x direction only, we have

where J (^) x| (^) x indicates the mass flux density (ML -2^ T-1^ ) in the x direction at the point x.

x + ∆x

∆y

∆z

x

J (^) x|x Jx |x+∆x

In order to satisfy ( 2 ) , we must have

( ) (^) x y z t

C

J (^) x (^) x Jxx x y z ∆∆ ∆ ∂

That is, the flux into the left wall times the area over which it occurs, minus the flux out of the right wall times its area in any interval of time ∆t must equal the change in chemical mass in the control volume.

Diffusion occurs in response to concentration gradients (e.g., ∂C/∂x = 0.001) in accordance with Fick’s law:

x

C

J D

where J is the areal flux (ML-2^ T-1^ ) and D is the diffusion coefficient (L^2 T-1^ ).

Incorporating Fick’s law into equation ( 3 ) , we have

x y z t

C

y z x

C

D

x

C

D

x x x

+∆

Dividing both sides by ∆x∆y∆z gives

t

C

x

x

C

D

x

C

D

x x x ∂

Obviously, we are just taking the gradients of the gradients, and if we shrink ∆x to differential size (and assume that D is constant in space) we have

t

C

x

x

C

D

or equivalently,

t

C

x

C

D

2

2 ( 8 )

This is the 1-D version of the widely applicable Heat Equation.

2

/ 2 / 2 2

2

x

C C C

x

x

C C

x

C C

x

x

C

x

C

x

C

x x x x x

x x x x x x

x x x x

+∆ −∆

+∆ −∆

+∆ −∆

We need a finite difference estimate for ∂C/∂t too. This is a little more complicated because now we have to include time.

The simplest approach is to use the ‘known’ concentration from the previous time step. At the start of any numerical solution, the Initial Condition will be the time 0 concentration. So, we can approximate the derivative ∂C/∂t by ∆C/∆t or

t

C C

t

C t

C (^) xt xt t ∆

−

∆

∆ ≅ ∂

∂ (^) , ,−∆ ( 12 )

Putting it all together

The heat equation is:

t

C

x

C

D

2

2 ( 13 )

C|x, t x

x +∆x

∂C/∂t| (^) t-∆t/2 Estimate here

t-∆t

t

x -∆x

C|x, t-∆t

Let’s replace the derivative terms with their finite difference approximations.

t

C C

x

C (^) x xt t Cxt t Cx xt t xt xt t ∆

+∆ −∆ −^ −∆ + −∆ −∆ , ,−∆

2

D ,^2 , , ( 14 )

Written this way, nearly all of the concentrations (all of those with the t – ∆t subscript) are known from the previous time step or from the initial condition. Cx,t is the only exception and it is what we are trying to determine.

Let’s rearrange to solve for Cx,t:

x t xt t^ ( C^ x xt t Cxt t Cx xt t )

x

t C C −∆ (^) +∆ −∆ − −∆ + −∆ −∆ ∆

, =^ , + 2 ,^2 , ,

D

This is the ‘fully explicit’ finite difference approximation for the Heat equation. It is ‘explicit’ because it works with the known concentrations from the previous time step. While this is relatively simple, it is only stable when the factor D∆t/∆x^2 is less or equal to ½. This can be a serious limitation. Say we want to simulate a diffusion coefficient of 10- (^2) cm (^2) s -1 (^) (gas in soil). That means ∆t/∆x (^2) has to be less than 0.02 s cm-2 (^). If we wanted to

simulate the process with one second time steps, we’d need space steps of 0.02 cm. Simulating a 2 m soil profile would require calculations at 10,000 space nodes!

There are other approaches for the time derivative that avoid this stability restriction.

Initial and Boundary Conditions

Initial and boundary conditions must be specified when differential equations like the heat equation are to be solved. Initial conditions simply specify the concentrations throughout the problem domain at time zero.

Boundary conditions specify either

  1. The concentrations at the boundaries, or
  2. The chemical flux at the boundaries (usually zero)

The fixed concentration boundary concept is simple. The chemical flux boundary is slightly more difficult. We go back to Fick’s law

x

C

J D

and notice that if ∂C/∂x = 0, then there is no flux. The finite difference expression we developed for ∂C/∂x is

x

C C

x

C x x x

x x ∆

  • ∆/ 2