Finite difference temperature distribution with TDMA
Show older comments
A stainless steel (thermal conductivity, k = 20 W/mK) fin has a circular cross-sectional area (diameter, D=4 cm) and length L=16 cm. The wing is attached to a wall with a temperature of 200C. The ambient temperature of the fluid surrounding the fin is 20C and the heat transfer coefficient is h=10 W/m2K. Fin tip is insulated. Determine the following by applying finite differences with TDMA.
1. Temperatures inside the fin and the amount of heat radiated from the fin. Plot the temperature distribution.
2. Discuss the effect of the number of element dimensions for N = 5, 10, 50, and 100. Plot the temperature distribution.
The temperature distribution from the analitic solution is like this: T1=150.54, T2=111.107, T3=78.671, T4=50.741, T5=25.172, my code does not give these values.
clc
clear all
L=0.16; %lenght
N=6; %number of nodes
dx=L/(N-1); %lenght between nodes
T=zeros(N+1,1);
Tb=200; %the wall temperature (boundary condition)
k=6; %number of iterations
for j=1:1:k
T(1,1)=Tb;
T(5,1)=T(7,1); %the second boundary condition due to the isulation on the tip of the fin
for i=2:1:N
T(i,1)=(T(i+1,1)+T(i-1,1)+1.536)/2.0768; %FDE narrowed down
end
T(N,1)=T(N-1,1);
plot(T);
hold on
end
hold off
If I can get some help with my code.
16 Comments
Torsten
on 29 Nov 2022
What is TDMA ?
Cubii4
on 29 Nov 2022
Cubii4
on 29 Nov 2022
Torsten
on 29 Nov 2022
What is P/A ? 4/D ?
Cubii4
on 29 Nov 2022
Torsten
on 29 Nov 2022
You defined D as the diameter of the fin.
P/A appears in your general fin equation.
Cubii4
on 29 Nov 2022
Isn't 6/D for a sphere and not for a cylinder ?
I tried to compute the analytical solution for your problem, but could not reproduce the temperatures you included. Maybe you can tell me where I'm wrong.
syms x T(x)
eqn = diff(T,x,2)*20 == 2/0.02*10*(T-20);
dT = diff(T,x);
conds = [T(0)==200,dT(0.16)==0];
sol(x) = dsolve(eqn,conds)
double(sol(0.16)) % temperature at insulated side
double(sol(0)) % temperature at wall side
Cubii4
on 29 Nov 2022
Cubii4
on 29 Nov 2022
If the equation is
k * d^2T/dx^2 = 4/D * h * (T-T_inf)
T(0) = 200
dT/dx (0.16) = 0
with the parameters for D, T_inf, k and h you posted, then I believe in MATLAB's "dsolve" solution.
Cubii4
on 30 Nov 2022
Cubii4
on 30 Nov 2022
Cubii4
on 30 Nov 2022
Accepted Answer
More Answers (0)
Categories
Find more on Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
