Difference between revisions of "EM.Libera Tutorial Lesson 3: Analyzing Wire Antennas"

From Emagtech Wiki
Jump to: navigation, search
(Defining the Gap Source and Project Observables)
(Blanked the page)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{projectinfo|Tutorial| Analyzing Wire Antennas |WMOM12.png|In this project, wire dipole and loop antennas are modeled and analyzed.|
 
  
*[[CubeCAD]]
 
*Visualization
 
*Gap Sources
 
*S-[[Parameters]]
 
*Far Fields
 
|All versions|{{download|http://www.emagtech.com|EM.Libera Lesson 3|[[EM.Cube]] 15.9}} }}
 
 
===What You Will Learn===
 
 
In this tutorial you will learn how to build and analyze wire structures. You will use a new type of source called gap source to excite your wire antennas. Beside current distribution and radiation pattern, you will also compute the port characteristics of your antennas.
 
 
==Getting Started==
 
 
Open the [[EM.Cube]] application and switch to [[EM.Libera]]. Start a new project with the following parameters:
 
 
<div class="noprint" style="float:left;margin-right:10px">
 
{| border="1" class="wikitable"
 
|+ Starting Parameters
 
|-
 
! Name
 
| MoM3DLesson3
 
|-
 
! Length Units
 
| Millimeters
 
|-
 
! Frequency Units
 
| GHz
 
|-
 
! Center Frequency
 
| 1GHz
 
|-
 
! Bandwidth
 
| 1GHz
 
|}
 
</div>
 
 
<div class="noprint" style="clear:both"></div>
 
 
==Building a Wire Dipole Antenna==
 
 
Create a new "Thin Wire" group in the navigation tree. Accept all the default settings including the default wire radius of 0.3mm.
 
 
<table>
 
<tr>
 
<td>
 
[[Image:MOMTUT3 6.png|thumb|400px|[[EM.Libera]]'s Thin Wire dialog.]]
 
</td>
 
</tr>
 
</table>
 
 
Select the '''Line Tool''' from the Object Toolbar or use the keyboard shortcut {{key|F3}}, or select the menu item <b>Object > Curve > Line</b>. 
 
 
<table>
 
<tr>
 
<td>
 
[[Image:MOMTUT3 5.png|thumb|750px|Selecting the Line or Circle tools from [[EM.Libera]]'s Object Toolbar.]]
 
</td>
 
</tr>
 
</table>
 
 
With the line tool selected, click the origin (0,0,0), and drag the mouse to start drawing a line. While still in “Draw Mode”, press and hold the {{key|Alt}} button of the keyboard. This forces the drawn line to be constrained along the alternate Z-axis (normal to the default XY plane on which the mouse pointer moves). Observe the changing '''Length''' value in the dialog box as you drag the mouse back and forth. When the length reaches a value of 150 units, left-click to “lock-in” the value. This will create a half-wave dipole antenna at an operating frequency of 1GHz (&lambda;<sub>0</sub> = 300mm).
 
 
<table>
 
<tr>
 
<td>
 
[[Image:MOMTUT3 4.png|thumb|400px|The Line object's property dialog.]]
 
</td>
 
</tr>
 
</table>
 
 
==Defining the Gap Source and Project Observables ==
 
 
A dipole antenna can be excited using a gap source, which is the simplest source type in [[EM.Libera]]. A gap source can be placed on a line object (line gap), or on a rectangle strip object (strip gap). The line gap is intended for Wire MoM simulation, while the strip gap is intended for Surface MoM simulation. A line gap source creates an infinitesimal gap on the line and connects a voltage source across the gap. To define a gap source, right-click on the <b>Gap Sources</b> item in the “Sources” section of the navigation tree, and select <b>Insert New Line Gap Source…</b> The Line Gap Source Dialog opens up.
 
 
The dropdown list labeled <i>Line Object</i> displays all the line objects in the project workspace. In this project, there is only one line object, which is selected by default. A new gap source is placed at the center of the host line object by default. The location of the source can be changed via the '''Offset''' parameter of the dialog. Keep the default value for this tutorial, as we want to test a center-fed dipole. Your gap source has a default <b>Amplitude</b> of 1V and a default zero <b>Phase</b>.
 
 
<table>
 
<tr>
 
<td>
 
[[Image:MOMTUT3 7.png|thumb|450px|The Gap Source's property dialog.]]
 
</td>
 
</tr>
 
</table>
 
 
Define a default current distribution observable. Also, define a far-field radiation pattern observable. Right-click on the '''Far Fields''' item in the navigation tree and select '''Insert New Radiation Pattern...''' from the contextual menu. The Radiation Pattern Dialog opens up. Accept all the default settings including the default 5&deg; values of "Angle Increment" for both Theta and Phi.
 
 
<table>
 
<tr>
 
<td>
 
[[Image:MOMTUT3 8.png|thumb|450px|The far-field Radiation Pattern dialog.]]
 
</td>
 
</tr>
 
</table>
 
 
Finally. define a port for your dipole antenna to compute its port characteristics like the scattering (S) and impedance (Z) parameters. Right-click on the '''Port Definitions''' item in the navigation tree and select '''Insert New Port Definition...''' from the contextual menu. The Port Definition Dialog opens up. Since there is only one source present in you project workspace, it is associated with Port 1. Accept the default 50&Omega; port impedance and close the dialog.
 
 
<table>
 
<tr>
 
<td>
 
[[Image:MOMTUT3 9.png|thumb|450px|The Port Definition dialog.]]
 
</td>
 
</tr>
 
</table>
 
 
Your physical structure at this point must look like the figure below:
 
 
<table>
 
<tr>
 
<td>
 
[[Image:MOMTUT3 10.png|thumb|300px|The geometry of the wire dipole antenna with its center-fed gap source.]]
 
</td>
 
</tr>
 
</table>
 
 
==Mesh Generation==
 
 
[[Image:WMOM8.png|thumb|400px|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 [[Maxwell's Equations|Maxwell's equations]]. [[EM.Cube]]'s [[MoM3D Module]] has two mesh generators: one for the Wire MoM solver and the other for the Surface MoM solver. 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 the resulting polylines. The Wire MoM mesh generator creates a wireframe version of surface and [[Solid Objects|solid objects]]. The wireframe structure indeed consists of a set of interconnected wire segments. The current continuity is enforced at the joint shared among several interconnected wire segments. The Surface MoM mesh generator, on the other hand, creates a triangular surface mesh of surface and [[Solid Objects|solid objects]]. It ignores any line or [[Curve Objects|curve objects]]. 
 
 
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 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 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, your dipole antenna will have 10 cells at 2GHz. The second method of controlling the mesh is by setting a fixed "Edge Length" for the 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 a default value of 10 cells per wavelength.
 
 
 
The mesh properties can be accessed by clicking the <b>Mesh Settings</b> [[Image:fdtd_meshsettings.png]] button of the Simulate Toolbar (or using the keyboard shortcut <b>Ctrl+G</b> or via the menu <b>Simulate &rarr; Discretization &rarr; Mesh Settings</b>). For this tutorial, set the mesh type to "Wire MoM 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 the <b>Show/Generate Mesh</b> [[Image:fdtd_meshshow.png]] button of the Simulate Toolbar (or alternatively use the keyboard shortcut <b>Ctrl+M</b>). For this particular project, the mesh view does not reveal much because the mesh of a vertical line object conforms to wire itself. In general, the mesh view shows how the simulation engine sees your physical structure.
 
 
==Defining Project Observables==
 
 
Project observables are output quantities that you would like to compute at the end of an FDTD simulation. By default, the Wire MoM solver does not generate any output data unless you define one or more project observables before you start a simulation.
 
 
<b><u>Current Distribution</u></b>
 
 
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 Tree.
 
 
<b><u>Radiation Patterns</u></b>
 
 
To plot the radiation patterns of a radiating structure, you need to define a far field observable. 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 analyzed. 
 
 
<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 &rarr; 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==
 
 
[[EM.Cube]]’s computational modules usually generate two types of data: 2D and 3D. Examples of 2D data are probe fields, S/Z/Y [[parameters]] and polar radiation patterns. 2D data are graphed in <b>EM.Grid</b>. Examples of 3D data are near field distributions and 3D radiation patterns. 3D data are visualized in [[EM.Cube]]’s project workspace and the plots are usually overlaid on the physical structure.
 
 
First, you will visualize the current distribution on the dipole. The "Current Distribution" section of the Navigation Tree plots both electric currents (J) and magnetic currents (M). The Wire MoM solver computes electric currents only as it can only handle PEC objects. The Surface MoM solver can handle both PEC and dielectric objects. In the case of dielectric objects, both surface electric currents and surface magnetic currents are computed. Each current distribution observable contains a list of twelve amplitude and phase plots for all the six current components: J<sub>x</sub>, J<sub>y</sub>, J<sub>z</sub>, and M<sub>x</sub>, M<sub>y</sub>, M<sub>z</sub>. There are also two additional plots for the magnitude of total electric current and total magnetic current. Click on any of these plots to display them in the project workspace. You can use the standard view operations such as dynamic zoom, rotate view, pan view, etc. to better examine these plots.
 
 
The Far Fields section of the Navigation Tree contains three different 3D radiation pattern plots: the Theta component of the far‐zone electric field, the Phi component of the far‐zone electric field, and the Total far field. You will notice that the Far Field plots are all centered at the origin of coordinates. This is due to the fact that the radiation patterns are calculated in a standard spherical coordinate system center at (0, 0 , 0). Once you are in a near field or far field visualization view, you can always go back to the Normal view mode of the project workspace using the keyboard’s <b>Esc Key</b>.
 
 
<table>
 
<tr>
 
<td>
 
[[Image:WMOM11.png|thumb|400px|The total current distribution intensity plot.]]
 
</td>
 
<td>
 
[[Image:WMOM12.png|thumb|400px|The total 3D radiation pattern plot.]]
 
</td>
 
</tr>
 
</table>
 
 
[[Image:WMOM15.png|thumb|400px|right|EM.Cube's Data Manager showing a list of complex data files available for plotting in EM.Grid]]
 
 
Besides 3D visualization of the radiation patterns, you can plot 2D graphs of the patterns at certain plane cuts. A list of all the 2D output data files generated at the end of a simulation can be viewed in [[EM.Cube]]’s Data Manager. To open this dialog, click the <b>Data Manager</b> [[Image:fdtd_datamanagerb.png]] button of Simulate Toolbar, or use the keyboard shortcut <b>Ctrl+D</b>, or access the menu <b>Simulate &rarr; Data Manager</b>, or right click on the Data Manager item in the “Observables” section of the Navigation Tree and select <b>Open Data Manager…</b>
 
 
The 2D radiation patterns can be plotted as both Cartesian and polar graphs. Open up the Data Manager dialog and spot Cartesian pattern data files with a “.DAT” file extension as well as the polar (angular) data files with a “.ANG” file extension. The figure below shows the Cartesian and polar radiation pattern plots in the YZ plane cut. Besides the three principal XY, YZ and ZX plane cuts, there are also data files for one additional user defined Phi‐plane cut, which by default is calculated at &phi; = 45<sup>o</sup>.
 
 
<table>
 
<tr>
 
<td>
 
[[Image:WMOM12A.png|thumb|400px|The 2D Cartesian radiation pattern plot in the YZ plane cut.]]
 
</td>
 
<td>
 
[[Image:WMOM12B.png|thumb|400px|The 2D polar radiation pattern plot in the YZ plane cut.]]
 
</td>
 
</tr>
 
</table>
 
 
==Running a Uniform Frequency Sweep==
 
 
[[Image:WMOM13.png|thumb|350px|The MoM3D Module's Run dialog with Wire MoM solver and Frequency Sweep selected.]]
 
To examine the frequency response of the dipole antenna, that is its port characteristics as a functions of frequency, you need to perform a frequency sweep of our structure.
 
Click the <b>Run</b> [[Image:fdtd_runb.png]] Button of the Simulate Toolbar to open up the Simultion Run Dialog. Select the "Frequency Sweep" option from the drop-down list labeled "Simulation Mode". <u>Make sure you have selected the "Wire MoM" option for "Engine Type"</u>. Then, click on the <b>Settings</b> button next to the Simulation Mode drop-down list. This opens up the Frequency Settings dialog.
 
 
At the top you can set the Start and End frequencies for your sweep. Since your project's center frequency is 1GHz and the bandwidth is 1GHz, too, the default values of the start and end frequencies are set to 0.5GHz and 1.5GHz. For "Frequency Sweep Type", select the "Uniform" option. Set the "Number of Samples" to 11. This will sweep the frequency by setting the operational frequency of the project to 0.5GHz, 0.6GHz, ..., 1.4GHz, 1.5GHz.   
 
 
To start the sweep simulation, click the <b>Run</b> button of the Simulation Run Dialog. The message window pops up and reports the calculated port characteristics as the simulation proceeds. Close the window at the end of the sweep simulation and return to the project workspace. 
 
 
To examine the port characteristics of the dipole antenna, open up the Data Manager again. The S/Z/Y [[parameters]] are written into complex data files with a “.CPX” file extension. To graph the S<sub>11</sub> and Z<sub>11</sub> [[parameters]], select the files “S11_Sweep.CPX” and “Z11_Sweep.CPX”. You can view the contents of the two files using the <b>View</b> button of Data Manager. To plot them in EM.Grid, click the <b>Plot</b> button of the dialog. By default, the S [[parameters]] are plotted on magnitude/phase Cartesian graphs, while the Z and Y [[parameters]] are plotted on real/imaginary Cartesian graphs.
 
 
<table>
 
<tr>
 
<td>
 
[[Image:WMOM14.png|thumb|350px|The Frequency Sweep Settings dialog with the Uniform Sweep option selected.]]
 
</td>
 
<td>
 
[[Image:WMOM16.png|thumb|350px|Plot of Magnitude and Phase of S<sub>11</sub> vs. frequency in EM.Grid.]]
 
</td>
 
<td>
 
[[Image:WMOM17.png|thumb|350px|Plot of Magnitude and Phase of Z<sub>11</sub> vs. frequency in EM.Grid.]]
 
</td>
 
</tr>
 
</table>
 
 
==Running an Adaptive Frequency Sweep==
 
 
In the previous part, you saw a plot of the S<sub>11</sub> parameter and noted that it has a resonant dip at 1GHz. However, since you swept the frequency every 100MHz, the plot was rather choppy. In a uniform frequency sweep, the calculated values are simply connected to each other (linearly interpolated) to produce the S<sub>11</sub> graph. If you prefer a smooth graph, [[EM.Cube]] offers a second frequency sweep type called "Adaptive Sweep". 
 
 
Click the <b>Run</b> [[Image:fdtd_runb.png]] Button of the Simulate Toolbar to open up the Simultion Run Dialog. Select the "Frequency Sweep" option from the drop-down list labeled "Simulation Mode" and open up the Frequency Settings dialog. Set the Frequency Sweep Type to Adaptive and accept its default values. Start the sweep simulation by clicking the <b>Run</b> button of the Simulation Run Dialog. During an adaptive simulation, the frequency samples are chosen by [[EM.Cube]] in an adaptive manner to capture the special features of the frequency response. Rational approximation of the computed samples are utilized to generate smooth curves of the port characteristics. During the adaptive sweep simulation, the program may pop up a warning that the convergence criterion has not be achieved during the first round, and ask if you would like to continue the sweep. Instruct to continue until convergence is achieved and the sweep completes successfully.   
 
 
Open up the Data Manager again. At the end of an adaptive sweep, the originally computed S/Z/Y [[parameters]] are written into the complex data files “S11.CPX”, “Z11.CPX” and “Y11.CPX”, while the rationally interpolated port characteristics (the resulting smooth curves) are written into the complex data files “S11_RationalFit.CPX”, “Z11_RationalFit.CPX” and “Y11_RationalFit.CPX”. Select “S11_RationalFit.CPX” and plot it in EM.Grid. As shown in the figure below, the rational approximation of S<sub>11</sub> thus calculated is quite smooth and can adequately capture its resonance behavior around 1GHz. 
 
 
<table>
 
<tr>
 
<td>
 
[[Image:WMOM18.png|thumb|350px|The Frequency Sweep Settings dialog with the Adaptive Sweep option selected.]]
 
</td>
 
<td>
 
[[Image:WMOM19.png|thumb|350px|Plot of Magnitude and Phase of S<sub>11</sub> vs. frequency in EM.Grid.]]
 
</td>
 
</tr>
 
</table>
 
 
{{EMCUBE directory}}
 
 
[[EM.Cube  | Back to EM.Cube Wiki Main Page]]
 

Latest revision as of 03:30, 10 November 2015