[关闭]
@samuelstark 2016-05-24T12:46:05.000000Z 字数 1082 阅读 524

HOMEWORK13——Electric Potential

homework

author : 2013301020086 Yuqi Wang

1.Abstract

This homework explored the electric potential with the bound condition in two-dimension.

2.Model

In regions of space that do not contain any electric charges, the electric potential obeys Laplaces's equation:


In two-dimensional case the equation reduces to:

is known at the boundaries.

3.Algorithm

We discretize the independent variables and . Points in our space are then specified by integer and , with .
We find the potential function:


The approach we take to get the solution is to begin with some initial guess for the solution, , say. Then we use the formula above to obtain the new . This procedure will be repeated until the difference between the new and old is sufficiently small.

4.Boundary Condition and Solution

This is the complete code

The picture following is the boundary condition:

This is the solution:

This is the code plotting the picture

5.Acknowledgement

2013301020084 Han Xu

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