Matlab 求解金属槽槽内电位分布
摘要
运用有限差分法将场域离散为许多小网格,将求解连续函数?的泊松方程的问题换为求解网格节点上?的差分方程组的问题。用matlab 程序计算出槽内电位分
布的结果。通过数值解和精确解的比较来验证有限差分法的可行性。
关键词:有限差分法; Matlab ;金属槽槽内电位
Solving the metal slots potential with Matlab
Abstract : U sing the finite difference method (FDM)field is discreted into many
small grid, transform ing the problem solving poisson equation with continuous function ? for solving the differential equations of grid node ?. We use Matlab program to calculate the potential distribution in slot results. The values got from these two methods are compared, which would be a validation of the feasibility of the Finite Difference Method.
1 引言
如图1所示,尺寸为a ×a 的正方形金属导体槽三面接地,上方是一块密实的但与之绝缘的金属盖板,其电位100V ?=,求槽内电位的分布情况。这是二维静态场域的边值问题,在直角坐标系中,接地导体矩形槽中的电位函数p 满足拉
普拉斯方程22220x y
??
??+=??。
X
a
a
图1 正方形金属槽
其边界条件满足第一类边界条件问题
0(x,y)0x ?== (x,y)
0x a
?==