Python Physics
Python Physics
net/publication/301232489
CITATIONS READS
0 1,003
1 author:
Nitish Anand
Delft University of Technology
5 PUBLICATIONS 0 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
Design tool for Supersonic Turbine using Method of Characteristics View project
All content following this page was uploaded by Nitish Anand on 13 April 2016.
ICME11-TH-032
ABSTRACT
Use of modern computational techniques supporting solution of imposed boundary condition in heat
transfer problems is increasing day by day. However determining the appropriate technique in the context
of problem statement, complexity of geometry, simplicity of usage and exacting solution are the challenge
researchers are facing. In this paper, an attempt has been made to find solution through different
computational methods for a one dimensional heat flow problem in steady state. Finite Difference Method
(FDM), Finite volume method (FVM) and Finite Element method (FEM) have been used and a comparative
analysis has been considered to arrive at a desired exactness of the solution. The calculated values from
each of the methods are compared and analyzed. A MATLAB implementation of the numerical solution has
also been provided. Numerical results are presented for a sequence of finer meshes, and the dependency of
the truncation error on mesh size is verified.
(3)
C1=0.
Again integrating:
Using boundary condition 2, at r=R 3.2 Finite Volume Method (FVM)
Finite Volume method is another method for
numerical calculation of the differential equation. In
this method the entire volume is divided into smaller
We get C2= volumes and inlet flux is equated with the outlet flux
giving an approximate numerical approach to the
So the exact temperature profile is:
temperature at each mesh [8].
The FVM equations for the solid cylinder considered
(6) in this paper are:
3. NUMERICAL SOLUTION
3.1 Finite Difference Method (FDM)
(8)
© ICME2011 2 TH-032
solution and then compared with that obtained through
FDM, FVM and FEM.
Following parameters have been considered for
solutions in all techniques as cited above:
Parameter Value
Radius (m) 0.05
Generation 4x106
(Watt/m3)
k (Watt/mK) 40
Fig 2. Geometry of cylinder showing 7 different shell h (Watt/m2K) 400
T∞ (oC) 20
centers for the finite volume method
Table 2: Comparative results of temperature distribution
For n equal divisions, there will be m shell centers obtained through FDM, FVM and exact
where m=n+2 solution
4. RESULTS AND DISCUSSION Fig 3. Comparison of FDM, FVM and exact solution
The one-dimensional heat conduction problem having six nodes
considered in this paper has been solved using exact
© ICME2011 3 TH-032
One of the features of FDM and FVM is that the
relative error between the analytic method and these two
methods decreases as the numbers of nodes (shell
centers) increase. This has been established in the
following graph in which the results have been plotted by
solving the heat conduction problem in FDM and FVM
with 100 nodes.
6. REFERENCES
1. Sarbu, I. and Popina, O., 2001, “Numerical analysis
with finite and boundary elements of thermal fields
in steady state regime”, ARPN Journal of
Engineering and Applied Sciences, Vol. 6, No. 2,
Fig 5. Mesh on the entire rod pp.13-23.
2. Dhawan, S. and Kumar S., 2009, “Comparative
study of numerical techniques for 2D transient heat
conduction equation using finite element method”,
International Journal of Research and Reviews in
Applied Sciences Vol. 1, pp.38-46.
3. Hsu, M.H., 2009, “Differential Quadrature Method
for Solving Hyperbolic Heat Conduction
Problems” Tamkang Journal of Science and
Engineering, Vol. 12, No. 3, pp. 331-338.
4. Antar, M.A., 1999, “A simplified numerical
solution of unsteady heat conduction problems with
an application to a short cylinder”, International
Journal of Mechanical Engineering Education Vol.
Fig 6. Mesh on the cross-section
28, No. 3, pp.201-212.
© ICME2011 4 TH-032
5. Han, Y. M., Cho, J. S. and Kang, H. S., 2005, 7. NOMENCLATURE
“Analysis of a one-dimensional fin using the
analytic method and the finite difference method”, Symbol Parameter Units
J. KSIAM, Vol.9, No.1, pp. 91-98. r Radius Meter
o
6. Dabral, V., Kapoor, S. and Dhawan, S., 2011, T Temperature C
“Numerical Simulation of one dimensional Heat Density kg/m3
Equation: B-Spline Finite Element Method”, t Time sec
C Specific Heat kJ/Kg-K
Indian Journal of Computer Science and
Capacity
Engineering (IJCSE) Vol. 2 No. 2, pp.222-235. k Thermal Watt/m-K
7. Ozisik, M. N., 2000, Finite Difference Methods in Conductivity
Heat Transfer, CRC Press. h Convective heat Watt/m2-K
8. Versteeg, H. K. and Malalasekera, W., 1996, An Transfer Co-efficient
introduction to Computational Fluid Dynamics, g Generation term Watt/m3
o
Longman. Ts Surface temperature C
o
T∞ Surrounding C
9. Chen, T. M. and Chen, C. C., 2010, “ Numerical
temperature
solution for the hyperbolic heat conduction i Node number No unit
problems in the radial-spherical coordinate system
using a hybrid Green's function method”,
International Journal of Thermal Sciences, Vol.49, APPENDIX
pp. 1193-1196.
MATLAB CODE:
10. Chen, G. and Zhou, J.,1992, Boundary element clc
methods. Academic Press, New York. clear all
11. Gafiţanu , M., Poteraşu, V. and Mihalache, N., n=input('Number of nodes:');
1987, Finite and boundary elements with r=input('Radius of the Cylinder(m):');
applications to computation of machine k=input('Thermal Conductivity(Watt/mK):');
components. Technical Press, Bucharest. h=input('Convective heat transfer
12. Wang, B.L. and Mai, Y.W., 2005, “Transient one Co-efficient(Watt/m2):');
dimensional heat conduction problems solved by g=input('Generation term(Watt/m3):');
finite element”, International Journal of Ti=input('Ambient air temperature(0C):');
Mechanical Sciences. Vol. 47, pp. 303-317. m=n+1;
13. Abrate, S. and Newnham, P., 1995, "Finite Element dx=r/n;
Analysis of Triangular Fins Attached to a Thick clc
Wall", Computer & Structures, Vol. 57, No. 6, pp. disp(' FINITE DIFFERENCE SOLUTION');
945-957. a(:,:)=0;
14. Patankar, S.V., 1980, Numerical Heat Transfer and for i=2:m-1
Fluid Flow, Hemisphere Publishing Corporation,
Taylor & Francis Group, New York.
a(i,1)=2;
a(i,2)=(1+(1/(2*(i-1))));
a(i,3)=(1-(1/(2*(i-1))));
a(i,4)=g*dx*dx/k;
end
a(1,1)=4;
a(1,2)=4;
a(1,4)=g*dx*dx/k;
a(m,1)=((2)+(1+(1/(2*(m-1))))*(2*dx*h/k));
a(m,3)=2;
a(m,4)=((1+(1/(2*(m-1))))*(2*dx*h/k)*Ti)+(g*dx*dx/k
);
for i=1:m
if(a(i,3)==0)
p(i)=a(i,2)/a(i,1);
end
if(a(i,3)~=0)
p(i)=a(i,2)/(a(i,1)-(a(i,3)*p(i-1)));
end
end
%disp('Value of P');
© ICME2011 5 TH-032
%disp(p); %calculation of q
%calculation of q for i=1:m
for i=1:m if(a(i,3)==0)
if(a(i,3)==0) q(i)=a(i,4)/a(i,1);
q(i)=a(i,4)/a(i,1); end
end if(a(i,3)~=0)
if(a(i,3)~=0) q(i)=(a(i,4)+(a(i,3)*q(i-1)))/(a(i,1)-(a(i,3)*p(i-1)));
q(i)=(a(i,4)+(a(i,3)*q(i-1)))/(a(i,1)-(a(i,3)*p(i-1))); end
end end
end % disp('Value of Q'),q
%disp('Value of Q'),q %calculating u
%calculating u T(1:7)=0;
T(1:5)=0; for i=m:-1:1
for i=m:-1:1 if(i==m)
if(i==m) T(i)=q(i);
T(i)=q(i); end
end if(i~=m)
if(i~=m) T(i)=(p(i)*T(i+1))+ q(i);
T(i)=(p(i)*T(i+1))+ q(i); end
end end
end T
T x(1)=0;
for i=1:m x(2)=dx/2;
x(i)=(i-1)*dx; x(m)=r;
end for i=3:m-1
plot(x,T(1:m)); x(i)=x(i-1)+dx;
hold on end
disp(' FINITE VOLUME SOLUTION'); plot(x,T(1:m));
m=n+2; hold on
a(:,:)=0; (g*r/(2*h))+(g*r*r/(4*k))+Ti
for i=3:m-2 a=[-g/(4*k) 0 (g*r/(2*h))+(g*r*r/(4*k))+Ti];
a(i,1)=(2*i)-3; i=1;
a(i,2)=i-1; k1(1)=0;
a(i,3)=i-2; for x=0:0.001:r-0.001
a(i,4)=g*((2*i)-3)*dx*dx/(2*k); i=i+1;
end k1(i)=k1(i-1)+0.001;
a(1,1)=1; end
a(1,2)=1; plot(k1,polyval(a,k1));
a(2,1)=1;
a(2,2)=1;
a(2,4)=g*dx*dx/(2*k);
a(m-1,1)=3*(m-1)-4;
a(m-1,2)=2*(m-2);
a(m-1,3)=m-3;
a(m-1,4)=g*((2*(m-1))-3)*dx*dx/(2*k);
a(m,1)=2+(h*dx/k);
a(m,3)=2;
a(m,4)=h*dx*Ti/k;
for i=1:m
if(a(i,3)==0)
p(i)=a(i,2)/a(i,1);
end
if(a(i,3)~=0)
p(i)=a(i,2)/(a(i,1)-(a(i,3)*p(i-1)));
end
end
% disp('Value of P');
% disp(p);
© ICME2011 6 TH-032