15radiat.mws

Partial Differential Equations PowerTool

by Dr. Jim Herod

Section 4.2: Heat Diffusion with Radiation Cooling

Maple Packages for Section 4.2

>    restart;

>    with( PDEtools ):

>   

In Newton's Law of Cooling, it is supposed that if a body with temperature alpha  is immersed in a medium with temperature beta  then the body cools according to the model,

                                      T ' = - k  ( T - beta  ),  T(0) = alpha .

Here, k  is the heat transfer coefficient. This model takes the object to be a point source. If we assume that we have a rod that is not insulated, so that we have diffusion and radiation cooling, the equation becomes slightly more complicated. We have an equation with a diffusion term and a radiation cooling term:

              diff(u(t,x),t) = diff(u(t,x),`$`(x,2))-k*(u(t,x)-beta)  .

We suppose that the ends of the rod are at some constant temperature. For this example, take the end points to have temperature beta  . Also, the rod should have an initial temperature. So as not to be too specific, take the initial temperature to be distributed over the rod as expressed by a function f ( x ). We write the boundary condition and initial conditions as

          u( t, 0) = beta   and u( t, L) = beta ,  with u( 0, x) = f ( x ).

Here, the length of the rod is L.

This is the problem we address in this section. If beta  were zero, this would be a homogeneous partial differential equation.  If beta  is not zero, it is a non-homogeneous partial differential equation .

A review of Section 3.2, Problem 3 might be appropriate here. As indicated in the discussion of that problem, we divide the equation into two parts: the steady state equation and the transient equation. We solve both these equations and find that their sum provides a solution to the original problem. Here are the two equations:

Steady State Equation:  

              0 = diff(v(x),`$`(x,2))-k*(v(x)-beta)  with v(t, 0) = beta  and v(t, L) = beta .

                 

Transient Equation:

              diff(w(t,x),t) = diff(w(t,x),`$`(x,2))-k*w(t,x)  with w(t, 0) = 0 and w(t, L) = 0.

 The sum of these two solutions provides a solution for the original problem.

Steady State + Transient

We show here that the steady state solution plus the transient solution provides a solution for the original problem.

>    u:=(t,x)->v(x)+w(t,x);

u := proc (t, x) options operator, arrow; v(x)+w(t,x) end proc

>    diff(u(t,x),t);

diff(w(t,x),t)

>    diff(v(x),x,x)+k*(v(x)-beta)+subs({diff(w(t,x),t)=diff(w(t,x),x,x)-k*w(t,x)},diff(u(t,x),t));

diff(v(x),`$`(x,2))+k*(v(x)-beta)+diff(w(t,x),`$`(x,2))-k*w(t,x)

>    collect(%,k);

(v(x)-beta-w(t,x))*k+diff(v(x),`$`(x,2))+diff(w(t,x),`$`(x,2))

We see that, because u(t, x) = v(x) + w(t, x),  this last becomes

              diff(u(t,x),t) = diff(u(t,x),`$`(x,2))-k*(u(t,x)-beta)  .

Boundary conditions check, too.

>   

We solve these two equations, one at a time.

Solution for the Steady State Equation

The notion of a steady state solution is, first, physical. With a system such as that which modeled radiation cooling, we had a non-homogeneous partial differential equation. The long range forecast was that no matter what the initial condition, the solution for the equation will evolve in time, settling down to a solution that is not changing in time. This solution is steady  in time.

     Such a notion is easy to characterize mathematically. It must be that the steady solution is, in fact, a solution of the partial differential equation, but also it is not changing in time. The derivative with respect to t  is zero.

     We say this again with an equation.

     0 = diff(u(t,x),`$`(x,2))-k*u(t,x)+k*beta ,

with

         u(t,0) = beta  and u(t,1) = beta .

     Since this is a steady state, and time is not a factor, we could consider this as actually an ordinary differential equations in x. We write it with that notation and call solution which is a function of x  by v ( x ).

     0 = v''(x) - k  v(x) + k beta , with s(0) = beta  and s(1) = beta .

The steady state solution is computed.

>    SState:=dsolve({diff(v(x),x,x)-k*(v(x)-beta)=0,v(0)=beta,v(L)=beta},v(x));

SState := v(x) = beta

We should not be surprised that if the endpoints are held at temperature beta  and the surrounding medium has temperature beta  then the long range forecast is that the rod has temperature beta .

>   

Solution for the Transient Equation

We solve the transient equation. Recall the equation from above:

            diff(w(t,x),t) = diff(w(t,x),`$`(x,2))-k*w(t,x)  with w(t, 0) = 0 and w(t, L) = 0.

As in Section 4.1, the method is separation of variables. Suppose that w can be written as

        w(t,x) = T( t )X( x ).

In this case, the above equation becomes

        T ' X = T X '' - k   T X

or

           T '/ T  =  (X ''- k  X) / X.

With the same arguments as used in Section 4.1, this last equation leads to two ordinary differential equations with boundary conditions:

                    X '' - k  X = mu  X, with X(0) = X(L) = 0,

and               T ' = mu  T.

We solve these two differential equations. We can change the first one to

                   X '' = ( k  + mu  ) X, with X(0) = X(L) = 0.

From arguments similar to those in Section 3.3, we get the eigenvalues and eigenfunctions for this problem. We find that there are an infinite of possible values:

               ( k  + mu  ) = -n^2*Pi^2/(L^2) , n = 1, 2, 3, ...

Corresponding to each n , we have

              X ` `[n]  ( x ) = sin( n pi   x /L ).

The equation for T becomes

                 T ' = ( -k-n^2*Pi^2/(L^2)  ) T.

Solutions for this equation will be

                 T ` `[n]  ( t ) = exp( - k   t ) exp( -n^2*Pi^2/(L^2)*t  ).

We check these solutions for the ODE's

>    X:=x->sin(n*Pi*x/L);
T:=t->exp(-k*t)*exp(-n^2*Pi^2*t/L^2);

X := proc (x) options operator, arrow; sin(n*Pi*x/L) end proc

T := proc (t) options operator, arrow; exp(-k*t)*exp(-n^2*Pi^2*t/L^2) end proc

>    simplify(diff(X(x),x,x)-k*X(x)+(k+n^2*Pi^2/L^2)*X(x));

0

>    X(0); X(L);

0

sin(n*Pi)

>    simplify(diff(T(t),t)+(k+n^2*Pi^2/L^2)*T(t));

0

>   

Having these solutions for the ordinary differential equations, we can construct the general solution for the homogeneous partial differential equation.

              u( t, x ) = exp(-k*t)*sum(A[n]*exp(-n^2*Pi^2/(L^2)*t)*sin(n*Pi*x/L),n = 1 .. infinity)  .

This provides a solution for the transient equation.

We are now ready to make the solution for the original problem. We add the solution for the steady state equation and the equation for the transient equation:

         u( t, x) = beta+exp(-k*t)*sum(A[n]*exp(-n^2*Pi^2/(L^2)*t)*sin(n*Pi*x/L),n = 1 .. infinity)

In doing our calculations, we use only a finite approximation for this u.

>    u:=(t,x)->beta+exp(-k*t)*sum(A[n]*exp(-n^2*Pi^2/L^2*t)*sin(n*Pi*x/L),
            n=1..10);            

u := proc (t, x) options operator, arrow; beta+exp(-k*t)*sum(A[n]*exp(-n^2*Pi^2*t/L^2)*sin(n*Pi*x/L),n = 1 .. 10) end proc

>   

Check the solution for the original PDE

We check that this is a solution for the partial differential equation with boundary conditions.

>    diff(u(t,x),t)-diff(u(t,x),x,x)+k*(u(t,x)-beta);

0

>    u(t,0); u(t,L);

beta

beta

>   

To get the particular solution that satisfies the initial condition

                f(x) = u(0, x) = beta  + sum(A[n]*sin(n*Pi*x/L),n = 1 .. infinity) .

We see that getting the coefficients A[n]  is simply a matter of computing the Fourier coefficients for the function f(x) - beta .

At this point, we have not specified a particular L, or k, or beta , or f.   We do this now so that calculations may be made, solutions obtained, and graphs drawn. Take  L = 2, beta  = 3,   k = 0.005, and

                                              f ( x ) = x^2*(2-x)+3 .

>    L:=2; beta:=3; k:=5/1000; f:=x->x^3*(2-x)+3;

L := 2

beta := 3

k := 1/200

f := proc (x) options operator, arrow; x^3*(2-x)+3 end proc

>    f(x)=u(0,x);

x^3*(2-x)+3 = 3+A[1]*sin(1/2*Pi*x)+A[2]*sin(Pi*x)+A[3]*sin(3/2*Pi*x)+A[4]*sin(2*Pi*x)+A[5]*sin(5/2*Pi*x)+A[6]*sin(3*Pi*x)+A[7]*sin(7/2*Pi*x)+A[8]*sin(4*Pi*x)+A[9]*sin(9/2*Pi*x)+A[10]*sin(5*Pi*x)
x^3*(2-x)+3 = 3+A[1]*sin(1/2*Pi*x)+A[2]*sin(Pi*x)+A[3]*sin(3/2*Pi*x)+A[4]*sin(2*Pi*x)+A[5]*sin(5/2*Pi*x)+A[6]*sin(3*Pi*x)+A[7]*sin(7/2*Pi*x)+A[8]*sin(4*Pi*x)+A[9]*sin(9/2*Pi*x)+A[10]*sin(5*Pi*x)

>    for n from 1 to 10 do
   A[n]:=int((f(x)-beta)*sin(n*Pi*x/L),x=0..L)/
            int(sin(n*Pi*x/L)^2,x=0..L);
od;
n:='n':

A[1] := 192*(-8+Pi^2)/Pi^5

A[2] := -24/Pi^3

A[3] := 64/81*(-8+9*Pi^2)/Pi^5

A[4] := -3/Pi^3

A[5] := 192/3125*(-8+25*Pi^2)/Pi^5

A[6] := -8/9/Pi^3

A[7] := 192/16807*(-8+49*Pi^2)/Pi^5

A[8] := -3/8/Pi^3

A[9] := 64/19683*(-8+81*Pi^2)/Pi^5

A[10] := -24/125/Pi^3

>   

Since we have checked that this u  satisfies the partial differential equation and the boundary conditions, we only check that it is an approximation for f ( x ). In fact, we off set the graph of f  a little so that we can distinguish these two.

>    plot([u(0,x),f(x)+0.01],x=0..L,u=0..5);

[Maple Plot]

>   

Finally, we draw a graph of u . What we should expect is that the solution moves from a shape similar to the graph of f  to the steady state of beta .

>    plot3d(u(t,x),x=0..2,t=0..1,axes=normal,orientation=[-120,60]);

[Maple Plot]

>   

What was new in this section was how to handle a non-homogeneous partial differential equation. The technique was to formulate the steady state equation and the transient equation. It is a good idea to verify that this has been done correctly by checking that the sum of these two is a solution for the original problem. The next step is to solve these two equations, add the solutions, and determine the appropriate coefficients using the Fourier Idea.

Unassisted Maple

We check to see what Maple 8 can do with this equation unassisted. Be aware that we have called in the PDE(tools) at the start of this Section.

>    u:='u':

>    PDE:=diff(u(t,x),t)-diff(u(t,x),x,x)+k*(u(t,x)-beta);

PDE := diff(u(t,x),t)-diff(u(t,x),`$`(x,2))+1/200*u(t,x)-3/200

>    ans:=pdsolve(PDE);

ans := `&where`(u(t,x) = _F1(t)*_F2(x)+3/_C1*(_C1+_C2*exp(1/20*2^(1/2)*x)+_C3*exp(-1/20*2^(1/2)*x)),[{diff(_F1(t),t) = _c[1]*_F1(t), diff(_F2(x),`$`(x,2)) = _c[1]*_F2(x)+1/200*_F2(x)}])
ans := `&where`(u(t,x) = _F1(t)*_F2(x)+3/_C1*(_C1+_C2*exp(1/20*2^(1/2)*x)+_C3*exp(-1/20*2^(1/2)*x)),[{diff(_F1(t),t) = _c[1]*_F1(t), diff(_F2(x),`$`(x,2)) = _c[1]*_F2(x)+1/200*_F2(x)}])

>    build(ans);

u(t,x) = _C1*exp(_c[1]*t)*_C2*sin(1/20*(-400*_c[1]-2)^(1/2)*x)+_C1*exp(_c[1]*t)*_C3*cos(1/20*(-400*_c[1]-2)^(1/2)*x)+3+3/_C1*_C2*exp(1/20*2^(1/2)*x)+3/_C1*_C3*exp(-1/20*2^(1/2)*x)

>   

>   

>   

We see that Maple successfully recognizes that the solution should be a sum of a solution for the steady state equation plus a product of functions which will be solutions for the transient equation. Because the solution was obtained without any information about the boundary conditions, this will not be the same solution that we humans got with the assistance of Maple.

Maple handles this problem deftly with other techniques. See Section 8.2.

 

EMAIL: herod@math.gatech.edu   or   jherod@tds.net

URL: http://www.math.gatech.edu/~herod

Copyright ©  2003  by James V. Herod

All rights reserved