Escolar Documentos
Profissional Documentos
Cultura Documentos
Table of Contents
Problem Statement .........................................................................Error! Bookmark not defined.
Summary of Results ........................................................................................................................ 2
Discussion. ...................................................................................................................................... 3
Appendices. ..................................................................................................................................... 4
Nodal Equation breifing. ......................................................................................................................................... 4a
Nodal Equations. .................................................................................................................................... 4-1 thru 4-13
Figure 1 .....................................................................................................................................................................5
Figure 2 .....................................................................................................................................................................5
Figure 3 .....................................................................................................................................................................6
Figure 4 .....................................................................................................................................................................7
Figure 5a ...................................................................................................................................................................8
Figure 5b ...................................................................................................................................................................9
Figure 6 ................................................................................................................................................................... 10
M-file 1 ................................................................................................................................................................... 11
MATLAB Nomenclature ........................................................................................................................................ 17
Virus free disc including M-file 1 (Attached) ......................................................................................................... 18
ii
We are assuming that the material properties do not change with temperature. The overall length
of the nacelle is 1.6 m and the designers intend to use 80 fins on the outside cylinder.
Throughout the next couple of pages we will use one-dimensional analysis of the finned tube to
estimate the inside temperature of the nacelle wall, the temperature at the outside surface, and the
outside tip of the fin. Also we will analyze the two-dimenional analysis to predict a more
accurate temperature by writing the governing partial differential equations for the steel along
boundary conditions. There is a matlab code to follow; which will solve for a steady-state
temperature to go along with the above two dimensional analysis.
Discussion
In order to provide a thorough understanding of numerical analysis, below is a brief
explanation of how this process takes place. First, refer to Fig. 1, the analysis is based on a heat
flux on one side, and a convection current on the opposing side of the nacelle wall. Take for
instance a point in the center; this point can be enclosed by a control volume that has four
bountries, two in which conduction heat enters, and two sides where the conduction heat leaves
and heads towards the fins. Refer to drawing on Page 4-9. If an energy balance equation is
formed at this point; that equation can apply to each and every other inside point that we pick.
Repeating this control volume process and assessing the boundary conditions at each of the other
twelve differing nodes; a set of nodal equations can be formed (see Page 4b to view the
differing nodal equations that are created due to different boundaries and conditions).
An understanding of the task at hand and proper assumptions such as: Steady-State,
Constant Properties, no present Internal Convection, Finite lengths, and no Temperature
variation in the angular direction, must be made before the analysis can take place. Once
understood, these can be taken into consideration and the nodal equations can be derived. Once
each boundary and node has been assessed, an M-file can be created which will iterate this
system of equations to a nominal amount of times before the final result is reached. Since
internal heat is being dispersed via fins and a convection current; a stopping criteria must be set.
The nacelle is assumed to be at ambient temperature at iteration zero, and will increase in
temperature until the heat going is equal to heat going out. At this point, data is retrieved,
graphed, and put into a matrix which displays the heat distribution (Fig. 3). Under steady state
conditions, we can be sure that this is the maximum temperature that the nacelle wall will reach.
Nodal Equations
Shown on the following pages are thirteen nodal equations which describe the
geometry and boundary conditions of each side of the fin as shown:
For a sample derivation, see the following page:
Interior node: Page 4-9
Heat flux node: Page 4-2
Convection boundary node: Page 4-7
4a
FIGURE 3 (ATTACHED)
FIGURE 5a (ATTACHED)
FIGURE 5b (ATTACHED)
FIGURE 6 (ATTACHED)
10
M-file 1:
1. clc, clear, clear all
2. %TSC PROJECT
3.
4. %VARIABLES
5. Residual=1;
%Set nominal value for check below
6. qdp = 5000;
%(W)
7. ro = 8238;
%(kg/m^3)
8. k = 14.3;
%(W/m*K)
9. cp = 0.486;
%(kJ/kg*K)
10.
ho = 40;
%(W/m^2*K)
11.
T_ambient= 300;
%Ambient Temp (degree K)
12.
R1= 0.25;
13.
R2= 0.255;
%Radius(meters)
14.
R3= .285;
15.
X=.035;
X1=.005;
%X-DIMENSIONS(meters)
16.
Z=.01;
Z1=.0025;
%Y-DIMENSIONS(meters)
17.
delr = .0005;
18.
delz = .00025;
19.
r = 0 : delr : X;
20.
z = 0 : delz : Z;
21.
M=length(r);
22.
N=length(z);
23.
for i =1:M;
24.
if r(i)== X1
%finds M1
25.
M1=i;
26.
end
27.
end
28.
for i = 1:N;
29.
if z(i)== Z1
%finds N1
30.
N1=i;
31.
end
32.
end
33.
34.
r = R1 + r;
35.
36.
%Setting all points to ambeint temperature
37.
for i = 1 : M;
38.
for j = 1 : N1;
39.
T(j,i) = T_ambient;
40.
end
41.
end
42.
for i = 1 : M1;
43.
for j = N1+1 : N;
44.
T(j,i) = T_ambient;
11
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
end
end
%NODAL EQUATIONS
for number_iterations = 1:1000000;
A=T;
if Residual>=.01;
81.
82.
83.
84.
85.
86.
87.
88.
89.
%C1=
%C2=
%C3=
%C4=
%C5=
%C6=
%number of iterations
%Stopping criteria loop
i+
C1*T(i+1,j)
iC2*T(i-1,j)
j+
C3*T(i,j+1)
jC4*T(1,j-1)
T(i,j)
additional term such as q" or convection term
%Node 1
i = 1; j = 1;
C1 = (r(j)+delr/4)*(delr/(2*delz));
C2 = 0;
C3 = (r(j)+delz/2)*(delz/(2*delr));
C4 = 0;
C5 = C1 + C2 + C3 + C4;
C6 = (qdp/k)*r(j)*(delz/2);
T(i,j) = (1/C5)*(C1*T(i+1,j) +C3*T(i,j+1) + C6);
%Node 2
j = 1;
for i = 2: N-1;
C1 = (r(j)+delr/4)*(delr/(2*delz));
C2 = (r(j)+delr/4)*(delr/(2*delz));
C3 = (r(j)+delr/2)*(delz/delr);
C4 = 0;
C5 = C1 + C2 + C3 + C4;
C6 = qdp*r(j)*delz/k;
T(i,j) = (1/C5)*(C1*T(i+1,j) + C2*T(i-1,j) +
C3*T(i,j+1) + C6);
end
%Node 3
j = 1; i = N;
C1 = 0;
C2 = (r(j)+delr/4)*(delr/(2*delz));
C3 = (r(j)+delr/2)*(delz/(2*delr));
C4 = 0;
C5 = C1 + C2 + C3 + C4;
12
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
106.
107.
108.
109.
110.
111.
112.
113.
114.
115.
116.
117.
118.
119.
120.
121.
122.
123.
124.
125.
126.
127.
128.
129.
130.
131.
132.
C6 = (qdp/k)*r(j)*(delz/4);
T(i,j) = (1/C5)*(C2*T(i-1,j) + C3*T(i,j+1) + C6);
%Node 4
i = N;
for j = 2 : (M1-1);
C1 = 0;
C2 = r(j)*delr/delz;
C3 = (r(j)+delr/2)*(delz/(2*delr));
C4 = (r(j)-delr/2)*(delz/(2*delr));
C5 = C1 + C2 + C3 + C4;
C6 = 0;
T(i,j) = (1/C5)*(C2*T(i-1,j) + C3*T(i,j+1) +
C4*T(1,j-1));
end
%Node 5
j = M1; i = N;
C1 = 0;
C2 = (r(j)-delr/4)*(delr/(2*delz));
C3 = 0;
C4 = (r(j)-delr/2)*(delz/(2*delr));
C6 = T_ambient*((ho/k)*r(i)*(delz/2));
C5 = C1 + C2 + C3 + C4 + C6/T_ambient;
T(i,j) = (1/C5)*(C2*T(i-1,j) + C4*T(1,j-1) + C6);
%Node 6
j = M1;
for i = N1+1: N-1;
C1 = (r(j)-delr/2)*(delr/(2*delz));
C2 = (r(j)-delr/4)*(delr/(2*delz));
C3 = 0;
C4 = (r(j)-delr/2)*(delz/delr);
C6 = T_ambient*((ho/k)*r(j)*delz);
C5 = C1 + C2 + C3 + C4 + C6/T_ambient;
T(i,j)= (1/C5)*(C1*T(i+1,j) + C2*T(i-1,j) +
C4*T(1,j-1) + C6);
end
%Node 7
j = M1; i = N1;
C1 = r(j)*delr/(2*delz);
C2 = r(j)*delr/delz;
C3 = (r(j)+delr/2)*(delz/(2*delr));
C4 = (r(j)-delr/2)*(delz/delr);
13
133.
134.
135.
136.
137.
138.
139.
140.
141.
142.
143.
144.
145.
146.
147.
148.
149.
150.
151.
152.
153.
154.
155.
156.
157.
158.
159.
160.
161.
162.
163.
164.
165.
166.
167.
168.
169.
170.
171.
172.
173.
174.
Heat Transfer Project
C6 = T_ambient*((ho*r(j)*delz/(2*k))
+((r(j)+delr/2)*(ho*delr/(2*k))));
C5 = C1 + C2 + C3 + C4 + C6/T_ambient;
T(i,j) = (1/C5)*(C1*T(i+1,j) + C2*T(i-1,j) +
C3*T(i,j+1) + C4*T(1,j-1) +C6);
%Node 8
i=1;
for j = 2: M-1;
C1 = r(j)*delr/delz;
C2 = 0;
C3 = (r(j)+delr/2)*(delz/(2*delr));
C4 = (r(j)-delr/2)*(delz/(2*delr));
C5 = C1 + C2 + C3 + C4;
C6 = 0;
T(i,j) = (1/C5)*(C1*T(i+1,j) + C3*T(i,j+1) +
C4*T(1,j-1));
end
%Node 9
for j = 2 : M-1;
for i = 2 : N1-1;
C1 = r(j)*delr/delz;
C2 = r(j)*delr/delz;
C3 = (r(j)+delr/2)*(delz/delr);
C4 = (r(j)-delr/2)*(delz/delr);
C5 = C1 + C2 + C3 + C4;
C6 = 0;
T(i,j) = (1/C5)*(C1*T(i+1,j) + C2*T(i-1,j) +
C3*T(i,j+1) + C4*T(1,j-1));
end
end
for j = 2 : M1-1;
for i = N1 : N-1;
C1 = r(j)*delr/delz;
C2 = r(j)*delr/delz;
C3 = (r(j)+delr/2)*(delz/delr);
C4 = (r(j)-delr/2)*(delz/delr);
C5 = C1 + C2 + C3 + C4;
C6 = 0;
T(i,j) = (1/C5)*(C1*T(i+1,j) + C2*T(i-1,j) +
C3*T(i,j+1) + C4*T(1,j-1));
end
end
%Node 10
j = M; i = 1;
14
175.
176.
177.
178.
179.
180.
181.
182.
183.
184.
185.
186.
187.
188.
189.
190.
191.
192.
193.
194.
195.
196.
197.
198.
199.
200.
201.
202.
203.
204.
205.
206.
207.
208.
209.
210.
211.
212.
213.
214.
215.
216.
217.
C1
C2
C3
C4
C6
C5
=
=
=
=
=
=
(r(j)-delr/4)*(delr/(2*delz));
0;
0;
(r(j)-delr/2)*(delz/(2*delr));
T_ambient*((ho/k)*r(j)*(delz/2));
C1 + C2 + C3 + C4 + C6/T_ambient;
15
218.
219.
220.
221.
222.
223.
224.
225.
226.
227.
228.
229.
230.
231.
232.
%Residual
A = T - A;
Residual = sum(sum(A));
plot(number_iterations,Residual,'x')
hold on
end
end
xlabel('number of iteratoins'),
ylabel('Total Residual'),
TT=flipud(T);
TTT=[TT;T];
disp('Node by Node Temperature Distribution at Convergence:')
disp(num2str(TTT))
16
MATLAB Nomenclature:
Residual - Sum of temperature changes from (i) iteration to
(i+1) iteration. [K]
qdp interior energy to be dissipated [W]
ro tube density [kg/m^3]
k heat transfer coefficient of tube [w/m*K]
cp specific heat [kJ/kg*K]
ho Exterior convective coefficient [W/m^2*K]
T_ambient Ambient temperature [K]
R1, R2, R3 Radii values for the: inside, outside, and fin
tip locations respectively [m]
X, Z, X1, Z1 Vertical and horizontal coordinates for the
cross section shown in figure 1. They account for half of the
area of figure 2 due to a symmetry line. [m]
delr, delz Values of the distance of each iteration step.
r, z An array of distances which split up the horizontal and
vertical directions into nodes.
M, N length of each array : r, and z listed above.
A Each nodal residue value which are summed into Residual.
T The matrix produced which resembles the shape of half of
figure 2 (after convergence).
TT The T matrix is mirrored about the horizontal.
TTT This matrix is shown in figure 3, it is T and TT added
together to resemble the fin portion shown in figure 2.
17
18