OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
FMDummy.h
Go to the documentation of this file.
1 #ifndef CLASSIC_FIELDMAPDUMMY
2 #define CLASSIC_FIELDMAPDUMMY
3 
4 #include "Fields/Fieldmap.h"
5 
6 class FMDummy: public Fieldmap {
7 
8 public:
9  virtual bool getFieldstrength(const Vector_t &R, Vector_t &E, Vector_t &B) const;
10  virtual bool getFieldDerivative(const Vector_t &R, Vector_t &E, Vector_t &B, const DiffDirection &dir) const;
11  virtual void getFieldDimensions(double &zBegin, double &zEnd) const;
12  virtual void getFieldDimensions(double &xIni, double &xFinal, double &yIni, double &yFinal, double &zIni, double &zFinal) const;
13  virtual void swap();
14  virtual void getInfo(Inform *);
15  virtual double getFrequency() const;
16  virtual void setFrequency(double freq);
17 
18 private:
19  FMDummy(std::string aFilename);
20  ~FMDummy();
21 
22  virtual void readMap();
23  virtual void freeMap();
24 
25  double zbegin_m;
26  double zend_m;
27 
28  friend class Fieldmap;
29 };
30 
31 #endif
DiffDirection
Definition: Fieldmap.h:54
Definition: FMDummy.h:6
virtual void swap()
Definition: FMDummy.cpp:48
virtual void getInfo(Inform *)
Definition: FMDummy.cpp:51
virtual bool getFieldstrength(const Vector_t &R, Vector_t &E, Vector_t &B) const
Definition: FMDummy.cpp:34
virtual void getFieldDimensions(double &zBegin, double &zEnd) const
Definition: FMDummy.cpp:42
~FMDummy()
Definition: FMDummy.cpp:25
virtual void freeMap()
Definition: FMDummy.cpp:31
virtual void setFrequency(double freq)
Definition: FMDummy.cpp:59
FMDummy(std::string aFilename)
Definition: FMDummy.cpp:5
virtual bool getFieldDerivative(const Vector_t &R, Vector_t &E, Vector_t &B, const DiffDirection &dir) const
Definition: FMDummy.cpp:38
virtual void readMap()
Definition: FMDummy.cpp:28
virtual double getFrequency() const
Definition: FMDummy.cpp:54
double zend_m
Definition: FMDummy.h:26
double zbegin_m
Definition: FMDummy.h:25
Definition: Inform.h:42