Numerical Methods for Engineers
Numerical Methods for Engineers
7th Edition
ISBN: 9780077492168
Author: Chapra
Publisher: MCG
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 27, Problem 28P

A heated rod with a uniform heat source can be modeled with the Poisson equation,

d 2 T d x 2 = f ( x )

Given a heat source f ( x ) = 25 and the boundary conditions, T ( x = 0 ) = 40 and  T ( x = 10 ) = 200 , solve for the temperature distribution with (a) the shooting method and (b) the finite-difference method ( Δ x = 2 ) .

(a)

Expert Solution
Check Mark
To determine

To calculate: The temperature distribution by shooting method for a heated rod with a uniform heat source given by Poisson equation, d2Tdx2=f(x)

, where heat source f(x)=25 and the boundary conditions, T(x=0)=40 and T(x=10)=200

, also Δx=2.

Answer to Problem 28P

Solution: The table of the solution of the boundary value problem is,

xTz0401412272914404416436983685910200109

Explanation of Solution

Given:

A differential equation, d2Tdx2=f(x)

, where heat source f(x)=25 and the boundary conditions, T(x=0)=40 and T(x=10)=200

, also Δx=2.

Formula used:

Linear-interpolation formula:

f1(x)=f(x0)+f(x1)f(x0)x1x0(xx0)

Calculation:

Consider the following Poisson equation, d2Tdx2=f(x).

Since, f(x)=25

. Then,

d2Tdx2=25

Also, T(0)=40,T(10)=200.

Now, change the above boundary value problem into equivalent initial-value problem. Thus,

dTdx=z and  d2Tdx2=dzdx

But d2Tdx2=25

. Therefore,

dTdx=z and   dzdx=25

Now, use the shooting method in the above system of first order linear differential equation

Suppose, z(0)=1 and given that T(0)=40.

Then, the system of system of first order linear differential equation with initial condition is

dTdx=z and  dzdx=25T(0)=40, z(0)=1

Now, solve the above system of differential equation

Then,

dzdx=25dz=25dx

Integrate on both the sides of the above differential equation

Then, z(x)=25x+C1

Where C1 is constant of integration

Now, use the initial condition, z(0)=1

. Then,

z(0)=25×0+C11=25×0+C1C1=1

Therefore, z(x)=25x1.

Since, dTdx=z

. But z(x)=25x1

. Thus,

dTdx=25x1dT=(25x1)dx

Integrate on both the sides of the above differential equation. Thus,

T(x)=(25x221x)+C2

Where C2

is constant of integration.

Use the initial condition, T(0)=40

. Then,

T(0)=(25(0)221×(0))+C240=0+C2C2=40

Therefore,

T(x)=(25x22x)+40

Now, evaluate the above for T(10)

. Thus,

T(10)=(25102210)+40=125010+40=1220

Hence, T(10)=1220.

But the above of T(10) is much different from the boundary condition of T(10)=200.

Then, put another guess. Suppose z(0)=0.5.

Then, the system of system of first order linear differential equation with initial condition is,

dTdx=zdzdx=25T(0)=40,z(0)=0.5

Now, solve the above system of differential equation. Thus,

dzdx=25dz=25dx

Integrate on both the sides of the above differential equation, to get

z(x)=25x+C1

Where C1 is constant of integration

Now, use the initial condition, z(0)=0.5.

Then,

z(0)=25×0+C10.5=25×0+C1C1=0.5

Therefore, z(x)=25x0.5.

Since, dTdx=z.

But z(x)=25x0.5

. Therefore,

dTdx=25x0.5dT=(25x0.5)dx

Integrate on both the sides of the above differential equation. Thus,

T(x)=(25x220.5x)+C2

Where C2

is constant of integration.

Use the initial condition, T(0)=40

. Thus,

T(0)=(250220.5×0)+C240=0+C2C2=40

Therefore, T(x)=(25x220.5x)+40.

Now, evaluate the above for T(10).

Then,

T(10)=(2510220.5×10)+40=12505+40=1215

Hence, T(10)=1215.

Since, the first guess value z(0)=1

corresponds to T(10)=1220 and the second-guess value z(0)=0.5

corresponds to T(10)=1215

, use these values to compute the value of z(0)

that yields T(10)=200.

Then, by linear interpolation formula

z(0)=1+0.5+11215(1220)(200(1220))=1+0.5×14205=1+142=141

Therefore, the right value of z(0) which yields T(10)=200 is z(0)=141.

Then, the equivalent initial value problem corresponding to the boundary value problem is,

dTdx=zdzdx=25T(0)=40,z(0)=141

Now, use the fourth order RK method with step size h=2.

The RK method for above system of first order linear differential equation with initial condition is,

Tn+1=Tn+16(k0+2k1+2k2+k3)zn+1=zn+16(l0+2l1+2l2+l3)

Where xn+1=xn+nh

And

k0=hf(xn,Tn,zn)k1=hf(xn+12h,Tn+12k0,zn+12l0)k2=hf(xn+12h,Tn+12k1,zn+12l1)k3=hf(xn+h,Tn+k2,zn+l2)

And

l0=hg(xn,Tn,zn)l1=hg(xn+12h,Tn+12k0,zn+12l0)l2=hg(xn+12h,Tn+12k1,zn+12l1)l3=hg(xn+h,Tn+k2,zn+l2)

Where f(xn,Tn,zn)=zn and g(xn,Tn,zn)=25

Then, for n=0, x1=x0+0×2=0

And compute the values as shown below,

k0=hf(x0,T0,z0)=2×z0=2×141=282l0=hg(x0,T0,z0)=2×(25)=50k1=hf(x0+12h,T0+12k0,z0+12l0)=2(z0+12l0)=2(141+12(50))=232l1=hg(x0+12h,T0+12k0,z0+12l0)=2(25)=50

Also,

k2=hf(x0+12h,T0+12k1,z0+12l1)=2(z0+12l1)=2(141+12(50))=232l2=hg(x0+12h,T0+12k1,z0+12l1)=2×(25)=50k3=hf(x0+h,T0+k2,z0+l2)=2×(z0+l2)=2(14150)=182l3=hg(x0+h,T0+k2,z0+l2)=2×(25)=50

Then,

T1=T0+16(k0+2k1+2k2+k3)=40+16(282+464+464+182)=272

And

z1=z0+16(l0+2l1+2l2+l3)=141+16(502×502×5050)=14150=91

In the similar way, find the remaining Tn and zn

. Thus,

T2=404 and z2=41

T3=436 and z3=9

T4=368 and z4=59

And

T5=200 and z5=109

Therefore, the table of the solution of the boundary value problem is,

xTz0401412272914404416436983685910200109

Hence, the required graph of the temperature distribution of the boundary value problem is,

(b)

Expert Solution
Check Mark
To determine

To calculate: The temperature distribution by finite difference method for a heated rod with a uniform heat source given by Poisson equation, d2Tdx2=f(x)

, where heat source f(x)=25 and the boundary conditions, T(x=0)=40 and T(x=10)=200

, also Δx=2.

Answer to Problem 28P

Solution:

The table of the solution of boundary value problem is

xT040227244046436836810200

Explanation of Solution

Given:

A differential equation, d2Tdx2=f(x)

, where heat source f(x)=25 and the boundary conditions, T(x=0)=40 and T(x=10)=200

, also Δx=2.

Formula used:

(1) The finite difference method is:

d2Tdx2=Ti+12Ti+Ti1Δx2

(2) The Gauss-Seidel iterative method is:

Ti(k)=1aii[ j=1i1(aijTj(k))j=i+1n(aijTj(k1))+bi ]

Calculation:

Consider the following Poisson equation, d2Tdx2=f(x).

Since, f(x)=25

. Thus,

d2Tdx2=25

Also, T(0)=40,T(10)=200.

The finite difference method is given by,

d2Tdx2=Ti+12Ti+Ti1Δx2

Now, substitute the value of second order derivative in the boundary value problem.

Then, the boundary value problem becomes,

Ti+12Ti+Ti1Δx2=25Ti+12Ti+Ti1Δx2+25=0Ti+12Ti+Ti1+25Δx2=0

Since, Δx=2

. Then,

Ti+12Ti+Ti1+25(2)2=0Ti+12Ti+Ti1+100=0Ti1+2TiTi+1=100

For the first node, i=1.

T11+2T1T1+1=100T0+2T1T2=100

But, T0=40

. Thus,

40+2T1T2=1002T1T2=140

For the second node, i=2.

T21+2T2T3+1=100T1+2T2T3=100

For the third node, i=3.

T31+2T3T3+1=100T2+2T3T4=100

For the fourth node, i=4.

T41+2T4T4+1=100T3+2T4T5=100T3+2T4200=100T3+2T4=300

Then, write the above system in matrix form

[ 2100121001210012 ]{ T1T2T3T4 }={ 140100100300 }

Now, use the Gauss-Seidel iterative technique. The Gauss-Seidel iterative method is given by,

Ti(k)=1aii[ j=1i1(aijTj(k))j=i+1n(aijTj(k1))+bi ]

Then, the table of the solution of boundary value problem is

xT040227244046436836810200

Therefore, the graph of temperature distribution is,

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!

Chapter 27 Solutions

Numerical Methods for Engineers

Additional Math Textbook Solutions

Find more solutions based on key concepts
Knowledge Booster
Background pattern image
Advanced Math
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, advanced-math and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Text book image
Advanced Engineering Mathematics
Advanced Math
ISBN:9780470458365
Author:Erwin Kreyszig
Publisher:Wiley, John & Sons, Incorporated
Text book image
Numerical Methods for Engineers
Advanced Math
ISBN:9780073397924
Author:Steven C. Chapra Dr., Raymond P. Canale
Publisher:McGraw-Hill Education
Text book image
Introductory Mathematics for Engineering Applicat...
Advanced Math
ISBN:9781118141809
Author:Nathan Klingbeil
Publisher:WILEY
Text book image
Mathematics For Machine Technology
Advanced Math
ISBN:9781337798310
Author:Peterson, John.
Publisher:Cengage Learning,
Text book image
Basic Technical Mathematics
Advanced Math
ISBN:9780134437705
Author:Washington
Publisher:PEARSON
Text book image
Topology
Advanced Math
ISBN:9780134689517
Author:Munkres, James R.
Publisher:Pearson,
01 - What Is A Differential Equation in Calculus? Learn to Solve Ordinary Differential Equations.; Author: Math and Science;https://www.youtube.com/watch?v=K80YEHQpx9g;License: Standard YouTube License, CC-BY
Higher Order Differential Equation with constant coefficient (GATE) (Part 1) l GATE 2018; Author: GATE Lectures by Dishank;https://www.youtube.com/watch?v=ODxP7BbqAjA;License: Standard YouTube License, CC-BY
Solution of Differential Equations and Initial Value Problems; Author: Jefril Amboy;https://www.youtube.com/watch?v=Q68sk7XS-dc;License: Standard YouTube License, CC-BY