2d Transient Flow Analysis
2d Transient Flow Analysis
Conduction
Calculator
Using Matlab
Greg Teichert
Kyle Halgren
Assumptions
Use Finite Difference Equations shown in
table 5.2
2D transient conduction with heat transfer
in all directions (i.e. no internal corners as
shown in the second condition in table
5.2)
Uniform temperature gradient in object
Only rectangular geometry will be
analyzed
Program Inputs
The calculator asks for
Length of sides (a, b) (m)
Outside Temperatures (T_inf 1-T_inf 4) (K)
Temperature of object (T_0) (K)
Thermal Convection Coefficient (h1-h4)
(W/m^2*K)
Thermal Conduction Coefficient (k) (W/m*K)
Density (ρ) (kg/m^3)
Specific Heat (Cp) (J/kg*K)
Desired Time Interval (t) (s)
Transient Conduction
Example problem
suppose we have an object with rectangular cross-
section with these boundary conditions:
Origin T_inf 2, h2
T_inf 1, h1 a T_inf 3, h3
b
T_inf 4, h4
Conditions
%Userdefined h values
h(1) = 10;
h(2) = .1;
h(3) = 10;
h(4) = .1;
%Boundary conditions
%Userdefined T infinity values in kelvin
T_inf(1) = 293;
T_inf(2) = 293;
T_inf(3) = 353;
T_inf(4) = 353;
%Material properties
%Userdefined material values
k = .08;
rho = 7480;
c_p = .460;
550
550
500
500
450
Temperature (K)
450 400
Temperature (K)
400 350
300
350
250
300 1.5
0 1
%Boundary conditions
%Userdefined T infinity values in kelvin
T_inf(1) = 273; 600
Temperature (K)
T_inf(4) = 273; 400
300
%Initial condition (assume uniform
initial temperature) 200
%Userdefined initial temperature value
T_0 = 250; 100
1.5
1
%Material properties 1
0.8
0.6
%Userdefined material values 0.5 0.4
k = .8; 0 0
0.2
b (m) a (m)
rho = 1000;
c_p = .460;