S
- type of the probe state containing local simulation datapublic static interface ISimulationResults.ISimEnvResults<S> extends ISimulationResults
Processes simulation data concerned with the beam properties.
For example, when
S
= xal.model.probe.traj.EnvelopeProbeState
then the interface
quantities are essentially beam parameters since the beam dynamics figure into the
states of xal.model.probe.EnvelopeProbe
.
ISimulationResults.ISimEnvResults<S>, ISimulationResults.ISimLocResults<S>
Modifier and Type | Method and Description |
---|---|
R3 |
computeBetatronPhase(S state)
Get the betatron phase values at the given state location for
all three phase planes.
|
PhaseVector |
computeChromDispersion(S state)
Calculates the fixed point (closed orbit) in transverse phase space
at the given state Sn location sn in the presence of dispersion.
|
Twiss[] |
computeTwissParameters(S state)
Returns the array of twiss objects for this state for all three planes at the
location of the given simulation state.
|
Twiss[] computeTwissParameters(S state)
state
- simulation state where Twiss parameters are computedR3 computeBetatronPhase(S state)
state
- simulation state where parameters are computedPhaseVector computeChromDispersion(S state)
Calculates the fixed point (closed orbit) in transverse phase space at the given state Sn location sn in the presence of dispersion.
Let the full-turn map a the state location be denoted Φn (or the transfer
matrix from entrance to location sn for a linac).
The transverse plane dispersion vector Δ is defined
Δt ≡ -(1/γ2)[dx/dz', dx'/dz', dy/dz', dy'/dz']T .
It can be identified as the first 4 entries of the 6th
column in the transfer matrix Φn. The above vector
quantifies the change in the transverse particle phase
coordinate position versus the change in particle momentum.
The factor -(1/γ2) is needed to convert from longitudinal divergence
angle z' used by XAL to momentum δp ≡ Δp/p used in
the dispersion definition. Specifically,
δp ≡ Δp/p = γ2z'
As such, the above vector can be better described
Δt ≡ [Δx/δp, Δx'/δp, Δy/δp, Δy'/δp]T
explicitly describing the change in transverse phase coordinate for fractional
change in momentum δp.
Since we are only concerned with transverse phase space coordinates, we restrict ourselves to the 4×4 upper diagonal block of Φn, which we denote take Tn. That is, Tn = π ⋅ Φn where π : R6×6 → R4×4 is the projection operator.
This method finds that point zt ≡
(xt, x't, yt, y't)
in transvse phase space that is invariant under the action of the ring for a given momentum spread
δp. That is, the particle ends up
in the same location each revolution. With a finite momentum spread of δp > 0
we require this require that
Tnzt + δpΔt = zt ,
which can be written
zt = δp(Tn - I)-1Δt ,
where I is the identity matrix. Dividing both sides by δp yields the final
result
z0 ≡ zt/δp = (Tn - I)-1Δt ,
which is the returned value of this method. It is normalized by
δp so that we can compute the closed orbit for any given momentum spread.
state
- we are calculating the dispersion at this state location