solve_laplace_2d
Solve the 2D Laplace equation on a unit square with constant Dirichlet edges using red-black Gauss-Seidel iteration, returning the solution grid, convergence status, and iteration count.
Instructions
Solve u_xx + u_yy = 0 on the unit square with constant Dirichlet edges.
Red-black Gauss-Seidel is iterated until max|u_new-u_old| < tol. If
``max_iter`` is reached first the call still succeeds, with
``converged = False`` and the achieved ``iterations`` count. The full grid
is saved as .npz; the returned grid is downsampled to at most 100x100.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nx | Yes | ||
| ny | Yes | ||
| tol | No | ||
| top | Yes | ||
| left | Yes | ||
| right | Yes | ||
| bottom | Yes | ||
| max_iter | No |