===3D Near & Far Field Animation===
Â
[[Image:FDTD123.png|thumb|250px|[[Animation]] of total E-field plots and far field radiation patterns at the end of an FDTD sweep simulation]]
At the end of a sweep simulation (a frequency sweep, angular sweep, parametric sweep, etc.), if you have defined a field sensor or a far field observable (either radiation pattern or RCS) in your project, a number of near field plots or far field plots are generated for all samples of the sweep variable. Each field sensor normally has 14 field maps for the amplitude and phase of all the three components of E- and H-fields plus the magnitude of the total fields. Each far field observable has three spherical plots corresponding to the θ and φ components of the far field and the total far field. Generating all these 14 near-field intensity plots or 3 far-field spherical plots at each sweep sample would result in a very large number of graphs on the Navigation Tree. Instead, during a sweep simulation, [[EM.Cube]] generates either a total E-field or a total H-field plot at each sweep run for the field sensors. By default, the total E-field plots are saved. You can change this setting from the field sensor's property dialog. Right click on the field sensor's name in the Navigation Tree and select '''Properties...'''from the contextual menu. In the section titled "Field Display - Multiple Plots", select one of the two radio buttons labeled '''E-Field''' or '''H-Field'''. As for far field observables, only the total field plot is generated at each sweep sample.
Once the sweep simulation is finished, you can click any of the near-field or far-field plots and visualize it in the main window. You can also animate these field plots. [[Animation]] in [[EM.Cube]] consists of sequential display of the plots in the main window at a preset speed. To animate the field sensor plots, right click on the field sensor's name in the Navigation Tree and select '''[[Animation]]''' from the contextual menu. The field plots start to animate beginning with the first sample, going through all the plots one by one until the last one and repeating the loop all over again. While the [[animation]] proceeds in the main window, a dialog titled '''[[Animation]] Controls Dialog''' pops up at the lower right corner of the screen. You can drag this dialog anywhere in the project workspace from its title bar. The controls dialog shows the title of each graph as it is reviewed. You can set the speed of [[animation]] by typing in a value for '''Rate''', which is indeed the frame duration expressed in multiples of 100 milliseconds. The default frame duration is 300 msec. You can pause the [[animation]] and resume at any time. You can rewind to the first sample or skip to the last sample. You can also step through the samples one at a time using the increment (forward) or decrement (backward) buttons. To stop [[animation]] at any time, use the keyboard's '''Esc Key''' or click the '''Close (X)''' button of the [[animation]] controls dialog.
{{isoimgtwoimg|FDTD120.png|Selecting the field type for plotting at the end of an FDTD sweep simulation.}}Â {{isoimg|FDTD122.png|[[EM.Cube]]'s [[Animation]] Controls dialog.}}Â {{isoimg|FDTD123.png|[[Animation]] of total E-field plots and far field radiation patterns at the end of an FDTD sweep simulation}}
==Modeling 3D Periodic Structures Using FDTD==