=== Running A Planar MoM Analysis ===
To run a planar MoM analysis of your project structure, open the Run Simulation Dialog by clicking the '''Run''' [[File:run_icon.png]] button on the '''Simulate Toolbar''' or select '''Menu''' '''>''' '''> Simulate >''' '''> Run''' or use the keyboard shortcut '''{{key|Ctrl+R'''}}. The '''Single-Frequency Analysis''' option of the '''Simulation Mode''' dropdown list is selected by default. Once you click the '''{{key|Run''' }} button, the simulation starts. A new window, called the '''"Output Window''', " opens up that reports the different stages of simulation and the percentage of the tasks completed at any time. After the simulation is successfully completed, a message pops up and reports the end of simulation. In certain cases like calculating scattering [[parameters]] of a circuit or reflection / transmission characteristics of a periodic surface, some results are also reported in the Output Window. At the end of a simulation, you need to click the '''Close''' button of the Output Window to return to the project workspace. === Stages Of A Planar MoM Analysis === [[EM.Cube]]'s Planar MoM simulation engine uses a particular formulation of the method of moments called mixed potential integral equation (MPIE). Due to high-order singularities, the dyadic Green's functions for electric fields generated by electric currents as well as the dyadic Green's functions for magnetic fields generated by magnetic currents have very slow convergence behaviors. Instead of using these slowly converging dyadic Green's function, the MPIE formulation uses vector and scalar potentials. These include vector electric potential '''A(r)''', scalar electric potential K<sup>Φ</sup>'''(r)''', vector magnetic potential '''F(r)''' and scalar magnetic potential K<sup>Ψ</sup>'''(r)'''. These potentials have singularities of lower orders. As a result, they coverage relatively faster. The speed of their convergence is further increased drastically using special singularity extraction techniques. A planar MoM simulation consists of two major stages: matrix fill and linear system inversion. In the first stage, the moment matrix and excitation vector are calculated. In the second stage, the MoM system of linear equations is inverted using one of the several available matrix solvers to find the unknown coefficients of all the basis functions. The unknown electric and magnetic currents are linear superpositions of all these elementary solutions. These can be visualized in [[EM.Cube]] using the current distribution observables. Having determined all the electric and magnetic currents in your planar structure, [[EM.Cube]] can then calculate the near fields on prescribed planes. These are introduced as field sensor observables. The near-zone electric and magnetic fields are calculated using a spectral domain formulation of the dyadic Green's functions. Finally the far fields of the planar structure are calculated in the spherical coordinate system. These calculations are performed using the asymptotic form of the dyadic Green's functions using the "stationary phase method"output window.
=== Setting Numerical Parameters ===