[关闭]
@feipai11 2016-06-11T19:17:43.000000Z 字数 2121 阅读 1330

Potential and Field: Solving the laplace equation

郭帅斐


The summary:

We have encountered many partial differential equation in our learning process, and we knew many analytical ways to solve it. There are three impotant partial differential equations, that is laplace equation (equilibrium state), diffusion equation,and wave equation. If we apply variables separation to the diffusion and wave equation, we will get Helmholtz equation,that can be ragarded as a kind of laplace equation. So we solve the laplace equation in this chapter. A numerical way is applied to the equation and solve two problems in electrodynamics. The most important procedure is certainly the finite difference of the equation.

The psudocode:

Just like the diffence of time in the ordinary differential equation, we did the finite difference of time and space position. Actually, the partical equations are derived through finite differential ways. Here, we use the two-dimentional finite differential form as follows:


This is called Jacobo mathod, I will use this mathod to salve the capacitor problem and the point charge problem. In the process of writting the codes, the judgement of the condition is actually an AND condition, how to judge it is important. In the program, I make a 100x100 array to store the potential value of the syatem, that is really too big and the calculation consume a lot of time.

The result:

The conclusion:

Through the program we have Solved this two inportant partial equations, and plot beautiful figure. Most importantly, We now know how to solve partial equations numerically: finite difference of time and position. That important in following work of Computational Physics.

Acknowladgement:

Thank LiFangying for the direction on the writting of the program.

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注