Changes

EM.Picasso

2,595 bytes removed, 13:54, 7 June 2013
In general, a structure may support both electric ('''J''') and magnetic ('''M''') currents. The total electric ('''E''') and magnetic ('''H''') fields can be expressed in terms of the electric and magnetic currents in the following way:
[[ImageFile:/files/images/PMOM1(1).png]]
where ''''''G<sub>EJ</sub>''', '''G<sub>EM</sub>''', '''G<sub>HJ</sub>''', '''GH<sub>M</sub>'''''' are the dyadic Green’s functions for the electric and magnetic currents due to electric and magnetic current source, respectively, and '''E<sup>i</sup>''' and '''H<sup>i</sup>''' are the incident or impressed electric and magnetic fields, respectively. In these equations, '''r''' is the position vector of the observation point and '''r'''' is the position vector of the source point. V is the volume that contains all the sources and the volume integration is performed with respect to the primed coordinates. The incident or impressed fields provide the excitation of the structure. They may come from an incident plane wave or a gap source on a microstrip line, a short dipole, etc. The complexity of the Green’s functions depends on what is considered as the background structure. If you remove all the unknown currents from the structure, you are left with the background structure.
To derive a system of integral equations, we enforce the boundary conditions on the integral definitions of the '''E''' and '''H''' fields as follows:
[[ImageFile:/files/images/PMOM4(2).png]]
where '''L<sub>E</sub>''' is the boundary value operator for the electric field and '''L<sub>H</sub>''' is the boundary value operator for the magnetic field. For example, '''L<sub>E</sub>''' may require that the tangential components of the '''E'''field vanish on perfect conductors:
[[ImageFile:/files/images/PMOM65.png]]
Or '''L<sub>E</sub>''' and '''L<sub>H</sub>''' may require that the tangential components of the '''E''' and '''H''' fields be continuous across an aperture in a perfect ground plane:
[[ImageFile:/files/images/PMOM66(1).png]]
Given the fact that the dyadic Green’s functions and the incident or impressed fields are all known, one can solve the above system of integral equations to find the unknown currents '''J''' and '''M'''.
In EM.CUBE's Planar module, magnetic currents are always surface current with units of V/m. Electric currents, however, can be surface currents with units of A/m as in the case of metallic traces like microstrip lines, or they can be volume currents with units of A/m<sup>2</sup> as in the case of perfectly conducting vias. Dielectric inserts are modeled as volume polarization currents that are related to the electric field '''E''' in the following manner:
[[ImageFile:/files/images/PMOM5.png]]
where k<sub>0</sub> is the free space propagation constant, Y<sub>0</sub>=1/Z<sub>0</sub> =1/(120π) is the free space intrinsic admittance, ε<sub>r</sub> is the permittivity of the dielectric insert, and ε<sub>b</sub> is the permittivity of its background layer. In a 2.5-D formulation, it is assumed that the volume currents have only a vertical component along the Z direction, and their circumferential components are negligible.
The planar integral equations derived earlier can be solved numerically by discretizing the unknown currents using a proper meshing scheme. The original functional equations are reduced to discretized linear algebraic equations over elementary cells. The unknown quantities are found by solving this system of linear equations, and many other parameters can be computed thereafter. This method of numerical solution of integral equations is known as the Method of Moments (MoM). In this method, the unknown electric and magnetic currents are represented by expansions of basis functions as follows:
[[ImageFile:/files/images/PMOM2.png]]
where '''f<sub>n</sub><sup>(J)</sup>''' and '''f<sub>k</sub><sup>(M)</sup>''' are the generalized vector basis functions for the expansion of electric and magnetic currents, respectively, and I<sub>n</sub><sup>(J)</sup> and V<sub>k</sub><sup>(M)</sup> are the unknown amplitudes of these basis functions, which have to be determined. Substituting these expansions into the integral equations generates a set of discretized integral equations, which can further be converted to a system of linear algebraic equations. This is accomplished by testing the discretized integral equations using the a set of test functions. In the method of moments, the Galerkin technique is typically used, which chooses the expansion basis functions as test functions. This leads to the following linear system:
[[ImageFile:/files/images/PMOM3.png]]
where
[[ImageFile:/files/images/PMOM6.png]]
and
[[ImageFile:/files/images/PMOM7.png]]
Similar expressions can be derived for the T<sup>(EM)</sup>, U<sup>(HJ)</sup> and Y<sup>(HM)</sup>elements of the MoM matrix.
The right choice of the basis functions to represent the elementary currents is very important. It will determine the accuracy and computational efficiency of the resulting numerical solution. Rooftop basis functions are one of the most popular types of basis functions used in a variety of MoM formulations. The surface currents (whether electric or magnetic) are discretized using 2D rooftop basis functions shown in the figure below:
[[ImageFile:/files/images/manuals/emagware/emcube/modules/planar/a-25-d-method-of-moments-primer/meshing-and-discretization-of-planar-structures/image055_tn.png]]
Figure 1: Rooftop or RWG basis functions built over two rectangular, triangular or mixed cells.
The volume polarization currents in 2.5-D MoM have a vertical direction along the Z-axis. These are discretized using prismatic basis functions that have either a rectangular or triangular base with a constant profile along the Z-axis.
[[ImageFile:/files/images/manuals/emagware/emcube/modules/planar/a-25-d-method-of-moments-primer/meshing-and-discretization-of-planar-structures/image065_tn.png]][[ImageFile:/files/images/manuals/emagware/emcube/modules/planar/a-25-d-method-of-moments-primer/meshing-and-discretization-of-planar-structures/image066_tn.png]]
Figure 2: Prismatic basis functions built over single triangular and rectangular cells.
The finite-sized objects of a planar structure may include metal traces, slots and apertures, vertical vias and interconnects, or dielectric inserts including air voids inside the substrate layers. Metal traces are modeled as electric surface currents. These are planar surface objects, always parallel to the XY plane, that are defined on metal (PEC) traces and placed at the boundary (interface) plane between two substrate layers. Slots and apertures are modeled as magnetic surface currents on the surface of an infinite PEC plane and provide electromagnetic coupling between its top and bottom sides. These, too, are constructed using planar surface objects, always parallel to the XY plane, that are defined on slot (PMC) traces and placed at the boundary (interface) plane between two substrate layers. EM.Cube's Planar Module also allows prismatic objects that can be modeled by electric volume currents. These include vertical vias and dielectric inserts, and are called embedded object sets. Planar module does not allow construction of 3D CAD objects. Instead, you draw the cross section of prismatic objects as planar surface objects parallel to the XY plane. EM.Cube then automatically extrudes these cross sections and constructs and displays 3D prisms over them. The prisms extend all the way across the thickness of the host substrate layer.
[[ImageFile:/files/images/PMOM14.png]]
Figure 1: A typical planar layered structure.
You can delete a layer by selecting its row in the table and clicking the '''Delete''' button. To move a layer up and down, click on its row to select and highlight it. Then click either the '''Move Up''' or '''Move Down''' buttons consecutively to move the selected layer to the desired location in the stack-up. Note that you cannot delete or move the top or bottom half-spaces.
[[ImageFile:/files/images/PMOM8(1).png]]
Figure 1: Planar Module's Layer Stack-up Settings dialog.
You can also set the thickness of the substrate layer in the project units. Note that you cannot change the thickness of the top and bottom half-spaces. You can only change their material properties.
[[ImageFile:/files/images/PMOM9.png]]
Figure 1: Planar Module's Substrate Layer dialog.
You can also use EM.Cube's Material List to define the material properties of a substrate layer. In the Substrate Layer Dialog, click the '''Material''' button to open the '''Material List'''. In the Material List Dialog, pick any material or type the first letter of a material to highlight it. Then click the '''OK''' button or simply hit the '''Enter''' key of your keyboard to close the list and return to the substrate layer dialog.
[[ImageFile:/files/images/PMOM10.png]]
Figure 2: EM.Cube's Materials dialog.
# '''Embedded Dielectric Sets:''' These are prismatic dielectric objects inserted inside a substrate layer. You can define a finite permittivity and conductivity for such objects, but their height is always the same as the height of their host layer. The embedded dielectric objects are modeled as vertical volume polarization currents.
[[ImageFile:/files/images/PMOM11.png]]
Figure 1: Planar Module's Navigation Tree.
In the '''Layer Stack-up Settings''' dialog, you can add a new trace to the stack-up by clicking the arrow symbol on the '''Insert''' button of the dialog. You have to choose from '''Metal (PEC)''', '''Slot (PMC)''' or '''Conductive Sheet''' options. A respective dialog opens up, where you can enter a label and assign a color other than default ones. Once a new trace is defined, it is added, by default, to the top of the stack-up table underneath the top half-space. From here, you can move the trace down to the desired location on the layer hierarchy.
[[ImageFile:/files/images/PMOM12.png]]
Figure 1: Planar Module's Stack-up Settings dialog.
As soon as you start drawing geometrical objects in the project workspace, the Physical Structure section of the Navigation Tree gets populated. The names of traces are added under their respective trace type category, and the names of objects appear under their respective trace group. At any time, one and only one trace is active in the project workspace. An active trace is where all the new objects you draw belong to. When you define a new trace, it is set as active and you can immediately start drawing new objects on that trace. You can also set any trace active at any time by right clicking its name on the Navigation Tree and selecting '''Activate''' from the contextual menu. The name of the active trace is always displayed in bold letter in the Navigation Tree.
[[ImageFile:/files/images/PMOM13.png]]
EM.Cube's Planar Module has a special feature that makes construction of planar structures quite easy and straightforward. '''The active work plane of the project workspace is always set at the plane of the active trace.''' In EM.Cube's other modules, all objects are drawn in the XY plane (z = 0) by default. In Planar Module, all new objects are drawn on a horizontal plane that is located at the Z-coordinate of the currently active trace. As you change the active trace or add a new trace, you will also change the active work plane.
The conductive sheet traces are modeled using the surface impedance boundary condition:
[[ImageFile:/files/images/PMOM17(1).png]]
where Z<sub>s</sub> is the surface impedance of the conductive sheet. If the thickness of the sheet is greater than the skin depth of the metal at the project frequency, then the surface impedance is given by
[[ImageFile:/files/images/PMOM18.png]]
If the thickness τ of the sheet is less than the skin depth, then the conductive sheet transition boundary condition is used instead, and the surface impedance is given by
[[ImageFile:/files/images/PMOM19(2).png]]
When you start a new project in Planar Module with no traces defined, if you simply draw a new object, a default PEC trace is created and added to the Navigation Tree to hold that object. Alternatively, you can define your own new traces from the Layer Stack-up Settings dialog or directly from the Navigation Tree.
<tbody>
<tr class="odd">
<td align="left">[[ImageFile:/files/images/PMOM15.png]]</td><td align="left">[[ImageFile:/files/images/PMOM16.png]]</td>
</tr>
</tbody>
Slots and apertures are cut-out and removed metal in an infinite perfectly conducting (PEC) ground plane. When a slot is excited, tangential electric fields are formed on the aperture, which can be modeled as finite magnetic surface currents confined to the area of the slot. Therefore, instead of modeling the electric surface currents on the PEC ground around the slot, one can alternatively model the finite-extent magnetic surface currents on PMC traces. In EM.Cube's Planar Module, you define slot objects under PMC traces. A PMC trace at a certain Z-plane implies the presence of an infinite PEC plane at that Z-coordinate. Therefore, you do not need to define an additional PEC plane at that location on the layer stack-up. The slot (PMC) objects provide the electromagnetic coupling between the two sides of this infinite ground plane. By the same token, you cannot place a PEC trace and a PMC trace at the same Z-level, as the latter's ground will short the former. However, you can define two or more PMC traces at the same Z-plane. In this case, all the slot objects lie on the same infinite PEC ground plane. <br />
[[ImageFile:/files/images/PMOM20.png]]
Figure 1: The Planar Module's PMC Trace dialog.
Embedded objects can be defined either from the Layer Stack-up Settings dialog or directly from the Navigation Tree. In the former case, open the &quot;Embedded Sets&quot; tab of the stack-up dialog. This tab has a table that lists all the embedded object sets along with their material type, the host substrate layer, the host material and their height. '''Note that the height of an embedded object is always identical to the thickness of its host substrate layer.'''
[[ImageFile:/files/images/PMOM23.png]]
Figure 1: Planar Module's Layer Stack-up dialog showing the Embedded Sets tab.
<tbody>
<tr class="odd">
<td align="left">[[ImageFile:/files/images/PMOM21.png]]</td><td align="left">[[ImageFile:/files/images/PMOM22.png]]</td>
</tr>
</tbody>
You can manage your project's layer hierarchy from the Layer Stack-up Settings dialog. You can add, delete and move around substrate layers, metallic and slot traces and embedded object sets. Metallic and slot traces can move among the interface planes between neighboring substrate layers. Embedded object sets including PEC vias and finite dielectric objects can move from substrate layer into another. When you delete a trace from the Layer Stack-up Settings dialog, all of its objects are deleted from the project workspace, too. You can also delete metallic and slot traces or embedded object sets from the Navigation Tree. To do so, right click on the name of the trace or object set in the Navigation Tree and select '''Delete''' from the contextual menu. You can also delete all the traces or object sets of the same type from the contextual menu of the respective type category in the Navigation Tree.
For better visualization of your planar structure, EM.Cube displays a virtual domain in a default orange color to represent part of the infinite background structure. The size of this virtual domain is a quarter wavelength offset from the largest bounding box that encompasses all the finite objects in the project workspace. You can change the size of the virtual domain or its display color from the Domain Settings dialog, which you can access either by clicking the '''Computational Domain''' [[ImageFile:/files/images/manuals/emagware/emcube/modules/planar/anatomy-of-a-planar-structure/defining-a-background-structure/domain_icon.png]] button of the '''Simulate Toolbar''', or by selecting '''Simulate &gt; Computational Domain &gt; Domain Settings...''' from the Simulate Menu or by right clicking the '''Virtual Domain''' item of the Navigation Tree and selecting '''Domain Settings...''' from the contextual menu, or using the keyboard shortcut '''Ctrl+A'''. But keep in mind that the virtual domain is only for visualization purpose and does not affect the MoM simulation. The virtual domain also shows the substrate layers in translucent colors. As you change the colors assigned to the substrate layers, you will see a multilayer virtual domain box surrounding your project structure.
[[ImageFile:/files/images/manuals/emagware/emcube/modules/planar/anatomy-of-a-planar-structure/defining-a-background-structure/pmom_phys5.png]]
Figure 1: Planar Module's Virtual Domain Settings dialog.
It is well known that any planar geometry with any degree of complexity can be reasonably discretized using a surface triangular mesh. EM.Cube's Planar Module provides a versatile triangular mesh generator for this purpose. This generates a regular mesh, in which most of the triangular cells have almost equal areas. The uniformity or regularity of mesh is an important factor in warranting a stable numerical solution. A highly incongruous mesh may even produce completely erroneous results. EM.Cube's Planar Module also offers another mesh generator that creates a &quot;Hubrid&quot; planar mesh combining triangular and rectangular cells. Although triangular cells are more versatile than rectangular cells in adapting to arbitrary geometries, many practical planar structures contain a large number of rectangular parts like patch antennas, microstrip lines and components, etc.
[[ImageFile:/files/images/PMOM32.png]]
Figure 1: Planar hybrid and triangular meshes for rectangular patches.
Rectangular cells offer a major advantage over triangular cells for numerical MoM simulation of planar structures. This is due to the fact that the dyadic Green's functions of planar layered background structures are space-invariant on the transverse plane. Recall that the elements of the moment matrix are given by the following equation:
[[ImageFile:/files/images/PMOM24(1).png]]
where the spatial-domain dyadic Green's functions are a function of the observation and source coordinates, '''r'''and '''r' '''. The MoM matrix elements can indeed be interpreted as interactions between two elementary basis functions '''f<sub>i</sub>(r)''' and '''f<sub>j</sub>(r')''' on that particular background structure. The spatial-domain dyadic Green's functions can themselves be expressed in terms of the spectral-domain dyadic Green's functions as follows:
[[ImageFile:/files/images/PMOM26.png]]
where the doubly infinite integration is performed with respect to the spectral variables k<sub>x</sub> and k<sub>y</sub>. As can be seen from the above expression, the spatial-domain dyadic Green's functions are functions of z, z', as well as (x-x') and (y-y'). The MoM matrix elements can now be transformed into the spectral domain as
[[ImageFile:/files/images/PMOM27.png]]
where the tilde symbol signifies the Fourier transform of a function defined as
[[ImageFile:/files/images/PMOM28(1).png]]
Rectangular cells have simple Fourier transforms. The rooftop basis functions are triangular functions in the direction of current flow and constant in the perpendicular direction. This means that their Fourier transform is a product of a sinc-squared function along one spectral direction and a sinc function along the other. You can see from the figure below that if one deals with a rectangular mesh of identical cells (all equal and parallel), then the interactions among the rooftop basis functions become a functions of the index differences and not the absolute indices:
[[ImageFile:/files/images/PMOM29.png]]
In the above equation, the vectorial rooftop basis functions have explicit, double indices: i and k along the local X and Y directions, respectively, for the test (observation) basis function, and j and l along the local X and Y directions, respectively, for the expansion (source) basis function. Thus, uniform rectangular cells, i.e. structured rectangular cells of identical size aligned in the same direction, can speed up the planar MoM simulation significantly due to these symmetry and the invariance properties. For example, all the self-interactions are identical regardless of the location of a rooftop basis function. This reduces the matrix fill process for a total of N rooftop basis functions from an N2 process to one of order N.
[[ImageFile:/files/images/PMOM25.png]]
Figure 1: Pairs of rooftop basis functions that have identical MoM interactions.
EM.Cube’s Planar Module offers two mesh generation algorithms for discretizing planar structures: Hybrid and Triangular. The hybrid mesh consists of both rectangular and triangular cells. The hybrid mesh generator creates a kind of “object-centric” mesh that depends on the geometry of each object. It tries to discretize rectangular objects with rectangular cells as much as possible. In certain connection areas, a few triangular cells might be inserted to provide the mesh transition for current continuity. All the non-rectangular objects (circular, polygonal, etc.) are discretized using triangular cells. The triangular mesh generator, on the other hand, discretizes the planar objects with all triangular cells regardless of their shape. The only exceptions are feed lines that contain gap sources or lumped elements, which are always meshed with rectangular cells.
You can generate and view a planar mesh by clicking the '''Show Mesh''' [[ImageFile:/files/images/manuals/emagware/emcube/modules/planar/mesh-generation/the-planar-mom-mesh/mesh_tool.png]] button of the '''Simulate Toolbar''' or by selecting '''Menu &gt; Simulate &gt; Discretization &gt; Show Mesh''' or using the keyboard shortcut '''Ctrl+M'''. When the mesh of the planar structure is displayed in EM.Cube’s project workspace, its &quot;Mesh View&quot; mode is enabled. In this mode you can perform view operations like rotate view, pan or zoom, but you cannot create new objects or edit existing ones. To exit the mesh view mode, press the keyboard's '''Esc Key''' or click the '''Show Mesh''' [[ImageFile:/files/images/manuals/emagware/emcube/modules/planar/mesh-generation/the-planar-mom-mesh/mesh_tool.png]] button once again.
Once a mesh is generated, it stays in the memory until the structure is changed or the mesh density or other settings are modified. Every time you view mesh, the one in the memory is displayed. You can force EM.Cube to create a new mesh from the ground up by selecting '''Menu &gt; Simulate &gt; Discretization &gt; Regenerate Mesh''' or by right clicking on the '''Planar Mesh''' item in the '''Discretization''' section of the Navigation Tree and selecting '''Regenerate''' from the contextual menu.
Due to the different definitions of effective wavelength in different parts of your planar structure, you will see different mesh resolutions. For example, if you structure has several substrate layers with different permittivities, the mesh of metal traces on layers with a higher permittivity value will feature more cells than the mesh of metal traces on layers with a lower permittivity value even though the mesh density value is the same for the whole structure.
[[ImageFile:/files/images/PMOM30.png]]
Figure 1: Mesh of two rectangular patches at two different planes. The lower substrate layer has a higher permittivity.
= Customizing A Planar Mesh =
You can change the settings of the planar mesh including the mesh type and density from the planar Mesh Settings Dialog. You can also change these settings while in the mesh view mode, and you can update the changes to view the new mesh. To open the mesh settings dialog, either click the '''Mesh Settings''' [[ImageFile:/files/images/manuals/emagware/emcube/modules/planar/mesh-generation/changing-mesh-type-resolution/mesh_settings.png]] button of the '''Simulate Toolbar''' or select '''Menu &gt; Simulate &gt; Discretization &gt; Mesh Settings...''', or by right click on the '''Planar Mesh''' item in the '''Discretization''' section of the Navigation Tree and select '''Mesh Settings...''' from the contextual menu, or use the keyboard shortcut '''Ctrl+G'''. You can change the mesh algorithm from the dropdown list labeled '''Mesh Type''', which offers two options: '''Hybrid''' and '''Triangular'''. You can also enter a different value for '''Mesh Density''' in cells per effective wavelength (λ<sub>eff</sub>). For each value of mesh density, the dialog also shows the average &quot;Cell Edge Length&quot; in the free space. To get an idea of the size of mesh cells on the traces and embedded object sets, divide this edge length by the square root of the effective permittivity a particular trace or set. Click the '''Apply''' button to make the changes effective.
[[ImageFile:/files/images/PMOM31.png]]
The Planar Mesh Settings dialog.
<tbody>
<tr class="odd">
<td align="left">[[ImageFile:/files/images/PMOM36.png]]</td><td align="left">[[ImageFile:/files/images/PMOM38.png]]</td><td align="left">[[ImageFile:/files/images/PMOM37.png]]</td>
</tr>
</tbody>
<tbody>
<tr class="odd">
<td align="left">[[ImageFile:/files/images/PMOM33.png]]</td><td align="left">[[ImageFile:/files/images/PMOM35.png]]</td><td align="left">[[ImageFile:/files/images/PMOM34.png]]</td>
</tr>
</tbody>
<tbody>
<tr class="odd">
<td align="left">[[ImageFile:/files/images/PMOM39.png]]</td><td align="left">[[ImageFile:/files/images/PMOM40.png]]</td>
</tr>
</tbody>
The Planar Mesh Settings dialog gives a few more options for customizing your planar mesh around geometrical and field discontinuities. You can check the check box labeled &quot;'''Refine Mesh at Junctions'''&quot;, which increases the mesh resolution at the connection area between rectangular objects. Or you can check the check box labeled &quot;'''Refine Mesh at Gap Locations'''&quot;, which may prove particularly useful when gap sources or lumped elements are placed on a short transmission line connected from both ends. Or you can check the check box labeled &quot;'''Refine Mesh at Vias'''&quot;, which increases the mesh resolution on the cross section of embedded object sets and by extension at the connection regions of the metallic objects connected to them. EM.Cube typically doubles the mesh resolution locally at the discontinuity areas when the respective boxes are checked.
[[ImageFile:/files/images/PMOM41.png]]
Figure 1: Refining the planar mesh at the via and surrounding area.
<tbody>
<tr class="odd">
<td align="left">[[ImageFile:/files/images/PMOM44.png]]</td><td align="left">[[ImageFile:/files/images/PMOM42.png]]</td>
</tr>
</tbody>
EM.Cube by default deletes or cures all the triangular cells that have angles less than 10º. Sometimes removing defective cells may inadvertently cause worse problems in the mesh. You may choose to disable this feature and uncheck the box labeled &quot;'''Remove Defective Triangular Cells'''&quot; in the Planar Mesh Settings dialog. You can also change the value of the minimum allowable cell angle.
[[ImageFile:/files/images/PMOM43(1).png]]
Figure 2: Setting the minimum allowable angle for non-defective triangular cells.
You can lock the local mesh density by accessing the property dialog of a specific trace or embedded object set and checking the box labeled '''Lock Mesh'''. This will enable the '''Mesh Density''' box, where you can accept the default global value or set any desired new value.
[[ImageFile:/files/images/PMOM45.png]]
Figure 1: Locking the mesh density of an object group from its property dialog.
You have access to every single node of a polymesh object and you can change its coordinates arbitrarily. You do this by opening the property dialog of a polymesh object and selecting a certain node index in the box labeled '''Active Node'''. You can also select a node by hovering the mouse over the node to highlight it and then click to select it. A red ball appears on the current active node. You can delete the nodes arbitrarily using the '''Delete''' button of the dialog, which results in lowering the mesh resolution at the location of the deleted node. Or you can insert new nodes in the faces of a polymesh object. To insert a node, first you have to select a face. Change the '''Mode''' option by selecting the '''Face''' radio button and then select the right '''Active Face''' index. A red triangular border appears around the selected face. You can also simply click on the surface of a face and select it using the mouse. With the desired face selected, click the '''Insert''' button of the dialog to create a new node at the centroid of the selected face. You can adjust the coordinates of the newly inserted node from the three X, Y and Z '''Coordinate''' boxes. Note that immediately after the insertion of a new node, the label of these coordinate boxes changes to &quot;'''New Node'''&quot; and they show the relative local X, Y and Z offsets with respect to the original node position. Once you close the Polymesh Dialog, the new node is added to the existing node list and can be edited later like the other polymesh nodes. By inserting a new node, you increase the mesh resolution locally and selectively.
[[ImageFile:/files/images/PMOM46(1).png]]
Figure 2: Discretizing a planar surface object using EM.Cube's Polymesh tool.
Keep in mind that since a polymesh object it considered a final mesh, its mesh cannot be connected to other objects. In other words, bridge basis functions are not generated if even some of the polymesh edges may coincide with other objects' edges. A polymesh object is treated by the mesh generator as an isolated mesh. However, EM.Cube allows you to connect polymesh objects manually. To do so, bring two or more polymesh objects close to each other so that they have one or more common edges. No face overlaps are allowed in this case. Select the polymesh objects and click the '''Merge Tool'''[[ImageFile:/files/images/manuals/emagware/cubecad/creating-more-complex-objects/merging-open-curves/merge_tool_tn.png]] button of '''Tools Toolbar''' to merge the polymesh objects into a single polymesh object. The new merged polymesh object will provide all the necessary bridge basis functions among the original, separate polymesh objects.
= Excitation Sources =
* You can also change the default label as well as the default color of the gap source using the '''Color''' button of the dialog and selecting the desired color from the color palette.
[[ImageFile:/files/images/PMOM47.png]]
Figure 1: The Planar Module's Gap Source dialog.
Unlike gap sources, whose offset parameter determines their exact location on their host line, the offset parameter of a probe source is not relevant except for long host vias. In the case of a short via that is discretized using a single prismatic element across its host substrate layer, the probe gap is always placed at the middle of its height. Longer vias may have a mesh that consists of two or more stacked prismatic elements. In this case, the probe source's offset determines which prismatic element will host the probe gap discontinuity at its middle.
[[ImageFile:/files/images/PMOM48.png]]
Figure 1: The Planar Module's Probe Source dialog.
However, you can prescribe certain amplitude and/or phase distribution over the array of gap or probe sources. By default, all the gap or probe sources have identical amplitudes of 1V (or 1A for the slot case) and zero phase. The available amplitude distributions to choose from include '''Uniform''', '''Binomial''' and '''Chebyshev''' and '''Date File'''. In the Chebyshev case, you need to set a value for minimum side lobe level ('''SLL''') in dB. You can also define '''Phase Progression''' in degrees along all three principal axes. You can view the amplitude and phase of individual sources by right clicking on the top '''Sources''' item in the Navigation Tree and selecting '''Show Source Label''' from the contextual menu.
[[ImageFile:/files/images/PMOM49.png]]
Figure 1: Defining gap sources on an array of rectangle strip objects with a Chebyshev amplitude distribution.
In the data file option, the complex amplitude are directly read in from a data file using a real - imaginary format. When this option is selected, you can either improvise the complex array weights or import them from an existing file. In the former case click the '''New Data File''' button. This opens up the Windows Notepad with default formatted data file that has a list of all the array element indices with default 1+j0 amplitudes for all of them. You can replace the default complex values with new one and save the Notepad data file, which brings you back to the Gap Source dialog. To import the array weights, click the '''Open Data File''' button, which opens the standard Windows Open dialog. You can then select the right data file from the one of your folders. It is important to note that the data file must have the correct format to be read by EM.Cube. For this reason, it is recommended that you first create a new data file with the right format using Notepad as described earlier and then save it for later use.
[[ImageFile:/files/images/PMOM50.png]]
Figure 2: Defining gap source array weights using a data file.
Ports are defined in the '''Observables''' section of the Navigation Tree. Right click on the '''Port Definition''' item of the Navigation Tree and select '''Insert New Port Definition...''' from the contextual menu. The Port Definition Dialog opens up, showing the default port assignments. If you have N sources in your planar structure, then N default ports are defined, with one port assigned to each source according to their order on the Navigation Tree. Note that your project can have mixed gap and probes sources as well as active lumped element sources.
[[ImageFile:/files/images/PMOM52.png]]
Figure 1: The Port Definition dialog.
'''You can define any number of ports equal to or less than the total number of sources in your project.''' The Port List of the dialog shows a list of all the ports in ascending order, with their associated sources and the port's characteristic impedance, which is 50Σ by default. You can delete any port by selecting it from the Port List and clicking the '''Delete''' button of the dialog. Keep in mind that after deleting a port, you will have a source in your project without any port assignment and make sure that is what you intend. You can change the characteristic impedance of a port by selecting it from the Port List and clicking the '''Edit''' button of the dialog. This opens up the Edit Port dialog, where you can enter a new value in the box labeled '''Impedance'''.
[[ImageFile:/files/images/PMOM53.png]]
Figure 2: Edit Port dialog.
Note that it is your responsibility to set up coupled ports and coupled transmission lines properly. '''For example, to excite the desirable odd mode of a coplanar waveguide (CPW), you need to create two rectangular slots parallel to and aligned with each other and place two gap sources on them with the same offsets and opposite polarities.''' To excite the even mode of the CPW, you use the same polarity for the two collocated gap sources. Whether you define a coupled port for the CPW or not, the right definition of sources will excite the proper mode. The couple ports are needed only for correct calculation of the port characteristics.
[[ImageFile:/files/images/PMOM51(2).png]]
Figure 1: Coupling gap sources in the Port Definition dialog by associating more than one source with a single port.
A gap source on a metal trace and a probe source on a PEC via behave like a series voltage source with a prescribed strength (of 1V and zero phase by default) that creates a localized discontinuity on the path of electric current flow. At the end of a planar MoM simulation, the electric current passing through the voltage source is computed and integrated to find the total input current. From this one can calculate the input admittance as
[[ImageFile:/files/images/PMOM54(1).png]]
for gap sources on metal traces, where the line integration is performed across the width of the metal strip, and
[[ImageFile:/files/images/PMOM55.png]]
for probe sources on PEC vias, where the surface integration is performed over the cross section of the via. On the other hand, a gap source on a slot trace behaves like a shunt current source with a prescribed strength (of 1A and zero phase by default) that creates a localized discontinuity on the path of magnetic current flow. At the end of a planar MoM simulation, the magnetic current passing through the current source is computed and integrated to find the total input voltage across the current filament. From this one can calculate the input impedance as
[[ImageFile:/files/images/PMOM56.png]]
Note that the input admittance or impedance defined at a gap source port is referenced to the two terminals of the voltage source connected across the gap as shown in the figure below. This is different than the input admittance or impedance that one may normally define for a microstrip port, which is referenced to the substrate's ground.
[[ImageFile:/files/images/PMOM59(1).png]]
Figure 1: Definition of different input impedances at the gap location.
To resolve this problem, you can place a gap source on a metal strip line by a distance of a quarter guide wavelength (λ<sub>g</sub>/4) away from its open end. Note that (λ<sub>g</sub> = 2π/β), where β is the propagation constant of the metallic transmission line. As show in the figure below, the impedance looking into an open quarter-wave line segment is zero, which effectively shorts the gap source to the planar structure's ground. The gap admittance or impedance in this case is identical to the input admittance or impedance of the planar structure.
[[ImageFile:/files/images/PMOM60(1).png]]
Figure 2: Placing a gap source a quarter guide wavelength away from the open end of a feed line to effectively short it to the ground at the gap location.
The same principle applies to the gap sources on slot traces. The figure below shows how to place two gap sources with opposite polarities a quarter guide wavelength away from their shorted ends to calculate the correct input impedance of the CPW line looking to the left of the gap sources. Note that in this case, you deal with shunt filament current sources across the two slot lines and that the slot line carry magnetic currents. The end of the slot lines look open to the magnetic currents, but in reality they short the electric field. The quarter-wave CPW line acts as an open circuit to the current sources.
[[ImageFile:/files/images/PMOM61(1).png]]
Figure 3: Placing two oppositely polarized gap sources a quarter guide wavelength away from the short end of a CPW line to effectively create an open circuit beyond the gap location.
The case of a probe source placed on a PEC via that is connected to a ground plane is more straightforward. In this case, the probe source's gap discontinuity is placed at the middle plane of the PEC via. If the via is short, it is meshed using a single prismatic element, which is connected to the ground from one side and to the metal strip line from the other. Therefore, the probe admittance or impedance is equal to that of the structure at a reference plane that passed through the host via.
[[ImageFile:/files/images/PMOM62(2).png]]
Figure 4: Input impedance of a probe source on a PEC via connected to a ground plane.
In the case of gap sources on metal traces and probe sources on PEC vias, turning a source off means shorting a series voltage source. The electric currents passing through these sources are then found at each port location, and the admittance parameters are found as follows:
[[ImageFile:/files/images/PMOM57.png]]
In the case of gap sources on slot traces, turning a source off means opening a shunt filament current source. The magnetic currents passing through the source locations, and thus the voltages across them, are then found at all ports, and the impedance parameters are found as follows:
[[ImageFile:/files/images/PMOM58.png]]
The N solution vectors that are generated through the N binary excitation analyses are finally superposed to produce the actual solution to the problem. However, in this process, EM.Cube also calculates all the port characteristics. Keep in mind that the impedance (Z) and admittance (Y) matrices are inverse of each other. From the impedance matrix, the scattering matrix is calculated using the following relation:
[[ImageFile:/files/images/PMOM63.png]]
where ['''Z<sub>0</sub>'''] and ['''Y<sub>0</sub>'''] are diagonal matrices whose diagonal elements are the port characteristic impedances and admittances, respectively.
Lumped elements are components, devices, or circuits whose overall dimensions are very small compared to the wavelength. As a result, they are considered to be dimensionless compared to the dimensions of a mesh cell. In fact, a lumped element is equivalent to an infinitesimally narrow gap that is placed in the path of current flow, across which the device's governing equations are enforced. Using Kirkhoff's laws, these device equations normally establish a relationship between the currents and voltages across the device or circuit. Crossing the bridge to Maxwell's domain, the device equations must now be cast into a from o boundary conditions that relate the electric and magnetic currents and fields. EM.Cube's Planar Module allows you to define passive circuit elements: '''Resistors'''(R), C'''apacitors'''(C), I'''nductors'''(L), and series and parallel combinations of them as shown in the figure below:
[[ImageFile:/files/images/manuals/emagware/emcube/modules/planar/excitation-sources/using-lumped-circuits/image106.png]]
Figure 1: A series-parallel RLC combination that can be modeled as a lumped circuit in Planar Module.
Lumped elements are conceptualized in a similar way as gap or probe sources. They are indeed considered as infinitesimally narrow gaps placed in the path of current flow, across which Ohm's law is enforced. If a lumped element is placed on a PEC or conductive sheet trace, it is treated as a series connection. The boundary condition at the location of the lumped element is:
[[ImageFile:/files/images/PMOM67.png]]
where Z<sub>L</sub> is the total impedance across the two terminals of the series element. If the lumped element is placed on a slot trace, it is treated as a shunt connection that creates a current discontinuity. In this case, the magnetic current across the gap is continuous, and the boundary condition at the location of the lumped element is:
[[ImageFile:/files/images/PMOM70(1).png]]
where Y<sub>L</sub> is the total admittance across the two terminals of the shunt element. If a lumped element is placed on a PEC via that is connected to a metal strip from one side and to a PEC ground plane from the other end, it is indeed as a series connection across a gap discontinuity at the middle plane of the via. If the via is short, it is meshed using a single prismatic element. In that case, the lumped element in effect shunts the metal strip to the ground. The boundary condition at the location of the lumped element across the PEC via is:
[[ImageFile:/files/images/PMOM68.png]]
[[ImageFile:/files/images/PMOM69.png]]
Figure 1: Using a shunt lumped element on a PEC via to terminate a metallic strip line.
* In the '''Load Properties''' section, the series and shunt resistance values Rs and Rp are specified in Ohms, the series and shunt inductance values Ls and Lp are specified in nH (nanohenry), and the series and shunt capacitance values Cs and Cp are specified in pF (picofarad). Only the checked elements are taken into account in the total impedance calculation. By default, only the series resistor is checked with a value of 50Σ, and all other circuit elements are initially greyed out.<br />
[[ImageFile:/files/images/PMOM64.png]]
Figure 1: The planar Module's Lumped Element dialog.
One can calculate the scattering parameters of a planar structure directly by analyzing the current distribution patterns on the port transmission lines. The discontinuity at the end of a port line typically gives rise to a standing wave pattern that can clearly be discerned in the line's current distribution. From the location of the current minima and maxima and their relative levels, one can determine the reflection coefficient at the discontinuity, i.e. the S<sub>11</sub> parameter. A more robust technique is Prony’s method, which is used for exponential approximation of functions. A complex function f(x) can be expanded as a sum of complex exponentials in the following form:
[[ImageFile:/files/images/PMOM73.png]]
where c<sub>i</sub> are complex coefficients and γ<sub>i</sub> are, in general, complex exponents. From the physics of transmission lines, we know that lossless lines may support one or more propagating modes with pure real propagation constants (real γ<sub>i</sub>exponents). Moreover, line discontinuities generate evanescent modes with pure imaginary propagation constants (imaginary γ<sub>i</sub> exponents) that decay along the line as you move away from the location of such discontinuities.
In practical planar structures for which you want to calculate the scattering parameters, each port line normally supports one, and only one, dominant propagating mode. Multi-mode transmission lines are seldom used for practical RF and microwave applications. Nonetheless, each port line carries a superposition of incident and reflected dominant-mode propagating signals. An incident signal, by convention, is one that propagates along the line towards the discontinuity, where the phase reference plane is usually established. A reflected signal is one that propagates away from the port plane. Prony's method can be used to extract the incident and reflected propagating and evanescent exponential waves from the standing wave data. From a knowledge of the amplitudes (expansion coefficients) of the incident and reflected dominant propagating modes at all ports, the scattering matrix of the multi-port structure is then calculated. In Prony's method, the quality of the S parameter extraction results depends on the quality of the current samples and whether the port lines exhibit a dominant single-mode behavior. Clean current samples can be drawn in a region far from sources or discontinuities, typically a quarter wavelength away from the two ends of a feed line.
[[ImageFile:/files/images/PMOM71.png]]
Figure 1: Minimum and maximum current locations of the standing wave pattern on a microstrip line feeding a patch antenna.
EM.Cube's Planar Module provides de-embedded sources for the exclusive purpose of accurate S parameter calculation based on Prony's method. A de-embedded source is indeed a gap source that is placed close to an open end of a feed line. The other end of the line is typically connected to a planar structure of interest. Like gap sources, de-embedded sources can be placed only on rectangle strip objects. '''During mesh generation, EM.Cube automatically extends the length of a port line that hosts a de-embedded source to about two effective wavelengths.''' This is done to provide enough length for formation of a clean standing wave current pattern. The effective wavelength of a transmission line for length extension purposes is calculated in a similar manner as for the planar mesh resolution. It is defined as λ<sub>eff</sub> = λ<sub>0</sub>/√ε<sub>eff</sub>, where ε<sub>eff</sub> is the effective permittivity. For metal and conductive sheet traces, the effective permittivity is defined as the larger of the permittivities of the two substrate layers just above and below the metallic trace. For slot traces, the effective permittivity is defined as the mean (average) of the permittivities of the two substrate layers just above and below the metallic trace. The host port line must always be open from one end to allow for its length extension. You have to make sure that there are no objects standing on the way of the extended port line to avoid any unwanted overlaps.
[[ImageFile:/files/images/PMOM72.png]]
Figure 1: The mesh of a patch antenna excited with a de-embedded source. Note the feed line extension in the mesh view.
* In the '''Prony Mode Extraction''' section, you can specify the '''Number of Prony Modes''', which refers to the number of positive-negative exponential pairs that are extracted from the standing wave current data. The default value is 1 and represents the dominant quasi-TEM incident/reflected signal pair.
[[ImageFile:/files/images/PMOM74.png]]
Figure 2: The Planar Module's De-embedded Source dialog.
When your background structure involves a slot (PMC) trace, then there is an infinite PEC ground plane at the plane of the slot trace. In that case, when you analyze a strip line on a metal trace, you must keep in mind that your stack-up configuration will be truncated by the slot's ground plane just for purpose of Z<sub>o</sub> calculation. A typical case of this type is a slot-coupled patch antenna fed by a microstrip line underneath the slot. From the point of view of the Line Calculator, the microstrip line lies on a substrate layer that is backed by the slot's ground plane and it does not see the substrate layer lying above the slot plane.
[[ImageFile:/files/images/PMOM75.png]]
Figure 1: Analyzing a metal strip line using the line calculator.
[[ImageFile:/files/images/PMOM76.png]]
Figure 2: Analyzing a coplanar waveguide using the line calculator.
A short dipole is the simplest type of radiator, which consists of a short current element of length &amp;DELTA;l, aligned along a unit vector û and carrying a current of I Amperes. The product I&amp;DELTA;l is often called the dipole moment and gives a measure of the radiator's strength. A short dipole in the free space generates an azimuth-symmetric, almost omni-directional, far field. However, the radiated fields of a short dipole above a layered planar background structure are greatly altered by the presence of the substrate layers. Note that the electric and magnetic field radiated by a short dipole in the presence of a layered background structure are indeed nothing but the dyadic Green's functions of that structure:
[[ImageFile:/files/images/PMOM109(1).png]]
To define a short dipole source, follow these steps:
* In the section titled '''Source Properties''', you can change the values of the dipole's '''Amplitude'''(in A), '''Phase'''(in degrees) and '''Length''' in the project's length units. A new dipole, by default, is Z-directed. You can change its orientation by entering the components of its unit vector in the three boxes labeled '''Direction Unit Vector'''.
[[ImageFile:/files/images/PMOM110.png]]
Figure 1: Planar Module's Short Dipole Source dialog.
You can excite a planar structure with an incident plane wave to explore its scattering characteristics such as radar cross section (RCS). Exciting an antenna structure with an incident plane wave is equivalent to operating it in the &quot;receive&quot; mode. Plane wave excitation in the Planar Module is particularly useful for calculation of reflection and transmission coefficients of periodic surfaces. Note that the incident plane wave in your project bounces off the layered background structure and part of it also penetrates the substrate layers. The total incident field that is used to calculate the excitation vector of the MoM linear system is a superposition of the incident, reflected and transmitted plane waves at various regions of your planar structure:
[[ImageFile:/files/images/PMOM111.png]]
where η<sub>0</sub> = 120π is the characteristic impedance of the free space, '''k<sub>1</sub>''' and '''k<sub>2</sub>''' are the unit propagation vectors of the incident plane wave and the wave reflected off the topmost substrate layer, respectively, and '''ê<sub>1</sub>''' and '''ê<sub>2</sub>''' are the polarization vectors corresponding to the electric field of those waves. R is the reflection coefficient at the interface between the top half-space and the topmost substrate layer and has different values for the TM and TE polarizations.
* The direction of the Plane Wave is determined by the incident '''Theta''' and '''Phi''' angles expressed in the spherical coordinate system in degrees. You have to choose the '''Polarization''' of the plane wave from the four options: '''TM<sub>z</sub>''', '''TE<sub>z</sub>''', '''LCP<sub>z</sub>'''and '''RCP<sub>z</sub>'''. The components of the unit propagation vector are shown based on your choice of the angles of incidence. The components of the normalized E- and H-field vectors are also displayed based on your choice of polarization.
[[ImageFile:/files/images/PMOM77.png]]
Figure 1: Planar Module's Plane Wave dialog.
* HDMR
[[ImageFile:/files/images/PMOM80.png]]
Figure 1: Selecting a simulation mode in Planar Module's Simulation Run dialog.
== Running A Planar MoM Analysis ==
To run a planar MoM analysis of your project structure, open the Run Simulation Dialog by clicking the '''Run''' [[ImageFile:/files/images/manuals/emagware/emcube/modules/planar/running-planar-mom-simulations/running-a-planar-mom-analysis/run_icon.png]] button on the '''Simulate Toolbar''' or select '''Menu''' '''&gt;''' '''Simulate &gt;''' '''Run''' or use the keyboard shortcut '''Ctrl+R'''. The '''Analysis''' option of the '''Simulation Mode''' dropdown list is selected by default. Once you click the '''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.
[[ImageFile:/files/images/PMOM78.png]]
Figure 1: Planar Module's Simulation Run dialog.
In the &quot;Spectral Domain Integration&quot; section of the dialog, you can set a value to '''Max Spectral Radius in k0''', which has a default value of 30. This means that the infinite spectral-domain integrals in the spectral variable k<sub>ρ</sub> are pre-calculated and tabulated up to a limit of 30k<sub>0</sub>, where k<sub>0</sub> is the free space propagation constant. These integrals may converge much faster based on the specified Convergence Rate for Integration described earlier. However, in certain cases involving highly oscillatory integrands, much larger integration limits like 100k<sub>0</sub> might be needed to warrant adequate convergence. For spectral-domain integration along the real k<sub>ρ</sub> axis, the interval [0, Nk<sub>0</sub>] is subdivided into a large number of sub-intervals, within each an 8-point Gauss-Legendre quadrature is applied. The next parameter, '''No. Radial Integration Divisions per k<sub>0</sub>''', determines how small these intervals should be. By default, 2 divisions are used for the interval [0, k<sub>0</sub>]. In other words, the length of each integration sub-interval is k<sub>0</sub>/2. You can increase the resolution of integration by increasing this value above 2. Finally, instead of 2D Cartesian integration in the spectral domain, a polar integration is performed. You can set the '''No. of Angular Integration Points''', which has a default value of 100.
[[ImageFile:/files/images/PMOM79.png]]
Figure 1: The Planar MoM Engine Settings dialog.
After the MoM impedance matrix '''[Z]''' (not to be confused with the impedance parameters) and excitation vector '''[V]''' have been computed through the matrix fill process, the planar MoM simulation engine is ready to solve the system of linear equations:
[[ImageFile:/files/images/PMOM81.png]]
where '''[I]'''is the solution vector, which contains the unknown amplitudes of all the basis functions that represent the unknown electric and magnetic currents of finite extents in your planar structure. In the above equation, N is the dimension of the linear system and equal to the total number of basis functions in the planar mesh. EM.Cube's linear solvers compute the solution vector'''[I]''' of the above system. You can instruct EM.Cube to write the MoM matrix and excitation and solution vectors into output data files for your examination. To do so, check the box labeled &quot;'''Output MoM Matrix and Vectors'''&quot; in the Matrix Fill section of the Planar MoM Engine Settings dialog. These are written into three files called mom.dat1, exc.dat1 and soln.dat1, respectively.
If your computer has an Intel CPU, then EM.Cube offers special versions of all the above linear solvers that have been optimized for Intel CPU platforms. These optimal solvers usually work 2-3 time faster than their generic counterparts. When you install EM.Cube, the option to use Intel-optimized solvers is already enabled. However, you can disable this option (e.g. if your computer has a non-Intel CPU). To do that, open the EM.Cube's Preferences Dialog from '''Menu &gt; Edit &gt; Preferences''' or using the keyboard shortcut '''Ctrl+H'''. Select the Advanced tab of the dialog and uncheck the box labeled &quot;''' Use Optimized Solvers for Intel CPU'''&quot;.
[[ImageFile:/files/images/PMOM82.png]]
Figure 1: Setting the check box for &quot;Use Optimzied Solvers for Intel CPU&quot; in the Preferences dialog.
Electric and magnetic currents are the fundamental output data of a planar MoM simulation. After the numerical solution of the MoM linear system, they are found using the solution vector '''[I]''' and the definitions of the electric and magnetic vectorial basis functions:
[[ImageFile:/files/images/PMOM83.png]]
Note that currents are complex vector quantities. Each electric or magnetic current has three X, Y and Z components, and each complex component has a magnitude and phase. You can visualize the surface electric currents on metal (PEC) and conductive sheet traces, surface magnetic currents on slot (PMC) traces and vertical volume currents on the PEV vias and embedded dielectric objects. 3D color-coded intensity plots of electric and magnetic current distributions are visualized in the project workspace, superimposed on the surface of physical objects.
In order to view the current distributions, you must first define them as observables before running the planar MoM simulation. To do that, right click on the '''Current Distributions''' item in the '''Observables''' section of the Navigation Tree and select '''Insert New Observable...'''. The Current Distribution Dialog opens up. At the top of the dialog and in the section titled '''Active Trace / Set''', you can select a trace or embedded object set where you want to observe the current distribution. You can also select the current map type from two options: '''Confetti''' and '''Cone'''. The former produces an intensity plot for current amplitude and phase, while the latter generates a 3D vector plot.
[[ImageFile:/files/images/PMOM84.png]]
Figure 1: The Planar Module's Current Distribution dialog.
Once you close the current distribution dialog, the label of the selected trace or object set is added under the '''Current Distributions''' node of the Navigation Tree. '''Note that you have to define a separate current distribution observable for each individual trace or embedded object set.''' At the end of a planar MoM simulation, the current distribution nodes in the Navigation Tree become populated by the magnitude and phase plots of the three vectorial components of the electric ('''J''') and magnetic ('''M''') currents as well as the total electric and magnetic currents defined in the following manner:
[[ImageFile:/files/images/PMOM87.png]]
You can click on any current plot to visualize it in the project workspace. A legend box at the upper right corner of the screen shows the color map scale as well as the minimum, maximum, mean and standard deviation of the current data and its units. To exit the 3D plot view and return to EM.Cube's normal view, hit the keyboard's '''Esc Key'''.
[[ImageFile:/files/images/PMOM85(1).png]]
Figure 2: The current distribution map of a patch antenna.
[[ImageFile:/files/images/PMOM86(2).png]]
Figure 3: Vectorial (cone) visualization of the current distribution on a patch antenna.
Once all the current distributions are known in a planar structure, the electric and magnetic fields can be calculated everywhere in that structure using the dyadic Greens's functions of the background structure:
[[ImageFile:/files/images/PMOM92(2).png]]
The above equations can be cast into the spectral domain as follows:
[[ImageFile:/files/images/PMOM93(1).png]]
Calculation of the near-zone fields (fields at the vicinity of the unknown currents) is done at the post-processing stage and in a Cartesian coordinate systems. These calculations involve doubly infinite spectral-domain integrals, which are computed numerically. As was mentioned earlier, EM.Cube's planar MoM engine rather uses a polar integration scheme, where the radial spectral variable k<sub>ρ</sub> is integrated over the interval [0, Mk<sub>0</sub>], M being a large enough number to represent infinity, and the angular spectral variable τ is integrated over the interval [0, 2π]. You also saw some of the numerical parameters related to this spectral-domain integration scheme. '''Note that when the observation plane is placed very close to the radiating J and M currents, the Green's functions exhibit singularities, which translate to very slow convergence or divergence of the integrals.''' You need to be careful to place field sensors at adequate distances from these radiating sources.
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.
[[ImageFile:/files/images/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:
[[ImageFile:/files/images/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).
[[ImageFile:/files/images/PMOM116.png]]
Figure 2: Near-zone electric field map above a microstrip-fed patch antenna.
[[ImageFile:/files/images/PMOM117.png]]
Figure 3: Near-zone magnetic field map above a microstrip-fed patch antenna.
Unlike differential-based methods, MoM simulators do not need a radiation box to calculate the far field data. The far-zone fields are calculated directly by integrating the currents on the traces and across the embedded objects using the asymptotic form of the background structure’s dyadic Green's functions:
[[ImageFile:/files/images/PMOM112.png]]
where η<sub>0</sub> = 120π is the characteristic impedance of the free space. As can be seen from the above equations, the far fields have the form of a TEM wave propagating in the radial direction away from the origin of coordinates. This means that the far-field magnetic field is always perpendicular to the electric field and the propagation vector, which in this case happens to be the radial unit vector in the spherical coordinate system. In other words, one only needs to know the far-zone electric field and can easily calculate the far-zone magnetic field from it. In EM.Cube's mixed potential integral equation formulation, the far-zone electric field can be expressed in terms of the asymptotic form of the vector electric and magnetic potentials '''A''' and '''F''':
[[ImageFile:/files/images/PMOM113.png]]
The asymptotic form of these vector potentials are calculated using the &quot;'''Method of Stationary Phase'''&quot; when k<sub>0</sub>r → ∞. In that case, one can use the approximation:
[[ImageFile:/files/images/PMOM115.png]]
After applying the stationary phase method, one can extract the spherical wave factor exp(-jk<sub>0</sub>r)/r from the far-zone electric field, leaving the rest as functions of the spherical angles θ and φ. In other words, the far field is normalized to r, the distance from the field observation point to the origin. It is customary to express the far fields in spherical components E<sub>θ</sub> and E<sub>φ</sub>. Note that the outward propagating, TEM-type, far fields do not have radial components, i.e. E<sub>r</sub> = 0.
[[ImageFile:/files/images/PMOM114.png]]
== Visualizing The Far Fields ==
Once a planar MoM simulation is finished, three far field items are added under the Far Field item in the Navigation Tree. These are the far field component in θ direction, the far field component in φ direction and the &quot;Total&quot; far field. The 3D plots can be viewed in the project workspace by clicking on each item. The view of the 3D far field plot can be changed with the available view operations such as rotate view, pan, zoom, etc. If the structure blocks the view of the radiation pattern, you can simply hide or freeze the whole structure or parts of it. In a 3D radiation pattern plot, the fields are always normalized to the maximum value of the total far field for visualization purpose:
[[ImageFile:/files/images/PMOM89.png]]<br />
[[ImageFile:/files/images/PMOM118.png]]
Figure 1: Planar Module's Radiation Pattern dialog.
[[ImageFile:/files/images/PMOM119.png]]
Figure 2: 3D polar radiation pattern plot of a microstrip-fed patch antenna.
[[ImageFile:/files/images/PMOM120.png]]
Figure 2: 3D vectorial (cone) radiation pattern plot of a microstrip-fed patch antenna.
When a planar structure is excited by a plane wave source, the calculated far field data indeed represent the scattered fields of that planar structure. EM.Cube can also calculate the radar cross section (RCS) of a planar target:
[[ImageFile:/files/images/PMOM123.png]]
'''Note that in this case the RCS is defined for a finite-sized target in the presence of an infinite background structure.''' The scattered θ and φ components of the far-zone electric field are indeed what you see in the 3D far field visualization of radiation (scattering) patterns. Instead of radiation or scattering patterns, you can instruct EM.Cube to plot 3D visualizations of σ<sub>θ</sub>, σ<sub>φ</sub> and the total RCS. To do so, you must define an RCS observable instead of a radiation pattern. Follow these steps:
At the end of a planar MoM simulation, in the far field section of the Navigation Tree, you will have the θ and φ components of RCS as well as the total radar cross section. You can view a 3D visualization of these quantities by clicking on their entries in the Navigation Tree. The RCS values are expressed in m<sup>2</sup>. The 3D plots are normalized to the maximum RCS value, which is also displayed in the legend box.<br />
[[ImageFile:/files/images/PMOM124.png]]
Figure 1: Plana Module's Radar Cross Section dialog.
[[ImageFile:/files/images/PMOM125.png]]
Figure 2: An example of the 3D mono-static radar cross section plot of a patch antenna.
To run a uniform frequency sweep, open the '''Simulation Run Dialog''', and select the '''Frequency Sweep''' option from the dropdown list labeled '''Simulation Mode'''. When you choose the frequency sweep option, the '''Settings''' button next to the simulation mode dropdown list becomes enabled. Clicking this button opens the '''Frequency Settings''' dialog. The '''Frequency Range'''is initially set equal to your project's center frequency minus and plus half bandwidth. But you can change the values of '''Start Frequency'''and '''End Frequency''' as well as the '''Number of Samples'''. The dialog offers two options for '''Frequency Sweep Type''': '''Uniform''' or '''Adaptive'''. Select the former type. It is very important to note that in a MoM simulation, changing the frequency results in a change of the mesh of the structure, too. This is because the mesh density is defined in terms of the number of cells per effective wavelength. By default, during a frequency sweep, EM.Cube fixes the mesh density at the highest frequency, i.e., at the &quot;End Frequency&quot;. This usually results in a smoother frequency response. You have the option to fix the mesh at the center frequency of the project or let EM.Cube &quot;remesh&quot; the planar structure at each frequency sample during a frequency sweep. You can make one of these three choices using the radio button in the '''Mesh Settings''' section of the dialog. Closing the Frequency Settings dialog returns you to the Simulation Run dialog, where you can start the planar MoM frequency sweep simulation by clicking the '''Run''' button.
[[ImageFile:/files/images/PMOM126.png]]
Figure 1: Planar Module's Frequency Settings dialog.
'''Note that to run an adaptive frequency sweep, you must have defined one or more ports for your planar structure.''' Open the Frequency Settings dialog from the Simulation Run dialog and select the '''Adaptive''' option of '''Frequency Sweep Type'''. You have to set values for '''Minimum Number of Samples''' and '''Maximum Number of Samples'''. Their default values are 3 and 9, respectively. You also set a value for the '''Convergence Criterion''', which has a default value of 0.1. At each iteration cycle, all the S parameters are calculated at the newly inserted frequency samples, and their average deviation from the curves of the last cycle is measured as an error. When this error falls below the specified convergence criterion, the iteration is ended. If EM.Cube reaches the specified maximum number of iterations and the convergence criterion has not yet been met, the program will ask you whether to continue the process or exit it and stop. '''For large frequency ranges, you may have to increase both the minimum and maximum number of samples. Moreover, remeshing the planar structure at each frequency may prove more practical than fixing the mesh at the highest frequency.'''
[[ImageFile:/files/images/PMOM127.png]]
Figure 1: Settings adaptive frequency sweep parameters in Planar Module's Frequency Settings Dialog.
If your planar structure is excited by gap sources or probe sources or de-embedded sources, and one or more ports have been defined, the planar MoM engine calculates the scattering, impedance and admittance (S/Z/Y) parameters of the designated ports. The scattering parameters are defined based on the port impedances specified in the project's Port Definition dialog. If more than one port has been defined in the project, the S/Z/Y matrices of the multiport network are calculated. Note that the S/Z/Y matrices of an N-port structure are related to each other through the following equations:
[[ImageFile:/files/images/PMOM121.png]]
where ['''U'''] is the identity matrix of order N, ['''Z<sub>0</sub>'''] and ['''Y<sub>0</sub>'''] are diagonal matrices whose diagonal elements are the port characteristic impedances and admittances, respectively, and ['''√Z<sub>0</sub>'''] is a diagonal matrix whose diagonal elements are the square roots of port characteristic impedances. The voltage standing wave ratio (VSWR) of the structure at the first port is also computed:
[[ImageFile:/files/images/PMOM122.png]]
At the end of a planar MoM simulation, the values of S/Z/Y parameters and VSWR data are calculated and reported in the output message window. The S, Z and Y parameters are written into output ASCII data files of complex type with a &quot;'''.CPX'''&quot; extension. Every file begins with a header consisting of a few comment lines that start with the &quot;#&quot; symbol. The complex values are arranged into two columns for the real and imaginary parts. In the case of multiport structures, every single element of the S/Z/Y matrices is written into a separate complex data file. For example, you will have data files like S11.CPX, S21.CPX, ..., Z11.CPX, Z21.CPX, etc. The VSWR data are saved to an ASCII data file of real type with a &quot;'''.DAT'''&quot; extension called, VSWR.DAT.
If you run an analysis, the port characteristics have single complex values, which you can view using EM.Cube's data manager. However, there are no curves to graph. You can plot the S/Z/Y parameters and VSWR data when you have data sets, which are generated at the end of any type of sweep including a frequency sweep. In that case, the &quot;.CPX&quot; files have multiple rows corresponding to each value of the sweep parameter (e.g. frequency). EM.Cube's 2D graph data are plotted in EM.Grid, a versatile graphing utility. You can plot the port characteristics directly from the Navigation Tree. Right click on the '''Port Definition''' item in the '''Observables''' section of the Navigation Tree and select one of the items: '''Plot S Parameters''', '''Plot Y Parameters''', '''Plot Z Parameters''', or '''Plot VSWR'''. In the first three cases, another sub-menu gives a list of individual port parameters.
[[ImageFile:/files/images/PMOM128.png]]
Figure 1: Selecting port characteristics data to plot from the Navigation Tree.
You can also see a list of all the port characteristics data files in EM.Cube's Data Manager. To open data manager, click the '''Data Manager''' [[ImageFile:/files/images/manuals/emagware/emcube/modules/planar/running-simulations/defining-custom-output-parameters/data_manager_icon.png]] button of the '''Simulate Toolbar''' or select '''Simulate &gt; Data Manager''' from the menu bar, or right click on the '''Data Manager''' item of the Navigation Tree and select '''Open Data Manager'''... from the contextual menu. You can also use the keyboard shortcut '''Ctrl+D''' at any time. Select any data file by clicking and highlighting its row in the table and then click the '''Plot''' button to plot the graph. By default, the S parameters are plotted as double magnitude-phase graphs, while the Y and Z parameters are plotted as double real-imaginary part graphs. The VSWR data are plotted on a Cartesian graph. You can change the format of complex data plots. In general complex data can be plotted in three forms:
# Magnitude and Phase
# Smith Chart
[[ImageFile:/files/images/PMOM129.png]]
Figure 2: EM.Cube's Data Manager showing a list of the port characteristics data files.
In particular, it may be useful to plot the S<sub>ii</sub> parameters on a Smith chart. To change the format of a data plot, select it in the Data Manager and click its '''Edit''' button. In the Edit File Dialog, choose one of the options provided in the dropdown list labeled '''Graph Type'''.
[[ImageFile:/files/images/PMOM130.png]]
Figure 3: Changing the graph type by editing a data file's properties.
[[ImageFile:/files/images/PMOM134.png]]
Figure 4: The S<sub>11</sub> parameter plotted on a Smith Chart graph in EM.Grid.
You can use the '''Update''' button of the dialog to generate the interpolated data for a given order. The new data are written to a complex data file with the same name as the selected S parameter and a &quot;'''_RationalFit'''&quot; suffix. While this dialog is still open, you can plot the new data either directly from the Navigation Tree or from the Data Manager. If you are not satisfied with the results, you can return to the Smart Fit dialog and try a higher or lower interpolant order and compare the new data.
[[ImageFile:/files/images/PMOM131.png]]
Figure 1: Planar Module's Smart Fit dialog.
[[ImageFile:/files/images/PMOM133(2).png]]
Figure 2: The S<sub>11</sub> parameter plot of a two-port structure in magnitude-phase format.
[[ImageFile:/files/images/PMOM132(2).png]]
Figure 3: The smoothed version of the S<sub>11</sub> parameter plot of the two-port structure using EM.Cube's Smart Fit.
3D output data, on the other hand, are defined as functions of the space coordinates and are usually of vectorial nature. Cartesian-type and mesh-type data such as current distributions and near-field field distributions are expressed as functions of the Cartesian (X, Y, Z) coordinates. Spherical-type data like far-field radiation patterns and RCS are expressed as functions of the spherical angles (θ, φ). The 3D radiation patterns are written into a file with a &quot;'''.RAD'''&quot; extension. This file contains the complex values of the θ- and φ-components of the far-zone electric field (E<sub>θ</sub> and E<sub>φ</sub>) as well as the total far field magnitude as functions of the spherical observation angles θ and φ. The 3D RCS patterns are written into a file with a &quot;'''.RCS'''&quot; extension. This file contains the real values of the θ- and φ-polarized RCS values as well as the total RCS as functions of the spherical observation angles θ and φ. The current distributions are written into data files with a &quot;'''.CUR'''&quot; extension. They contain the real and imaginary parts of the X, Y and Z components of electric ('''J''') and magnetic ('''M''') current on each cells together with the definition of all the node coordinates and node indices of the cells. The near-filed distributions are written into data files with a &quot;'''.SEN'''&quot; extension. They contain the amplitude and phase of the X, Y and Z components of electric ('''E''') and magnetic ('''H''') fields as functions of the coordinates of sampling points. All the 3D data files are listed in the 3'''D Data Files'''tab of EM.Cube's '''Data Manager'''. You can view the contents of these data files by selecting their row in the data manager and clicking the '''View''' button of the dialog.
[[ImageFile:/files/images/PMOM138.png]]
Figure 1: The 3D Data Files tab of EM.Cube's Data Manager.
[[ImageFile:/files/images/PMOM139.png]]
Figure 2: Viewing the contents of a mesh-type 3D data file in Data Manager.
All the radiation- and scattering-related standard outputs are available only if you have defined a radiation pattern far field observable or an RCS far field observable, respectively. The standard output parameters DGU and ARU are the directive gain and axial ratio calculated at the certain user defined direction with spherical observation angles (θ, φ). These angles are specified in degrees as '''User Defined Azimuth &amp; Elevation''' in the &quot;Output Settings&quot; section of the '''Radiation Pattern Dialog'''. The standard output parameters HPBWU, SLLU, FNBU and FNLU are determined at a user defined φ-plane cut. This azimuth angle is specified in degrees as '''Non-Principal Phi Plane''' in the &quot;Output Settings&quot; section of the '''Radiation Pattern Dialog''', and its default value is 45°. The standard output parameters BRCS and MRCS are the total back-scatter RCS and the maximum total RCS of your planar structure when it is excited by an incident plane wave source at the specified θ<sub>s</sub> and φ<sub>s</sub> source angles. FRCS, on the other hand, is the total forward-scatter RCS measured at the predetermined θ<sub>o</sub> and φ<sub>o</sub> observation angles. These angles are specified in degrees as '''User Defined Azimuth &amp; Elevation''' in the &quot;Output Settings&quot; section of the '''Radar Cross Section Dialog'''. The default values of the user defined azimuth and elevation are both zero corresponding to the zenith.
If you are interested in calculating certain quantities at the end of a simulation, which you do not find among EM.Cube's standard output data, you can define your own custom output. EM.Cube allows you to define new custom output as any mathematical expression that involves the available standard output parameters, numbers, variables and all of EM.Cube's mathematical functions. For a list of legitimate mathematical functions, click the '''Functions [[ImageFile:/files/images/manuals/emagware/cubecad/computing-with-cad-objects/mathematical-functions/functions_icon.png]]'''button of the '''Simulate Toolbar''' or select '''Simulate &gt; Functions...'''from the menu bar, or use the keyboard shortcut '''Ctrl+I''' to open the Function Dialog. Here you can see a list of all the available EM.Cube functions with their syntax and a brief description. To define a custom output, click the '''Custom Output [[ImageFile:/files/images/manuals/emagware/emcube/modules/planar/running-simulations/defining-custom-output-parameters/custom_icon.png]]'''button of the '''Simulate Toolbar''' or select '''Simulate &gt; Custom Output...'''from the menu bar, or use the keyboard shortcut '''Ctrl+K''' to open the Custom Output Dialog. This dialog has a list of all of your custom output parameters. Initially, the list empty. You can define a new custom output by clicking the '''Add''' button of the dialog to open up the '''Add Custom Output Dialog'''. In this dialog, first you have to choose a new label for your new parameter and then define a mathematical expression for it. At the bottom of the dialog you can see a list of all the available standard output parameters, whose number and variety depends on your project's source type as well as the defined project observables. When you close the Add Custom Output dialog, it returns you to the Custom Output dialog, where the parameter list now reflects your newly defined custom output. You can edit an existing parameter by selecting its row in the table and clicking the '''Edit''' button, or you can delete any parameter from the list using the '''Delete''' button.
[[ImageFile:/files/images/PMOM141.png]]
Figure 1: EM.Cube's Custom Output dialog.
[[ImageFile:/files/images/PMOM140.png]]
Figure 2: Defining a new custom output using the available standard output parameters.
== Viewing &amp; Visualizing Various Output Data Types ==
At the end of a planar MoM simulation, a variety of 2D and 3D output data are generated. Some of these can be visualized or graphed directly from the Navigation Tree, while the others can only be accessed from the Data Manager. All of EM.Cube's simulation data are always written into ASCII data files that you can open and inspect or edit. Lists of these 2D and 3D data files appear under Data Manager's various tabs. The generated data also include all of Planar Module's legitimate standard outputs that the simulation engine can compute given the specified source and observable types as well as all of your own previously defined custom output parameters. Note that in this release of EM.Cube, all the custom outputs are real-type data. Each custom output is written into a separate real data file with the same name as the parameter's given label and a &quot;'''.DAT'''&quot; file extension. To open data manager, click the '''Data Manager''' [[ImageFile:/files/images/manuals/emagware/emcube/modules/planar/running-simulations/defining-custom-output-parameters/data_manager_icon.png]] button of the '''Simulate Toolbar''' or select '''Simulate &gt; Data Manager''' from the menu bar, or right click on the '''Data Manager''' item of the Navigation Tree and select '''Open Data Manager'''... from the contextual menu. You can also use the keyboard shortcut '''Ctrl+D''' at any time. Select any data file by clicking and highlighting its row in the table and then click the '''Plot''' button to plot its graph in '''EM.Grid'''. You can also view the contents of a data file by selecting its row in th file list and clicking the '''View''' button of the dialog or by simply double-clicking the highlighted row. This opens up a new window containing a convenient spreadsheet that gives a tabular view of the contents of the selected data file. There are a large number of data operations and manipulations that you can perform on the data content including matrix, calculus and statistical calculations as well as computing and plotting new datasets using the &quot;Compute&quot; feature of the spreadsheet. You can make multiple file selection using the keyboard's '''Ctrl''' and '''Shift''' keys.
[[ImageFile:/files/images/PMOM144.png]]
Figure 1: EM.Cube's Data Manager dialog showing an angular file selected and highlighted for further action.
[[ImageFile:/files/images/PMOM143.png]]
Figure 2: Data Manager's spreadsheet showing the contents of an angular data file.
The 2D output data include real or complex quantities like various port, radiation, scattering and periodic characteristics. At the end of an analysis, most .CPX and .DAT data files have a single complex or real value, respectively. in other words, there are no curves to plot. Exceptions are Cartesian 2D radiation pattern or RCS data files along the principal and user define phi-cut planes, as well as polar 2D radiation pattern or RCS data files of angular type with a &quot;'''.ANG'''&quot; file extension. These files contain the radiation pattern or RCS data as a function of some relevant angle in the specified plane. At the end of a sweep simulation of one of the many types available (frequency, angular, parametric, etc.), the ASCII output data files are populated with rows that correspond to the samples of the sweep variable(s). You can plot graphs of the 2D output data files that contain more than one row in '''EM.Grid'''. Each data file has a default graph type. Real data are plotted on EM.Grid's Cartesian graphs. Complex data files with a &quot;'''.CPX'''&quot; extension are plotted on double Cartesian graphs of &quot;'''Magnitude-Phase'''&quot; type, showing the magnitude in dB and phase in radians. You can change the complex data's graph type to the &quot;'''Real-Imaginary'''&quot; or &quot;'''Smith Chart'''&quot; by selecting its entry in the Data Manager and clicking the '''Edit'''button to open the &quot;Edit File Properties Dialog&quot;. Angular data files like polar 2D radiation patterns or RCS, by default, are plotted on EM.Grid's &quot;'''Polar'''&quot; graphs. Note that real data can be graphed on bar charts, too, just as angular can alternatively be graphed on polar stem charts.
[[ImageFile:/files/images/PMOM142.png]]
Figure 1: A 2D radiation pattern polar graph in EM.Grid.
EM.Cube's 3D output simulation data usually have a vectorial nature and are defined as functions of the Cartesian or spherical space coordinates. At the end of a planar MoM simulation, you can view 3D visualizations of the vectorial output data such as current distributions, near-field field distributions, far-field radiation patterns and RCS in EM.Cube's project workspace by clicking on the corresponding observable entries in the Navigation Tree. When you run a sweep simulation of some sort, multiple 3D plots appear on the Navigation Tree representing all the sweep variable samples. You can animate these 3D visualization plots very conveniently from the Navigation Tree. To do so, right click on an observable's name in the Navigation Tree and select the '''Animation''' item from the contextual menu. Make sure that you right click on the observable's parent node, not on one of its child components corresponding to the sweep variable samples. The 3D plot in the project workspace starts to animate and continues forever until to stop it. A new window called &quot;''' Animation Controls Dialog'''&quot; opens up at the lower right corner of the EM.Cube desktop. This dialog allows you to control the animation speed using a box labeled '''Rate''', whose value multiplied by 100 milliseconds indeed gives the frame duration. You can speed up the animation or slow it down from the default rate of one frame per 300ms. The box labeled '''Sample''' show the current frame's plot label at any time. You can pause the animation, rewind it to the first frame, fast-forward it to the last frame or manually step it through back and forth using the movement buttons marked with the symbols |&lt;, &lt;&lt;, ||, &gt;&gt;,&gt;|.
[[ImageFile:/files/images/PMOM135.png]]
Figure 1: Animating 3D radiation patterns as the send of a frequency sweep.
[[ImageFile:/files/images/PMOM136.png]]
Figure 2: EM.Cube's Animation Controls dialog.
Parametric sweep is EM.Cube's most versatile sweep type. During a parametric sweep, the values of one or more sweep variables are varied over their specified ranges, and the planar MoM simulation is run for each combination of variable samples. If you define two or more sweep variables, the process will then involve nested sweep loops that follow the order of definition of the sweep variables. The topmost sweep variable in the list will form the outermost nested loop, and the sweep variable at the bottom of the list will form the innermost nested loop. Note that you can alternatively run either a frequency sweep or an angular sweep as parametric sweep, whereby the project frequency or the angles of incidence of a plane wave source are designated as sweep variables. Unlike optimization which will be discussed later, parametric sweeps are simple and straightforward and do not required careful advance planning.
Before you can run a parametric sweep, first you have to define one or more variables in your EM.Cube project. A variable is a mathematical entity that has a numeric value. This numeric value can be changed at your discretion at any time. You can define a variable either directly as a number or as a mathematical expression that may involve other previously defined variables. Even in the latter case, an &quot;expression&quot; variable has a numeric value at any time. You can designate almost any numeric quantity or parameter in EM.Cube as a variable. Or alternatively, you can associate a variable with almost anything in EM.Cube. This includes all the geometrical properties of CAD objects like coordinates, rotation angles, dimensions, etc. as well as material properties of object groups and background structure, source parameters, project frequency, mesh density, and unit cell periods in the case of a periodic structure. You can define a variable either in a formal manner using EM.Cube's Variable Dialog or directly from the project workspace or from the Navigation Tree. In the former &quot;formal&quot; option, first you open the Variables Dialog by clicking the '''Variables''' [[ImageFile:/files/images/manuals/emagware/cubecad/computing-with-cad-objects/defining-variables/variable_icon_tn.png]] button of the '''Simulate Toolbar''' or selecting '''Menu &gt; Simulate &gt; Variables...'''or using the keyboard shortcut '''Ctrl+B'''. By default, the variable list is initially empty. To add a new variable, click the '''Add''' button to open the &quot;Add Variable Dialog&quot;. Choose a '''Name''' for your new variable. In the box labeled '''Definition''', define your new variable either as an independent variable with a numeric value or as a dependent variable using a mathematical expression that involves previously defined variables.
[[ImageFile:/files/images/PMOM146(1).png]]
Figure 1: EM.Cube's Variables dialog.
[[ImageFile:/files/images/PMOM145(2).png]]
Figure 2: Defining a new independent variable.
The Parametric Sweep Settings dialog also features another useful button labeled '''Dry Run''', which runs a &quot;fake&quot; sweep animation. During a dry run, the sweep variables are varied sample by sample and all of their associated parameters in the project workspace are updated at each run. However, the simulation engine is not called during a dry run, and no numerical computations take place at all. Also, the Variable Dry Run dialog appears on the screen which shows the changing values of all the variables at all times. This dialog works in a similar way as the Animation Controls Dialog described earlier. You can change the speed of the updates or control them manually using the motion buttons. The dry run process continues forever until to stop it by clicking the close (X) button of the Dry Run dialog of simply hitting the keyboard's '''Esc Key'''. At ach update of a dry run, you can see how the CAD objects in your planar structure change. This is very useful to inspect the integrity of your structure and your defined variables before an actual simulation run. If you run a dry run while EM.Cube is in the mesh view mode, then the planar mesh of your structure is updated for each combination of the sweep variable samples during the dry run process. Once you are satisfied with the choice and definition of your sweep variables, close the Parametric Sweep Settings dialog to return to the Simulation Run dialog, where you can start the planar MoM parametric sweep simulation by clicking the '''Run''' button.
[[ImageFile:/files/images/PMOM148.png]]
Figure 3: EM.Cube's Parametric Sweep Settings dialog.
[[ImageFile:/files/images/PMOM147.png]]
Figure 4: Defining the type and range of a sweep variable.
[[ImageFile:/files/images/PMOM149.png]]
Figure 5: EM.Cube's Variable Dry Run dialog.
A design objective is a logical expression that consists of two mathematical expressions separated by one of the logical operators: ==, &lt;, &lt;=, &gt; or &gt;=. These are called the left-hand-side (LHS) and right-hand-side (RHS) mathematical expressions and both must have computable numerical values. They may contain any combination of numbers, constants, variables, standard or custom output parameters as well as EM.Cube's legitimate functions. Objectives that involve the logical operator &quot;'''=='''&quot; are regarded a &quot;'''Goals'''&quot;. The RHS expression of a goal is usually chosen to be a number, which is often known as the &quot;'''Target Value'''&quot;. In the logical expression of a goal, one can bring the two RHS and LHS expressions to one side establish an equality of the form &quot;(LHS - RHS) == 0&quot;. Numerically speaking, this is equivalent to minimizing the quantity | LHS - RHS |. During an optimization process, all the project goals are evaluated numerically and they are used collectively to build an error (objective) function whose value is tried to be minimized. Objectives that involve &quot;non-Equal&quot; logical operators are regarded a &quot;'''Constraints'''&quot;. Unlike goals which lead to minimizable numerical values, constraints are rather conditions that should be met while the error function is being minimized.
To define an objective, open the '''Objectives Dialog''' either by clicking the '''Objectives''' [[ImageFile:/files/images/manuals/emagware/emcube/modules/planar/running-simulations/optimization-defining-design-objectives/objective_icon.png]] button of the '''Simulate Toolbar''', or by selecting '''Menu &gt; Simulate &gt; Objectives...''' from the Menu Bar, or using the keyboard shortcut '''Ctrl+J'''. The objectives list is initially empty. To add a new objective, click the '''Add''' button to open up the '''Add Objective Dialog'''. At the bottom of this dialog, you can see a list of all the available EM.Cube output parameters including both standard and custom output parameters. This list may vary depending on the types of sources and observables that you have already defined in your project. You can enter any mathematical expressions in the two boxes labeled '''Expression 1''' and '''Expression 2'''. The Available Output Parameter List simply helps you remember the syntax of these parameters. You should also select one of the available options in the dropdown list labeled '''Logical Operator'''. The default operator is '''&quot;== (Equal To)&quot;'''. As soon as you finish the definition of an objective, its full logical expression is added to the Objective List. You can always modify the project objectives after they have been created. Select a row in the Objective List and click the '''Edit''' button of the dialog and change the expressions or the logical operator. You can also remove an objective from the list using the '''Delete''' button.
[[ImageFile:/files/images/PMOM151.png]]
Figure 1: EM.Cube's Objectives dialog.
[[ImageFile:/files/images/PMOM150.png]]
Figure 2: Defining a new objective using a list of available output parameters.
Finally, in the section titled &quot;'''Error Function'''&quot; of the Optimization Dialog you build the mathematical form of your objective function. Keep in mind that EM.Cube's optimization is a numerical process. Therefore, you can rarely minimize your error function to zero literally. You need to set a &quot;'''Maximum Error'''&quot; value for the objective function, which terminates the process as &quot;converged&quot; when it is reached. The default value of Maximum Error is 0.01. In two tables labeled '''Goals''' and '''Constraints''', you see a list of all the project objectives that have been split between the two tables according to their types. Many optimization problems involve a single, straightforward goal. Others may involve multiple goals subject to multiple constraints. In those cases, you have assign weights to your goals and constraints. If all of your goals and constraints have the same level of importance, then you assign equal weights to them. You can do this easily by clicking the '''Distribute''' button of the dialog. Or you may assign individual weights manually. However, you have to make sure that all the weight adds up to unity. The objective function of the optimization problem is constructed from the goals and constraints using the specified weights. This can be done in two different ways: as '''Linearly Weighted Goals''' or as '''Mean Square Weighted Goals.''' You set these options from the dropdown list labeled '''Weight Type'''. Once you are satisfied with the choice and definition of your optimization variables, optimization algorithms and goals weights, close the Optimization dialog to return to the Simulation Run dialog, where you can start the planar MoM optimization process by clicking the '''Run''' button.
[[ImageFile:/files/images/PMOM152.png]]
Figure 3: EM.Cube's Optimization dialog.
The radiation pattern of antenna arrays usually has a main beam and several side lobes. Some parameters of interest in such structures include the '''Half Power Beam Width (HPBW)''', '''Maximum Side Lobe Level (SLL)''' and '''First Null Parameters''' such as first null level and first null beam width. To have EM.Cube calculate all such parameters, you must check the relevant boxes in the &quot;Additional Radiation Characteristics&quot; section of the '''Radiation Pattern Dialog'''. These quantities are saved into ASCII data files of similar names with '''.DAT''' file extensions. In particular, you can plot such data files at the end of a sweep simulation.
[[ImageFile:/files/images/PMOM91.png]]
Figure 1: Planar Module's Radiation Pattern dialog.
In a periodic structure, the virtual domain is replaced by a default blue periodic domain that is always centered around the origin of coordinates. Keep in mind that the periodic unit cell must always be centered at the origin of coordinates. The relative position of the structure within this centered unit cell will change the phase of the results.
[[ImageFile:/files/images/PMOM99.png]]
Figure 1: Planar Module's Periodicity Settings dialog.
where &amp;DELTA;x is the primary offset in the X direction (X Spacing) controlled by index m and &amp;DELTA;x' is the secondary offset in the X direction (X Offset) controlled by index n. The meanings of &amp;DELTA;y (Y Spacing) and &amp;DELTA;y' (Y Offset) are similar with the roles of indices m and n interchanged. To illustrate how to use this definition, consider an example of an equilateral triangular grid with side length L as shown in the figure below.
[[ImageFile:/files/images/manuals/emagware/emcube/modules/planar/periodic-planar-structures/regular-vs-offset-periodic-lattices/image121.png]]
Figure 1: Diagram of an equilateral triangular periodic lattice.
As an example, consider the periodic structure in the figure below that shows a metallic screen or wire grid. The unit cell of this structure can be defined as a rectangular aperture in a PEC ground plane (marked as Unit Cell 1). In this case, the rectangle object is defined as a slot trace. Alternatively, you can define a unit cell in the form of a microstrip cross on a metal trace. In the latter case, however, the microstrip cross should extend across the unit cell and connect to the crosses in the neighboring cells in order to provide current continuity.
[[ImageFile:/files/images/manuals/emagware/emcube/modules/planar/periodic-planar-structures/interconnectivity-among-unit-cells/image122.png]]
Figure 1: Modeling a periodic screen using two different types of unit cell.
<tbody>
<tr class="odd">
<td align="left">[[ImageFile:/files/images/manuals/emagware/emcube/modules/planar/periodic-planar-structures/interconnectivity-among-unit-cells/pmom_per3_tn.png]]</td><td align="left">[[ImageFile:/files/images/manuals/emagware/emcube/modules/planar/periodic-planar-structures/interconnectivity-among-unit-cells/pmom_per4_tn.png]]</td>
</tr>
</tbody>
<tbody>
<tr class="odd">
<td align="left">[[ImageFile:/files/images/manuals/emagware/emcube/modules/planar/periodic-planar-structures/interconnectivity-among-unit-cells/pmom_per5_tn.png]]</td><td align="left">[[ImageFile:/files/images/manuals/emagware/emcube/modules/planar/periodic-planar-structures/interconnectivity-among-unit-cells/pmom_per6_tn.png]]</td>
</tr>
</tbody>
In the case of an infinite periodic planar structure, the field equations can be written in the following form:
[[ImageFile:/files/images/PMOM94.png]]
where
[[ImageFile:/files/images/PMOM95(1).png]]
In the above equations, '''J<sub>00</sub>(r)''' and '''M<sub>00</sub>(r)''' are the periodic unit cell's electric and magnetic currents that are repeated everywhere in space on a rectangular lattice with periods S<sub>x</sub> and S<sub>y</sub> along the X and Y directions, respectively. k<sub>x00</sub> and k<sub>y00</sub> are the periodic propagation constants along the X and Y directions, respectively, and they are given by:
[[ImageFile:/files/images/PMOM96(1).png]]
where θ and φ are the beam scan angles in the case of periodic excitation of lumped sources, or they are the spherical angles of incidence in the case of a plane wave source illuminating the periodic structure. Using the infinite summations, one can define periodic dyadic Green's functions in the spectral domain in the following manner:
[[ImageFile:/files/images/PMOM97.png]]
The above doubly infinite periodic Green's functions are said to be expressed in terms of &quot;Floquet Modes&quot;. The exact formulation involves an infinite set of these periodic Floquet modes. During the MoM matrix fill process for a periodic structure, a finite number of Floquet modes are calculated. By default, EM.Cube's planar MoM engine considers M<sub>x</sub> = M<sub>y</sub> = 25. This implies a total of 51 modes along the X direction and a total of 51 modes along the Y direction, or a grand total of 51<sup>2</sup> = 2,601 Floquet modes. You can increase the number of Floquet modes for your project from the Planar MoM Engine Settings Dialog. In the section titled &quot;Periodic Simulation&quot;, you can change the values of '''Number of Floquet Modes''' in the two boxes designated X and Y.
[[ImageFile:/files/images/PMOM98.png]]
Figure 1: Changing the number of Floquet modes from the Planar MoM Engine Settings dialog.
When a periodic structure is excited using a gap or probe source, it acts like an infinite periodic phased array. All the periodic replicas of the unit cell structure are excited. You can even impose a phase progression across the infinite array to steer its beam. You can do this from the property dialog of the gap or probe source. At the bottom of the '''Gap Source Dialog''' or '''Probe Source Dialog''', there is a section titled '''Periodic Beam Scan Angles'''. You can enter desired values for '''Theta''' and '''Phi''' beam scan angles in degrees. The corresponding phase progressions are calculated and applied to the periodic Green's functions:
[[ImageFile:/files/images/PMOM101.png]]
Note that you have to define a finite-sized array factor in the Radiation Pattern dialog. You do this in the '''Impose Array Factor''' section of this dialog. In the case of a periodic structure, when you define a new far field item in the Navigation Tree, the values of '''Element Spacing''' along the X and Y directions are automatically set equal to the value of '''Periodic Lattice Spacing''' along those directions. You have to set the '''Number of Elements''' along the X and Y directions, which are both equal to one initially, representing a single radiator. If you forget to define an array factor, the radiation pattern of the unit cell structure will be displayed, which does not show beam scanning.
[[ImageFile:/files/images/PMOM100.png]]
Figure 1: Setting the periodic scan angles in Planar Module's Gap Source dialog.
[[ImageFile:/files/images/manuals/emagware/emcube/modules/planar/periodic-planar-structures/modeling-periodic-phased-arrays/pmom_per9_tn.png]]
Figure 2: The 3D radiation pattern of a beam-steered periodic printed dipole array.
At the end of the planar MoM simulation of a periodic structure with plane wave excitation, the reflection and transmission coefficients of the structure are calculated and saved into two complex data files called &quot;reflection.CPX&quot; and &quot;transmission.CPX&quot;. These coefficients behave like the S<sub>11</sub> and S<sub>21</sub> parameters of a two-port network. You can think of the upper half-space as Port 1 and the lower half-space as Port 2 of this network. '''As a result, you can run an adaptive sweep of periodic structures with a plane wave source just like projects with gap or probe sources.''' The reflection and transmission (R/T) coefficients can be plotted in EM.Grid on 2D graphs similar to the S parameters. You can plot them from the Navigation Tree. To do so, right click on the '''Periodic Characteristics''' item in the '''Observables''' section of the Navigation Tree and select '''Plot Reflection Coefficients''' or '''Plot Transmission Coefficients'''. The complex data files are also listed in EM.Cube's '''Data Manager''', where you can view or plot them. '''Note that in the absence of any finite traces or embedded objects in the project workspace, EM.Cube computes the reflection and transmission coefficients of the layered background structure of your project.'''
[[ImageFile:/files/images/PMOM102.png]]
Figure 1: A periodic planar layered structure with slot traces excited by a normally incident plane wave source.
The reflection and transmission characteristics of a period surface as functions of the incidence angle are often of great interest. For that purpose, you can run an angular sweep of your periodic structure, where you normally fix the φ angle and sweep the θ angle from 180 to 90 degrees for one-sided surfaces and from 180 to 0 degrees for two-sided surface. To run an angular sweep, open the Planar Module's '''Simulation Run Dialog''' and select the '''Angular Sweep''' option from its '''Simulation Mode''' dropdown list. This enables the '''Settings''' button, which opens up the '''Angle Settings Dialog'''. First, you must choose either Theta or Phi as the '''Sweep Angle'''. Then you can set the '''Start''' and '''End''' values of the selected incidence angle as well as the '''Number of Samples'''. At the end of an angular sweep simulation, you can plot the reflection and transmission coefficients from the Navigation Tree. To do so, right click on the '''Periodic Characteristics''' item in the '''Observables''' section of the Navigation Tree and select '''Plot Reflection Coefficients''' or '''Plot Transmission Coefficients'''. The reflection and transmission coefficients of the structure are saved into two complex data files called &quot;reflection.CPX&quot; and &quot;transmission.CPX&quot;. These data files are also listed in EM.Cube's '''Data Manager''', where you can view or plot them.
[[ImageFile:/files/images/PMOM103.png]]
Figure 1: Planar Module's Angle Settings dialog.
To run an NCCBF simulation, open the '''Simulation Run Dialog''', and then open the'''Planar MoM Engine Settings Dialog'''. In the &quot;'''Finite Array Simulation'''&quot; section of the latter dialog, check the box labeled &quot;'''NCCBF Matrix Compression'''&quot;. This box is unchecked by default. Checking it enables the NCCBF Settings button. Click this button to open the NCCBF Settings Dialog. The dialog features a &quot;List of Unit Cells Used for NCCBF Matrix Compression&quot;. This list initially empty. To add unit cells to it, click the '''Add''' button of the dialog to open the &quot;'''Add Unit Cell Dialog'''&quot;. This dialog has two tables: Available Unit Cells on the left side and Associated Unit Cells on the right side. The left table shows a list of all the available, legitimate array objects in your project workspace. Remember that for an array object to be eligible for NCCBF compression, it has to stand alone on a dedicated trace or embedded object set, whichever applies. Select an array object from the left table and use the right arrow button (--&gt;) to move it to the right table to associate it with the new NCCBF unit cell. You can associate more than one array object with the same NCCBF unit cell. In this case, the parent elements of all the associated array objects collectively constitute the NCCBF unit cell. The NCCBF unit cell is the planar structure that is analyzed separately, first, as a stand-alone isolated element, and next, as a periodic unit cell, to generate the NCCBF entire-domain basis function solutions. It is therefore very important that the array objects be positioned carefully with respect to the origin of coordinated and relative to one another to form the correct NCCBF unit cell. Once you move one or more array object names to the &quot;Associated&quot; table on the right, you can move them back to the &quot;Available&quot; table on the left using the left arrow (&lt;--) button. You can also instruct EM.Cube to use only the isolated element solution by unchecking the box labeled &quot;'''Include Periodic Solution of Unit Cell'''&quot;. Once you are satisfied with the definition of your NCCBF unit cell, close the dialog to return to the NCCBF Settings dialog. Here you see the name of the newly added NCCBF unit cell in the list along with the Number of Solutions and the names of all the associated array objects for each NCCBF unit cell. You can modify each row using the '''Edit''' button or remove it from the list using the '''Delete''' button. Close the NCCBF Settings dialog to return to the Planar MoM Engine Settings dialog, and close the latter to return to the Simulation Run dialog, where you can now start the NCCBF simulation by clicking the '''Run''' button.
[[ImageFile:/files/images/PMOM163.png]]
Figure 1: Planar MoM's NCCBF Settings dialog.
[[ImageFile:/files/images/PMOM162.png]]
Figure 2: Planar MoM's &quot;Add Unit Cell&quot; dialog.
To remedy the limitation that stand-alone array objects on dedicated traces cannot be connected to anything and therefore would severely limit the geometrical complexity of individual elements, EM.Cube allows you to build arrays of composite objects. A &quot;'''Composite Object'''&quot; in EM.Cube is a group of objects that are tied together only for the purpose of organization. As a result, the mesh of a composite object is the same as that of its constituent member objects (including any possible connections), had they not been grouped together. In a similar manner to simpler array objects, if a composite array stands alone in a dedicated trace or embedded object set, then only the parent composite object is meshed, and its mesh is copied and cloned for all the other composite elements of the array object. Furthermore, all the unique domain-pair interactions are identified during the matrix fill process, and lead to a major saving in computation time. '''Note that you can assign gap or probe sources to composite arrays in a similar way as you excite simpler array objects.''' If your planar structure involves a composite array, whose composite parent element has constituent members: Object1, Object2, ..., then the Gap Source dialog or Probe Source dialog will include the names of all the eligible constituent members (rectangle strips or PEC via objects) that can host the respective source types. '''Complex composite arrays hosting gap or probe source arrays or illuminated by plane wave sources are great candidates for NCCBF simulation.'''
[[ImageFile:/files/images/PMOM165.png]]
Figure 1: Assigning gap sources to the elements of a composite array object.
Administrator
613
edits