Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
19Activity
0 of .
Results for:
No results containing your search query
P. 1
Solution for the Laplace Equation

Solution for the Laplace Equation

Ratings: (0)|Views: 2,030|Likes:
Published by api-3839714

More info:

Published by: api-3839714 on Oct 18, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

Numerical Solution for the Laplace Equation
\u00a9 Siamak Faridani, Oct 2006
for more information visitpit chup.co m
Files:
Matlab Code
PDF Report
Abstract:
In this homework Laplace equation has been solved for a rectangle, all the values on the
boundary has been set to zero except for one third of one of the sides
One third of the left side is set to 1
Laplace Equation:
0
2
2
2
2
=
\u2202
\u2202
+
\u2202
\u2202
y
u
x
u
Decartelization:
)
)
(
,
)
((
0
)
(2
)
(2
2
2
2
1
,
,
1
,
2
,
1
,
,
1
y
x
O
y
U
U
U
x
U
U
U
j
i
j
i
j
i
j
i
j
i
j
i
\u2206
\u2206
=
\u2206
+
\u2212
+
\u2206
+
\u2212
\u2212
+
\u2212
+
Approach:
Since in the former homework I faced some difficulties with Fortran and I was afraid of
using it again, I chose MATLAB to solve this problem
Inputs

Number of the nodes in x and y direction will be given to the program as inputs
User will be asked if he wants to set the boundary conditions on the middle of the line or
on the corner
And the desired maximum error will be asked as well

N = input('Number of Nodes in Y ');
M = input('Number of Nodes in X ');
% Boundary values can be set along the corner or in the middle
reply = input('Corner or Middle boundary conditions C/M [C]: ', 's');
%Maximum Error abs(x2-x1)
maxerr= input('Desired Maximum Error [.00001]: ');
For boundary conditions the default mode is on the corner and for the maximum error the
default mode is .00001. User can change them if he wants

Activity (19)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Jumari Porman liked this
Amit Patel liked this
April Henry liked this
April Henry liked this
Suman Roy liked this
electrotehnica liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->