Professional Documents
Culture Documents
20124824
197
MATLAB
1 2
XUE Qiong1, XIAO Xiaofeng2
1.
430070
2. 430073
1.School of ScienceWuhan University of Technology
Wuhan 430070China
2.College of Mechanical Engineering and Automation
Wuhan Textile University
Wuhan 430073
China
XUE Qiong, XIAO Xiaofeng. Two dimensional heat conduction equation finite volume method to achieve on
MATLAB. Computer Engineering and Applications, 2012, 4824197-200.
AbstractTwo dimensional diffusionless heat conduction phenomenon has been described on partial differential
equation. Based on finite volume method, discretized algebraic equation of partial differential equation has been deduced. Different coefficients and source terms have been discussed under different boundary conditions, which include prescribed heat flux, prescribed temperature, convection and insulation. Transient heat conduction analysis of
infinite plate with uniform thickness and two dimensional rectangle region is realized by programming using MATLAB. It is useful to make the heat conduction equation more understandable by its solution with graphical expression. Feasibility and stability of numerical method have been demonstrated by running result.
Key wordsheat conduction equation; finite volume method; MATLAB
MATLAB
MATLAB
1002-8331201224-0197-04
O551
MATLAB
[6]
MATLAB
[1]
2
2.1
[7]
MATLAB
[5]
No.10901067No.2011-1a-023
1980
1979
E-mail
18986258401@189.cn
2011-12-08
2012-01-30
DOI10.3778/j.issn.1002-8331.2012.24.044
CNKI 2012-05-21
http://www.cnki.net/kcms/detail/11.2127.TP.20120521.1142.073.html
198
20124824
ewsn
1 flux
[8]
w P
W
flux
flux
n
flux
Dy
y s
flux
Dx
x w
2.2
aW2j = 0 S u2j = q
x w
+ T 2j
2
T 2j - T1j
q = -
= h(T f - T1j) h
x w
T f aW =
x e
aW2j = 0
S u2j =
Tf
Dy
(1/h + x w /) DV
S P2j =
Dy
-1
(1/h + x w /) DV
c T = T + T + S
1
x x y y
x y c
T S
+ D e n
dxdyd =
w s c T
+ T + S dxdyd 2
w s x T
x y y
2
+ D e n
a P T P = a E T E + aW TW + a N T N + a S T S + S u DV + a0P T P0
0
a P = a E + aW + a N + a S + a P - S P DV
0 cDV
3
a P = D
Dy
Dy
a E = e aW = w
a N = n Dx a S = s Dx
x
x
y n
y s
e
w
DV
=
DxDy
2.3
Dy
DV
T1j = q
s
S
y n
1 q
T 2j - T1j
q = -
aW =
x w
2 w
T1j =
hT f + (/x w) T 2j
h + /x w
3
aW = aW2j = 0
T1j = T 2j
1 N
2 N - 1 0 aW
a E
West
Boundary
(1j)
(2j)
Dy
x w
Dx
3 MATLAB
3.1
1
3 aW 0 w
MATLAB
20124824
13
c T = T + S
x x
T |
T |
h
=0
x || = T1 - T f x ||
x=0
x = 0.06
a P T P = a E T E + aW TW + S u Dx + a0P T P0
0
a P = a E + aW + a P - S P Dx
0 cDV
e
w
a P = D a E = x aW = x
e
w
/()
85
80
75
70
65
60
55
50
45
40
35
30
t=2
t=50
t=10
t=100
t=160
0.01
199
0.02
0.03
0.04
X /m
0.05
0.06
plotx
data1001
1
32
*
plotx
JT
hold on
0.12
0~0.06
65
3
8 000
kg/m
500
J/(kgK)
Ti
80
T f
20
70
40
W/(K m)
2 000
W/(K m 2)
60
/()
55
50
45
numerical solution
analytical solution
40
35
2 MATLAB
%initialization
0.01
for k=1
ni
t k=Tinit
toldk=Tinit
0.02
0.03
0.04
X /m
0.05
0.06
apk=density*cp*dx/dt
aek=conductivity/dx
awk=conductivity/dx
if k==2awk=0
end
if k==ni1aek=0
end
w1
32=p1*2
q=p1*10*2+1
dk=apkawkaek
end
plot3w
x
dataq
% algebraic equation
dd=dk*toldk
dd=dk*toldk+Tfluidtoldk
/ 1/alfa+dx/2*con-
ductivity
80
%Boundary
70
/()
t k=aek*toldk+1+awk*toldk1+dd/apk
t ni=tni1
t1=alfa*Tfluid+2*conductivity/dx*t2
/ alfa+2*con-
30
0
cos1.192 5*
kk1*dxdx/2/L
*TinitTfluid+Tfluid
50
100
/s 150
50
40
ductivity/dxdataj
132=told
60
3.2
200 0
0.05 0.06
0.03 0.04
0.02
0.01
X /m
200
20124824
Ti
j=Pi*Ti+1
j+Qi
3 6
0.12
insulate
TOP
0.08
Y /m
RIGHT
given temperature
given temperature
LEFT
0.10
0.06
0.04
0.02
0
BOTTOM
convection
0.04
0.10
0.12
0.10
0.12
0.08
0.06
0.12
6 000
kg/m3
500
J/(kg K)
Ti
50
0.02
T f
20
10
W/(K m)
10
W/(K m )
0.12
0.10
Y /m
0.10
0.12
0.06 0.08
X /m
a50 s
2
2
0.02
0.04
0.02
0.12
0.10
0.08
Y /m
55
MATLAB
% Initial values and coefficients
aeij=lambda*dy/dxawij=lambda*dy/dx
0.06
0.04
0.02
anij=lambda*dx/dy
asi
j=lambda*dx/dy
% convective heat transfer boundary
Suij=Tfluid/1/alfa+dx/2*lambda*dy/dV
0.02
Spij=1/1/alfa+dx/2*lambda*dy/dV
% insulatedgiven temperature boundary
aeij=0asij=2*lambda*dx/dy
apij=aeij+awij+anij+asijSpij*
dV+ap0
% Solving with TDMA %Sweep in j-direction
d=aeij*Ti+1j+awij*Ti1j+Suij*dV+
ap0*Toldi
j+1omega*a*Tij
0.06 0.08
X /m
b300 s
2 MATLAB
anij=2*lambda*dx/dy
0.04
0.04
0.06 0.08
X /m
MATLAB
Tij=Pj*Tij+1+Qj
%Sweep in i-direction
MATLAB
d=anij*Tij+1+asij*Tij1+Suij*dV+
ap0*Toldi
j+1omega*a*Tij
221