28 #ifndef CLASSIC_ABSBEAMLINE_VariableRFCavity_HH
29 #define CLASSIC_ABSBEAMLINE_VariableRFCavity_HH
124 virtual bool bends()
const override {
return false;}
151 virtual inline double getPhase(
double time)
const;
156 virtual inline double getWidth()
const;
160 virtual inline void setHeight(
double fullHeight);
162 virtual inline void setWidth(
double fullWidth);
169 virtual std::shared_ptr<AbstractTimeDependence>
getPhaseModel()
const;
174 virtual void setAmplitudeModel(std::shared_ptr<AbstractTimeDependence> time_dep);
176 virtual void setPhaseModel(std::shared_ptr<AbstractTimeDependence> time_dep);
178 virtual void setFrequencyModel(std::shared_ptr<AbstractTimeDependence> time_dep);
Interface for a single beam element.
virtual void setPhaseName(std::string phase)
std::shared_ptr< AbstractTimeDependence > frequencyTD_m
StraightGeometry geometry
The cavity's geometry.
virtual void setHeight(double fullHeight)
virtual double getAmplitude(double time) const
virtual void finalise() override
std::string amplitudeName_m
virtual void getDimensions(double &, double &) const override
virtual void setAmplitudeName(std::string amplitude)
virtual double getFrequency(double time) const
std::string frequencyName_m
static const double lengthUnit_m
virtual bool bends() const override
virtual double getWidth() const
virtual std::shared_ptr< AbstractTimeDependence > getFrequencyModel() const
virtual double getLength() const
virtual bool apply(const size_t &i, const double &t, Vector_t &E, Vector_t &B) override
virtual void setPhaseModel(std::shared_ptr< AbstractTimeDependence > time_dep)
virtual ~VariableRFCavity()
virtual std::shared_ptr< AbstractTimeDependence > getAmplitudeModel() const
virtual double getHeight() const
virtual void setFrequencyModel(std::shared_ptr< AbstractTimeDependence > time_dep)
virtual void setLength(double length)
virtual bool applyToReferenceParticle(const Vector_t &R, const Vector_t &P, const double &t, Vector_t &E, Vector_t &B) override
std::shared_ptr< AbstractTimeDependence > amplitudeTD_m
virtual double getPhase(double time) const
virtual void accept(BeamlineVisitor &) const override
virtual void setWidth(double fullWidth)
virtual std::shared_ptr< AbstractTimeDependence > getPhaseModel() const
virtual ElementBase * clone() const override
virtual EMField & getField() override
Not implemented.
std::shared_ptr< AbstractTimeDependence > phaseTD_m
virtual StraightGeometry & getGeometry() override
virtual void setFrequencyName(std::string frequency)
VariableRFCavity & operator=(const VariableRFCavity &)
virtual void setAmplitudeModel(std::shared_ptr< AbstractTimeDependence > time_dep)
A geometry representing a straight line.
Abstract base class for electromagnetic fields.