Professional Documents
Culture Documents
For Dirichlet problem,since U”=0 is constantly If the sphere is not grounded,we can as-
true on S,the right part of the equation above is
sume a charge q(equal to the charge out-
0.So ∭ side) at a center of the sphere. In my
(∇𝑈 ′′) 2𝑑𝑉 = 0. C++ program,the electric field is drawn
𝑉 by drawing the field of point charge sys-
′′ ′′
Since (∇𝑈 ) ⩾ 0,∇𝑈 ≡ 0,which means tems.This program can be downloaded at
2
If D is positive definite and self adjoint,then In the following part of this section,we will in-
the solution of equation DΦ = 𝑓 can be calcu- troduce them respectively.
lated by minimizing the following formula[2]:
6.1 Division of the area
1 1 1
𝐹 ( Φ̂) = < DΦ̂, Φ̂ > − < Φ̂, 𝑓 > − < 𝑓 , Φ̂ >, The area can be devided into different subar-
2 2 2
eas.The most common method is to divide it
where Φ̂ is a tentative function. In our case,we into simple elements like rectangles,triangles or
suppose Φ is a real function,and assume it can cubes,etc.Most interpolating function are rela-
be written as tive to the nodes of the elements. For example,if
Φ̂ = Σ 𝑗=1𝑐 𝑗 𝑣 𝑗 = c v = v c,
𝑁 𝑇 𝑇 the subarea is a triangle which has 3 nodes,then
the interpolating function can be written as the
where 𝑣 𝑗 are functions defined in the area and 𝑐 𝑗 linear combination of 3 polynomials.
are coefficients. Substituting the equation into
the former equation gives 6.2 Choice of interpolating functions
Denote n as the number of the nodes,Φ𝑒𝑗 as the Φ
∫ ∫
1
𝐹 = c𝑇 vDv𝑇 𝑑 Ωc − c𝑇 v𝑓 𝑑 Ω. value at node j,and 𝑁 𝑗𝑒 is an interpolating func-
2 Ω Ω
tion,which is nonzero inside the unit e while zero
To seek the local minimum of F,we compute the
outside of e. The formation of tentative function
partial derivative of F:
∫ ∫ in e can be given as
𝜕𝐹 1 1
= 𝑣𝑖 Dv𝑇 𝑑 Ωc + c𝑇 vD𝑣𝑖 𝑑 Ω Φ̂𝑒 = Σ𝑛𝑗=1 𝑁 𝑗𝑒 Φ𝑒𝑗 = N𝑒𝑇 𝚽𝑒 = 𝚽𝑒𝑇 N𝑒
𝜕𝑐𝑖 2 Ω 2 Ω
∫ ∫
𝑣𝑖 𝑓 𝑑 Ω 6.3 Institution of the equation system
1 𝑁
= Σ 𝑗=1𝑐 𝑗 (𝑣𝑖 D𝑣 𝑗 + 𝑣 𝑗 D𝑣𝑖 )𝑑 Ω −
2 Ω Ω Denote M as the number of the units.The objec-
= 0 𝑖 = 1, 2, 3, ..., 𝑁 . tive function F can be written as
(1)
It can also be written as 𝐹 ( Φ̂) = Σ𝑚 𝑒=1 𝐹 ( Φ̂ ).
𝑒 𝑒
9 APPENDIX
Running effects of my simulator