Physics Library
 An open source physics library
Encyclopedia | Forums | Docs | Random |  
Login
create new user
Username:
Password:
forget your password?
Main Menu
Sections

Meta

Talkback

Downloads

Information
[parent] example of solving the heat equation (Example)

Let a thin square-formed plate of heat conducting homogeneous material be in the xy-plane with sides on the x-axis (isolated), on the line y = π (held at the constant temperature u = C), and on the vertical lines x = 0 and x = π (both held at the constant temperature u = 0). Determine the temperature function (x, y)↦→u(x, y) on the plate, when the faces of the plate are isolated.

The equation of the heat flow in this stationary case is

2u u′′ xx + u′′yy = 0 (1)

under the boundary conditions

                                        ′
u(0, y) = 0, u(π, y ) = 0, u (x, π) = C, uy(x, 0) = 0.

We first try to separate the variables, i.e. seek the solution of (1) of the form

u(x, y) :=  X (x)Y (y ).

Then we get

  ′     ′    ′′      ′′    ′       ′   ′′       ′′
u x = X Y, u xx = X  Y, uy = XY  , u yy = XY   ,

and thus (1) gets the form

X′′Y + XY ′′ = 0 (2)

and the boundary conditions

                            -C---    ′
X (0) = X (π) = 0,  X (x ) = Y (π ), Y (0) = 0.

We separate the variables in (2):

X ′′    Y ′′
-X--= − -Y-

This equation is not possible unless both sides are equal to a same negative constant k2, which implies for X′′ = k2X the solution

X := C1 cos kx + C2 sin kx

and for Y ′′ = k2Y the solution

Y  :=  D  coshky +  D  sinh ky.
       1            2

The two first boundary conditions give 0 = X(0) = C1, 0 = X(π) = 0 + C2 sin , and since C20, we must have sin = 0, i.e.

0 < k :=  n = 1, 2, 3, ...

Therefore

                     ′
X (x ) := C2 sinnx, Y (y) ≡ nD1  sinh ny + nD2  cosh ny.

The fourth boundary condition now gives that 0 = Y (0) = nD2; thus D2 = 0 and Y (y) := D1 cosh ny. So (1) has infinitely many solutions

un := C2D1 sin nx cosh ny = An sin nx cosh ny (3)

with n + and they all satisfy the boundary conditions except the third. Because of the linearity of (1), also the sum

     ∑∞
u :=     An sin nx cosh ny
     n=1

of the functions (3) satisfy (1) and those boundary conditions, provided that this series converges. The third boundary condition requires that

                ∞                      ∞
               ∑                      ∑
C  = u(x, π) =     An sin nx cosh nπ =     (An  coshnπ )sinhnx
               n=1                    n=1

on the interval 0 x π. But this is the Fourier sine series of the constant function x↦→C on the half-interval [0, π], whence

               ∫ π
An coshn π = 2-    C sinnx dx =  2C-(1− (− 1)n)  ∀n ∈ ℤ+.
             π  0                nπ

The even n’s here give 0 and the odd give

A      := ----------4C------------  (m =  0, 1, 2, ...)
  2m+1    (2m+1  )π cosh(2m+1  )π

Thus we obtain the solution

                ∞
           4C- ∑   sin-(2m+1--)xcosh(2m+1---)y-
u(x, y) :=   π        (2m+1  )cosh(2m+1  )π   .
               m=0

It can be shown that this series converges in the whole square of the plate.

Visualization of the solution

PIC

Figure 1:Surface plot of the solution u(x,y), for C = 1

PIC

Figure 2:Color-coded plot of the temperature u(x,y)

Remark. The function u has been approximated in the plot by computing a partial sum of the true infinite-series solution. However, there is substantial numerical error in the approximate solution near y = π, evident in the small oscillations observed in the surface plot, that should not be there in theory. This phenomenon is actually inevitable given that the boundary conditions are actually discontinuous at the corners (0, π) and (π, π).

More precisely, observe that when y = π, the formula for u(x, y) reduces to the Fourier series

4C  (        sin3x    sin 5x      )
---   sin x + ------+  ------+ ⋅⋅⋅
 π             3        5

for the discontinuous function on [π, π]:

     {
      C  ,   0 < x <  π
x ↦→   − C ,  − π < x <  0

That means the Fourier expansion will necessarily be subject to the Gibbs phenomenon. Of course, the series also cannot converge absolutely; in other words, the terms of the series decay too slowly in magnitude, adversely affecting the numerical solution.


"example of solving the heat equation" is owned by bloftin.
(view preamble)
View style:

This object's parent.

Cross-references: magnitude, boundary, function, temperature
There is 1 reference to this object.

This is version 1 of example of solving the heat equation, born on 2007-08-11.
Object id is 260, canonical name is ExampleOfSolvingTheHeatEquation.
Accessed 2842 times total.

Classification:
Physics Classification44. (Heat transfer)
Pending Errata and Addenda
None.
Discussion
Style: Expand: Order:

No messages.

Interact
rate | post | correct | update request | add example | add (any)