public class ThinLens extends ThinElement
A zero value for focal length indicates zero focusing strength, or infinite focal length. Positive focal lengths imply focusing while negative values imply defocusing.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
s_strType
string type identifier for all ThinLens objects
|
LightSpeed, Permeability, Permittivity, UnitCharge
Constructor and Description |
---|
ThinLens()
JavaBean Constructor - creates a new unitialized instance of ThinLens
BE CAREFUL
|
ThinLens(java.lang.String strId,
double dblFx,
double dblFy,
double dblFz)
Creates a new instance of ThinLens
A zero value for focal length indicates zero focusing strength, or infinite focal
length.
|
Modifier and Type | Method and Description |
---|---|
double |
elapsedTime(IProbe probe)
Returns the time taken for the probe to propagate through element.
|
double |
energyGain(IProbe probe)
Returns zero for the energy gain imparted to any probe by a thin lens.
|
void |
print(java.io.PrintWriter os)
Dump current state and content to output stream.
|
void |
setFocalLengthX(double dblFx)
Set the focal length in the x direction.
|
void |
setFocalLengthY(double dblFy)
Set the focal length in the y direction.
|
void |
setFocalLengthZ(double dblFz)
Set the focal length in the z direction.
|
protected PhaseMap |
transferMap(IProbe probe)
Compute and return the block-diagonal transfer matrix representing
a thin lens in each phase plane.
|
elapsedTime, energyGain, getLength, transferMap
addCloseElements, applyAlignError, backPropagate, backPropagate, compDriftingTime, compProbeLocation, getAlignX, getAlignY, getAlignZ, getCloseElements, getHardwareNodeId, getId, getPosition, getType, getUID, initializeFrom, propagate, propagate, setAlign, setAlignX, setAlignY, setAlignZ, setHardwareNodeId, setId, setPosition, toString
public static final java.lang.String s_strType
public ThinLens(java.lang.String strId, double dblFx, double dblFy, double dblFz)
strId
- string identifier of elementdblFx
- focal length in the x phase plane (in meters)dblFy
- focal length in the y phase plane (in meters)dblFz
- focal length in the z phase plane (in meters)public ThinLens()
public void setFocalLengthX(double dblFx)
dblFx
- focal length in the x phase plane (in meters)public void setFocalLengthY(double dblFy)
dblFy
- focal length in the y phase plane (in meters)public void setFocalLengthZ(double dblFz)
dblFz
- focal length in the z phase plane (in meters)public double elapsedTime(IProbe probe)
elapsedTime
in class ThinElement
probe
- propagating probepublic double energyGain(IProbe probe)
energyGain
in class ThinElement
probe
- dummy argumentprotected PhaseMap transferMap(IProbe probe) throws ModelException
transferMap
in class ThinElement
probe
- dummy argument, no probe parameters are usedModelException
- this should not occur