29 :
OpalElement(
SIZE,
"RFCAVITY",
"The \"RFCAVITY\" element defines an RF cavity."),
40 "APVETO",
"Do not use this cavity in the Autophase procedure",
false);
45 "PDIS",
"Shift distance of cavity gap from center of cyclotron [mm]");
54 "AMPLITUDE_MODEL",
"The name of the amplitude time dependence model.");
56 "FREQUENCY_MODEL",
"The name of the frequency time dependence model.");
virtual void setElementLength(double length)
Set design length.
ElementBase * getElement() const
Return the embedded OPALX element.
void setElement(ElementBase *)
Assign new OPALX element.
std::vector< Attribute > itsAttr
The object attributes.
virtual OpalCavity * clone(const std::string &name)
Make clone.
virtual void update()
Update the embedded OPALX cavity.
OpalCavity()
Exemplar constructor.
virtual void updateUnknown(ElementBase *)
Transmit the `‘unknown’' (not known to OPALX) attributes to OPALX.
virtual void update()
Update the embedded OPALX element.
void registerOwnership() const
virtual void setPhase(double phi)
Set phase.
virtual void setFrequency(double f)
Set frequency.
virtual void setAmplitude(double V)
Set amplitude.
void setPerpenDistance(double pdis)
virtual void setAmplitudeError(double vPeakError)
void setPhaseModelName(std::string name)
void setRmin(double rmin)
void setFrequencyModelName(std::string name)
void setAmplitudeModelName(std::string name)
virtual void setAmplitudem(double vPeak)
virtual void setPhaseError(double phaseError)
virtual void setPhasem(double phase)
void setPhi0(double phi0)
virtual void setFrequencym(double freq)
virtual void setFieldMapFN(const std::string &fmapfn)
Set the name of the field map.
void setAzimuth(double angle)
void setCavityType(const std::string &type)
virtual void setAutophaseVeto(bool veto=true)
virtual void setDesignEnergy(const double &ekin, bool changeable=true) override
void setGapWidth(double gapwidth)
virtual void setFast(bool fast)
void setRmax(double rmax)
Attribute makeBool(const std::string &name, const std::string &help)
Make logical attribute.
double getReal(const Attribute &attr)
Return real value.
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
bool getBool(const Attribute &attr)
Return logical value.
std::string getString(const Attribute &attr)
Get string value.
Attribute makeString(const std::string &name, const std::string &help)
Make string attribute.
constexpr double two_pi
The value of.
constexpr double MVpm2Vpm