How would I solve a Laplace Equation using the FDM method?
Show older comments

I have to use the FDM method to solve the equation on the first image.
Using FDM method as in the second image, how would I solve this equation with matlab?
condition : d = 1.
<<

>>
2 Comments
SAM OCHIRI
on 20 Sep 2018
Torsten
on 20 Sep 2018
In the calculation for V(i) you reference V(i+1) which has not yet been computed. Thus your "solution" for Laplace = 0 must come out wrong.
Answers (1)
Solve A*V=b where A, b result from the system of equations
V(1) = V0
(V(i+1)-2*V(i)+V(i-1))/h^2 = 24*x(i) (i=2,...,Nx)
V(Nx+1) = V1
with V0 = 0, V1 = 3.
Best wishes
Torsten.
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!