27 SIZE,
"TRAVELINGWAVE",
28 "The \"TRAVELINGWAVE\" element defines a traveling wave structure.") {
37 "APVETO",
"Do not use this cavity in the Autophase procedure",
false);
42 "MODE",
"The phase shift between neighboring cells in 2*pi", 1.0 / 3.0);
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 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 update()
Update the embedded OPALX cavity.
virtual ~OpalTravelingWave()
OpalTravelingWave()
Exemplar constructor.
virtual OpalTravelingWave * clone(const std::string &name)
Make clone.
virtual void setAmplitudeError(double vPeakError)
virtual void setAmplitudem(double vPeak)
virtual void setPhaseError(double phaseError)
virtual void setFrequencym(double freq)
virtual void setFieldMapFN(const std::string &fmapfn)
Set the name of the field map.
virtual void setAutophaseVeto(bool veto=true)
virtual void setDesignEnergy(const double &ekin, bool changeable=true) override
virtual void setFast(bool fast)
virtual void setPhase(double phi)
Set phase.
virtual void setFrequency(double f)
Set frequency.
virtual void setAmplitude(double V)
Set amplitude.
void setNumCells(int NumCells)
void setMode(double mode)
virtual void setPhasem(double phase) override
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