</table>
==Mesh GenerationRunning the Wire MoM Simulation==
[[Image:WMOM8MOMTUT3 13.png|thumb|400px350px|The Mesh Settings dialog.]][[EM.Cube]] has several types of mesh generators that are used to discretize the physical structure for the numerical solution of [[MaxwellLibera's Equations|Maxwell's equations]]. [[EM.Cube]]'s [[MoM3D Module]] has two mesh generators: one for the Run dialog with Wire MoM solver and the other for the Surface MoM solverSingle-Frequency Analysis selected. The Wire MoM mesh generator discretizes line objects into a number of linear cells. It converts [[Curve Objects|curve objects]] first into polylines and then subdivides each side of At this time, your project is ready for the resulting polylines. The Wire MoM mesh generator creates a wireframe version simulation of surface and [[Solid Objects|solid objects]]. The wireframe your dipole antenna structure indeed consists of a set of interconnected wire segments. The current continuity is enforced at the joint shared among several interconnected For wire segments. The Surface MoM mesh generatorstructures, on the other hand, creates a triangular surface mesh of surface and [[Solid Objects|solid objects]]EM. It ignores any line or [[Curve Objects|curve objectsLibera]]. You can control the mesh resolution in two ways. The first method is to set the "Mesh Density" in the form of the number of cells per wavelength. In this case, your mesh will be frequency dependent. For example, if you set the mesh density to 10 cells per wavelength, the number of cells on generates a line object of fixed length will increase as the frequency increases. At an operational frequency of 1GHz, the wavelength is 300mm. Therefore, with this wireframe mesh density, you will have a total of 5 cells across your 150mm long dipole antenna. Now consider an operational frequency of 2GHz with a corresponding free-space wavelength of 150mm. With the same mesh density, It automatically detects whether your dipole antenna will have 10 cells at 2GHz. The second method of controlling the mesh is by setting physical structure requires a fixed "Edge Length" for the surface mesh cells. The edge length is set in the project units. A mesh of this kind will be frequency-independent. By default, the "Mesh Resolution" is set in terms of "Density" with or a default value of 10 cells per wavelength. The wireframe mesh properties can be accessed by clicking the <b>Mesh Settings</b> [[Image:fdtd_meshsettings.png]] button of Open the Simulate Toolbar (or using the keyboard shortcut <b>Ctrl+G</b> or via the menu <b>Simulate → Discretization → Mesh Settings</b>). For this tutorial, set Dialog and change the mesh type to "Wire MoM value of '''Mesh", keep the default "Density" option and set its value ''' to 30 cells per wavelength. In this case, at 1GHz your dipole antenna will have 15 cells across it.
{{Note|A high mesh density is recommended for resonant structures and for better visualization of current distributions.}}
To view the mesh, click Click the <b>Show/Generate MeshRun</b> [[Image:fdtd_meshshowfdtd_runb.png]] button Button of the Simulate Toolbar (or alternatively use to open up the keyboard shortcut <b>Ctrl+M</b>)Simulation Run Dialog. For this particular project, You will see that the mesh view does not reveal much because the mesh of a vertical line object conforms "Simulation Engine Type" is automatically set to wire itself. In general, the mesh view shows how the simulation engine sees your physical structure"Wire MoM Solver".
==Defining Project Observables==Or alternatively, use the keyboard shortcut <b>Ctrl+R</b>, or the menu <b>Simulate → Run…</b> The simplest simulation mode in [[EM.Cube]] is “Analysis”. In this mode, your physical structure is taken “As Is” and its mesh is passed to the Wire MoM simulation engine, along with the necessary information regarding the sources and observables. Since MoM simulations are frequency-domain, first you will run a "Single-Frequency Analysis". Select this option from the drop-down list labeled "Simulation Mode". Make sure you have selected the "Wire MoM" option for "Engine Type".
Project observables are output quantities that you would like to compute at the end of an FDTD Run a MoM simulationof your dipole antenna. By defaultOnce the simulation is complete, the Wire MoM solver does not generate any output data unless you define one or more project observables before you start a simulation. window will report the calculated S, Z and Y parameters:
<b><u>Current Distribution</u></b> S11: 0.291310 +0.231841j
Current distribution observables are used to visualize the linear currents on the wires or wireframe structures. To define a current distribution observable, right click on the <b>Current Distributions</b> item in the “Observables” section of the Navigation Tree and select <b>Insert New Observable…</b> This opens up the Current Distribution Dialog. Keep all the default options and close the dialog. A new entry CD_1 is added to the Navigation TreeS11(dB): -8.581999
<b><u>Radiation Patterns</u></b>Y11: 0.010009 -0.005388j
To plot the radiation patterns of a radiating structure, you need to define a far field observableZ11: 77. To define a far field observable, right click on the <b>Far Fields</b> item in the <b>Observables</b> section of the Navigation Tree, and select <b>Insert New Radiation Pattern…</b> In general, you can accept the default values, unless a special case is being analyzed464068 +41. 698638j
<b><u>Port Definition</u></b>
For calculating the port characteristics of the dipole antenna such as S [[parameters]] and input impedance, you need to set up a port. To do so, right click on <b>Port Definitions</b> under the <b>Observables</b> section of the Navigation Tree, and select <b>Insert New Port Definition…</b> By default, since you have only one source, it is assigned as Port 1. Accept the default values for PORT_1 and click <b>OK</b> to accept these values.
<table>
<tr>
<td>
[[Image:WMOM5.png|thumb|350px|The Current Distribution dialog.]]
</td>
<td>
[[Image:WMOM6.png|thumb|350px|The Far Field dialog.]]
</td>
<td>
[[Image:WMOM7.png|thumb|350px|The Port Definition dialog.]]
</td>
</tr>
</table>
==Running the Wire MoM Simulation==
At this time, your project is ready for the Wire MoM simulation of your dipole antenna structure. Click the <b>Run</b> [[Image:fdtd_runb.png]] Button of the Simulate Toolbar to open up the Simulation Run Dialog. Or alternatively, use the keyboard shortcut <b>Ctrl+R</b>, or the menu <b>Simulate → Run…</b> The simplest simulation mode in [[EM.Cube]] is “Analysis”. In this mode, your physical structure is taken “As Is” and its mesh is passed to the Wire MoM simulation engine, along with the necessary information regarding the sources and observables. Since MoM simulations are frequency-domain, first you will run a "Single-Frequency Analysis". Select this option from the drop-down list labeled "Simulation Mode". Make sure you have selected the "Wire MoM" option for "Engine Type".
To run the simulation, click the <b>Run</b> button of the Simulation Run Dialog. A separate window pops up displaying messages from the simulation engine. Once the simulation is completed, you will see the values of S<sub>11</sub>, Z<sub>11</sub> and Y<sub>11</sub> reported in the Message [[Windows]]. In this case, you will get S<sub>11</sub> = 0.291310 + 0.231841j, Z<sub>11</sub> = 77.464068 + 41.698638j Ohms, and Y<sub>11</sub> = 0.010009 - 0.005388j S. You can close the message window and return to the project workspace. The Navigation Tree is now populated with simulation results, most notably under Current Distributions and Far Fields nodes.
<table>
<tr>
<td>
[[Image:WMOM9.png|thumb|350px|The MoM3D Module's Run dialog with Wire MoM solver and Single-Frequency Analysis selected.]]
</td>
<td>
[[Image:WMOM10.png|thumb|400px|The Output Window dialog.]]
</td>
</tr>
</table>
S11: 0.291310 +0.231841j
S11(dB): -8.581999
Y11: 0.010009 -0.005388j
Z11: 77.464068 +41.698638j
==Viewing the Simulation Results==