PhaseAdvanceMonitor
PhaseAdvanceMonitor measures the uncoupled horizontal and vertical
fractional tune of each macro particle at one fixed lattice location.
Configuration
Turn ranges accepts [start, end) pairs representing the zero-based
left-closed, right-open interval [start, end). At least two turns are
required. The value 0 (or an empty list) disables analysis, and Enable
can disable the monitor without removing it from the sequence. Out-of-range
endpoints are clipped to [0, num_turns].
"tune_1": {
"S (m)": 12.5,
"Command": "PhaseAdvanceMonitor",
"Beta x (m)": 18.0,
"Beta y (m)": 22.0,
"Alpha x": -0.4,
"Alpha y": 0.2,
"Dx (m)": 1.1,
"Dpx": 0.03,
"X CO (m)": 0.0,
"PX CO": 0.0,
"Y CO (m)": 0.0,
"PY CO": 0.0,
"Enable": true,
"Turn ranges": [[0, 1024]]
}
Dx, Dpx and all closed-orbit fields default to zero. Min action
is optional; it excludes a sample when its normalized action is too small for
a stable angle. The precision-specific default is 5e-17 for float64 and
5e-9 for float32.
Interface parameters
Python field |
JSON key |
Default |
Description |
|---|---|---|---|
|
|
|
Monitor position (m). |
|
|
|
Keep PhaseAdvanceMonitor. |
|
|
|
hdf5-gzip1, hdf5 or tfs. |
|
|
|
Enable the monitor. |
|
|
|
Positive design beta x (m). |
|
|
|
Positive design beta y (m). |
|
|
|
Design horizontal alpha. |
|
|
|
Design vertical alpha. |
|
|
|
Horizontal dispersion (m). |
|
|
|
Normalized horizontal momentum dispersion. |
|
|
|
Horizontal closed-orbit position (m). |
|
|
|
Horizontal closed-orbit normalized momentum. |
|
|
|
Vertical closed-orbit position (m). |
|
|
|
Vertical closed-orbit normalized momentum. |
|
|
|
[start, end) turn pairs; 0 disables analysis. |
|
|
|
Minimum accepted normalized action; None selects a precision-dependent threshold. |
Output
One HDF5 file (or TFS file when selected) is written for each beam, bunch, monitor, and completed window in
the configured output_dir_tuneSpread directory (normally tuneSpread).
Rows remain separate by bunch and include
lost particles. Columns are tag, tuneXFractional,
tuneYFractional, per-plane interval counts, validX/Y, completeX/Y,
and loss metadata. valid means at least one accepted interval while the
particle remains alive; complete means every interval in the window was
accepted. Lost particles are never included in phase accumulation.
The filename label follows Table output formats: imported occurrence numbers
and duplicate position labels are omitted; the current position appears once.
Monitor metadata retains the complete command name.
Headers record the complete fixed optical reference, window endpoints,
expected interval count, backend, precision, and PASSVersion.
Normal early stopping preserves completed window files. A window that has started but not finished emits a warning during finalization and produces no partial tune table; its endpoint is not shortened to make it appear complete. GUI normal stopping occurs at a turn boundary, while force stopping cannot guarantee finalization. See Editable projects for the GUI stop controls and run records.
output_format (JSON "Output format") defaults to "hdf5-gzip1";
Use "hdf5" for uncompressed HDF5 or "tfs" for text output. See Table output formats for
the HDF5 layout, compression and common reader.
Method and limits
The monitor subtracts the configured closed orbit and horizontal dispersion, then uses fixed design optics to form
The same construction is used in y without dispersion. From consecutive turns
it accumulates the directed phase advance and writes only its equivalent
fractional tune, sum(dmu)/(2 pi N). The reported value is the average fractional tune over the accepted intervals.
This monitor assumes uncoupled transverse optics. With x-y coupling its x/y values are projected tunes, not normal-mode tunes.