<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">OJMSi</journal-id><journal-title-group><journal-title>Open Journal of Modelling and Simulation</journal-title></journal-title-group><issn pub-type="epub">2327-4018</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/ojmsi.2019.74012</article-id><article-id pub-id-type="publisher-id">OJMSi-96014</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Markov Chain Monte Carlo Solution of Laplace’s Equation in Axisymmetric Homogeneous Domain
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Adebowale</surname><given-names>E. Shadare</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Matthew</surname><given-names>N. O. Sadiku</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Sarhan</surname><given-names>M. Musa</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Department of Electrical/Computer Engineering, Prairie View A&amp;amp;M University, Prairie View, TX, USA</addr-line></aff><pub-date pub-type="epub"><day>08</day><month>10</month><year>2019</year></pub-date><volume>07</volume><issue>04</issue><fpage>203</fpage><lpage>216</lpage><history><date date-type="received"><day>31,</day>	<month>August</month>	<year>2019</year></date><date date-type="rev-recd"><day>25,</day>	<month>October</month>	<year>2019</year>	</date><date date-type="accepted"><day>28,</day>	<month>October</month>	<year>2019</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  With increasing complexity of today’s electromagnetic problems, the need and opportunity to reduce domain sizes, memory requirement, computational time and possibility of errors abound for symmetric domains. With several competing computational methods in recent times, methods with little or no iterations are generally preferred as they tend to consume less computer memory resources and time. This paper presents the application of simple and efficient Markov Chain Monte Carlo (MCMC) method to the Laplace’s equation in axisymmetric homogeneous domains. Two cases of axisymmetric homogeneous problems are considered. Simulation results for analytical, finite difference and MCMC solutions are reported. The results obtained from the MCMC method agree with analytical and finite difference solutions. However, the MCMC method has the advantage that its implementation is simple and fast.
 
</p></abstract><kwd-group><kwd>Laplace’s Equation</kwd><kwd> Axisymmetric Problem</kwd><kwd> Inhomogeneous Dirichlet Boundary Conditions</kwd><kwd> Markov Chain Monte Carlo (MCMC)</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Most real-world EM problems are difficult to solve using analytical methods and in most cases, analytical solutions are outright intractable [<xref ref-type="bibr" rid="scirp.96014-ref1">1</xref>]. Today, with increasing advancement in computer technologies and with increasing system complexities, the need for continuous development of computational techniques to address contemporary EM problems is as ever, critical. EM problems in nature are essentially three-dimensional (3D) requiring, in most cases, enormous time and computer memory to solve. However, approximations in 1D and 2D are often a smart way of solving 3D problems provided that approximations can be made without loss of accuracy. In axisymmetric systems, the cylindrical coordinate, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x2.png" xlink:type="simple"/></inline-formula>is essentially independent of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x3.png" xlink:type="simple"/></inline-formula>, reducing the complexity of the problem to two-dimensional problems in <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x4.png" xlink:type="simple"/></inline-formula> plane of the three-dimensional domain [<xref ref-type="bibr" rid="scirp.96014-ref2">2</xref>] - [<xref ref-type="bibr" rid="scirp.96014-ref10">10</xref>]. The resulting two-dimensional approximation can be treated like a Cartesian coordinate problem with either z or <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x5.png" xlink:type="simple"/></inline-formula> constant interface.</p><p>Several methods such as the Method of Lines [<xref ref-type="bibr" rid="scirp.96014-ref11">11</xref>], the Finite Element method [<xref ref-type="bibr" rid="scirp.96014-ref12">12</xref>] [<xref ref-type="bibr" rid="scirp.96014-ref13">13</xref>], Finite difference method [<xref ref-type="bibr" rid="scirp.96014-ref14">14</xref>] and the Boundary Integral Equation methods [<xref ref-type="bibr" rid="scirp.96014-ref15">15</xref>] [<xref ref-type="bibr" rid="scirp.96014-ref16">16</xref>] have all been applied in the modeling and analysis of axisymmetric problems. Since the connection between Brownian motion and the potential theory was established [<xref ref-type="bibr" rid="scirp.96014-ref17">17</xref>] and the application of probabilistic potential theory to electrical engineering related problems [<xref ref-type="bibr" rid="scirp.96014-ref18">18</xref>], several Monte Carlo techniques such as fixed random walk, floating random walk and Exodus method [<xref ref-type="bibr" rid="scirp.96014-ref9">9</xref>] [<xref ref-type="bibr" rid="scirp.96014-ref19">19</xref>] - [<xref ref-type="bibr" rid="scirp.96014-ref26">26</xref>] have evolved dramatically. However, conventional Monte Carlo techniques are limited in application because they are unsuitable for whole-field computation. They only allow single-point calculations. The shrinking boundary and the inscribed figure methods later proposed for whole-field calculations are not significantly superior to the classical Monte Carlo methods [<xref ref-type="bibr" rid="scirp.96014-ref27">27</xref>] [<xref ref-type="bibr" rid="scirp.96014-ref28">28</xref>]. To address this gap, Markov Chains for whole-field computations was proposed by Andrey Markov [<xref ref-type="bibr" rid="scirp.96014-ref29">29</xref>] [<xref ref-type="bibr" rid="scirp.96014-ref30">30</xref>]. The applications of MCMC to rectangular and axisymmetric problems are presented in [<xref ref-type="bibr" rid="scirp.96014-ref29">29</xref>] [<xref ref-type="bibr" rid="scirp.96014-ref31">31</xref>].</p><p>However, to the best of the authors’ knowledge, the solutions of Laplace’s equation in axisymmetric homogeneous domains with MCMC with inhomogeneous Dirichlet boundary condition are yet to be reported in the literature. Thus, this paper presents the MCMC solution of Laplace’s equation in axisymmetric homogeneous region.</p></sec><sec id="s2"><title>2. Axisymmetric Problem Formulation</title><p>When it is necessary and convenient, electromagnetic problems in cylindrical coordinates may be approximated to axisymmetric solution region. Suppose a cylindrical coordinate system is as shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>. It is immediately clear that the corresponding axisymmetric approximation in meshed <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x6.png" xlink:type="simple"/></inline-formula> region is as shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>. The voltages<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x7.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x8.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x9.png" xlink:type="simple"/></inline-formula> imposed in <xref ref-type="fig" rid="fig1">Figure 1</xref> satisfy the Dirichlet boundary condition, justifying axisymmetric approximation shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p><p>The Laplace’s equation in the axisymmetric region R depicted in <xref ref-type="fig" rid="fig2">Figure 2</xref> is given as</p><disp-formula id="scirp.96014-formula1"><label>(1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-2860166x10.png"  xlink:type="simple"/></disp-formula><p>The corresponding finite difference equivalence of Equation (1) for <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x11.png" xlink:type="simple"/></inline-formula> region using square grid is given as</p><disp-formula id="scirp.96014-formula2"><label>(2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-2860166x12.png"  xlink:type="simple"/></disp-formula><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> Cylindrical geometry</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-2860166x13.png"/></fig><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> Axisymmetric Solution Region</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-2860166x14.png"/></fig><p>The transition probabilities in the Equation (2) are given as [<xref ref-type="bibr" rid="scirp.96014-ref14">14</xref>]</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x15.png" xlink:type="simple"/></inline-formula>;<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x16.png" xlink:type="simple"/></inline-formula>; <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x17.png" xlink:type="simple"/></inline-formula></p><p>Similarly, the finite difference equivalence of Equation (1) for <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x18.png" xlink:type="simple"/></inline-formula> region is given as [<xref ref-type="bibr" rid="scirp.96014-ref14">14</xref>]</p><disp-formula id="scirp.96014-formula3"><label>(3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-2860166x19.png"  xlink:type="simple"/></disp-formula><p>The corresponding transition probabilities in the Equation (3) are given as [<xref ref-type="bibr" rid="scirp.96014-ref14">14</xref>]</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x20.png" xlink:type="simple"/></inline-formula>;<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x20.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x21.png" xlink:type="simple"/></inline-formula>; <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x20.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x22.png" xlink:type="simple"/></inline-formula></p></sec><sec id="s3"><title>3. Absorbing Markov Chain</title><p>A Markov chain is a mathematical model that represents a sequence of random variables<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x23.png" xlink:type="simple"/></inline-formula>, such that the probability distribution of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x24.png" xlink:type="simple"/></inline-formula> depends on the probability distribution of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x25.png" xlink:type="simple"/></inline-formula> [<xref ref-type="bibr" rid="scirp.96014-ref14">14</xref>] [<xref ref-type="bibr" rid="scirp.96014-ref32">32</xref>] [<xref ref-type="bibr" rid="scirp.96014-ref33">33</xref>]. The process has a memoryless property—remembering only the most recent past. This paper considers discrete-state, discrete-time Markov chains where the Markov chain represents the random walk and the states represent the grid nodes. The transition probability <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x26.png" xlink:type="simple"/></inline-formula> is the probability that a randomly walking particle starting at node i will move to node j. The <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x26.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x27.png" xlink:type="simple"/></inline-formula> is expressed as</p><disp-formula id="scirp.96014-formula4"><label>(4)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-2860166x28.png"  xlink:type="simple"/></disp-formula><p>The transition probability P is defined as</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x29.png" xlink:type="simple"/></inline-formula>;<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x29.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x30.png" xlink:type="simple"/></inline-formula> (5)</p><p>The sum of each row elements in P matrix is 1. This shows that the matrix P is stochastic as described in Equation (5).</p><p>The size of the transition matrix P is<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x31.png" xlink:type="simple"/></inline-formula>, where</p><disp-formula id="scirp.96014-formula5"><label>(6)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-2860166x32.png"  xlink:type="simple"/></disp-formula><p>From the Equation (6), <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x33.png" xlink:type="simple"/></inline-formula>are the free (non-absorbing) nodes which represent the nodes in the solution region excluding those on the boundary.<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x33.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x34.png" xlink:type="simple"/></inline-formula>, on the other hand, are fixed (absorbing) nodes which are nodes on the boundary.</p><p>The transition matrix P in which absorbing nodes and the non-absorbing nodes are numbered first and last respectively is given by [<xref ref-type="bibr" rid="scirp.96014-ref14">14</xref>]</p><disp-formula id="scirp.96014-formula6"><label>(7)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-2860166x35.png"  xlink:type="simple"/></disp-formula><p>where</p><p>R is a <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x36.png" xlink:type="simple"/></inline-formula> matrix which describes the probabilities of moving from free nodes to fixed ones;</p><p>Q is a <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x37.png" xlink:type="simple"/></inline-formula> matrix which describes the probabilities of moving from one fixed node to another;</p><p>I is a <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x38.png" xlink:type="simple"/></inline-formula> identity matrix which describes the transitions between fixed nodes (<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x38.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x39.png" xlink:type="simple"/></inline-formula>and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x38.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x39.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x40.png" xlink:type="simple"/></inline-formula>);</p><p>0 is a <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x41.png" xlink:type="simple"/></inline-formula> null matrix which shows that no transitions exist from fixed to free nodes.</p><p>To solve Laplace’s equation in the region R, the elements of matrix Q for nodes in the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x42.png" xlink:type="simple"/></inline-formula> region are obtained from the Equation (2) as</p><disp-formula id="scirp.96014-formula7"><label>(8)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-2860166x43.png"  xlink:type="simple"/></disp-formula><p>Equation (8) describes the probabilities of moving from one node to another in the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x44.png" xlink:type="simple"/></inline-formula> region.</p><p>Similarly, the elements of matrix Q for nodes at the line of symmetry, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x45.png" xlink:type="simple"/></inline-formula>, are obtained from the Equation (3) as</p><disp-formula id="scirp.96014-formula8"><label>(9)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-2860166x123.png"  xlink:type="simple"/></disp-formula><p>The same Equation (8) and Equation (9) apply to except that j is a fixed node.</p><p>For any absorbing Markov chains, the fundamental matrix, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x46.png" xlink:type="simple"/></inline-formula>describes the average number of times the randomly walking particles originating from node i passes through the node j before being absorbed. The fundamental matrix N with size <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x46.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x47.png" xlink:type="simple"/></inline-formula> is given as</p><disp-formula id="scirp.96014-formula9"><label>(10)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-2860166x48.png"  xlink:type="simple"/></disp-formula><p>The absorption probability matrix B which describes the probabilities that a randomly walking particle starting at free node i will be absorbed at a fixed node j is given as</p><disp-formula id="scirp.96014-formula10"><label>(11)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-2860166x49.png"  xlink:type="simple"/></disp-formula><p>The size of matrix B is<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x50.png" xlink:type="simple"/></inline-formula>. The matrix B is stochastic and it is given as</p><disp-formula id="scirp.96014-formula11"><label>(12)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-2860166x51.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.96014-formula12"><label>(13)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-2860166x52.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x53.png" xlink:type="simple"/></inline-formula> with size <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x53.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x54.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x53.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x54.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x55.png" xlink:type="simple"/></inline-formula> with size <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x53.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x54.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x55.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x56.png" xlink:type="simple"/></inline-formula> are free and fixed (prescribed) nodes potentials respectively.</p><p>Finally, the potential at any free node i is given as</p><disp-formula id="scirp.96014-formula13"><label>(14)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-2860166x57.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x58.png" xlink:type="simple"/></inline-formula> are the prescribed potentials,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x58.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x59.png" xlink:type="simple"/></inline-formula>.</p></sec><sec id="s4"><title>4. Simulation Results</title><p>In this section, simulation results are presented for the two cases of homogeneous axisymmetric problems considered. The inhomogeneous Dirichlet boundary condition with different levels of complexity was enforced for the two cases presented. At the line of symmetry, the Neumann boundary condition was imposed. Simulation results are reported for both cases.</p><p>Case I: Axisymmetric homogeneous Problem with Inhomogeneous Dirichlet Boundary Condition</p><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> Meshed Solution Region for Case I</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-2860166x60.png"/></fig><p>Suppose the axisymmetric cylinder given in <xref ref-type="fig" rid="fig3">Figure 3</xref> has its ends at <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x61.png" xlink:type="simple"/></inline-formula></p><p>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x62.png" xlink:type="simple"/></inline-formula> grounded respectively. The boundary condition imposed at <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x62.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x63.png" xlink:type="simple"/></inline-formula> is given as [<xref ref-type="bibr" rid="scirp.96014-ref14">14</xref>]:</p><disp-formula id="scirp.96014-formula14"><label>(15)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-2860166x64.png"  xlink:type="simple"/></disp-formula><p>In order to demonstrate the effectiveness of the MCMC method for axisymmetric homogeneous problems, the following simulation is carried out. The parameters used for the simulations are given in <xref ref-type="table" rid="table1">Table 1</xref>. Simulation is performed on MATLAB. With the length of the cylinder, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x65.png" xlink:type="simple"/></inline-formula>and radius, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x65.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x66.png" xlink:type="simple"/></inline-formula>given as dimensions of the axisymmetric region R, the solution region is discretized into grids using a step size of 0.025 m. This gives 3160 grid points excluding the nodes on the boundary. The inhomogeneous Dirichlet boundary condition imposed at <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x65.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x66.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x67.png" xlink:type="simple"/></inline-formula> is given in Equation (15). Other step sizes used are 0.05 m, 0.1 m and 0.2 m giving 780, 190 and 45 grid points respectively.</p><p>From the given parameters, the elements of matrix Q with the size 3160 &#215; 3160 are formed based on the Equation (8) and Equation (9). Similarly, the elements of matrix R with size 3160 &#215; 159 are formed from the Equation (8) and Equation (9) except that j is a fixed node. Then the identity matrix I with size 3160 &#215; 3160 is determined.</p><p>Based on the foregoing, the fundamental matrix N with size 3160 &#215; 3160 and the absorption matrix B with size <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x68.png" xlink:type="simple"/></inline-formula> are determined. Finally, the free node potentials are then determined from<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x68.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x69.png" xlink:type="simple"/></inline-formula>. The prescribed potential, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x68.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x69.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x70.png" xlink:type="simple"/></inline-formula>has a size 159 &#215; 1 and it is determined from the nodes on the boundary of the solution region. The simulation results from MCMC method are validated with the analytical solution given in [<xref ref-type="bibr" rid="scirp.96014-ref14">14</xref>]:</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Parameters for homogeneous axisymmetric problems</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Parameter</th><th align="center" valign="middle" >Value</th></tr></thead><tr><td align="center" valign="middle" >V<sub>0</sub></td><td align="center" valign="middle" >100 V</td></tr><tr><td align="center" valign="middle" >a</td><td align="center" valign="middle" >1 m</td></tr><tr><td align="center" valign="middle" >L</td><td align="center" valign="middle" >2 m</td></tr></tbody></table></table-wrap><disp-formula id="scirp.96014-formula15"><label>(16)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-2860166x71.png"  xlink:type="simple"/></disp-formula><p>where</p><disp-formula id="scirp.96014-formula16"><graphic  xlink:href="http://html.scirp.org/file/3-2860166x72.png"  xlink:type="simple"/></disp-formula><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x73.png" xlink:type="simple"/></inline-formula>is a modified Bessel function of the order zero.</p><p>A solution to the present problem is also obtained with the finite difference method and comparison was made with the MCMC and analytical solutions. Simulation results are presented in <xref ref-type="fig" rid="fig4">Figure 4</xref>. The results for the potential distributions along <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x74.png" xlink:type="simple"/></inline-formula> (middle of the grid nodes), <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x74.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x75.png" xlink:type="simple"/></inline-formula>, and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x74.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x75.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x76.png" xlink:type="simple"/></inline-formula> are presented in Figures 4(a)-(c). At<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x74.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x75.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x76.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x77.png" xlink:type="simple"/></inline-formula>, the potential distribution at the line of symmetry is reported. Also, the potential distribution along <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x74.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x75.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x76.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x77.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x78.png" xlink:type="simple"/></inline-formula> as well as the surface and contour plots for all the grid nodes are reported in Figures 4(d)-(f). The MCMC simulations were repeated with step sizes of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x74.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x75.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x76.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x77.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x78.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x79.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x74.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x75.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x76.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x77.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x78.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x79.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x80.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x74.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x75.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x76.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x77.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x78.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x79.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x80.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x81.png" xlink:type="simple"/></inline-formula> respectively and the results reported as shown in <xref ref-type="fig" rid="fig4">Figure 4</xref>. The smaller the step size, the closer the results are to the exact solution. In <xref ref-type="table" rid="table2">Table 2</xref>, the MCMC, analytical and finite difference solutions for some selected grid points are compared. As evident, the MCMC solutions agree well with the results obtained with the analytical solution and the finite difference method (FDM). The computation time for MCMC and FDM for this problem is respectively 2.1717 seconds and 1.0486 seconds. Hence, the computation time cannot be used as a basis for comparison.</p><p>Case II: Axisymmetric Homogeneous Problem with Inhomogeneous Dirichlet Boundary Condition.</p><p>In this section, another case of Laplace’s equation with inhomogeneous Dirichlet boundary conditions is presented. Suppose the cylinder given in <xref ref-type="fig" rid="fig5">Figure 5</xref> has its ends <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x82.png" xlink:type="simple"/></inline-formula> grounded and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x82.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x83.png" xlink:type="simple"/></inline-formula> given as 100 V respectively. The boundary at <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x82.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x83.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x84.png" xlink:type="simple"/></inline-formula> is described as in the Equation (15) where voltage <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x82.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x83.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x84.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x85.png" xlink:type="simple"/></inline-formula> is 100 V. The Neumann boundary condition is imposed at<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x82.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x83.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x84.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x85.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x86.png" xlink:type="simple"/></inline-formula>. Since the Laplace’s equation is a linear homogeneous equation, the problem in <xref ref-type="fig" rid="fig5">Figure 5</xref> is simplified into <xref ref-type="fig" rid="fig5">Figure 5</xref>(a) and <xref ref-type="fig" rid="fig5">Figure 5</xref>(b). An analytical solution to the solution Region I is given as [<xref ref-type="bibr" rid="scirp.96014-ref34">34</xref>]:</p><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> Potential distribution along (a)<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x88.png" xlink:type="simple"/></inline-formula>; (b) line of symmetry,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x88.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x89.png" xlink:type="simple"/></inline-formula>; (c) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x88.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x89.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x90.png" xlink:type="simple"/></inline-formula>; (d)<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x88.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x89.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x90.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x91.png" xlink:type="simple"/></inline-formula>; (e) surface plot; (f) contour plot for Laplace’s equation in Homogeneous Axisymmetric domain with Inhomogeneous Dirichlet boundary condition: Case I</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-2860166x87.png"/></fig><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Results comparison for analytical, FDM and MCMC for Laplace’s equation with inhomogeneous Dirichlet boundary condition: Case I</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Coordinate (<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x92.png" xlink:type="simple"/></inline-formula>)</th><th align="center" valign="middle" >Analytical (V)</th><th align="center" valign="middle" >FDM (V) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x93.png" xlink:type="simple"/></inline-formula> Iteration = 1000</th><th align="center" valign="middle" >FDM (V) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x94.png" xlink:type="simple"/></inline-formula> Iteration = 4000</th><th align="center" valign="middle" >MCMC (V) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x95.png" xlink:type="simple"/></inline-formula></th><th align="center" valign="middle" >MCMC (V) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x96.png" xlink:type="simple"/></inline-formula></th></tr></thead><tr><td align="center" valign="middle" >(0.25, 0.3)</td><td align="center" valign="middle" >10.8381</td><td align="center" valign="middle" >10.8427</td><td align="center" valign="middle" >10.8387</td><td align="center" valign="middle" >10.7346</td><td align="center" valign="middle" >10.8394</td></tr><tr><td align="center" valign="middle" >(0.35, 1.5)</td><td align="center" valign="middle" >17.6737</td><td align="center" valign="middle" >17.6838</td><td align="center" valign="middle" >17.6756</td><td align="center" valign="middle" >17.3850</td><td align="center" valign="middle" >17.6765</td></tr><tr><td align="center" valign="middle" >(0.5, 1.05)</td><td align="center" valign="middle" >27.9346</td><td align="center" valign="middle" >27.9713</td><td align="center" valign="middle" >27.9431</td><td align="center" valign="middle" >27.2701</td><td align="center" valign="middle" >27.9441</td></tr><tr><td align="center" valign="middle" >(0.6, 1.6)</td><td align="center" valign="middle" >16.2614</td><td align="center" valign="middle" >16.2642</td><td align="center" valign="middle" >16.2616</td><td align="center" valign="middle" >16.0837</td><td align="center" valign="middle" >16.2621</td></tr><tr><td align="center" valign="middle" >(0.8, 0.6)</td><td align="center" valign="middle" >26.3891</td><td align="center" valign="middle" >26.3983</td><td align="center" valign="middle" >26.3960</td><td align="center" valign="middle" >26.2916</td><td align="center" valign="middle" >26.3963</td></tr></tbody></table></table-wrap><disp-formula id="scirp.96014-formula17"><label>(17)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-2860166x97.png"  xlink:type="simple"/></disp-formula><p>where a and L are given in <xref ref-type="table" rid="table1">Table 1</xref>. <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x98.png" xlink:type="simple"/></inline-formula>are the roots of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x98.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x99.png" xlink:type="simple"/></inline-formula>; <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x98.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x99.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x100.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x98.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x99.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x100.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x101.png" xlink:type="simple"/></inline-formula> are Bessel functions of the first kind, order zero and one, respectively.</p><p>Similarly, recall that the analytical solution for region II depicted in <xref ref-type="fig" rid="fig5">Figure 5</xref>(b) is already provided in the Equation (16). Since the Laplace’s equation can be linearized, the analytical solution to the problem depicted in <xref ref-type="fig" rid="fig5">Figure 5</xref> is given</p><fig-group id="fig5"><label><xref ref-type="fig" rid="fig5">Figure 5</xref></label><caption><title> (a) Meshed Solution Region for Case II; (b) Solution Region I; (c) Solution Region II.</title></caption><fig id ="fig5_1"><label>(b)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-2860166x102.png"/></fig><fig id ="fig5_2"><label>(c)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-2860166x103.png"/></fig><fig id ="fig5_3"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-2860166x104.png"/></fig></fig-group><p>as:</p><disp-formula id="scirp.96014-formula18"><label>(18)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-2860166x105.png"  xlink:type="simple"/></disp-formula><p>where</p><disp-formula id="scirp.96014-formula19"><graphic  xlink:href="http://html.scirp.org/file/3-2860166x106.png"  xlink:type="simple"/></disp-formula><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x107.png" xlink:type="simple"/></inline-formula>is a modified Bessel function of the order zero.</p><p>With the step size of 0.025 m, the MCMC results are reported in the <xref ref-type="fig" rid="fig6">Figure 6</xref>. The potential distributions along<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x108.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x108.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x109.png" xlink:type="simple"/></inline-formula> (symmetry line) and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x108.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x109.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x110.png" xlink:type="simple"/></inline-formula> are given in the Figures 6(a)-(c). Similarly, the potential distribution along<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x108.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x109.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x110.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x111.png" xlink:type="simple"/></inline-formula>, the surface plot and the contour plot for all the grid nodes are reported in the Figures 6(d)-(f) respectively. The results for selected grid points for MCMC and FDM using step size of 0.025 m agree perfectly with the analytical solution as shown in the <xref ref-type="table" rid="table3">Table 3</xref>. Computation time for MCMC and FDM for the problem is 1.8602 seconds and 0.8658 seconds respectively. The reduction in step size increases the accuracy of the solutions.</p><fig-group id="fig6"><label><xref ref-type="fig" rid="fig6">Figure 6</xref></label><caption><title> Potential distribution along (a)<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x114.png" xlink:type="simple"/></inline-formula>; (b) line of symmetry,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x114.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x115.png" xlink:type="simple"/></inline-formula>; (c) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x114.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x115.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x116.png" xlink:type="simple"/></inline-formula>; (d)<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x114.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x115.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x116.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x117.png" xlink:type="simple"/></inline-formula>; (e) surface plot; (f) contour plot for Laplace’s equation in Axisymmetric Homogeneous Domain with Inhomogeneous Dirichlet Boundary Condition: Case II.</title></caption><fig id ="fig6_1"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-2860166x113.png"/></fig><fig id ="fig6_2"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-2860166x112.png"/></fig></fig-group><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> Results comparison for analytical, FDM and MCMC for Laplace’s equation with inhomogeneous Dirichlet boundary condition: Case II</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Coordinate (<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x118.png" xlink:type="simple"/></inline-formula>)</th><th align="center" valign="middle" >Analytical (V)</th><th align="center" valign="middle" >FDM (V) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x119.png" xlink:type="simple"/></inline-formula> Iteration = 1000</th><th align="center" valign="middle" >FDM (V) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x120.png" xlink:type="simple"/></inline-formula> Iteration = 4000</th><th align="center" valign="middle" >MCMC (V) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x121.png" xlink:type="simple"/></inline-formula></th><th align="center" valign="middle" >MCMC (V) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-2860166x122.png" xlink:type="simple"/></inline-formula></th></tr></thead><tr><td align="center" valign="middle" >(0.25, 0.3)</td><td align="center" valign="middle" >12.7037</td><td align="center" valign="middle" >12.5030</td><td align="center" valign="middle" >12.7054</td><td align="center" valign="middle" >12.5798</td><td align="center" valign="middle" >12.7065</td></tr><tr><td align="center" valign="middle" >(0.35, 1.5)</td><td align="center" valign="middle" >55.6216</td><td align="center" valign="middle" >55.3465</td><td align="center" valign="middle" >55.6180</td><td align="center" valign="middle" >55.2416</td><td align="center" valign="middle" >55.6195</td></tr><tr><td align="center" valign="middle" >(0.5, 1.05)</td><td align="center" valign="middle" >38.8788</td><td align="center" valign="middle" >38.6227</td><td align="center" valign="middle" >38.8909</td><td align="center" valign="middle" >38.0625</td><td align="center" valign="middle" >38.8926</td></tr><tr><td align="center" valign="middle" >(0.6, 1.6)</td><td align="center" valign="middle" >53.0784</td><td align="center" valign="middle" >52.9373</td><td align="center" valign="middle" >53.0772</td><td align="center" valign="middle" >52.8529</td><td align="center" valign="middle" >53.0780</td></tr><tr><td align="center" valign="middle" >(0.8, 0.6)</td><td align="center" valign="middle" >27.8036</td><td align="center" valign="middle" >27.7157</td><td align="center" valign="middle" >27.8114</td><td align="center" valign="middle" >27.6848</td><td align="center" valign="middle" >27.8119</td></tr></tbody></table></table-wrap></sec><sec id="s5"><title>5. Conclusion</title><p>This paper presents a comprehensive application of MCMC method to Laplace’s equation in homogeneous axisymmetric domains. Two broad cases of homogeneous axisymmetric problems were investigated. For Case I, the MCMC method was used to solve Laplace’s equation with inhomogeneous Dirichlet boundary condition in which the top and bottom boundaries were characterized by the same potential. For case II, the MCMC method was investigated with the Laplace’s equation using inhomogeneous Dirichlet boundary condition in which the top and bottom boundaries (prescribed potentials) were at different potentials. Also, Neumann boundary condition was imposed at the line of symmetry. Several plots were reported. The MCMC results were compared with the analytical and finite difference solutions. The proposed MCMC method agreed with the analytical and finite difference solutions for all reported cases. However, the difference in computation time between MCMC and FDM is in the order of seconds for the problems considered and thus cannot be used as a basis for comparison.</p></sec><sec id="s6"><title>Conflicts of Interest</title><p>The authors declare no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s7"><title>Cite this paper</title><p>Shadare, A.E., Sadiku, M.N.O. and Musa, S.M. (2019) Markov Chain Monte Carlo Solution of Laplace’s Equation in Axisymmetric Homogeneous Domain. Open Journal of Modelling and Simulation, 7, 203-216. https://doi.org/10.4236/ojmsi.2019.74012</p></sec><sec id="s8"><title>Nomenclature</title><p>MCMC: Markov Chain Monte Carlo;</p><p>1D: One dimension;</p><p>2D: Two dimension;</p><p>3D: Three dimension;</p><p>EM: Electromagnetics;</p><p>FDM: Finite difference method;</p><p>P: Transition probability;</p><p>N: Fundamental matrix;</p><p>B: Absorption probability matrix.</p></sec></body><back><ref-list><title>References</title><ref id="scirp.96014-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Sadiku, M.N.O. and Nelatury, S.R. (2016) Analytical Techniques in Electromagnetics. CRC Press, Boca Raton, FL.</mixed-citation></ref><ref id="scirp.96014-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Louai, F.Z., Said, N.N. and Drid, S. (2006) Numerical Analysis of Electromagnetic Axisymmetric Problems Using Element Free Galerkin Method. Journal of Electrical Engineering, 57, 99-104.</mixed-citation></ref><ref id="scirp.96014-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Hayati, A.N., Ahmadi, M.M. and Sadrnejad, S.A. (2012) Analysis of Axisymmetric Problems by Element-Free Galerkin Method. International Journal of Modeling and Optimization, 2, 712-717. https://doi.org/10.7763/IJMO.2012.V2.217</mixed-citation></ref><ref id="scirp.96014-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Soares, R.D., Moreira, F.J.S., Mesquita, R.C., Lowther, D.A. and Lima, N.Z. (2014) A Modified Meshless Local Petrov-Galerkin Applied to Electromagnetic Axisymmetric Problems. IEEE Transactions on Magnetics, 50, Article No. 7012604. 
https://doi.org/10.1109/TMAG.2013.2284472</mixed-citation></ref><ref id="scirp.96014-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Freeman, E.M. and Lowther, D.A. (1989) An Open Boundary Technique for Axisymmetric and Three Dimensional Magnetic and Electric Field Problems. IEEE Transactions on Magnetics, 25, 4135-4137. https://doi.org/10.1109/20.42546</mixed-citation></ref><ref id="scirp.96014-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Melissen, J.B.M. and Simkin, J. (1990) A New Coordinate Transform for the Finite Element Solution of Axisymmetric Problems in Magnetostatics. IEEE Transactions on Magnetics, 26, 391-394. https://doi.org/10.1109/20.106336</mixed-citation></ref><ref id="scirp.96014-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Boglietti, A., Chiampi, M., Chiarabaglio, D. and Tartaglia, M. (1990) Finite Element Approximation in Axisymmetrical Domains. IEEE Transactions on Magnetics, 26, 395-398. https://doi.org/10.1109/20.106337</mixed-citation></ref><ref id="scirp.96014-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Yoneta, A., Tsuchimoto, M. and Honma, T. (1990) An Analysis of Axisymmetric Modified Helmholtz Equation by Using Boundary Element Method. IEEE Transactions on Magnetics, 26, 1015-1018. https://doi.org/10.1109/20.106492</mixed-citation></ref><ref id="scirp.96014-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Sadiku, M.N.O. (1993) Monte Carlo Solution of Axisymmetric Potential Problems. IEEE Transactions on Industry Applications, 29, 1042-1046.  
https://doi.org/10.1109/28.259710</mixed-citation></ref><ref id="scirp.96014-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">OH, M. (2010) Efficient Solution Techniques for Axisymmetric Problems. University of Florida, Gainesville, FL.</mixed-citation></ref><ref id="scirp.96014-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Sadiku, M.N.O. and Garcia, R.C. (2000) Method of Lines Solution of Axisymmetric Problems. Proceedings of IEEE SoutheastCon 2000, Nashville, TN, 9 April 2000, 527-530.</mixed-citation></ref><ref id="scirp.96014-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Gratkowski, S., Todaka, T., Enokizono, M. and Sikora, R. (2000) Asymptotic Boundary Conditions for the Finite Element Modeling of Axisymmetric Electrical Field Problems. IEEE Transactions on Magnetics, 36, 717-721. 
https://doi.org/10.1109/20.877549</mixed-citation></ref><ref id="scirp.96014-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Chen, Q., Konrad, A. and Baronijan, S. (1994) Asymptotic Boundary Conditions for Axisymmetric Finite Element Electrostatic Analysis. IEEE Transactions on Magnetics, 30, 4335-4337. https://doi.org/10.1109/20.334079</mixed-citation></ref><ref id="scirp.96014-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Sadiku, M.N.O. (2019) Computational Electromagnetics with MATLAB. 4th Edition, CRC Press, Boca Raton, FL. https://doi.org/10.1201/9781315151250</mixed-citation></ref><ref id="scirp.96014-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Ehrich, M., Kuhlmann, J. and Netzler, D. (1997) High Accuracy Integration of Boundary Integral Equations Describing Axisymmetric Field Problems. Proceedings of Asia Pacific Microwave Conference, Hong Kong, 2-5 December 1997, 462-464. 
https://doi.org/10.1109/APMC.1997.659423</mixed-citation></ref><ref id="scirp.96014-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">Krahenbuhl, L. and Nicolas, A. (1983) Axisymmetric Formulation for Boundary Integral Equation Methods in Scalar Potential Problems. IEEE Transactions on Magnetics, 19, 2364-2366. https://doi.org/10.1109/TMAG.1983.1062872</mixed-citation></ref><ref id="scirp.96014-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">Kakutani, S. (1944) Two Dimensional Brownian Motion and Harmonic Function. Proceedings of Imperial Academy (Tokyo), 20, 706-714. 
https://doi.org/10.3792/pia/1195572706</mixed-citation></ref><ref id="scirp.96014-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">Bevensee, R.M. (1973) Probabilistic Potential Theory Applied to Electrical Engineering Problems. Proceedings of IEEE, 61, 423-427. 
https://doi.org/10.1109/PROC.1973.9056</mixed-citation></ref><ref id="scirp.96014-ref19"><label>19</label><mixed-citation publication-type="other" xlink:type="simple">Garcia, R.C. and Sadiku, M.N.O. (1996) Monte Carlo Fixed-Radius Floating Random Walk Solution for Potential Problems. Proceedings of SoutheastCon, Tampa, FL, 11-14 April 1996, 88-91. https://doi.org/10.1109/SECON.1996.510032</mixed-citation></ref><ref id="scirp.96014-ref20"><label>20</label><mixed-citation publication-type="other" xlink:type="simple">Sadiku, M.N.O. and Garcia, R.C. (1993) Monte Carlo Floating Random Walk Solution of Poisson’s Equation. Proceedings of SoutheastCon, Charlotte, NC, 4-7 April 1993, 4.</mixed-citation></ref><ref id="scirp.96014-ref21"><label>21</label><mixed-citation publication-type="other" xlink:type="simple">Gu, K. and Sadiku, M.N.O. (1995) A Triangular Mesh Random Walk Method for Dirichlet Problem. Journal of Franklin Institute, 332, 569-578. 
https://doi.org/10.1016/0016-0032(95)00081-X</mixed-citation></ref><ref id="scirp.96014-ref22"><label>22</label><mixed-citation publication-type="other" xlink:type="simple">Sadiku, M.N.O. and Gu, K. (1994) Floating Random Walk Method on Axisymmetric Potential Problems. International Symposium on Electromagnetic Compatibility, Japan, 1994, 659-662.</mixed-citation></ref><ref id="scirp.96014-ref23"><label>23</label><mixed-citation publication-type="other" xlink:type="simple">Sadiku, M.N.O., Ajose, S.O. and Fu, Z. (1994) Applying the Exodus Method to Solve Poisson’s Equation. IEEE Transactions on Microwave Theory and Techniques, 42, 661-666. https://doi.org/10.1109/22.285073</mixed-citation></ref><ref id="scirp.96014-ref24"><label>24</label><mixed-citation publication-type="other" xlink:type="simple">Sadiku, M.N.O. and Gu, K. (1996) A New Monte Carlo Method for Neumann Problems. Proceedings of SoutheastCon, Tampa, FL, 11-14 April 1996, 92-95. 
https://doi.org/10.1109/SECON.1996.510033</mixed-citation></ref><ref id="scirp.96014-ref25"><label>25</label><mixed-citation publication-type="other" xlink:type="simple">Godoy, E., Boccardo, V. and Durán, M. (2017) A Dirichlet-to-Neumann Finite Element Method for Axisymmetric Elastostatics in a Semi-Infinite Domain. Journal of Computational Physics, 328, 1-26. https://doi.org/10.1016/j.jcp.2016.09.066</mixed-citation></ref><ref id="scirp.96014-ref26"><label>26</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Beasley</surname><given-names> M.D.R.</given-names></name>,<name name-style="western"><surname> et al.</surname><given-names> </given-names></name>,<etal>et al</etal>. (<year>1979</year>)<article-title>Comparative Study of Three Methods for Computing Electric Fields</article-title><source> Proceedings of Institution of Electrical Engineers</source><volume> 126</volume>,<fpage> 126</fpage>-<lpage>134</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.96014-ref27"><label>27</label><mixed-citation publication-type="other" xlink:type="simple">Zinsmeiter, G.E. and Sawyerr, J.A. (1974) A Method for Improving the Efficiency of Monte Carlo Calculation of Heat Conduction Problems. Transactions of the ASME, Journal of Heat Transfer, 96, 246-248. https://doi.org/10.1115/1.3450172</mixed-citation></ref><ref id="scirp.96014-ref28"><label>28</label><mixed-citation publication-type="other" xlink:type="simple">Zinsmeiter, G.E. and Pan, S.S. (1976) A Modification of the Monte Carlo Method. International Journal for Numerical Methods in Engineering, 10, 1057-1064. 
https://doi.org/10.1002/nme.1620100507</mixed-citation></ref><ref id="scirp.96014-ref29"><label>29</label><mixed-citation publication-type="other" xlink:type="simple">Sadiku, M.N.O. and Garcia, R.C. (1998) Whole Field Computation Using Monte Carlo Method. International Journal of Numerical Modelling: Electronic Networks, Devices and Fields, 10, 303-312. 
https://doi.org/10.1002/(SICI)1099-1204(199709/10)10:5&lt;303::AID-JNM281&gt;3.0.CO;2-R</mixed-citation></ref><ref id="scirp.96014-ref30"><label>30</label><mixed-citation publication-type="other" xlink:type="simple">Fusco, V.F. and Linden, P.A. (1988) A Markov Chain Approach for Static Field Analysis. Microwave and Optical Technology Letter, 1, 216-220. 
https://doi.org/10.1002/mop.4650010610</mixed-citation></ref><ref id="scirp.96014-ref31"><label>31</label><mixed-citation publication-type="other" xlink:type="simple">Garcia, R.C. and Sadiku, M.N.O. (1998) Neuro-Monte Carlo Solution of Electrostatic Problems. Journal of Franklin Institute, 335, 53-69. 
https://doi.org/10.1016/S0016-0032(96)00115-9</mixed-citation></ref><ref id="scirp.96014-ref32"><label>32</label><mixed-citation publication-type="other" xlink:type="simple">Sadiku, M.N.O. (1990) Monte Carlo Methods in an Introductory Electromagnetic Course. IEEE Transactions on Education, 33, 73-80.  
https://doi.org/10.1109/13.53630</mixed-citation></ref><ref id="scirp.96014-ref33"><label>33</label><mixed-citation publication-type="other" xlink:type="simple">Sadiku, M.N.O. (2009) Monte Carlo Methods for Electromagnetics. CRC Press, Boca Raton, FL. https://doi.org/10.1201/9781439800720</mixed-citation></ref><ref id="scirp.96014-ref34"><label>34</label><mixed-citation publication-type="other" xlink:type="simple">Gu, K. (1996) Monte Carlo Solution for Potential and Waveguide Problems. Ph.D. Dissertation, Temple University, Philadelphia, PA.</mixed-citation></ref></ref-list></back></article>