14       FieldstrengthEz_m(NULL),
 
   15       FieldstrengthEr_m(NULL),
 
   16       FieldstrengthBt_m(NULL) {
 
   18     std::string tmpString;
 
   26         bool parsing_passed = 
true;
 
   28             parsing_passed = interpretLine<std::string, std::string>(file, tmpString, tmpString);
 
   30             parsing_passed = interpretLine<std::string, std::string, std::string>(file, tmpString, tmpString, tmpString);
 
   33             if (tmpString != 
"TRUE" &&
 
   36                                               "The third string on the first line of 2D field " 
   37                                               "maps has to be either TRUE or FALSE");
 
   42         if(tmpString == 
"ZX") {
 
   44             parsing_passed = parsing_passed &&
 
   46             parsing_passed = parsing_passed &&
 
   48             parsing_passed = parsing_passed &&
 
   50         } 
else if(tmpString == 
"XZ") {
 
   52             parsing_passed = parsing_passed &&
 
   54             parsing_passed = parsing_passed &&
 
   56             parsing_passed = parsing_passed &&
 
   59             std::cerr << 
"unknown orientation of 2D dynamic fieldmap" << 
std::endl;
 
   60             parsing_passed = 
false;
 
   66             parsing_passed = parsing_passed && interpretLine<double, double, double, double>(file, tmpDouble, tmpDouble, tmpDouble, tmpDouble);
 
   69         parsing_passed = parsing_passed &&
 
   79                                           "An error occured when reading the fieldmap '" + 
Filename_m + 
"'");
 
  113         std::string tmpString;
 
  114         double tmpDouble, Ezmax = 0.0;
 
  130                     interpretLine<double, double, double, double>(in,
 
  140                     interpretLine<double, double, double, double>(in,
 
  193     const double leverr = RR / 
hr_m - indexr;
 
  222         E(0) += EfieldR * 
R(0) / RR;
 
  223         E(1) += EfieldR * 
R(1) / RR;
 
  224         B(0) -= BfieldT * 
R(1) / RR;
 
  225         B(1) += BfieldT * 
R(0) / RR;
 
Tps< T > sqrt(const Tps< T > &x)
Square root.
 
PETE_TUTree< FnAbs, typename T::PETE_Expr_t > abs(const PETE_Expr< T > &l)
 
PETE_TUTree< FnFloor, typename T::PETE_Expr_t > floor(const PETE_Expr< T > &l)
 
Inform & endl(Inform &inf)
 
Inform & level3(Inform &inf)
 
constexpr double two_pi
The value of.
 
constexpr double e
The value of.
 
constexpr double mu_0
The permeability of vacuum in Vs/Am.
 
std::string toUpper(const std::string &str)
 
bool interpreteEOF(std::ifstream &in)
 
void disableFieldmapWarning()
 
static std::string typeset_msg(const std::string &msg, const std::string &title)
 
void getLine(std::ifstream &in, std::string &buffer)
 
double * FieldstrengthEz_m
 
virtual void getFieldDimensions(double &zBegin, double &zEnd) const
 
virtual double getFrequency() const
 
virtual bool getFieldDerivative(const Vector_t &R, Vector_t &E, Vector_t &B, const DiffDirection &dir) const
 
virtual void setFrequency(double freq)
 
virtual void getInfo(Inform *msg)
 
virtual void getOnaxisEz(std::vector< std::pair< double, double > > &F)
 
double * FieldstrengthBt_m
 
FM2DDynamic(std::string aFilename)
 
virtual bool getFieldstrength(const Vector_t &R, Vector_t &E, Vector_t &B) const
 
double * FieldstrengthEr_m