25 std::string(
"The \"VARIABLE_RF_CAVITY\" element defines an RF cavity ") +
26 std::string(
"with time dependent frequency, phase and amplitude.");
33 "The name of the phase time dependence model, which should give the phase in [rad].");
37 "The name of the amplitude time dependence model, which should give the field in [MV/m]");
41 "The name of the frequency time dependence model, which should give the field in [MHz].");
45 "Full width of the cavity [m].");
49 "Full height of the cavity [m].");
double getReal(const Attribute &attr)
Return real value.
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
std::string getString(const Attribute &attr)
Get string value.
Attribute makeString(const std::string &name, const std::string &help)
Make string attribute.
ElementBase * getElement() const
Return the embedded CLASSIC element.
void setElement(ElementBase *)
Assign new CLASSIC element.
const std::string & getOpalName() const
Return object name.
std::vector< Attribute > itsAttr
The object attributes.
Generates a field like E = a(t) * sin{2*pi * integral(f(tau),0,t) + q(t)} B = 0 where E0,...
virtual void setHeight(double fullHeight)
Set the full height of the cavity.
virtual void setPhaseName(const std::string &phase)
Set the phase time dependence name.
virtual void setAmplitudeName(const std::string &litude)
Set the amplitude time dependence name.
virtual void setLength(double length)
Set the length of the cavity.
virtual void setFrequencyName(const std::string &frequency)
Set the frequency time dependence name.
virtual void setWidth(double fullWidth)
Set the full width of the cavity.
virtual void update()
Update the embedded CLASSIC element.
void registerOwnership() const
OpalVariableRFCavity()
Default constructor.
OpalVariableRFCavity * clone()
Inherited copy constructor.
static const std::string doc_string
virtual ~OpalVariableRFCavity()
Destructor does nothing.
virtual void update()
Update the OpalVariableRFCavity with new parameters from UI parser.