Finite Volume Poisson Solver
C-Library & Matlab Toolbox implement a numerical solution of Poisson equation
div(e*grad(u))=f
for Cartesian 1D, Cartesian 2D and axis-symmetrical cylindrical coordinates with respect to steeply varying dielectrical permittivity e.
Library uses regular rectangular grid with mixed boundary conditions, FVM-based equation discretization and iterative methods for solving sparse linear system.
MATLAB VERSION: 6.5 - 7.9
FILES:
C-LIBRARY:
COMMON.C, COMMON.H - data types, memory management
LINALG.C, LINALG.H - solution of tridiagonal system
PSN_1D.C, PSN_1D.H - 1D Poisson solver
PSN_2D.C, PSN_2D.H - 2D and Cylindrical Poisson solver
MATLAB TOOLBOX:
PSN_1D_MEX.C - POISSON1D MATLAB MEX SOURCE
PSN_2D_MEX.C - POISSON2D MATLAB MEX SOURCE
PSN_2D_MEX.M - POISSON2D MATLAB HELP
PSN_2d_MAKE.M - MAKE MEX-DLL SCRIPT
PSN_2D_DEMO.M - POISSON2D DEMO, CARTESIAN COORDINATES
PSN_CYL_DEMO.M - POISSON2D DEMO, CYLINDRICAL COORDINATES
FAST START:
1. Copy all files to appropriate folder
2. Make this folder to be current Matlab folder
3. Type "psn_2d_make" from Matlab command line to recompile MEX for you platform
3. Type "psn_2d_demo" or "psn_cyl_demo" from Matlab command line to start demo
Cite As
Igor Kaufman (2026). Finite Volume Poisson Solver (https://uk.mathworks.com/matlabcentral/fileexchange/25318-finite-volume-poisson-solver), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Communities
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
