OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
OpalCavity.h
Go to the documentation of this file.
1//
2// Class OpalCavity
3// The RFCAVITY element.
4//
5// Copyright (c) 200x - 2020, Paul Scherrer Institut, Villigen PSI, Switzerland
6// All rights reserved
7//
8// This file is part of OPAL.
9//
10// OPAL is free software: you can redistribute it and/or modify
11// it under the terms of the GNU General Public License as published by
12// the Free Software Foundation, either version 3 of the License, or
13// (at your option) any later version.
14//
15// You should have received a copy of the GNU General Public License
16// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
17//
18#ifndef OPAL_OpalCavity_HH
19#define OPAL_OpalCavity_HH
20
22
23class OpalWake;
25
26class OpalCavity : public OpalElement {
27public:
29 enum {
30 VOLT = COMMON, // The peak voltage.
31 DVOLT, // The peak voltage error.
32 GEOMETRY, // geometry of boundary
33 FREQ, // The RF frequency.
34 LAG, // The phase lag.
35 DLAG, // The phase lag error.
36 FMAPFN, // The filename of the fieldmap
37 FAST, // Faster but less accurate
38 APVETO, // Do not use this cavity in the Autophase procedure
39 RMIN, // Minimal Radius
40 RMAX, // Maximal Radius
41 ANGLE, // the azimuth position of the cavity
42 PDIS, // perpendicular distance from symmetric line of cavity gap to machine center
43 GAPWIDTH, // constant gap width of cavity
44 PHI0, // initial phase of cavity
45 DESIGNENERGY, // The mean kinetic energy at exit
46 PHASE_MODEL, // time dependent phase
47 AMPLITUDE_MODEL, // time dependent amplitude
48 FREQUENCY_MODEL, // time dependent frequency
49 SIZE
50 };
51
53 OpalCavity();
54
55 virtual ~OpalCavity();
56
58 virtual OpalCavity* clone(const std::string& name);
59
61 virtual void update();
62
63private:
64 // Not implemented.
66 void operator=(const OpalCavity&);
67
68 // Clone constructor.
69 OpalCavity(const std::string& name, OpalCavity* parent);
70
72};
73
74#endif // OPAL_OpalCavity_HH
OpalCavity(const OpalCavity &)
void operator=(const OpalCavity &)
virtual ~OpalCavity()
virtual OpalCavity * clone(const std::string &name)
Make clone.
virtual void update()
Update the embedded OPALX cavity.
@ AMPLITUDE_MODEL
Definition OpalCavity.h:47
@ FREQUENCY_MODEL
Definition OpalCavity.h:48
BoundaryGeometry * obgeo_m
Definition OpalCavity.h:71
OpalCavity()
Exemplar constructor.