Sadiku
Sadiku
8
2. Generate a random number 0 < r < 1, and well with the finite difference solution and the exact
move the next point according to eq. (16). analytical solutions and it is easier to understand and
3(a) If the next point is not on the boundary, repeat program than the finite difference method. The method
step 2. can be extended to axial symmetric heat equation.
3(b) If the random walk hits the boundary,
terminate the random walk. Record Ub at the REFERENCES
boundary and go to step 1 and begin another
random walk. [1] G. M. Royer, "A Monte Carlo Procedure for
4. After N random walks, determine Potential theory of problems," IEEE Trans. Micro.
1 N Theo. & Tech.,vol. MTT-19, no. 10, Oct. 1971, pp. 813-
U(xo , yo , t o ) = ∑ Ub(k) (17)
N k =1
818.
[2] R. M. Bevensee, "Probabilistic potential theory
The only difference between 1-D and 2-D is that there applied to electrical engineering problems," Proc. IEEE,
are three kinds of displacement in 1-D while there are vol. 61, no. 4, April 1973, pp. 423 - 437.
five displacements (four spatial ones and one temporal [3] T. E. Booth, “Exact Monte Carlo solution of elliptic
one) in 2-D. partial differential equation,” J. Comp. Phys., vol. 39,
As a numerical example, consider the solution 1981, pp. 396-404
of the problem in eqs. (10) and (11). We select [4] R. Schlott, “A Monte Carlo method for the Dirichlet
α = 1, ∆=0.1, so that ∆t=0.01 and we calculate U at x = problem of dielectric wedges,” IEEE Trans. Micro. Theo.
0.5, y=0.5, t = 0.05, 0.1, 0.15, 0.2, 0.25, 0.3. As shown Tech., vol. 36, no. 4, April 1988, pp. 724-730.
in Table 2, we compare the results from the Monte Carlo [5] D. Netter, J. Levenque, P. Masson and A. Rezzoug,
method (MCM) with the finite difference (FD) solution “Monte Carlo method for transient eddy-current
and exact solution [7]: calculations,” IEEE Trans. Magnetics, vol.40, no.5,
Sept. 2004, pp.3450-3456.
40 ∞
cos(mπ )cos(nπ )
∞
U(x, y , t) = 2 ∑∑
π m=1 n=1 mn
sin(mπ x) [6] M. N. O. Sadiku, Numerical Techniques in
Electromagnetics. Boca Raton, FL: CRC Press, 2nd
2 edition, 2001, pp. 125-130.
× sin(nπ y)exp(−λmnt), [7] D. L. Powers, Boundary Value Problems. New York:
(18) Academic Press, 1972, pp. 135-139.
2 2 2
where λmn = (mπ ) + (nπ ) .
Due to the randomness of the Monte Carlo solution, each
MCM result in Tables 1 and 2 was obtained by running
the simulation five times and taking the average.
t Exact MCM FD
4. CONCLUSION
9
U(0,t)=0
U(1,t)=0
10