49 "The \"MULTIPOLETCURVEDVARRADIUS\" element defines a combined function multipole.") {
51 (
"TP",
"Transverse Profile derivatives in m^(-k)");
53 (
"LFRINGE",
"The length of the left end field in m");
55 (
"RFRINGE",
"The length of the right end field in m");
57 (
"HAPERT",
"The aperture width in m");
59 (
"VAPERT",
"The aperture height in m");
61 (
"ANGLE",
"The azimuthal angle of the magnet in ring (rad)");
63 (
"EANGLE",
"The entrance angle (rad)");
66 "Number of terms used in each field component");
69 "Number of terms used in polynomial expansions");
72 "Rotation angle about its axis for skew elements (rad)");
75 "Distance between centre of magnet and entrance in m");
123 const std::vector<double> transProfile =
125 std::size_t transSize = transProfile.size();
127 if (transSize == 0) {
145 for(std::size_t comp = 0; comp < transSize; comp++) {
double getReal(const Attribute &attr)
Return real value.
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
Attribute makeRealArray(const std::string &name, const std::string &help)
Create real array attribute.
std::vector< double > getRealArray(const Attribute &attr)
Get array value.
ElementBase * getElement() const
Return the embedded CLASSIC element.
void setElement(ElementBase *)
Assign new CLASSIC element.
std::vector< Attribute > itsAttr
The object attributes.
virtual void setElementLength(double length)
Set design length.
void setRotation(const double &rot)
void setLength(const double &length)
void setEntranceAngle(const double &entranceAngle)
void setTransProfile(const std::size_t &n, const double &Bn)
bool setFringeField(const double &s0, const double &lambda_left, const double &lambda_right)
void setBoundingBoxLength(const double &boundingBoxLength)
void setAperture(const double &vertAp, const double &horizAp)
void setTransMaxOrder(const std::size_t &transMaxOrder)
virtual void setBendAngle(const double &angle) override
VarRadiusGeometry & getGeometry() override
virtual void setMaxOrder(const std::size_t &maxOrder) override
void setMaxXOrder(const std::size_t &maxXOrder)
virtual void updateUnknown(ElementBase *)
Transmit the `‘unknown’' (not known to OPAL) attributes to CLASSIC.
virtual void print(std::ostream &) const
Print the object.
virtual void update()
Update the embedded CLASSIC element.
void registerOwnership() const
void print(std::ostream &os) const
Print the object.
virtual ~OpalMultipoleTCurvedVarRadius()
virtual OpalMultipoleTCurvedVarRadius * clone(const std::string &name)
OpalMultipoleTCurvedVarRadius()