All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
SOLVING THE STEADY AND UNSTEADY 2D HEAT CONDUCTION PROBLEM: 2D STEADY STATE EQUATION: ∂2T∂x2+∂2T∂y2=0;∇2T=0 2D TRANSIENT STATE EQUATION: ∂T∂x+α(∂2t∂x2+∂2T∂2y)=0; JACOBI METHOD: Jacobi iterative method is considered as an iterative algorithm which is used…
Gokul A R
updated on 17 Mar 2021
SOLVING THE STEADY AND UNSTEADY 2D HEAT CONDUCTION PROBLEM:
2D STEADY STATE EQUATION:
∂2T∂x2+∂2T∂y2=0;∇2T=0
2D TRANSIENT STATE EQUATION:
∂T∂x+α(∂2t∂x2+∂2T∂2y)=0;
JACOBI METHOD:
Jacobi iterative method is considered as an iterative algorithm which is used for determining the solutions for the system of linear equations in numerical linear algebra, which is diagonally dominant. In this method, an approximate value is filled in for each diagonal element.
Xk+1i=1aii[bi−i−1∑j=1aiXkj−n∑i=i+1ai,jXkj]
GAUSS SEIDEL METHOD:
Gauss-Seidel is considered an improvement over Gauss Jacobi Method. In this method, just like any other iterative method, an approximate solution of the given equations is assumed, and iteration is done until the desired degree of accuracy is obtained.
Xk+1i=1aii[bi−i−1∑j=1aiXk+1j−n∑i=i+1ai,jXk+1j]
SUCCESSIVE OVER RELAXATION:
Sucessive over relaxation is a variant of the gauss seidal method for solving a linear system of equations, resulting in faster convergence.
Xk+1i=(1−ω)xki1aii[bi−i−1∑j=1aiXk+1j−n∑i=i+1ai,jXkj]
BOUNDARY CONDITION:
Top Boundary = 600 K
Bottom Boundary = 900 K
Left Boundary = 400 K
Right Boundary = 800 K
STEADY STATE :
MAIN PROGRAM:
%Steady State 2D Heat conduction code : d^2T/dx^2 + d^2T/dy^2 = 0
clear all
close all
clc
%inputs
nx=10;
ny=nx;
x=linspace(0,1,nx);
y=linspace(0,1,ny);
T = 300*ones(nx,ny);
alpha = 2;
%BC
T(:,1) = 400; %Left
T(1,:) = 600; %Top
T(:,end) = 800; %Right
T(end,:) = 900; %Down
T(1,1) = (400+600)/2;
T(end,end) = (800+900)/2;
T(1,end) = (800+600)/2;
T(end,1) = (400+900)/2;
Told = T;
Tinitial = T;
k1 = 0; % alpha*dt/dx^2
k2 = 0;% alpha*dt/dy^2
iterative_solver = 3;
error=9e9;
tol = 1e-4;
% %jacobi method
if iterative_solver==1
jacobi_iter=0;
while(error > tol)
for i=2:nx-1
for j=2:ny-1
T_H = Told(i-1,j) + Told(i+1,j);
T_V = Told(i,j-1) + Told(i,j+1);
T(i,j) = 0.25*(T_H+T_V);
end
end
error = max(max(abs(T-Told)));
Told = T;
% contourf(x,fliplr(y),T,'ShowText','ON');
% title(sprintf('Iterations = %d',jacobi_iter));
% pause(0.01)
% colorbar;
% jacobi_iter=jacobi_iter+1;
end
end
if iterative_solver==2
gs_iter=0;
while(error>tol)
for i=2:nx-1
for j=2:ny-1
T_H = T(i-1,j) + Told(i+1,j);
T_V = T(i,j-1) + Told(i,j+1);
T(i,j) = 0.25*(T_H+T_V);
end
end
error = max(max(abs(T-Told)));
Told = T;
contourf(x,fliplr(y),T,'ShowText','ON');
title(sprintf('Iterations = %d',gs_iter));
pause(0.01)
colorbar;
gs_iter=gs_iter+1;
end
end
if iterative_solver==3
omega = 1.5;
sor_iter=0;
while(error>tol)
for i=2:nx-1
for j=2:ny-1
T_H = T(i-1,j) + Told(i+1,j);
T_V = T(i,j-1) + Told(i,j+1);
T_GS = 0.25*(T_H+T_V);
T(i,j) = (1-omega)*Told(i,j) + omega*T_GS;
end
end
error = max(max(abs(T-Told)));
Told = T;
contourf(x,fliplr(y),T,'ShowText','ON');
title(sprintf('Iterations = %d',sor_iter));
pause(0.01)
colorbar;
sor_iter=sor_iter+1;
end
end
α- Thermal diffusivity
k1,k2-CFL number
T_H=T_Horizontal
T_V=T_Vertical
T_GS=T_Gauss seidel
Three iterative solvers are defined to obtain convergence rate of Three method(Implicit method) such as jacobi,gauss seidel,successive over relaxation.
When error value is less than tolerance value,solution is to be converged.
OBTAINED PLOT:
JACOBI METHOD:
GAUSS SEIDEL METHOD:
SUCCESSIVE OVER RELAXATION:
METHOD | ITERATION |
JACOBI | 206 |
GAUSS SEIDEL | 110 |
SOR | 27 |
RESULT:
By the obtained plot,SOR method takes minimum time /iteration to converge when compared to jacobi and gauss seidal method while solving heat conduction equation.
Jacobi>Gauss seidel>SOR.
Transient state takes more computational time/iteration to converge than steady state.
Leave a comment
Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.
Other comments...
Week 4 Challenge : CFD Meshing for BMW car
CFD MESHING FOR BMW CAR AIM: To check and solve geometrical errors and assigning PIDs Performing meshing with target length and element quality criteria Creating and Meshing wind tunnel volume CHECKING AND SOLVING GEOMETRICAL ERROR: After Cleanup the grills After Cleanup the logo After Cleanup the tyres PERFORMING…
24 Dec 2022 06:04 AM IST
Week 3 Challenge : CFD meshing on Turbocharger
CFD MESHING ON TURBOCHARGER OBJECTIVES: 1.Check geometrical error 2.Create and assign PIDs 3.Perform surface mesh with given target length 4.Perform Volumetric mesh 1.CHECKING GEOMETRICAL ERROR: Deleting pink colour surface which is patched or overlapped Making all the single cons to double cons After cleanup…
14 Dec 2022 05:05 PM IST
Week 2 Challenge : Surface meshing on a Pressure valve
SURFACE MESHING ON A PRESSURE VALVE: CHECK FOR GEOMETRICAL ERROR: Check manager --> Geometry --> Execute TOPOLOGY CLEANUP: Using Cons --> Fill hole Face --> Fitted, Loop These are some of the option for topology cleanup. It will patch up, fill up where its necessary. Here AND,OR,NOT,ALL,LOCK options…
06 Dec 2022 06:19 PM IST
Week 2 Air standard Cycle
AIR STANDARD CYCLE AIM: From the learning of forward kinematics routine, write a program to solve an otto cycle and make plots for it. OBJECTIVE: 1.To create a PV diagram 2.Find the output thermal efficiency of the engine. THEORY: Assumptions of Air standard cycle ==> Gas should be perfect gas ==> Adiabatic…
13 Oct 2022 07:34 PM IST
Related Courses
0 Hours of Content
Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.
© 2025 Skill-Lync Inc. All Rights Reserved.