大学物理 ›› 2025, Vol. 44 ›› Issue (12): 52-.doi: 10.16854/j.cnki.1000-0712. 240346

• 教学讨论 • 上一篇    下一篇

基于紧致差分的矩形区域上的泊松方程的求解

裴晓琪,王嘉华,谭 佳,虞立敏   

  1. 1.华东理工大学 物理学院,上海 201400;2. 华东理工大学 药学院,上海 201400;3.华东理工大学 机械与动力工程学院,上海 201400  
  • 收稿日期:2024-07-31 修回日期:2025-02-24 出版日期:2026-03-13 发布日期:2026-03-20
  • 作者简介:裴晓琪(2003—),女,上海奉贤人,本科生.
  • 基金资助:
    大学生创新创业训练计划项目(X202310251262);国家自然科学基金项目(11875131)

The solution of the Poisson equation on a rectangular region #br# based on compact differences

PEI Xiao-qi1, WANG Jia-hua2, TAN Jia3, YU Li-min1   

  1. 1.School of Physics, East China University of Science and Technology, Shanghai 201400, China;2. 
    2.School of Pharmacy, East China University of Science and Technology, Shanghai 201400, China;
    3.School of Mechanical and Power Engineering, East China University of Science and Technology, Shanghai 201400, China
  • Received:2024-07-31 Revised:2025-02-24 Online:2026-03-13 Published:2026-03-20

摘要: 泊松方程是数学和物理领域一类重要的椭圆偏微分方程,在电磁学、等离子体物理等领域里有重要应用.数值上,高效的求解泊松方程受到广泛关注.差分法是一种常见的数值离散和求解这类椭圆微分方程的方法.相比于传统的二阶差分方法,紧致差分法通过引入紧致算子,可以提高差分方法的计算精度并减少计算量.本工作应用紧致差分法在矩形区域内,对于无源和有源线性泊松方程,实现直接求解,而对于有源非线性泊松方程,在紧致差分法基础上采用了迭代求解.解析解和数值解应用Matlab进行可视化.同时,该求解器的准确性和可靠性通过解析解和数值解的对比得到验证.本工作对物理学中各种类型的泊松方程的求解具有重要意义以及表明可视化对数学物理方法课程的学习具有重要作用.


关键词: 紧致差分法, 泊松方程, Matlab, 矩形区域

Abstract: The Poisson equation is an important type of elliptic partial differential equation in the fields of mathematics and physics. It is one of the fundamental equations in electromagnetism and electrodynamics, with significant applications in plasma physics. Numerically solving the Poisson equation efficiently has been widely studied. The finite difference method is a common approach for numerically discretizing and solving such elliptic differential equations. The compact finite difference method, by introducing compact operators, can improve the computational accuracy of the finite difference method and reduce computational cost. In this work, we apply the compact finite difference method to numerically solve both the source-free Poisson equation and the linear Poisson equation with a source term within a rectangular domain. We also iteratively solve the source-free nonlinear Poisson equation. The analytical solutions and numerical solutions are visualized using Matlab. Meanwhile, the accuracy and reliability of the solver are verified by comparing the analytical solutions with the numerical solutions. This work is of great significance for solving various types of Poisson equations in physics and indicates that visualization plays an important role in the learning of mathematical physics methods.


Key words: compact difference method, Poisson equation, Matlab, rectangular region