Project No. 03: Submitted By: Khalil Ahmad
Project No. 03: Submitted By: Khalil Ahmad
03
Project Title:
Submitted By:
Khalil Ahmad
Submitted To:
Dated:
13-07-2014
Laplace Equation
Then the Laplace equation for two dimensional rectangular steel block is shown below
2u
2u
0
x2
y2
and its fde becomes
ij
i+1,j
i-1,j
+u
i,j+1
+u
i,j-1
+u
4
Consider the problem below we use Laplace equation to calculate temperature distribution
T = 50
T = 100
T=0
T = 25
Matlab Program:
function [x,y,T]= LaplaceExplicit(n,m,Dx,Dy)
clc
echo off;
n = 10;
m = 20;
nx = 30;
ny = 24;
Dx = 1;
Dy = 1;
%numgrid(n,m);
R = 5.0;
return
end;
end;
fprintf('\n No convergence after %i iterations.',k);
Matlab Plots: