public class EnsembleProbe extends BunchProbe<EnsembleProbeState>
IProbe type maintains an
Ensemble object which is a collection of Particles. Thus,
this probe designed for multi-particle simulation.| Modifier and Type | Field and Description |
|---|---|
static int |
FLDCALC_GRIDFD
use grid finite difference scheme
|
static int |
FLDCALC_GRIDFT
use grid Fourier transform method
|
static int |
FLDCALC_NONE
no field calculation scheme specified
|
static int |
FLDCALC_SUMMATION
use a full potential summation of each particle
|
COMMENT_LABEL, PROBE_LABEL, stateCurrent, TEXT_LABEL, TIME_LABEL, trajHist, TYPE_LABELLightSpeed, Permittivity, UnitCharge| Constructor and Description |
|---|
EnsembleProbe()
Creates a new (empty) instance of EnsembleProbe
|
EnsembleProbe(EnsembleProbe probe)
Copy Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
EnsembleProbe |
copy()
Creates a deep copy of the probe
|
EnsembleProbeState |
createEmptyProbeState()
Creates a new, empty
EnsembleProbeState. |
EnsembleProbeState |
createProbeState()
Creates a state snapshot of this probe's state and returns it as a
ProbeState object. |
Trajectory<EnsembleProbeState> |
createTrajectory()
Creates a trajectory of the proper type for saving the probe's history.
|
R3 |
electricField(R3 ptFld)
Get the electric field at a point in R3 from the ensemble.
|
CovarianceMatrix |
getCorrelation()
Return the correlation matrix of the distribution
|
Ensemble |
getEnsemble()
Return the Ensemble state object
|
int |
getFieldCalculation()
Return the field calculation method
|
PhaseVector |
phaseMean()
Return the coordinates of the ensemble centroid.
|
protected EnsembleProbeState |
readStateFrom(DataAdaptor container)
Read the contents of the supplied
DataAdaptor and return
an instance of the appropriate Trajectory species. |
void |
setEnsemble(Ensemble ens)
Set the EnsembleProbe state to the value of the argument
NOTE: the copy operation can be expansive for large
Ensembles |
void |
setFieldCalculation(int enmFldCalc)
Set the field calculation method
|
beamPerveance, bunchCharge, getBeamCurrent, getBunchFrequency, setBeamCurrent, setBunchFrequencyapplyState, cloneCurrentProbeState, deepCopy, getAlgorithm, getArchive, getBeta, getComment, getCurrentElement, getCurrentHardwareId, getGamma, getKineticEnergy, getMomentum, getPosition, getSpeciesCharge, getSpeciesName, getSpeciesRestEnergy, getTime, getTimestamp, getTrajectory, initialize, initializeFrom, load, newProbeInitializedFrom, performPostProcessing, readFrom, reset, save, setAlgorithm, setComment, setCurrentElement, setCurrentHardwareId, setKineticEnergy, setPosition, setSpeciesCharge, setSpeciesName, setSpeciesRestEnergy, setTime, setTimestamp, setTracking, updatepublic static final int FLDCALC_NONE
public static final int FLDCALC_SUMMATION
public static final int FLDCALC_GRIDFD
public static final int FLDCALC_GRIDFT
public EnsembleProbe()
public EnsembleProbe(EnsembleProbe probe)
EnsembleProbe
which is a deep copy of the argument
NOTE: the copy operation can be expansive for large Ensemblesprobe - object to be copiedpublic EnsembleProbeState createProbeState()
ProbeState object.createProbeState in class BunchProbe<EnsembleProbeState>EnsembleProbeState encapsulating the probe's current stateProbe.createProbeState()public EnsembleProbeState createEmptyProbeState()
EnsembleProbeState.createEmptyProbeState in class BunchProbe<EnsembleProbeState>EnsembleProbeStatepublic Trajectory<EnsembleProbeState> createTrajectory()
createTrajectory in class Probe<EnsembleProbeState>Trajectory<EnsembleProbeState>
for saving the probe's historypublic PhaseVector phaseMean()
public CovarianceMatrix getCorrelation()
PhaseMatrixpublic EnsembleProbe copy()
Probecopy in class Probe<EnsembleProbeState>public void setFieldCalculation(int enmFldCalc)
enmFldCalc - field calculation method enumerationpublic void setEnsemble(Ensemble ens)
Ensemblesens - Ensemble object to be copiedpublic int getFieldCalculation()
public Ensemble getEnsemble()
public R3 electricField(R3 ptFld)
ptFld - field point to evaluation ensemble fieldprotected EnsembleProbeState readStateFrom(DataAdaptor container) throws ParsingException
ProbeDataAdaptor and return
an instance of the appropriate Trajectory species.readStateFrom in class Probe<EnsembleProbeState>container - DataAdaptor to read a Trajectory fromParsingException - error encountered reading the DataAdaptor