The electrostatic potential V associated with a static charge density ρ is governed by Poisson's equation which follows from Gauss's Law in differential form. This Live Script illustrates how to use the 2nd order central difference approximation for the Laplacian on a square grid to represent Poisson's equation as a matrix equation. The potential values are found by matrix inversion. The example illustrated here is a single line charge inside a cylindrical hole in a conductor.
This script may interest students and instructors of physics. 'Try this' suggestions and coding 'Challenges' are included for further exploration. Alternative methods of solving two-dimensional electrostatics problems are explored in Ref[1-2].
引用格式
Duncan Carlsmith (2025). Poisson Equation for Electrostatic Potential (https://ww2.mathworks.cn/matlabcentral/fileexchange/178404-poisson-equation-for-electrostatic-potential), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2024b
兼容任何版本
平台兼容性
Windows macOS Linux标签
致谢
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!PoissonEquationForElectrostaticPotential folder
版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |