=== Visualizing The Near Fields ===
[[File:PMOM90.png|thumb|[[Planar Module]]'s Field Sensor dialog]]
In order to view the near field distributions, you must first define field sensor observables before running the planar MoM simulation. To do that, right click on the '''Field Sensors''' item in the '''Observables''' section of the Navigation Tree and select '''Insert New Observable...'''. The Field Sensor Dialog opens up. At the top of the dialog and in the section titled '''Sensor Plane Location''', first you need to set the plane of near field calculation. In the dropdown box labeled '''Direction''', you have three options X, Y, and Z, representing the"normals" to the XY, YZ and ZX planes, respectively. The default direction is Z, i.e. XY plane parallel to the substrate layers. In the three boxes labeled '''Coordinates''', you set the coordinates of the center of the plane. Then, you specify the '''Size''' of the plane in project units, and finally set the '''Number of Samples''' along the two sides of the sensor plane. The larger the number of samples, the smoother the near field map will appear.
In the section titled Output Settings, you can also select the field map type from two options: '''Confetti''' and '''Cone'''. The former produces an intensity plot for field amplitude and phase, while the latter generates a 3D vector plot. In the confetti case, you have an option to check the box labeled '''Data Interpolation''', which creates a smooth and blended (digitally filtered) map. In the cone case, you can set the size of the vector cones that represent the field direction. At the end of a sweep simulation, multiple field map are produced and added to the Navigation Tree. You can animate these maps. However, during the sweep only one field type is stored, either the E-field or H-field. You can choose the field type for multiple plots using the radio buttons in the section titled '''Field Display - Multiple Plots'''. The default choice is the E-field.
Â
[[File:PMOM90.png]]
Â
Figure 1: [[Planar Module]]'s Field Sensor dialog.
Once you close the Field Sensor dialog, its name is added under the '''Field Sensors''' node of the Navigation Tree. At the end of a planar MoM simulation, the field sensor nodes in the Navigation Tree become populated by the magnitude and phase plots of the three vectorial components of the electric ('''E''') and magnetic ('''H''') field as well as the total electric and magnetic fields defined in the following manner:
:<math> |\mathbf{E_{tot}}| = \sqrt{|E_x|^2 + |E_y|^2 + |E_z|^2} </math>:<math> |\mathbf{H_{tot}}| = \sqrt{|H_x|^2 + |H_y|^2 + |H_z|^2} </math><!--[[File:PMOM88.png]]-->
Note that unlike EM.Cube's other computational modules, near field calculations in the [[Planar Module]] usually takes substantial time. This is due to the fact that at the end of a planar MoM simulation, the fields are not available anywhere (as opposed to the [[FDTD Module]]), and their computation requires integration of complex dyadic Green's functions (as opposed to [[MoM3D Module]]'s free space Green's functions).
[[File:PMOM116.png|800px]]
Figure 2: Near-zone electric field map above a microstrip-fed patch antenna.
[[File:PMOM117.png|800px]]
Figure 3: Near-zone magnetic field map above a microstrip-fed patch antenna.
=== Computing The Far Fields ===