Heat conduction in bars: varying the boundary condition. Harmonics problem

In summary, the problem given is to show that the solution of the heat equation with odd harmonics only, subject to specific boundary and initial conditions, is a summation of Bn values multiplied by sin and exponential functions. The solution involves separating variables and solving two ODEs for T and X, then using the principle of superposition to find the general solution. The eigenvalues are determined by plugging in the given boundary conditions and the initial condition is used to find the final solution.
  • #1
Benzoate
422
0

Homework Statement



A problem with odd harmonics only. Show that the solution of the heat equation du/dt=c2*(d2u)/(dx2), subject to boundary conditions u(0,t)=0 and ux(L,t)=0, and the initial condition u(x,0)=f(x) , is

u(x,t)= [tex]\sum[/tex] Bnsin[([tex]\pi[/tex]/2L)(2n+1)x]e-((c*[tex]\pi[/tex]/2L)*(2n+1))^2

where n extends from 0 to [tex]\infty[/tex]

Bn=2/L[tex]\int[/tex] f(x) sin[([tex]\pi[/tex]/2L)*(2n+1)x]dx

where the limits extend from 0 to L

Homework Equations



Seperation of variables

The Attempt at a Solution


u(x,t)=X(x)T(t)
u(x,0)=f(x)
u2(x,t)=0
T'-kc2T=0
x''-kx=0
x'(0)=0
x'(L)=0
u2(0,t)=0

if u(0,t)=0 then u2(0,t)=0

u2(0,t)=0= u2(L,t)

not sure how to finish this derivation.

 
Physics news on Phys.org
  • #2
Benzoate said:
u(x,t)=X(x)T(t)
u(x,0)=f(x)
T'-kc2T=0
x''-kx=0

This part is correct. What does that make the general solution for T(t) and X(t) and hence u(x,t)? Remember, you will need to examine 3 different cases: (1)k=0, (2)k<0 and (3)k>0.

u2(x,t)=0

Huh? What is this supposed to mean?

x'(0)=0
x'(L)=0
u2(0,t)=0

if u(0,t)=0 then u2(0,t)=0

u2(0,t)=0= u2(L,t)

Where are you getting these boundary conditions? They are not equal to the conditions given in the question.
 
  • #3
gabbagabbahey said:
This part is correct. What does that make the general solution for T(t) and X(t) and hence u(x,t)? Remember, you will need to examine 3 different cases: (1)k=0, (2)k<0 and (3)k>0.

3 cases : you mean when

case 1: lambda =alpha^2 ==> X-alpha^2*X

X''-alphaX=0

r^2-alpha^2=0
(r-alpha)(r+alpha)=0 ==> r= +-alpha

X=c1e^alpha*x + c2e^alphae^-alpha
X'(0)=0 ==> c1*alpha-c2*alpha
X'(L)=alpha(e^alpha*L - e^(-alpha*L))c1=0 ==> c1=0

case 2 lamda =0

r=0

X=c1*x+c2

X'(0)=0 ==> c1=0

X'(L) =0 ==>0=0

X(x)=c2case 3

lambda = alpha^2 >0

r^2+alpha^2 =0 ==> r=+- alpha*i

X1=cos(alpha*x) X2=sin(alpha*x)

X=X1+X2= cos(alpha*x)+sin(alpha*x)
Huh? What is this supposed to mean?
Ignore all the functions with u2. Those are all mistakes. ; I was trying to say that if u(0,t)=0 then u(0,t)=0==> ux(0,t)=0

Therefore, ux(0,t)=0= ux(L,t)
 
Last edited:
  • #4
1. After SOV, you'll get 2 ODEs. One for spatial the other for time, then you select proper eigenvalue such that the PDE has nontrivial and physically possible solution considering the given BCs. In the case of
[tex] \dfrac {T'}{T}= k \dfrac {X''}{X}=- \lambda [/tex] with Dirichlet boundary conditions, the possible eigenvalue is [tex]\lambda >0[/tex] (easy to find out by plugging the BCs in).

2. Solve the spatial ODE, determine the coefficients and eigenvalues to satisfy the BCs.
3. Solve the T, and plug the eigenvalue into the T.
4. Write the u(x,t) in series form by applying the principle of superposition.
3. Apply initial condition to u(x,t) by setting t=0 such that u(x,0)=f(x).
4. determine the Fourier coeffs.
 
  • #5
klondike said:
1. After SOV, you'll get 2 ODEs. One for spatial the other for time, then you select proper eigenvalue such that the PDE has nontrivial and physically possible solution considering the given BCs. In the case of
[tex] \dfrac {T'}{T}= k \dfrac {X''}{X}=- \lambda [/tex] with Dirichlet boundary conditions, the possible eigenvalue is [tex]\lambda >0[/tex] (easy to find out by plugging the BCs in).

Should I let X= c1 cos ([tex]\mu[/tex] x) + c2 sin ([tex]\mu[/tex]x)
and k=-[tex]\mu[/tex]2 ; should I write T/T' in terms of c and k ?

2. Solve the spatial ODE, determine the coefficients and eigenvalues to satisfy the BCs.

What is the spatial ODE?
3. Solve the T, and plug the eigenvalue into the T.

Not sure how to determined the eigenvalues
 
  • #6
Let's say you have a 1D heat diffusion problem
[tex]
\dfrac{\partial u}{\partial t} = k \dfrac{\partial ^2u}{\partial x^2}
[/tex]
where 0<=x<=L, and with Dirichlet boundary conditions
[tex]
u(0,t)=u(L,t)=0
[/tex]
and initial temperature distribution
[tex]
u(x,0)=f(x)
[/tex]

To SOV set:
[tex]
u(x,t)=\phi(x)T(t)
[/tex]
We could set the separation constant [tex]-\lambda[/tex]
you get
[tex]
\dfrac{\phi^''}{\phi}=\dfrac{1}{k} \dfrac {T^'}{t}=- \lambda
[/tex]
you end up having 2 ODEs
[tex]
\phi^{''}+\lambda \phi = 0
[/tex]
and
[tex]
T^{'}+\lambda kt = 0
[/tex]

[tex]\phi^{''}+\lambda \phi = 0[/tex] is the spatial ODE. it's the simplest form of Sturm-Liouville Eigenvalue problem.
we can prove that the only way to get nontrivial solution is when [tex]\lambda>0[/tex], and the general solution to the spatial problem is
[tex]
\phi(x)=c1 sin(\sqrt{\lambda}x)+c2 cos(\sqrt{\lambda}x)
[/tex]
To satisfy the Dirichlet BC, it requires c2=0 and
[tex]
\lambda=(\dfrac{n \pi}{L})^2
[/tex]
now you have
[tex]
\phi(x)= cn \sin(\dfrac{n\pi x}{L})
[/tex]
the solution to T is
[tex]
T(t)=Bne^{-k \lambda t}
[/tex]
Plug lambda into T(t) and apply principle of superposition you have
[tex]
u(x,t)=\sum _{n=1} ^{\infty} A_{n}sin \dfrac{n \pi x}{L}e^{-k(n \pi/L)^2t}
[/tex]

Now you need to make u(x,t) satisfy the initial condition and determine the A_{n}. Let us know if you have further problems.


Benzoate said:
Should I let X= c1 cos ([tex]\mu[/tex] x) + c2 sin ([tex]\mu[/tex]x)
and k=-[tex]\mu[/tex]2 ; should I write T/T' in terms of c and k ?



What is the spatial ODE?


Not sure how to determined the eigenvalues
 

FAQ: Heat conduction in bars: varying the boundary condition. Harmonics problem

What is heat conduction in bars?

Heat conduction in bars refers to the transfer of heat through a solid material, such as a metal bar, due to a temperature difference between two points on the bar. The heat is transferred through the material by the movement of molecules and the vibration of atoms.

How is the boundary condition varied in heat conduction in bars?

The boundary condition can be varied by changing the temperature at the ends of the bar, also known as the boundary nodes. This can be done by either heating or cooling the ends of the bar, or by applying insulation to one or both ends.

What is a harmonics problem in heat conduction in bars?

A harmonics problem in heat conduction in bars refers to a scenario where the temperature at the boundary nodes oscillates with a specific frequency. This can occur when the boundary condition is varied periodically, such as by heating and cooling the ends of the bar at regular intervals.

How does the boundary condition affect heat conduction in bars?

The boundary condition plays a crucial role in determining the rate of heat conduction in bars. By varying the boundary condition, we can control the temperature distribution along the bar and the amount of heat transferred through it. A higher temperature difference between the ends of the bar will result in a faster rate of heat conduction.

What are some real-world applications of heat conduction in bars with varying boundary conditions?

Heat conduction in bars with varying boundary conditions has many practical applications. Some examples include the cooling of electronic devices, heating and cooling systems in buildings, and thermal insulation in kitchen appliances. It is also essential in the design of heat exchangers, which are used in industries such as power generation and refrigeration.

Similar threads

Replies
5
Views
635
Replies
1
Views
2K
Replies
8
Views
3K
Replies
8
Views
2K
Replies
1
Views
1K
Replies
17
Views
2K
Back
Top