Finite difference solution of 2D Poisson equation
Current version can handle Dirichlet boundary conditions:
The boundary values themselves can be functions of (x,y).
-
version 1.1
- Fixed a bug regarding the right-hand function
- Figure size and font size adjusted
-
version 1.0 notes
- Sparse matrix implementation. CSR format (Compressed sparse row matrix) matrix.
Solution of with boundary conditions is shown below:
- Sparse matrices: https://docs.scipy.org/doc/scipy/reference/sparse.html
- Sparse matrix linear algebra: https://docs.scipy.org/doc/scipy/reference/sparse.linalg.html