Assignment - 2
Assignment - 2
Assignment - 2
SUBMITTED BY SUBMITTED TO
ANKIT KU. SINGH( 2022TH11) DR. ASHWINI KUMAR YADAV
VISHAKH P.NAIR(2022TH10)
G.V. SRIKANT(2022THO8)
BHANWAR SINGH(2022TH07)
ASSIGNMENT 1
1. Solve the one dimension steady state conduction equation
∂
( )
k
∂T
∂x ∂ x
=0
X = 0, T = 500
X = L, T= 100
Using:
Finite volume method
Finite difference method
System of linear equation should be solved by
TDMA
Gauss-seidal iteration method
Jacobin method
SOR method
Compare the numerical solution with exact solution of above equation
for different number of node Compare numerical solution with results
of commercial code-FLUENT
Solution
Assumptions:-
1. Steady state.
2. One dimensional heat flow.
3. Thermal conductivity of material is independent of temperature.
4. Material is homogeneous and isotropic.
5. No heat generation.
6. Negligible radiation exchange with surrounding.
∂
( )
k
∂T
∂x ∂ x
=0
∫ ∂∂x (k ∂T
∂x )
dV =0
CV
∭ ∂∂x ( k ∂∂ Tx ) dxdydz=0
w
A=dydz
e
∫ ∂∂x ( k ∂∂ Tx ) A dx=0
w
[( kA
∂T
∂x e) (
− kA
∂T
∂x ) ]=0
w
[ (
ke A e
T E −T P
∂ xe )
T −T W
−k w Aw P
∂ xw
=0
( )]
By rearranging all terms
( ke A e kw A w
+
∂ xe ∂ xw
T P=
)
k e Ae
∂ xe
T E+
k w Aw
∂ xw W
T
aE aW aP Su
1 1 a P=aW + aE 0
∂x ∂x
( ) ( )
T E −T P T −T B
kA −kA P =0
∂x ∂x
2
a P T P=aE T E + aW T W + Su
aE aW aP Su SP
1 0 a P=aW + aE −S P 2 −2
T
∂x ∂x B ∂x
a P T P=aE T E + aW T W + Su
aE aW aP Su SP
0 1 a P=aW + aE −S P 2 −2
T
∂x ∂x A ∂x
1 1 0 a P=aW + aE −S P 2 −2
T
∂x ∂x B ∂x
2 1 1 a P=aW + aE −S P 0 0
∂x ∂x
3 1 1 a P=aW + aE −S P 0 0
∂x ∂x
1 1 a P=aW + aE −S P 0 0
∂x ∂x
n-1 1 1 a P=aW + aE −S P 0 0
∂x ∂x
n 0 1 a P=aW + aE −S P 2 −2
T
∂x ∂x A ∂x
[] []
T1 Su
T2 Su
T3 Su
T= ⋮ =Unknown matrix, B= ⋮ =Known matrix
⋮ ⋮
T n−1 Su
Tn Su
( )[ ][ ]
a P −ae 0 0 0 0 T1 Su
−aw a P −ae ⋯ 0 0 0 T2 Su
0 −aw aP 0 0 0 T3 Su
⋮ ⋱ ⋮ * ⋮ = ⋮
0 0 0 aP −ae 0 ⋮ ⋮
0 0 0 ⋯ −a w aP −ae T n−1 Su
0 0 0 0 −a w aP Tn Su
Now above system of linear equation can be solved by any direct or iterative
method.
∆x∆x∆x
X=0 ∂
k ( )
∂T
∂x ∂ x
=0 X=L
( )
−2 1 0 0 0 0
1 −2 0 ⋯ 0 0 0
0 1 −2 0 0 0
A= ⋮ ⋱ ⋮ =Tridiagonal matrix
0 0 0 −2 1 0
0 0 0 ⋯ 1 −2 1
0 0 0 0 1 −2
[] []
T1 −T 0
T2 0
T3 0
T= ⋮ =Unknown Vector, G= ⋮ =known Vector
⋮ ⋮
T m −1 0
Tm −T m+1
( )[ ][ ]
−2 1 0 0 0 0 T1 −T 0
1 −2 0 ⋯ 0 0 0 T2 0
0 1 −2 0 0 0 T3 0
⋮ ⋱ ⋮ ∗ ⋮ = ⋮
0 0 0 −2 1 0 ⋮ ⋮
0 0 0 ⋯ 1 −2 1 T m−1 0
0 0 0 0 1 −2 Tm −T m+1
Now above system of linear equation can be solved by any direct or
iterativemethod.
Analytical Solution
d2T
=0 ………. (1)
d x2
Outputs
Nod TDM JACOBI SOR(W=1. ANALYT ERR. ERR
G-S ERR. GS
es A AN 5) ICAL JACOBI. SOR
1 486.67 486.55044 486.54 486.621986 486.66667 0.116224 0.128744 0.044681
2 460 459.65133 459.63 459.878174 460 0.348671 0.36956 0.121826
3 433.33 432.78232 432.75 433.150461 433.33333 0.551018 0.584029 0.182872
4 406.67 405.9133 405.9 406.439427 406.66667 0.753366 0.764033 0.22724
5 380 379.10933 379.1 379.744813 380 0.890675 0.903287 0.255187
6 353.33 352.30535 352.34 353.065649 353.33333 1.027985 0.99754 0.267684
7 326.67 325.59012 325.62 326.400392 326.66667 1.07655 1.044667 0.266275
8 300 298.87489 298.96 299.747076 300 1.125115 1.044667 0.252924
9 273.33 272.25678 272.33 273.103461 273.33333 1.07655 0.999574 0.229872
10 246.67 245.63868 245.75 246.46717 246.66667 1.027985 0.913282 0.199497
11 220 219.10933 219.21 219.835817 220 0.890675 0.791293 0.164183
12 193.33 192.57997 192.69 193.207118 193.33333 0.753365 0.640414 0.126215
13 166.67 166.11565 166.2 166.57898 166.66667 0.551019 0.468405 0.087687
14 140 139.65133 139.72 139.949571 140 0.348671 0.283602 0.050429
15 113.33 113.21711 113.24 113.317367 113.33333 0.116223 0.094534 0.015966
600
500
400
Temperature
300
200
100
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
No of Nodes
1.2
0.8
Absolute Error
0.6
0.4
0.2
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
No of Nodes
Inputs
S.No.
1 Length 2 (m)
2 Number of Nodes 15
3 Initial Approximation 1
4 Tolerance 0.0001
Outputs
No. of Nodes
1.4
1.2
Absolute Error
0.8
0.6
0.4
0.2
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
No. of Nodes