Difference between revisions of "EM.Tempo Tutorial Lesson 1: Analyzing A Center-Fed Resonant Dipole Antenna"
(11 intermediate revisions by the same user not shown) | |||
Line 20: | Line 20: | ||
[[Image:Back_icon.png|30px]] '''[[EM.Cube#EM.Tempo_Documentation | Back to EM.Tempo Tutorial Gateway]]''' | [[Image:Back_icon.png|30px]] '''[[EM.Cube#EM.Tempo_Documentation | Back to EM.Tempo Tutorial Gateway]]''' | ||
− | [[Image:Download2x.png|30px]] ''' | + | [[Image:Download2x.png|30px]] '''[http://www.emagtech.com/downloads/ProjectRepo/EMTempo_Lesson1.zip Download projects related to this tutorial lesson]''' |
== Getting Started == | == Getting Started == | ||
Line 93: | Line 93: | ||
== Examining the Length of the Dipole == | == Examining the Length of the Dipole == | ||
− | The geometry of the dipole antenna created by the wizard is fully parameterized. The objective of this tutorial lesson is to teach the basics of running a simulation rather than parameterizing a geometrical construction. Therefore, we will not get into the details of defining variables at this point. Note that at the center frequency f<sub>c</sub> = 1GHz, the operating wavelength is: | + | The geometry of the dipole antenna created by the wizard is fully parameterized. The objective of this tutorial lesson is to teach the basics of running a simulation rather than parameterizing a geometrical construction. Therefore, we will not get into the details of defining variables at this point. Note that at the center frequency <i>f<sub>c</sub></i> = 1GHz, the operating wavelength is: |
<math> \lambda_0 = \frac{c}{f} = \frac{3\times 10^8}{1 \times 10^9} = 0.3m = 300mm </math> | <math> \lambda_0 = \frac{c}{f} = \frac{3\times 10^8}{1 \times 10^9} = 0.3m = 300mm </math> | ||
Line 137: | Line 137: | ||
== Examining the FDTD Mesh == | == Examining the FDTD Mesh == | ||
− | [[EM.Tempo]] generates a “staircase” Yee mesh of your physical structure. To be able to capture the details of your dipole's very fine cylindrical arms, the mesh should have adequate resolution. [[EM.Tempo]]’s default “Adaptive” FDTD mesh generator exactly does that. 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 {{key|Ctrl+M}}. The resolution of the mesh is determined by its '''Mesh Density''' expressed in effective wavelength. EM.Tempo's default mesh density | + | [[EM.Tempo]] generates a “staircase” Yee mesh of your physical structure. To be able to capture the details of your dipole's very fine cylindrical arms, the mesh should have adequate resolution. [[EM.Tempo]]’s default “Adaptive” FDTD mesh generator exactly does that. 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 {{key|Ctrl+M}}. The resolution of the mesh is determined by its '''Mesh Density''' expressed in effective wavelength. EM.Tempo's default mesh density is 20 cells/λ<sub>eff</sub>. However, the wizard automatically sets the mesh density to 50 cells/λ<sub>eff</sub> for this particular structure. Open the FDTD Mesh Settings dialog by clicking the <b>Mesh Settings</b> [[Image:fdtd_meshsettings.png]] button of Simulate Toolbar or using the keyboard shortcut {{key|Ctrl+G}}. The FDTD Mesh Settings dialog offers a large number of parameters that can be used to fine-tune the Yee mesh to better approximate and represent your physical structure. |
<table> | <table> | ||
Line 164: | Line 164: | ||
</table> | </table> | ||
− | Before you run your first FDTD simulation in [[EM.Tempo]], let’s take a closer look at the FDTD simulation engine’s settings. Click the {{key|Settings}} button next to the “Select Engine” drop-down list to bring up the FDTD Engine Settings dialog. The convergence section ("Termination Criterion") of this dialog offers three criteria for terminating the FDTD time marching scheme. The first one is a <b>Power Threshold</b>, which normally has a default value of -30dB. The second one is a <b> | + | Before you run your first FDTD simulation in [[EM.Tempo]], let’s take a closer look at the FDTD simulation engine’s settings. Click the {{key|Settings}} button next to the “Select Engine” drop-down list to bring up the FDTD Engine Settings dialog. The convergence section ("Termination Criterion") of this dialog offers three criteria for terminating the FDTD time marching scheme. The first one is a <b>Power Threshold</b>, which normally has a default value of -30dB. The second one is a maximum number of steps (<b>No. Time Steps</b>), which normally has a default value of 10,000. The third option is labeled “Both”, which means that both of the above termination criteria will be considered until one of them is met. For this particular structure, the wizard set the power threshold equal to -40dB and the maximum number of time steps to 20,000. |
{{Note|For highly resonant structures, it is recommended that you establish a much more demanding convergence criterion with a lower power threshold value and a larger number of time steps.}} | {{Note|For highly resonant structures, it is recommended that you establish a much more demanding convergence criterion with a lower power threshold value and a larger number of time steps.}} | ||
Line 224: | Line 224: | ||
</table> | </table> | ||
− | You can see from the legend box of the plot that the directivity of your dipole is computed to be D0 = 1. | + | You can see from the legend box of the plot that the directivity of your dipole is computed to be D0 = 1.632. |
== Plotting the 2D Radiation Pattern Graphs == | == Plotting the 2D Radiation Pattern Graphs == | ||
− | [[EM.Tempo]]'s data manager also contains a list of 2D radiation pattern graphs of both Cartesian and polar types. Click the <b>Data Manager</b> [[Image:fdtd_datamanagerb.png]] button of Simulate Toolbar and plot the two files “FF_1_PATTERN_Cart_YZ.DAT” and “FF_1_PATTERN_Polar_YZ.ANG” | + | [[EM.Tempo]]'s data manager also contains a list of 2D radiation pattern graphs of both Cartesian and polar types. Click the <b>Data Manager</b> [[Image:fdtd_datamanagerb.png]] button of Simulate Toolbar and plot the two files “FF_1_PATTERN_Cart_YZ.DAT” and “FF_1_PATTERN_Polar_YZ.ANG”. Click the {{key|Plot}} button of the Data Manager dialog to plot both files. |
<table> | <table> |
Latest revision as of 19:20, 5 June 2019
Contents
- 1 What You Will Learn
- 2 Getting Started
- 3 Creating the Dipole Antenna Geometry
- 4 Examining the Length of the Dipole
- 5 Examining the Source & Observables
- 6 Examining the FDTD Mesh
- 7 Running the FDTD Simulation
- 8 Plotting Scattering and Impedance Parameters
- 9 Visualizing the 3D Radiation Pattern
- 10 Plotting the 2D Radiation Pattern Graphs
What You Will Learn
This tutorial will guide you through all the necessary steps to set up and perform a basic FDTD simulation and visualize and graph the simulation results. Specifically, you will use the wire dipole wizard to create the geometry of a resonant half-wave dipole antenna in the project workspace. You will examine the port definition observable for computing S/Z/Y parameters. You will also define far-field radiation pattern and near-field sensor observables.
We strongly recommend that you read through the first few tutorials and study them carefully before setting up your own projects. |
Back to EM.Tempo Tutorial Gateway
Download projects related to this tutorial lesson
Getting Started
Open the EM.Cube application by double-clicking on its icon on your desktop. By default, EM.Cube opens a blank project with the name “UntitledProj0” in its CubeCAD Module. You can start drawing objects and build up your physical structure right away. Or you can initiate a new project by selecting the New button of the System Toolbar or using the keyboard shortcut Ctrl+N. This opens up the New Project Dialog, where you can enter a title for your new project and set its path on your hard drive. From the same dialog, you can also set the project’s length units, frequency units, center frequency and bandwidth.
For this tutorial lesson, set the following parameters in the new project dialog:
Click the Create button of the dialog to accept the settings. A new project folder with your given name is immediately created at your specified path.
To navigate to EM.Tempo, simply select its icon from the Module Toolbar on the left side of the screen. Selecting the module icon changes the contents of the navigation tree to reflect the types of objects supported by the current module.
Creating the Dipole Antenna Geometry
Click on the Wire Dipole Wizard button of the Wizard Toolbar or select the menu item Tools → Antenna Wizards → Wire Dipole Antenna.
The geometry of a dipole antenna appears at the center of the project workspace. A close look at the physical structure reveals that it consists of two thin vertical cylinders connected through a short vertical line at the center. In the navigation tree on the left, you see three objects listed under a perfect electric conductor (PEC) material group called "DIPOLE":
- ANCHOR (Feed Line)
- Dipole_Arm_1
- Dipole_Arm_2
Also note that a blue domain box is placed around your dipole antenna structure. By default, the domain box is placed at an offset of 0.25λ0 away from the largest bounding box of your physical structure. By default, a convolutional perfectly matched layer (PML) boundary condition is assumed at all the six faces of the domain box. This is required for modeling an open-boundary problem. For this project, you will accept the default computational domain and the default PML boundary conditions.
Examining the Length of the Dipole
The geometry of the dipole antenna created by the wizard is fully parameterized. The objective of this tutorial lesson is to teach the basics of running a simulation rather than parameterizing a geometrical construction. Therefore, we will not get into the details of defining variables at this point. Note that at the center frequency fc = 1GHz, the operating wavelength is:
[math] \lambda_0 = \frac{c}{f} = \frac{3\times 10^8}{1 \times 10^9} = 0.3m = 300mm [/math]
A half-wave dipole, therefore, should have a length of 150mm. Now open the Variable Dialog by clicking the button on the Simulate Toolbar or selecting the menu item Simulate → Variables.... You will see a variable called "dipole_len", whose value has been set to 0.47*λ0. This is the total length of the dipole antenna and is slightly less than half free-space wavelength as is typical in the design of dipole antenna of finite radius. The radius of the wire, which is indeed the radius of the two cylindrical arms, is set to 0.002*λ0. These parameters can easily be changed to any arbitrary value, expression, or other definitions. The height of the two cylindrical arms is defined by a variable called "arm_length", which takes into account portion of the joining vertical line at the center.
Select and highlight the item "Dipole_Arm_1" in the navigation tree, right-click on it and select Properties... from the contextual menu. The property dialog of the bottom cylinder opens up on the lower right corner of the screen. Note that the height of the cylinder is set equal to the variable "arm_len" and its radius is set equal to the variable "wire_rad".
Examining the Source & Observables
EM.Cube wizards take care of most of the things you need to build a complete project including the excitation source and simulation variables. You cannot run a simulation if your physical structure doesn't have an excitation source. Also, if you don't define an observable for your project, there will be no output data at the end of a simulation. The wire dipole wizard automatically inserts a Lumped Source, a Far-Field Radiation Pattern observable and a Port Definition observable in your project. You are set to go!
Before running an FDTD simulation of your dipole antenna, let's examine the properties of the lumped source. Select the item "LS_1" under Lumped Sources in the Sources section of the navigation tree. Right-click on it and select Properties... from the contextual menu. In the lumped source dialog, you will see the name "Feed_Line_ANCHOR" in the drop-down list labeled Line Object. Also, note that the value of the Offset parameter is set equal to "0.5*feed_len", which places the source at the center of the middle vertical line. The internal impedance of the voltage source is set equal to 75Ω.
A lumped source must always be associated with a PEC or thin wire line object that is parallel to one of the principal axes. |
The far-field observable called "FF_1" is defined to compute the far-field radiation pattern of the dipole antenna. You can open the property dialog of the far-field observable in the same way. Note that the spherical theta and phi angle increments are both set to 5°. The port definition observable called "PD_1" is initiated to calculate the port characteristics of the antenna, i.e., its S, Z and Y parameters. According to the property dialog of the port definition observable, the reference port impedance is 75Ω and the S/Z/Y parameters will be computed over the frequency range [fc - bw/2, fc + bw/2], where fc is the center frequency and bw is the bandwidth of the project.
Examining the FDTD Mesh
EM.Tempo generates a “staircase” Yee mesh of your physical structure. To be able to capture the details of your dipole's very fine cylindrical arms, the mesh should have adequate resolution. EM.Tempo’s default “Adaptive” FDTD mesh generator exactly does that. To view the mesh, click the Show/Generate Mesh button of the Simulate Toolbar or alternatively use the keyboard shortcut Ctrl+M. The resolution of the mesh is determined by its Mesh Density expressed in effective wavelength. EM.Tempo's default mesh density is 20 cells/λeff. However, the wizard automatically sets the mesh density to 50 cells/λeff for this particular structure. Open the FDTD Mesh Settings dialog by clicking the Mesh Settings button of Simulate Toolbar or using the keyboard shortcut Ctrl+G. The FDTD Mesh Settings dialog offers a large number of parameters that can be used to fine-tune the Yee mesh to better approximate and represent your physical structure.
It is often very informative to examine the FDTD mesh grid. Enable the XY mesh grid plane by right clicking the XY Grid Plane item in the “Discretization” section of the navigation tree and selecting Show from the contextual menu. You can see that the grid lines are more densely placed around the location of the cylindrical arms. Next, enable the YZ mesh grid plane by right clicking the YZ Grid Plane item in the “Discretization” section of the navigation tree and selecting Show from the contextual menu.
Running the FDTD Simulation
At this time, your project is ready for FDTD simulation. To run a quick simulation of your physical structure, click the Run Button of the Simulate Toolbar to open up the Simulation Run Dialog. Or alternatively, use the keyboard shortcut Ctrl+R, or select the menu item Simulate → Run… The simplest simulation mode in EM.Tempo is Wideband Analysis, which is its default Simulation Mode. In this mode, your physical structure is taken “As Is” and its mesh is passed to the FDTD simulation engine along with the necessary information regarding the sources and observables.
Before you run your first FDTD simulation in EM.Tempo, let’s take a closer look at the FDTD simulation engine’s settings. Click the Settings button next to the “Select Engine” drop-down list to bring up the FDTD Engine Settings dialog. The convergence section ("Termination Criterion") of this dialog offers three criteria for terminating the FDTD time marching scheme. The first one is a Power Threshold, which normally has a default value of -30dB. The second one is a maximum number of steps (No. Time Steps), which normally has a default value of 10,000. The third option is labeled “Both”, which means that both of the above termination criteria will be considered until one of them is met. For this particular structure, the wizard set the power threshold equal to -40dB and the maximum number of time steps to 20,000.
For highly resonant structures, it is recommended that you establish a much more demanding convergence criterion with a lower power threshold value and a larger number of time steps. |
To run the simulation, click the Run button of the Simulation Run Dialog. A separate window pops up displaying messages from the simulation engine. In four separate fields, the engine reports the current time step, elapsed time, performance in MCells/second, and convergence status. Once the simulation is completed, you can close the message window and return to the project workspace. The navigation tree and data manager are now populated with simulation results.
Plotting Scattering and Impedance Parameters
A list of all the 2D output data files generated at the end of a simulation can be viewed in EM.Tempo’s Data Manager. To open this dialog, click the Data Manager button of Simulate Toolbar, or use the keyboard shortcut Ctrl+D, or select the menu item Simulate → Data Manager. Select the file "DP_S11.CPX" from the list by clicking on its name and highlighting its row in the table. Click the Plot button of the dialog. A PyPlot graph window pops up that shows the magnitude and phase of the S11 parameter. If you move the mouse around the graph, you can read the values of the graph on the Status Bar of the graph window. The figure below shows that the dip of the plot is at 977MHz with a value of -33.4dB
Next, select the file "DP_Z11.CPX" from the list and plot it. This time the graph shows the real and imaginary parts of the Z11 parameter. It can be seen that at 977MHz, the input resistance of the dipole is 73.75Ω.
Visualizing the 3D Radiation Pattern
At the end of the FDTD simulation, the far fields section of the navigation tree is populated with three 3D radiation pattern plots: Theta pattern, Phi pattern and the total pattern. If you view these plots, you will see them blended with the physical structure in EM.Tempo’s project workspace. Remember that your dipole is centered at (0, 0, 0), which is the origin of the spherical coordinate system used for 3D far-field plots. The total 3D radiation pattern of your half-wave dipole antenna must look like this:
You can see from the legend box of the plot that the directivity of your dipole is computed to be D0 = 1.632.
Plotting the 2D Radiation Pattern Graphs
EM.Tempo's data manager also contains a list of 2D radiation pattern graphs of both Cartesian and polar types. Click the Data Manager button of Simulate Toolbar and plot the two files “FF_1_PATTERN_Cart_YZ.DAT” and “FF_1_PATTERN_Polar_YZ.ANG”. Click the Plot button of the Data Manager dialog to plot both files.