computeTransitTimeFactor.py

This analyzer computes the accelerating voltage and transit time of a cavity mode. Typically one will first run the extractModes.py analyzer to compute the the cavity modes, then run computeTransitTimeFactor.py with the modes as input.

-s <simname>, --simulationName=<simname>

(string, required)

<simname> is the name of the simulation to be analyzed. The file extension should NOT be included in this text field.

-b <bd>, --beginDump=<bd>

(int, required, default = 0)

<bd> is the initial dump number.

-e <ed>, --endDump=<ed>

(int, required, default = 2)

<ed> is the ending dump number.

-B <beta>, --beta=<beta>

(float, required, default = 1.0)

Replace <beta> with the fraction of the speed of light for the particle bunch for which we are calculating transit time factor.

-a, --axis

(int, required, default = 0)

Axis along which to compute time transit factor.

-0, --offsetx0

(float, optional, default = 0.0)

Distance from center to offset axis along the x0 direction.

-1, --offsetx1

(float, optional, default = 0.0)

Distance from center to offset axis along the x1 direction.

-w, --overwrite

(flag)

Whether a dataset or group should be overwritten if it already exists.

Output

Accelerating voltage, time-independent accelerating voltage and transit time factor, computed along the specified axis in the center of the domain, are printed to the screen.

If you are running this analyzer from the UI, and the output dataset file already exists, then it will be overwritten each time the analyzer is run, unless you uncheck the Overwrite Existing Files box near the bottom of the Analysis Results pane.

If you are running the analyzer from the command line, the dataset will not be overwritten unless the -w, or --overwrite flag is specified on the command line.

The results of your analyzer may not be written into the output file if you have not specified the overwrite option to be True.