poisson_2d_steady
Location: http://people.sc.fsu.edu/~jburkardt/classes/math1091_2020/poisson_2d_steady/poisson_2d_steady.html
poisson_2d_steady,
uses a finite difference approach to model a steady Poisson equation on
a rectangular domain, to produce a computational estimate of the solution,
and to postprocess the solution by tables, norms, and plots.
The notes:
MATLAB helper functions:
-
ij_from_k.m,
returns the column and row indices given the node index.
-
k_from_ij.m,
returns the node index given the column and row indices.
-
poisson_solver.m,
a helper routine for exercise 4, which can solve a Poisson problem
after the user supplies the necessary input.
-
skeleton2.m,
a "skeleton" outline for exercise 2. Put some meat on its bones!
Exercises: (Look at these after you have tried to do each exercise
on your own!)
-
exercise1.txt,
the 12 equations associated with the tiny discretized Poisson equation.
-
exercise2.m,
sets up the linear system for the tiny discretized Poisson equation.
-
exercise3.m,
report the solution of the tiny discretized Poisson equation
by printing all the data.
-
exercise4.m,
Use poisson_solver.m to solve the system.
-
exercise5.m,
set up a new Poisson problem, use poisson_solver.m to solve it,
and compute the RMS norm of the approximation error.
Homework: My version posted after you have turned yours in.
Images:
Last revised on 16 May 2020.