=== A Note on the Junction Mesh ===
The integrity of the planar mesh and its continuity in the junction areas where adjacent objects are connected directly affects the simulation results. The most important rule of object connections in EM.Picasso is that only objects belonging to the same trace can be connected to one another. For example, if If two objects reside belong to the same trace (residing on the same Z-plane and geometrically have a common edge which you can clearly see in the project workspace, but organizationally they belong to two different metal traces, then the bridge basis functions will not be generated between them, and the simulation engine will see them disconnected. If two objects belong to the same trace ) and have a common overlap area, [[EM.Picasso]] first merges the two objects using the "Boolean Union" operation and converts them into a single object for the purpose of meshing. The EM.Picasso's hybrid planar mesh of "unioned" areas is usually made up of triangular cells. generator has some additional rules:
When two planar objects belonging to the same trace are connected via a common edge, it is critical to generate a consistent mesh at the connection area and properly transition and merge the meshes of the individual objects. [[EM.Cube]]'s triangular planar mesh generator simply "unions" the two objects and generates a connected mesh. [[EM.Cube]]'s hybrid planar mesh generator, however, behaves differently when it comes to the connection between rectangular objects. The rule in this case is the following:Â * If the two connected rectangular objects have the same side dimensions along the common linear edge with perfect alignment, a rectangular bridge junction mesh is produced.* If the two connected rectangular objects have different side dimensions along the common linear edge or have edge offset, a set of triangular cells is generated along the edge of the object with the large side.
* Rectangular objects that contain gap source or lumped elements, always have a rectangular mesh around the gap area.
If an embedded object like an interconnect via is located under or above a metallic trace or connected from both top and bottom, it is critical to create mesh continuity between the embedded object and its connected metallic traces. In other words, the generated mesh must ensure current continuity between the vertical volume currents and horizontal surface currents. EM.Picassoâs planar mesh generator automatically handles situations of this kind and generates all the required connection meshes. When the height of an embedded object is small (as should typically be under the 2.5-D assumption), one prismatic cell is placed across the object along the Z-axis. Long PEC vias with a very small radius do also satisfy the 2.5-D assumption. In this case, the long via objects are discretized further along the Z direction and generate multiple stacked cells. Several prismatic cells along the Z-axis may increase the simulation time drastically. This is due to the fact that the host layer is effectively subdivided into a number of sub-layers and the stacked cells are treated as stacked vias embedded inside these sub-layers. As a result, the simulation engine needs to compute all the dyadic Greenâs functions accounting for the interactions between all such sub-layers.Â
<table>
</table>
[[Image:PMOM31.png|thumb|400px|The Planar Mesh Settings dialog.]]
=== Generating, Viewing & Customizing a Planar Mesh ===
Â
The planar MoM mesh generation process involves three steps:
Â
# Setting the mesh properties
# Creating and viewing the mesh
# Verifying the mesh for integrity
Â
[[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''' [[File:mesh_tool.png]] button of the '''Simulate Toolbar''' or by selecting '''Menu > Simulate > Discretization > 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 "Mesh View" 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''' [[File: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.CubePicasso]] to create a new mesh from the ground up by selecting '''Menu > Simulate > Discretization > Regenerate Mesh''' or by right clicking on the '''Planar Mesh''' item in the '''Discretization''' section of the Navigation Tree navigation tree and selecting '''Regenerate''' from the contextual menu.
You can change the settings of the planar mesh including the mesh type and density from the planar 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''' [[File:mesh_settings.png]] button of the '''Simulate Toolbar''' or select '''Menu > Simulate > Discretization > 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 "Cell Edge Length" 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. [[File:PMOM31.png]] The Planar Mesh Settings dialog.
=== Refining the Planar Mesh Locally ===
It is very important to apply the right mesh density to capture all the geometrical details of your planar structure. This is especially true for "field discontinuity" regions such as junction areas between objects of different side dimensions, where larger current concentrations are usually observed at sharp corners, or at the connection areas between metallic traces and PEC vias, as well as the areas around gap sources and lumped elements, as these create voltage or current discontinuities. For large planar structures, using a higher mesh density may not always be a practical option since it will quickly lead to a very large MoM matrix and thus growing the size of the numerical problem. Sometimes a slightly non-uniform mesh still produces stable numerical resultsEM. In other words, you may choose to increase Picasso provides several ways of controlling the mesh resolution around the discontinuity regions onlyof a planar structure locally.
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 "'''Refine Mesh at Junctions'''", which increases the mesh resolution at the connection area between rectangular objects. Or you can check the check box labeled "'''Refine Mesh at Gap Locations'''", 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 "'''Refine Mesh at Vias'''", 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.CubePicasso]] typically doubles the mesh resolution locally at the discontinuity areas when the respective boxes are checked.
[[Image:PMOM41.png|thumb|600px|Refining the planar mesh at the via and surrounding area.]] You should always visually inspect [[EM.Cube]]Picasso's default generated mesh to see if the current mesh settings have produced an acceptable mesh. You may often need to change the mesh density or other [[parameters]] and regenerate the mesh. The Planar Mesh Settings dialog gives a few more options for customizing your planar mesh. As mentioned earlier, highly incongruous meshes should always be avoided. Sometimes [[EM.Cube]]Picasso's default mesh may contain very narrow triangular cells due to very small angles between two edges. In some rare cases, extremely small triangular cells may be generated, whose area is a small fraction of the average mesh cell. These cases typically happen at the junctions and other discontinuity regions or at the boundary of highly irregular geometries with extremely fine details. In such cases, increasing or decreasing the mesh density by one or few cells per effective wavelength often resolves that problem and eliminates those defective cells. Nonetheless, [[EM.Cube]]Picasso's planar mesh generator offers an option to identify the defective triangular cells and either delete them or cure them. By curing we mean removing a narrow triangular cell and merging its two closely spaced nodes to fill the crack left behind. EM.Picasso 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 "'''Remove Defective Triangular Cells'''" in the Planar Mesh Settings dialog. You can also change the value of the minimum allowable cell angle.
[[File:PMOM44.png|400px]] [[File:PMOM42.png|400px]]
Deleting or curing defective triangular cells.
[[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 "'''Remove Defective Triangular Cells'''" in the Planar Mesh Settings dialog. You can also change the value of the minimum allowable cell angle.
[[File:PMOM43(1).png]]
Setting the minimum allowable angle for non-defective triangular cells.
[[EM.Cube]]'s [[Planar Module]] provides different ways of controlling the mesh of a planar structure locally. Earlier you saw how to increase the mesh resolution at the discontinuity regions without affecting the mesh of uniform or regular areas of a planar structure. Another way of local mesh control is to lock the mesh density of certain traces or object sets. The mesh density that you specify in the Planar Mesh Settings dialog is a global parameter and applies to all the traces and embedded object sets in your project. However, you can lock the mesh of individual PEC, PMC and conductive sheet traces or embedded objects sets. In that case, the locked mesh density takes precedence over the global density. Note that locking mesh of object groups, in principle, is different than refining the mesh at discontinuities. In the latter case, the mesh of connection areas is affected. However, objects belonging to different traces cannot be connected to one another. Therefore, locking mesh can be useful primarily for isolated object groups that may require a higher (or lower) mesh resolution. 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.
[[File:PMOM45.png]]