2D steady state and transient analysis of a linear heat conduction equation
Objective: 2D Steady state analysis of linear conduction equation: clear all close all clc %inputs nx=10; ny=nx; % grid T=300*ones(nx,ny); %assigning BC T(:,1)=400; T(:,end)=800; T(1,:)=600; T(end,:)=900; x=linspace(0,1,nx); y=linspace(0,1,ny); iterative_solver=1; %T=Told; tol=1e-4; error=1; %creating a copy of T Told=T; k1=(x(2)-x(1))^2;…