OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
Astra1DElectroStatic.h
Go to the documentation of this file.
1 #ifndef CLASSIC_AstraFIELDMAP1DELECTROSTATIC_HH
2 #define CLASSIC_AstraFIELDMAP1DELECTROSTATIC_HH
3 
4 #include "Fields/Fieldmap.h"
5 
7 
8 public:
9  virtual bool getFieldstrength(const Vector_t &R, Vector_t &E, Vector_t &B) const;
10  virtual void getFieldDimensions(double &zBegin, double &zEnd) const;
11  virtual void getFieldDimensions(double &xIni, double &xFinal, double &yIni, double &yFinal, double &zIni, double &zFinal) const;
12  virtual bool getFieldDerivative(const Vector_t &R, Vector_t &E, Vector_t &B, const DiffDirection &dir) const;
13  virtual void swap();
14  virtual void getInfo(Inform *);
15  virtual double getFrequency() const;
16  virtual void setFrequency(double freq);
17 
18  virtual bool isInside(const Vector_t &r) const;
19 private:
20  Astra1DElectroStatic(std::string aFilename);
22 
23  virtual void readMap();
24  virtual void freeMap();
25 
26  double *FourCoefs_m;
27 
28  double zbegin_m;
29  double zend_m;
30  double length_m;
31 
34 
35  friend class Fieldmap;
36 };
37 
38 inline bool Astra1DElectroStatic::isInside(const Vector_t &r) const
39 {
40  return r(2) >= zbegin_m && r(2) < zend_m;
41 }
42 
43 #endif
DiffDirection
Definition: Fieldmap.h:54
virtual bool getFieldstrength(const Vector_t &R, Vector_t &E, Vector_t &B) const
virtual double getFrequency() const
Astra1DElectroStatic(std::string aFilename)
virtual void setFrequency(double freq)
virtual void getFieldDimensions(double &zBegin, double &zEnd) const
virtual bool getFieldDerivative(const Vector_t &R, Vector_t &E, Vector_t &B, const DiffDirection &dir) const
virtual void getInfo(Inform *)
virtual bool isInside(const Vector_t &r) const
Definition: Inform.h:42