Package org.scictrl.mp.orbitcorrect.math
Class DipoleMatrix
java.lang.Object
org.scictrl.mp.orbitcorrect.math.DoubleMatrix
org.scictrl.mp.orbitcorrect.math.TransferMatrix
org.scictrl.mp.orbitcorrect.math.DipoleMatrix
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
RDipoleMatrix
,SDipoleMatrix
Abstract DipoleMatrix class.
- Author:
- igor@scictrl.com
-
Field Summary
Modifier and TypeFieldDescriptionprotected double
Quadrupole coefficientprotected double
Bending radiusFields inherited from class org.scictrl.mp.orbitcorrect.math.TransferMatrix
length
Fields inherited from class org.scictrl.mp.orbitcorrect.math.DoubleMatrix
columns, matrix, rows
-
Constructor Summary
ConstructorDescriptionDipoleMatrix
(double newLength, double newK, double newRadius) DriftMatrix constructor comment. -
Method Summary
Modifier and TypeMethodDescriptiondouble
getK()
Getter for the fieldk
.double
Getter for the fieldradius
.protected abstract double[][]
makeMatrix.void
set
(double newLength, double newK, double newRadius) set.void
setK
(double newK) Setter for the fieldk
.void
setLength
(double length) setLength.void
setRadius
(double newRadius) Setter for the fieldradius
.transport
(BetaMatrix beta) transport.Methods inherited from class org.scictrl.mp.orbitcorrect.math.TransferMatrix
getLength, identity, matrixPhaseX, matrixPhaseZ, multiplay, multiplay, setIdentity, transport, transport, transport
Methods inherited from class org.scictrl.mp.orbitcorrect.math.DoubleMatrix
canJoin, canMulitplay, clone, columns, dimensionEquals, get, identity, join, rows, toString
-
Field Details
-
k
protected double kQuadrupole coefficient -
radius
protected double radiusBending radius
-
-
Constructor Details
-
DipoleMatrix
public DipoleMatrix(double newLength, double newK, double newRadius) DriftMatrix constructor comment.- Parameters:
newLength
- a doublenewK
- a doublenewRadius
- a double
-
-
Method Details
-
getK
public double getK()Getter for the field
k
.- Returns:
- double
-
getRadius
public double getRadius()Getter for the field
radius
.- Returns:
- double
-
makeMatrix
protected abstract double[][] makeMatrix()makeMatrix.
- Returns:
- an array of
invalid reference
double
-
set
public void set(double newLength, double newK, double newRadius) set.
- Parameters:
newLength
- a doublenewK
- doublenewRadius
- a double
-
setK
public void setK(double newK) Setter for the field
k
.- Parameters:
newK
- double
-
setLength
public void setLength(double length) setLength.
- Parameters:
length
- double
-
setRadius
public void setRadius(double newRadius) Setter for the field
radius
.- Parameters:
newRadius
- double
-
transport
transport.
- Overrides:
transport
in classTransferMatrix
- Parameters:
beta
- BetaMatrix- Returns:
- BetaMatrix
-