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
FieldsModifier and TypeFieldDescriptionprotected doubleQuadrupole coefficientprotected doubleBending radiusFields inherited from class org.scictrl.mp.orbitcorrect.math.TransferMatrix
lengthFields inherited from class org.scictrl.mp.orbitcorrect.math.DoubleMatrix
columns, matrix, rows -
Constructor Summary
ConstructorsConstructorDescriptionDipoleMatrix(double newLength, double newK, double newRadius) DriftMatrix constructor comment. -
Method Summary
Modifier and TypeMethodDescriptiondoublegetK()Getter for the fieldk.doubleGetter for the fieldradius.protected abstract double[][]makeMatrix.voidset(double newLength, double newK, double newRadius) set.voidsetK(double newK) Setter for the fieldk.voidsetLength(double length) setLength.voidsetRadius(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, transportMethods 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
objects
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:
transportin classTransferMatrix- Parameters:
beta- BetaMatrix- Returns:
- BetaMatrix
-