Professional Documents
Culture Documents
A PROJECT REPORT
Submitted By
BANGALORE, 560035
MAY 2011
AMRITA VISHWA VIDYAPEETHAM
AMRITA SCHOOL OF ENGINEERING, BANGALORE, 560035
BONAFIDE CERTIFICATE
This is to certify that the project report entitled “DEVELOPEMONT OF AN
METHODOLOGY” submitted by
Engineering, Bangalore.
We also wish to express our sincere thanks to Prof. S.R. NAGARAJA, H.O.D,
Department of Mechanical Engineering, AMRITA SCHOOL OF ENGINEERING,
Bangalore, for his encouragement and support that he extended towards this dissertation
work.
We would like to express our sincere thanks to VIVEK M, our guide, Assistant Professor,
Department of Mechanical Engineering, AMRITA SCHOOL OF ENGINEERING,
Bangalore for his continuous motivation and support throughout our dissertation work.
We shall be forever grateful for all his patience while dealing with our constantly
recurring doubts.
Last but not the least, we would like to thank all of them who gave valuable suggestions
within the organization and our student friends without whose good wishes this
dissertation work would not have been completed successfully.
i
ABSTRACT
Due to their complexity certain engineering problems cannot be solved using
analytical methods. Numerical methods are adopted in such cases to obtain an
approximate solution. In this project, a 2D unsteady conduction solver code is
developed using finite volume methodology. Results obtained from the code are
benchmarked against analytical solutions, if available. Otherwise the code results
are compared with results obtained using commercial CFD code called Fluent.
The benchmarked code is used to simulate a quenching process of an aluminium
square rod and the surface hardness variation is predicted.
ii
CONTENTS
Acknowledgement i
Abstract ii
List of Figures vi
List of Symbols ix
1. Introduction
1.2 Objective 2
2.1 Introduction 3
3. Heat Conduction
3.1 Introduction 8
iii
3.5.2.1 Specified heat flux boundary conditions 15
4. Solution Algorithm
4.1 Introduction 22
5.1 Introduction 28
iv
5.4.2.2 Benchmark solutions 37
6.1 Introduction 51
7.1 Conclusion 55
REFERENCES 56
v
LIST OF FIGURES
Fig. No. Particulars Page No.
vi
5.12 Position of points 39
vii
LIST OF TABLES
Table No. Particulars Page No.
viii
LIST OF SYMBOLS
G A vector quantity
n Unit normal vector
dA Control Area
dV Control Volume
Divergence Operator
A scalar function
T- Temperature
ix
dAe -control area along the east face
0
Q Rate of heat conduction
o
G Total heat generated
o
g Heat generated per unit volume
density of a material
t time
x
q Heat flux
Ti Initial temperature
T Ambient temperature
H Vickers hardness
xi
CHAPTER 1
INTRODUCTION
INTRODUCTION MAY, 2011
Our interest in this project is to solve a 2-D unsteady conduction heat transfer
problem, which is usually exhibited in solids. Relatively simple heat conduction
problems involving simple geometries with simple boundary condition can be
solved analytically, but many problems encountered in practice involve
complicated geometries with complex boundary conditions or variable properties
and cannot be solved analytically. In such cases, sufficiently approximate
solutions are sought for.
1.2 OBJECTIVE
2. To benchmark the code for both Dirichlet and Neumann boundary conditions.
2.1 INTRODUCTION
“Necessity is the mother of all invention” and it was in late 20th century that
engineers realized that an analytical solution available does not address a real life
heat transfer problems accurately. An “approximate” solution of a realistic model
of a physical problem is usually more accurate than the “exact” solution of a crude
mathematical model. These “approximate” solutions are what are known as
numerical solutions. The most famous numerical methods adopted are Finite
Difference Method(FDM), Finite Element Method(FEM) and Finite Volume
Method(FVM).
Finite Volume Methodology coupled with high speed computers are found to be a
very handy tool for the engineers who now can devote themselves to the better
modelling of a real life problem than to search for a crude analytical solution
which have mathematical sophistication and it is not worth all that effort.
The Finite Volume Methodology has the following general procedure to solve a
3. Identify the type of boundary conditions to be used and choose the appropriate
governing equations. In case of transient problems the initial conditions should be
identified as well. Choosing proper boundary and initial conditions are important
since it determines the correctness of the solutions we obtain.
The Gauss Divergence Theorem for a vector quantity G is given by
GdV G ndA (2.1)
dV dA
( 2.2)
Where , n are the divergence operator and unit normal vector of a control area
dA of the control volume dV . Once converted to area integral, Taylor Series
expansion is used to represent the derivatives. This has been explained below for
an arbitrary cell with its cell centre at point P the cell to its right is termed as east
cell, the one in the left is termed as west cell, the one on the top is termed as north
cell and the one in bottom is termed as south cell.
W , E, N , S are the adjacent cell centres and w, e, n, s are face. xw,xe , y n , y s , are
the distance between cell centres. x, y are length of face in x and y direction
respectively. Thus for discretisation of governing equation ( ) 0 over a
small volume with its centre at P to solve for a scalar is explained below
( )dV P dAP (2.3)
Where dVP is the volume of the cell and dAP is the control surface.
As the volume consists of four control surfaces the RHS is expanded to four
integrals
( ) n , ( ) s , ( ) e , ( ) w are gradients of at north, south, east, west
areas(faces) and dAn , dAs , dAw , dAe are control areas. These gradient’s are
approximated using Taylor’s Series with truncation error of order two.
TE TP
( ) e ( 2.5)
xe
TP TW
( ) w ( 2 .6 )
x w
T P TS ( 2 .7 )
( ) s
y s
T N TS ( 2.8)
( ) n
y n
Solutions to the problems are obtained by solving the system of linear equation or
by solving one single equation. Methods for the solution of linear equation falls in
two categories, Direct Method and Indirect method.
Ax b (2.9)
Where A is the coefficient matrix, b is right hand side of the equation and x
represents the solution vector we search for. To solve for x we simply rearrange
the equation by taking the coefficient matrix to the other side and writing it in
inverse form
x A1b (2.10)
If the matrix is simple enough then direct method proves to be the best tool, but as
the matrix gets more complex and lengthier it becomes difficult to find the inverse
for the A matrix, also sparse matrix where the elements are flooded by zeros can’t
be easily solved. This would then need an algorithm which would be able to find
the inverse, but then the logic involved and the coding is too cumbersome and is
not worth all that effort, since for complex matrices even the computer would
take longer time to generate the inverse. When the problem is addressed this way
it is said to have been solved by direct method.
Indirect methods include the iteration technique which we has been mentioned
earlier, either normal iterative methods or Gauss-Jacobi, Gauss-Seidel are adopted
to solve the system of linear equation. Indirect methods can further be classified
into line solvers and point solvers. Solving simultaneously for different points
along a line in a single iteration is known as a line solver, whereas point solvers
monitor a single point at a time and solve for it.
HEAT CONDUCTION
HEAT CONDUCTION MAY,2011
3.1 INTRODUCTION
Heat conduction is defined as the transfer of thermal energy from the more
energetic particles of a medium to the adjacent less energetic particle. It can take
place in liquids and gases as well as solids provided that there is no bulk motion
involved. Unlike temperature, heat transfer has direction as well as magnitude,
and thus it is a vector quantity. The general convention is that heat transfer in the
positive direction of a coordinate axis is positive and in the opposite direction it is
negative. Therefore, a positive quantity indicates heat transfer in the positive
direction and a negative quantity indicates heat transfer in the negative direction.
The driving force for any form of heat transfer is the temperature difference, and
the larger the temperature difference, the larger the rate of heat transfer. Heat
conduction problems involve finding out the temperature distribution throughout
the medium in steady state problems, and transient case involves finding the
temperature as a function of time. This can be done by choosing a suitable
coordinate system such as the rectangular, cylindrical, or spherical coordinates,
depending on the geometry involved, and a convenient reference point (the
origin). Our focus is restricted to rectangular coordinates only as the problem
chosen is for a domain of square section.
Heat transfer problems are can be solved as steady (also called steady state) or
transient (also called unsteady). The term steady implies no change with time at
any point within the medium, while transient implies variation with time or time
dependence. Therefore, the temperature or heat flux remains unchanged with time
during steady heat transfer through a medium at any location, although both
quantities may vary from one location to another. During transient heat transfer,
the temperature normally varies with time as well as position. In the special case
of variation with time, but not with positions, the temperature of the medium
changes uniformly with time. Such heat transfer systems are called lumped
This is expressed in the differential form by Fourier’s law of heat conduction for
one-dimensional heat conduction as
dT
Qcond kA (3.1)
dx
where k is the thermal conductivity of the material (W/mK), and dT is the
dx
temperature gradient. The thermal conductivity ‘k’ can be a function of
temperature. Heat is conducted in the direction of decreasing temperature, and
thus the temperature gradient is negative when heat is conducted in the positive x-
direction. The negative sign in the above equation ensures that heat transfer has an
opposite sign of the temperature gradient. This project is aimed in solving only 2D
problems in Cartesian coordinates with constant thermal conductivity.
expressed as
Rate of heat Rate of heat Rate of heat Rate of change of energy
Conduction at - conduction + heat generation = content of the element
x,y,z at x+δx , y+δy inside the
z+δz element
or
o o o o o o o Eelement
Q x Q y Q z Qx x Q y y Q z z G gen (3.2)
t
the volume of the element is V
element
= xyz , the change in the energy
content of the element and the rate of heat generation within the element can be
expressed as
o
G element gVelement gxyz (3.4)
o o
Where G, g is total heat generated and heat generated per unit volume respectively.
o o o o o o
T Tt
Q x Q y Q z Qxx Q yy Q z z gxyz Cxyz t t (3.5)
t
o o o o o o
1 Q xx Q x 1 Q yy Q y 1 Q z z Q o T T
g C t t t (3.6)
yz x xz y xy z t
Noting that the heat transfer areas of the element for heat conduction in the x, y,
and z directions are
Ax zy, Ay xz, and Az xy, respectively, and taking the limit as
T T T o T
k k k g C (3.7)
x x y y z z t
The above equation is the general equation for heat conduction in rectangular
coordinates.
k
where the property is the thermal diffusivity of the material and the
C
above equation is called as Fourier-Biot Equation, and it reduces to the below
forms under specified conditions:
o
2T 2T 2T g
1. Steady-state : 2 2 2 0 (3.9)
( Poisson’s Equation) x y z k
The heat conduction equations above were developed using an energy balance on
a differential element inside the medium, and they remain the same regardless of
the thermal conditions on the surfaces of the medium, which means the
differential equations do not incorporate any information related to the conditions
on the surfaces such as the surface temperature or a specified heat flux. But we
know that the heat flux and the temperature distribution in a medium depend on
the conditions at the surfaces, and the description of a heat transfer problem in a
medium is not complete without a full description of the thermal conditions at the
bounding surfaces of the medium. The mathematical expression of the thermal
conditions at the boundaries are called the Boundary conditions.
In rectangular coordinates, the initial condition specified in the general form for a
3D problem is
T ( x, y, z,0) f ( x, y, z) (3.11)
T (0, t ) T1 (3.12)
T ( L, t ) T2 (3.13)
T1 T ( x, t ) T2
0 L x
Fig. 3.2 Sp ecified temperature boundary conditions on both sides of the wall.
(heat transfer rate per unit surface area,( W / m 2 ) on that surface, and this
information can be used as one of the boundary conditions. The heat flux in the
positive x-direction anywhere in the medium, including the boundaries, can be
expressed by Fourier’s law of heat conduction as
T
W / m
o
q k 2
x
Then the boundary condition at a boundary is obtained by setting the specified
T
heat flux equal to k at that boundary. The sign of the specified heat flux is
x
determined by inspection : positive if the heat flux is in the positive direction of
the coordinate axis, and negative if it is in the opposite direction.
Heat flux
T (0, t ) T ( L, t )
q0 k qL k
x x
Conduction
Heat flux
0 L x
Fig. 3.3 Specified heat flux boundary conditions on both sides of the wall
T (0, t ) T1 (3.14)
T
k ( L, t ) T2 (3.15)
x
Some surfaces are commonly insulated in practice in order to minimize heat loss
or heat gain through them. Insulation reduces heat transfer but does not totally
eliminate it unless its thickness is infinity. Heat transfer through a properly
insulated surface can be taken to be zero since adequate insulation reduces heat
transfer through a surface to negligible levels. Therefore, a well-insulated surface
can be modelled as a surface with a specified heat flux of zero. Then the boundary
condition on a perfectly insulated surface (at x = 0, for example) can be expressed
as
T 0, t
k 0 (3.16)
x
Insulation T ( x, t ) T2
0 L x
Fig. 3.4 Plane wall with insulation and specified boundary condition
T 0, t
k 0 , T ( L, t ) T2 (3.17)
x
And
T L, t
k h2 T L, t T 2 (3.19)
x
Where h1 and h2 are the convection heat transfer coefficients and T 1 and T 2 are
the temperature of the surrounding medium on the two sides of the plate. The
A surface has zero thickness and thus no mass, and it cannot store any energy.
Therefore, the entire net heat entering the surface from one side must leave the
surface from the other side. The convection boundary condition states that heat
continues to flow from a body to the surrounding medium at the same rate, and it
just changes vehicles at the surface from conduction to convection (or vice versa
in the other direction). Once the solution T x, t is obtained the surface temperature
can be calculated by substituting the value of x at the surface into the solution.
h1 h2
T1 T 2
0 L x
Fig. 3.5 Convection boundary conditions on the two surfaces of a plane wall.
Referring to fig. 2.1 and integrating by gauss divergence theorem, the volume
integral reduces to area integral.
(kT )dV
(kT ) ndA 0
T T
k y k y
x w x e
(3.20)
T T
k x k x
x s y n
Where w,e,s and n represent the west, east, south and north face centres
respectively.
Using taylor series expansion and neglecting the higher order terms we get,
T T Tw
P
x w x w
(3.21)
T T TP
E (3.22)
x e xe
T T TS
P (3.23)
y s y s
T T TP
N (3.24)
y n y n
Where W,E,S and N represent the west, east, south and north cell centres
respectively.
TP TW T TS T TP T TP
y P x E y N x (3.25)
x w y s xe y n
1 1 1 1 TW T T T
TP S E N (3.26)
x w y s xe y n x w y s xe y n
And if cell centres are equidistant, xw xn xe xs ; so the equation further
reduces to
TP (TW TS TE TW ) / 4 (3.27)
T
c .(kT ) (3.28)
t
Where ,c, and k are density , specific heat capacity and thermal conductivity
respectively.
n 1
TP
n
T T TP
c t .dV c t VP c t
VP
T T T T T T T TP Vc T
P W y P S x E P y N x (3.29)
x w y s xe y n k t
k
Where = is the thermal diffusivity and V is the volume of the cell, since it
c
is 2D analysis the volume thus becomes V x.y
t
(TE TW TN TS 4TP ) TPn TPn1 (3.30)
V
When the transient conditions prevail then the temperature at time step n will
affect the temperature at (n+1)th time step.
SOLUTION ALGORITHM
SOLUTION ALGORITHM MAY, 2011
4.1 INTRODUCTION
Having discretised the equation for a 2-D steady and unsteady state conduction
problem in Cartesian co-ordinates using Finite Volume Methodology, the actual
implementation is done by solving for a standard set of problems first with varied
boundary condition to build confidence in the code developed and apply use the
solver to solve a practical problem. This would need a foolproof algorithm and
compiler on which we can run it. We have chosen “Dev Cpp” as the compiler
which uses C++ programming language. The solution algorithm to solve the set of
equations is explained in this chapter.
The solution methodology adopted here is the point solver wherein the
temperature at one cell centre is obtained by solving the respective discretised
equation (3.24). And a convergence criteria is adopted to break out of the loop
when the desired level of accuracy has been achieved. The algorithm used in the
code is illustrated in the Fig. 4.1. Cell centres are identified as i, j , therefore
T (i, j ) would be the temperature at the cell centre. The convergence criteria is
given by
While solving for the unsteady state conduction problem, the explicit scheme was
used over the implicit scheme due to its simplicity in execution. In this scheme the
temperature at point at time is computed using temperature at its neighbouring
Start
Update
Solve for interior cells’ T(i,j) using
equation (3.24)
NEXT
Compute error(i,j)
ITERATION
N
If
max(err(i,j)
Stop
Start
If
max(err(i,j)
Stop
cell at time t where t is the time step. i.e. TPn 1 is computed using
1 1 1
t (4.2)
x y 2
2
2
Consider a flat square domain having all types of boundary condition at the
boundaries.
Boundary Conditions
dT (1, y)
Right Face k h[T (1, y) T ] (4.4)
dx
dT ( x,0)
Bottom Face k qo (4.5)
dy
dT ( x,1)
Top Face 0 (4.6)
dy
Insulated
1m
1m
x
Heat Flux
If the above domain is discretised into nine cells (twenty five cells if zero volume
cells also considered)
T (5,1) T (4,1)
Right Face k h[T (1, j ) T ] (4.8)
x 2
h x
T (5,1) T (4,1) ( [T (1, j ) T ] )
k 2 (4.8a)
q0y
Bottom Face T (i,1) T (i,1) (4.9)
2k
(1,4)
(1,3)
j
(1,2)
i
(2,1) (3,1) (4,1)
It may be noted that from equation (4.8),(4.9) and (4.10) that the boundary
conditions are not of Dirichlet type, T at boundaries get updates using temperature
from its neighbouring cell. Thus for non-Dirichlet type boundary conditions the
boundary temperature should get updated every iteration in steady solver or every
time step in unsteady state solver, this is brought in the flowchart shown in the
Fig. (4.2).
5.1 INTRODUCTION
Y
X
l (m)
The solver initially developed solved the steady form of conduction equation and
its solution was benchmarked. Then the solver is extended to solve the unsteady
form. The steady state solver was validated using the test problem and the
unsteady one with three test problems. The problems descriptions and comparison
of their benchmark solutions with our solutions are discussed below.
T(0,y)=T(l,y)=T(x,0)= 0 o C (5.1)
x
T(x,l)= To sin (5.2)
l
This problem can be solved analytically using the method of separable variables.
The choice of the boundary condition is to reduce the analytical solution to a one
term solution as 2D steady state conduction solutions are generally series solution.
The analytical solution for this problem [5] is given by eqn.5.3.
To sin(x) sinh(y)
T ( x, y) (5.3)
sinh
This solution obtained using the developed solver is compared with the analytical
solution given by eqn.5.3. The initial guesses was taken to be 0 o C and a
convergence criteria was specified based on the relative absolute error defined in
eqn.(4.1) to be 1 10 6.
The code was run with 9 9, 23 23 and 49 49 cells (not including boundary
cells) and the deviation of solution from analytical solution is plotted along the
lines x=0.5 and y=0.5 as shown in Fig.5.3 and Fig.5.4.
It may be noted that with increase in number of cells the accuracy of the solutions
get better. But increasing the number of cells beyond a limit is not a good practise
as it increases no of calculations and lowers the speed of solver. So it is always
better to mesh the surface with optimum number of cells which could ensure both
accuracy and speed.
The comparison of numerical solution for different grid sizes with analytical
solution is made along the lines x=0.5 and y=0.5 and are shown in Fig.5.5 and
Fig.5.6 respectively
0.9
0.8
0.7
0.6
Error %
9 cells
0.5
23 cells
0.4
49 cells
0.3
0.2
0.1
0
0 0.2 0.4 0.6 0.8 1
y co-ordinate (m)
0.04
0.035
0.03
0.025
error %
9 cells
0.02
23 cells
0.015 49 cells
0.01
0.005
0
0 0.2 0.4 0.6 0.8 1
x co-ordinate (m)
It may be noted from Fig.5.4 and Fig.5.5 that there is a good agreement with
analytical solution. The maximum deviations of numerical solutions from
analytical solutions for different grid sizes are given in table 5.1.
100
90
80
Temperature(celsius)
70 Analytical
60
9 cells
50
23 cells
40
30 49 cells
20
10
0
0 0.2 0.4 0.6 0.8 1
y-coordinate(m)
The temperature contour plot of the steady state temperature is shown in Fig.5.7.
The contour plot shows the mid region close to the top boundary has the highest
temperature and temperature gradually reduces towards other boundaries as
expected.
This benchmarks the steady state code developed and the code is extended to
solve unsteady form of equations.
99 0.904%
23 23 0.188%
49 49 0.046%
25
20
Temperature(celcius)
15 analytical
9 cells
10 23 cells
49 cells
5
0
0 0.2 0.4 0.6 0.8 1
x co-ordinate(m)
0.9
0.8 T
100
90
0.7 80
70
60
0.6
50
40
0.5 30
20
10
0.4 0
0.3
0.2
0.1
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Unsteady state heat conduction solver developed is tested with three benchmark
problems covering all types of boundary conditions which are detailed below.
The physical domain used is the same, with a square plate of side 1m and having a
hypothetical thermal diffusivity, 1 m 2 s .
T(0,y,t) = 0 o C (5.4)
T(1,y,t) = 1 o C (5.5)
dT dT
( x,0, t ) ( x,1, t ) 0 (5.6)
dy dy
The boundary conditions used were so chosen so that the derivation of analytical
solution is possible. The top and bottom boundaries are insulated so that the
problem which is 2D in space would reduce to 1D in space as heat flow can be
along x direction only. Thus by using these boundary conditions the solution T
which is a function of (x,y,t) is reduced to a function of (x,t) only.
(1) n ( n ) 2 t
T ( x, t ) T0 (T1 T0 ) x 2(T1 T0 ) e sin(nx) (5.7)
n 1 n
The problem was run with 8 8 cells and with t =2.5 10 3 s (from eqn.(4.2 ).
The solutions along the x coordinate was obtained for various time steps and were
compared with analytical solutions as shown in Fig.5.9.
1
0.9
0.8
Analytical(0.025s)
Temperature (Celcius)
0.7 Analytical(0.1s)
0.6 Analytical(0.2s)
0.5 Analytical(0.63s)
0.4 FVM(0.025s)
0.3 FVM(0.1s)
0.2 FVM(0.2s)
0.1 FVM(0.63s)
0
0 0.2 0.4 0.6 0.8 1
x co-ordinates (m)
Fig.5.9 shows good agreement between the code results and the benchmark
results. The maximum deviations of numerical solutions from analytical solutions
at the noted time steps are shown in table 5.2.
It may be seen that with progress in temperature the right boundary temperature
diffuses into the solid and at steady state the expected linear profile is obtained.
So we conclude that our solver works with a good accuracy and can be used in
any problem with Dirichlet boundary conditions.
The physical domain used is the same, with an aluminium square plate of side 1m
as shown in Fig.5.10. Properties of aluminium used in the problem are tabulated
in table 5.3
Density, 2719 kg m 3
Specific heat, c 871 J kgK
Conductivity, k 202.4 W mK
10,000 W m 2
insulated
dT dT
( x,0, t ) (1, y, t ) 0 (5.9)
dy dx
dT
( x,1, t ) 10000 W m 2 (5.10)
dy
T(x,y,0)=273 K (5.11)
As the analytical solution cannot be obtained, the problem was solved with
commercial CFD code Fluent and their results were used to compare our code
results.
The problem was run with 19 19 cells and with t =0.1s (from eqn(4.2)). The
solution along the line y=0.5 is obtained for various time steps and are compared
with Fluent solutions as shown in Fig.5.11.
num 100s
390
num
370 1000s
num
Temperature(K)
20000s
350 num
10000s
flu 10s
330
flu 100s
310
flu 1000s
flu 10000s
270
0 0.2 0.4 0.6 0.8 1
x coordinate(m)
The maximum deviations of the numerical solution from fluent solution at the
noted time steps are shown in table 5.4.
Further to check the reliability of the code, numerical solution at five different
points on the plate against the corresponding Fluent solutions for a certain time
interval was compared. The points under consideration are shown in Fig.5.12.
pt2(0.475,0.925)
pt4(0.475,0.075)
410
390
num pt1
370
temperature(K)
num pt2
350
num pt3
330 flu pt1
flu pt2
310
flu pt3
290
270
10 100 1000 10000 100000
time (s)
Fig.5.13 Numerical and Fluent results at three different points pt1, pt2 and pt3 are
plotted for 25000 seconds
390
370
temperature(K)
350
290
270
10 100 1000 10000 100000
time(sec)
Fig.5.14 Numerical and Fluent results at pt4 plotted for 25000 seconds
390
370
temperature(K)
350
290
270
10 100 1000 10000 100000
time(sec)
Fig.5.15 Numerical and Fluent results at pt5 plotted for 25000 seconds
As the thermal diffusivity was small in this problem it took more than 26000
seconds to reach the steady state. So the temperature histories of the points were
plotted on a logarithmic scale for better visualisation.
From Fig.5.13-5.15 and Fig.5.11, shows a good agreement between the code
results and the benchmark results. This proves that our code works for Dirichlet,
insulated and heat flux boundary conditions with good accuracy.
The temperature contour plot of the unsteady and steady state temperature at
different time instants are shown from Fig.5.16 to Fig.5.20.
Initially highest temperature was observed at the left boundary (Fig.5.16) and
gradually it diffused to the other boundaries (Fig.5.17 & 5.18). After certain
period of time due to the effect of heat flux highest temperature was observed to
be shifted to the top part of the plate (Fig.5.19). After 25000 seconds the plate
reaches the steady state as shown in the Fig.5.20.
The physical domain and material used are same as the previous problem with
properties shown in table 5.3.
h 10W m2 K , t 273K
insulated
T(0,y,t)=373 K (5.12)
dT dT
( x,0, t ) (1, y, t ) 0 (5.13)
dy dx
T(x,y,0)=303 K (5.14)
As the analytical solution cannot be obtained for this problem also code results are
compared with Fluent results.
The problem was run with 17 17 cells and with t =0.1s (from eqn.(4.2) ). The
soluiotn along the x coordinate is obtained for various time steps and are
compared with analytical solution as shown in Fig.5.22.
380
Further to check the reliability of the code, same like previous problem, numerical
solution at five different points on the plate against the corresponding Fluent
solutions for a certain time interval was compared. The points under consideration
are shown in Fig.5.12.
393
373
flu pt1
temperature(K)
353
flu pt2
273
10 100 1000 10000
time(s)
Fig.5.23 Numerical and Fluent results at pt1, pt2 and pt3 are plotted for 25000s
393
temperature(K) 373
353
293
273
10 100 1000 10000
time(s)
393
373
temperature (K)
353
293
273
10 100 1000 10000
time (S)
Like the previous problem the thermal diffusivity was small in this case also and it
took more than 26000 seconds to reach the steady state. So the temperature
histories of the points were plotted on a logarithmic scale for better visualisation.
From Fig.5.23-5.25 and Fig.5.22, it can be seen that a good agreement exists
between the code results and the benchmark results. This proves that our code
works for Dirichlet, insulated and convective boundary conditions with good
precision.
The temperature contour plots of the unsteady and steady state temperature at
different time instants are shown from Fig.5.26 to Fig.5.30.
5.5 CONCLUSION
Thus the code has been tested for all type of boundary conditions and was found
to predict with good accuracy.
6.1 INTRODUCTION
Thus the 2D unsteady heat conduction solver has been developed and validated
against benchmark problems and thus building the confidence in the methodology
and the solver developed. Having developed, the code has been used to simulate a
physical problem and analyse the results. The code has been used to simulate
quenching process of an heated aluminium rod. After solving for its surface
temperature history (called the cooling curve), its surface hardness has been
predicted using experimental correlation relating Vickers hardness and
temperature. Simulations have been done for different bath temperature and based
on the results conclusions are drawn.
Marco Fontecchio[7] has done a study in determining heat transfer coefficient for
quenching process. He had obtained heat transfer coefficient as a function of
temperature for quenching of an aluminium probe heated to 773K in varying bath
temperatures (278K, 298K, 313K, 353K). These have been obtained
experimentally. The current work uses the ‘h’ obtained by him for different bath
temperatures he used. He shows that ‘h’ was a function of surface temperature and
the bath temperature. In the current analysis for a particular bath temperature, the
heat conduction coefficient corresponding to surface temperature 373K has been
used. Also to maintain the similarity, the V/A=0.238 is maintained in the current
domain.
Thus summary of the boundary conditions and domain parameters are shown in
table 6.1 and 6.2.
T h
278K 1150 W m 2 K
298K 900 W m 2 K
313K 750 W m 2 K
353K 550 W m 2 K
The unsteady problem was solved with the first set of boundary conditions (h=
1150 W m 2 K , T =278K) with convergence criteria of t =0.1s. A mesh
independent study was done by monitoring the surface temperature history at
528
478
7*7
Temperature(K)
428 17*17
27*27
378 37*37
47*47
328
278
1 10 100 1000
time(s)
From Fig.6.1, it was found 47 47 and 37 37 cells were almost similar with a
maximum deviation of 0.399%. Thus further analysis was done with 47 47 cells.
Using this the surface Vickers hardness history was obtained using the relation
given in eqn.6.1 ( from [8])
H Ae BT (6.1)
528
428 278 K
298 K
378 313 K
353 K
328
278
1 10 100 1000
time (s)
.Hardness histories for different T are shown in Fig.6.3. It shows that material
quenched in a bath of 278K hardens faster compared to other bath temperatures.
Thus it can be analysed with lower bath temperature higher hardness is achievable
at shorter times.
39
Vickers surface hardness(kg/mm^2)
37
35
278 K
33 298 K
31 313 K
353 k
29
27
25
1 10 100 1000
time(s)
7.1 CONCLUSIONS
The following conclusions and observations have been made from the project
work carried out.
3. http://www.informaworld.com/smpp/section?content=a783893984&fullte
xt=713240928
4. Cengel Y.A., “Heat and Mass Transfer-A Practical Approach” 3rd Edition,
Tata McGraw Hills, 2006.
5. Kakac S. and Yener Y., “Heat Conduction” 3rd Edition, Taylor & Francis
Inc., 1995.
6. Jeong J.H., Jhon M.S., Halow J.S., Osdol J.V., “Computer Physics
Communications” Vol. 153, pp. 71-84, 2003.