Keywords:
Pillbox cavity, Figures of merit, Transit time factor, Geometry factor
This VSimMD example demonstrates the usage of VSim in computing the eigenmodes and figures of merit of two simple cavities. One may select either the closed pillbox cavity for which the analytic solution is well known, or a cavity based on the closed pillbox, but having outlets leading to the periodic domain boundaries. Like other examples utilizing the extractModes.py analyzer, the simulation run is done in two steps. In the first step, the cavity is excited by a sinc pulse current source and output is dumped only at the end of this excitation run. Then in the second step, output is dumped at intervals which are sufficiently short compared to the frequencies of interest. The output from the second run is used by the extractModes.py analyzer to compute the eigenmodes. Then, the computeTransitTimeFactor.py and computeCavityG analyzers are used to compute the transit time factors and geometry factors of the eigenmodes.
This simulation can be performed with a VSimMD or VSimEM license.
The pillbox cavity example is accessed from within VSimComposer by the following actions:
The properties and values that create the simulation are accessible in the left pane when the Setup Window is selected. The right pane shows a 3D view of the selected geometry components, grids and current distributions.
The geometry of the closed pillbox cavity is called pillboxCavityAnalytical and the geometry of the periodic cavity with outlets on either end is called pillboxCavityWithTube. These can be visualized individually by expanding Geometries, de-selecting and then expanding CSG, and then selecting either pillboxCavityAnalytical or pillboxCavityWithTube.
Note
The simulation must be run in two steps because there must be no driving currents flowing in the simulation while dumping data used to extract the eigenmodes. So, while the drive is ringing the cavity, there is no need to dump data. We switch the dump periodicity after the driving current has shut off in order to resolve the frequency of the eignemodes of interest.
Go to the analyzer window by selecting Analyze in the left column.
Select extractModes.py from the list of available analyzers. Then click “Open” on the top right of the Analysis Controls pane.
Compute the electric field eigenfunctions. After the analyzer loads, ensure the following parameters are entered:
- simulationName: “pillboxCavity”
- field: “E”
- beginDump: “2”
- endDump: “21”
- nModes: “5”
- sampleType: “0”
- numberUniformPoints: “20”
- numberRandomPoints: “100”
- construct: “1”
Also, check the “Overwrite Existing Files” box. Double-check your entries against what is shown in Fig. 314.
Press the Analyze button which is located in the upper right corner.
Compute the magnetic field eigenfunctions with the following parameters.
- simulationName: “pillboxCavity”
- field: “B”
- beginDump: “2”
- endDump: “21”
- nModes: “5”
- sampleType: “0”
- numberUniformPoints: “20”
- numberRandomPoints: “100”
- construct: “1”
After the analysis is finished, and scrolling down in the Outputs log pane you should see what is shown in Fig. 315.
Note that extractModes.py outputs the frequencies of the computed modes in the Run Output pane. The first mode, mode 0, should have a frequency of approximately 1 GHz.
Select computeTransitTimeFactor.py from the available analyzers and press “Open” on the top right of the Analysis Controls pane.
After the analyzer loads, ensure the following parameters are entered:
- simulationName: “pillboxCavity”
- beginDump: “0”
- endDump: “0”
- beta: “1”
- axis: “0”
- offsetx0: “0”
- offsetx1: “0”
And compare against what is shown in Fig. 316
Press Analyze.
If you have selected the closed cavity, the transit time factor (the value following “Transit time factor, T=Vacc/V0 =”) should be very close the analytic value of \(2/\pi\).
After performing the above actions, continue as follows:
To see the projection of the magnetic field of the fundamental mode onto the cavity walls, do the following:
To see a more quantitative visualization of the eigenmode fields, as shown in Fig. 319, do the following:
The Bessel function dependence of the x-component of the electric field will be clearly plotted on the right.