public class ParticleProbeState extends ProbeState<ParticleProbeState>
ParticleProbe
at a particular point
in time.Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
PARTICLE_LABEL
element tag for particle data
|
protected static java.lang.String |
X_LABEL |
protected static java.lang.String |
XP_LABEL |
protected static java.lang.String |
Y_LABEL |
protected static java.lang.String |
YP_LABEL |
protected static java.lang.String |
Z_LABEL |
protected static java.lang.String |
ZP_LABEL |
STATE_LABEL, TYPE_LABEL
LightSpeed
Constructor and Description |
---|
ParticleProbeState()
Default constructor.
|
ParticleProbeState(ParticleProbe probe)
Initializing constructor.
|
ParticleProbeState(ParticleProbeState particleProbeState)
Copy constructor for ParticleProbeState.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addPropertiesTo(DataAdaptor container)
Save the state values particular to
BunchProbeState objects
to the data sink. |
ParticleProbeState |
copy()
Copies and returns a new, identical instance of this
ParticleProbeState . |
PhaseVector |
getFixedOrbit()
Deprecated.
This is a duplicate of
getPhaseCoordinates() but with a
misleading name. I plan to get rid of it. |
PhaseVector |
getPhaseCoordinates()
Returns homogeneous phase space coordinates of the particle.
|
PhaseMatrix |
getResponseMatrix()
Returns the response matrix Φ for the particle at the given
state location z.
|
protected void |
readPropertiesFrom(DataAdaptor container)
Recover the state values particular to
BunchProbeState objects
from the data source. |
void |
setPhaseCoordinates(PhaseVector vecPhase)
Set the phase space coordinates of the probe.
|
void |
setResponseMatrix(PhaseMatrix matResp)
Set the response matrix Φ for the particle at the given
state location z.
|
java.lang.String |
toString()
Write out the state information in text form.
|
computeBetaFromGamma, computeGammaFromBeta, computeGammaFromW, getBeta, getBetaGamma, getElementId, getGamma, getHardwareNodeId, getKineticEnergy, getMomentum, getPosition, getSpeciesCharge, getSpeciesRestEnergy, getTime, load, save, setElementId, setHardwareNodeId, setKineticEnergy, setPosition, setSpeciesCharge, setSpeciesRestEnergy, setTime
protected static final java.lang.String PARTICLE_LABEL
protected static final java.lang.String X_LABEL
protected static final java.lang.String Y_LABEL
protected static final java.lang.String Z_LABEL
protected static final java.lang.String XP_LABEL
protected static final java.lang.String YP_LABEL
protected static final java.lang.String ZP_LABEL
public ParticleProbeState()
ParticleProbeState
object.public ParticleProbeState(ParticleProbeState particleProbeState)
ParticleProbeState
objects with the state attributes
of the given ParticleProbeState
.particleProbeState
- initializing statepublic ParticleProbeState(ParticleProbe probe)
ParticleProbeState
object
which contains a deep copy of the state of the given probe object.probe
- ParticleProbe
containing cloned initial state datapublic void setPhaseCoordinates(PhaseVector vecPhase)
vecPhase
- new homogeneous phase space coordinate vector
z = (x, x', y, y', z, z', 1)Tpublic void setResponseMatrix(PhaseMatrix matResp)
Set the response matrix Φ for the particle at the given
state location z. The response matrix represents the sensitivity of
the current phase coordinate position z to the initial phase coordinate
location z0 at the start of the simulation. That is,
Φ ≡ ∂z/∂z0
so that small changes Δz0 in the initial phase position
yield a corresponding change Δz = ΦΔz0
in the current particle location.
matResp
- the response matrix Φ ≡
∂z/∂z0the matResp to setpublic PhaseVector getPhaseCoordinates()
Returns homogeneous phase space coordinates of the particle. The units are meters and radians.
This is the location z in homogeneous phase space coordinates R6 × {1}.public PhaseMatrix getResponseMatrix()
Returns the response matrix Φ for the particle at the given
state location z. The response matrix represents the sensitivity of
the current phase coordinate position z to the initial phase coordinate
location z0 at the start of the simulation. That is,
Φ ≡ ∂z/∂z0
so that small changes Δz0 in the initial phase position
yield a corresponding change Δz = ΦΔz0
in the current particle location.
@Deprecated public PhaseVector getFixedOrbit()
getPhaseCoordinates()
but with a
misleading name. I plan to get rid of it.public java.lang.String toString()
toString
in class ProbeState<ParticleProbeState>
String
.public ParticleProbeState copy()
ParticleProbeState
.copy
in class ProbeState<ParticleProbeState>
protected void addPropertiesTo(DataAdaptor container)
BunchProbeState
objects
to the data sink.addPropertiesTo
in class ProbeState<ParticleProbeState>
container
- data sink represented by DataAdaptor
interfaceprotected void readPropertiesFrom(DataAdaptor container) throws ParsingException
BunchProbeState
objects
from the data source.readPropertiesFrom
in class ProbeState<ParticleProbeState>
container
- data source represented by a DataAdaptor
interfaceParsingException
- state information in data source is malformatted