Heat equation/Solution to the 2-D Heat Equation

From testwiki
Revision as of 07:34, 14 May 2023 by 195.64.208.216 (talk) (Solution)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Definition

The solution to the 2-dimensional heat equation (in rectangular coordinates) deals with two spatial and a time dimension, u(x,y,t). The heat equation, the variable limits, the Robin boundary conditions, and the initial condition are defined as:

ut=k[uxx+uyy]+h(x,y,t)(x,y,t)[0,L]×[0,M]×[0,)α1u(0,y,t)β1ux(0,y,t)=b1(y,t)α2u(L,y,t)+β2ux(L,y,t)=b2(y,t)α3u(x,0,t)β3uy(x,0,t)=b3(x,t)α4u(x,M,t)+β4uy(x,M,t)=b4(x,t)u(x,y,0)=f(x,y)

Solution

The solution is just an advanced version of the solution in 1 dimension. If you have questions about the steps shown here, review the 1-D solution.

Step 1: Partition Solution

Just as in the 1-D solution, we partition the solution into a "steady-state" and a "variable" portion:

u(x,y,t)=s(x,y,t)steady-state+v(x,y,t)variable

We substitute this equation into the initial boundary value problem (IBVP):

{st+vt=k[sxx+vxx+syy+vyy]+h(x,y,t)α1s(0,y,t)+α1v(0,y,t)β1sx(0,y,t)β1vx(0,y,t)=b1(y,t)α2s(0,y,t)+α2v(L,y,t)+β2sx(L,y,t)+β2vx(L,y,t)=b2(y,t)α3s(x,0,t)+α3v(x,0,t)β3sy(x,0,t)β3vy(x,0,t)=b3(x,t)α4s(x,M,t)+α4v(x,M,t)+β4sy(x,M,t)+β4vy(x,M,t)=b4(x,t)s(x,y,0)+v(x,y,0)=f(x,y)

We want to set some conditions on s and v:

  1. Let s satisfy the Laplace equation: sxx+syy=0.
  2. Let s satisfy the non-homogeneous boundary conditions.
  3. Let v satisfy the non-homogeneous equation and homogeneous boundary conditions.

We end up with 2 separate IBVPs:

{sxx+syy=0α1s(0,y,t)β1sx(0,y,t)=b1(y,t)α2s(0,y,t)+β2sx(L,y,t)=b2(y,t)α3s(x,0,t)β3sy(x,0,t)=b3(x,t)α4s(x,M,t)+β4sy(x,M,t)=b4(x,t)

{vt=k[vxx+vyy]+h(x,y,t)st(x,y,t)α1v(0,y,t)β1vx(0,y,t)=0α2v(L,y,t)+β2vx(L,y,t)=0α3v(x,0,t)β3vy(x,0,t)=0α4v(x,M,t)+β4vy(x,M,t)=0v(x,y,0)=f(x,y)s(x,y,0)

Step 2: Solve Steady-State Portion

Solving for the steady-state portion is exactly like solving the Laplace equation with 4 non-homogeneous boundary conditions. Using that technique, a solution can be found for all types of boundary conditions.

Step 3: Solve Variable Portion

Step 3.1: Solve Associated Homogeneous BVP

The associated homogeneous BVP equation is:

vt=k[vxx+vyy]

The boundary conditions for v are the ones in the IBVP above.

Separate Variables

v(x,y,t)=X(x)Y(y)T(t)

XYT=k[XYT+XYT]

TkT=XX+YY=μ

By similar methods, you obtain the following ODEs:

{TμkT=0XρX=0YδY=0μ=ρ+δ (coupling equation) 

Translate Boundary Conditions

[α1X(0)β1X(0)]Y(y)T(t)=0[α2X(L)+β2X(L)]Y(y)T(t)=0[α3Y(0)β3Y(0)]X(x)T(t)=0[α4Y(M)+β4Y(M)]X(x)T(t)=0}α1X(0)β1X(0)=0α2X(L)+β2X(L)=0α3Y(0)β3Y(0)=0α4Y(M)+β4Y(M)=0

Solve SLPs

XρX=0α1X(0)β1X(0)=0α2X(L)+β2X(L)=0}ρ=λ2Eigenvalues λn: solutions to equation (α1α2β1β2λ2)sin(λL)+(α1β2+α2β1)λcos(λL)=0Xn(x)=β1λncos(λnx)+α1sin(λnx),n=0,1,2,

YδY=0α3Y(0)β3Y(0)=0α4Y(M)+β4Y(M)=0}δ=λ^2 Eigenvalues λ^m: solutions to equation (α3α4β3β4λ^2)sin(λ^M)+(α3β4+α4β3)λ^cos(λ^M)=0Ym(x)=β3(λ^m)cos(λ^my)+α3sin(λ^my),m=0,1,2,

We have obtained eigenfunctions that we can use to solve the nonhomogeneous IBVP.

Step 3.2: Solve Non-homogeneous IBVP

Setup Problem

Just like in the 1-D case, we define v(x,y,t) and q(x,y,t) as infinite sums:

v(x,y,t):=m,n=0Tmn(t)Xn(x)Ym(y)

q(x,y,t):=m,n=0Qmn(t)Xn(x)Ym(y),Qmn(t)=0L0Mq(x,y,t)Xn(x)Ym(y)dydx0LXn2(x)dx0MYm2(y)dy

Determine Coefficients

We then substitute expansion into the PDE:

t[Tmn(t)Xn(x)Ym(y)]=k{x2[Tmn(t)Xn(x)Ym(y)]+y2[Tmn(t)Xn(x)Ym(y)]}+Qmn(t)Xn(x)Ym(y)

Tmn(t)Xn(x)Ym(y)=k{Tmn(t)Xn(x)Ym(y)+Tmn(t)Xn(x)Ym(y)}+Qmn(t)Xn(x)Ym(y)

Tmn(t)Xn(x)Ym(y)=k{Tmn(t)[λn2Xn(x)]Ym(y)+Tmn(t)Xn(x)[λ^m2Ym(y)]}+Qmn(t)Xn(x)Ym(y)

[Tmn(t)+k(λn2+λ^m2)]Xn(x)Ym(y)=Qmn(t)Xn(x)Ym(y)

This implies that Xn(x)Ym(y) forms an orthogonal basis. This means that we can write the following:

Tmn(t)+k(λn2+λ^m2)=Qmn(t)

This is a first-order ODE which can be solved using the integration factor:

μ(t)=ek(λn2+λ^m2)dt=ek(λn2+λ^m2)t

Solving for our coefficient we get:

Tmn(t)=ek(λn2+λ^m2)t0tek(λn2+λ^m2)sQmn(s)ds+Cmnek(λn2+λ^m2)t

Satisfy Initial Condition

We apply the initial condition to our equation above:

v(x,y,0)=f(x,y)s(x,y,0)=Tmn(0)Xn(x)Ym(y)=CmnXn(x)Ym(y)

The Fourier coefficients can be solved using the inner product definition:

Cmn=0L0M[f(x,y)s(x,y,0)]Xn(x)Ym(y)dydx0LXn2(x)dx0MYm2(y)dy

We have all the necessary information about the variable portion of the function.

Step 4: Combine Solutions

We now have solved for the "steady-state" and "variable" portions, so we just add them together to get the complete solution to the 2-D heat equation.

Template:CourseCat