OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
Astra1DMagnetoStatic_fast.h
Go to the documentation of this file.
1 #ifndef CLASSIC_AstraFIELDMAP1DMAGNETOSTATICFAST_HH
2 #define CLASSIC_AstraFIELDMAP1DMAGNETOSTATICFAST_HH
3 
4 #include "Fields/Astra1D_fast.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 private:
19  Astra1DMagnetoStatic_fast(std::string aFilename);
21 
22  virtual void readMap();
23 
24  bool readFileHeader(std::ifstream &file);
25  int stripFileHeader(std::ifstream &file);
26 
27  friend class Fieldmap;
28 };
29 
30 #endif
DiffDirection
Definition: Fieldmap.h:54
int stripFileHeader(std::ifstream &file)
virtual void getFieldDimensions(double &zBegin, double &zEnd) const
virtual bool getFieldstrength(const Vector_t &R, Vector_t &E, Vector_t &B) const
virtual void setFrequency(double freq)
bool readFileHeader(std::ifstream &file)
virtual bool getFieldDerivative(const Vector_t &R, Vector_t &E, Vector_t &B, const DiffDirection &dir) const
Astra1DMagnetoStatic_fast(std::string aFilename)
Definition: Inform.h:42