Code for Laplace Equations

Jan 10, 2019 at 9:23am
Hello,
Can some one please provide me the code for the Laplace equation.

Last edited on Jan 10, 2019 at 9:53am
Jan 10, 2019 at 9:40am
What have you done so far?

Simplest way is to use Gauss-Seidel and solve it iteratively. Laplace's equation is particularly easy here since (for an equally-spaced grid) each nodal value is just the average of the four nodes around it. Can usually be accelerated with over-relaxation (PSOR).

Faster (but more complex) iterative method is ADI (alternating-direction implicit), with repeated sweeps of a tri-diagonal solver.
Last edited on Jan 10, 2019 at 11:00am
Topic archived. No new replies allowed.