CFD Problem
CFD Problem
Solution:
d
dT
k
+S= 0
dx dx
( )
apTp=aWTw+aETE+Su
Finite volume equation can be written as, 2 i n+1,
aiTi=biTi+1+ciTi-1+di ;
bi=k*A/(dx)e , ci= k*A/(dx)w ;
ai= bi+ ci and di=Si+dx+A; dx=length/n (n=4)
We implement the formula;
b2=1.5*1/2=1.5/2
c2=1.5*1/1=1.5
a2=4.5/2
b3=1.5*1/2=1.5/2
c3=1.5*1/2=1.5/2
a3=3.0/2
b4=1.5*1/2=1.5/2
c4=1.5*1/2=1.5/2
a4=3.0/2
b5=1.5*1/1=1.5
c5=1.5*1/2=1.5/2
a5=4.5/2
4.5T2=1.5T3+3T1+0
3 T3=1.5T4+1.5T2+0
3 T4=1.5T5+1.5T3+0
4.5T5=3 T6+1.5T4+0
Thus;
0
0 T2
4.5 1.5
0
1.5
0
3
1.5
0 T3
0
1.5
3
1.5 T4
0
0
1.5 4.5 T5
0
48
We solve this equation in Matlab and our results are;
( )
n=5
Referances
1. H.K VERSTEEG & W. MALALASEKERA, An introduction to Computational
Fluid Dynamics The Finite Volume Method,Longman Scientific &
Technical,1995
2. http://www.cae.tntech.edu/~shan/me4730%3b5730(spring2015)/