51 if (inputFile.good()) {
53 std::string tempString;
54 double tempDouble = 0.0;
59 parsingPassed = parsingPassed
133 std::string tempString;
137 inputFile, tempString, tempInt, tempInt, tempDouble);
139 inputFile, tempDouble, tempDouble, tempDouble, tempInt);
141 inputFile, tempDouble, tempDouble, tempDouble, tempInt);
201 double& ,
double& ,
double& ,
double& ,
double& ,
209 (*msg) <<
Filename_m <<
" (1D Profile type 1)" << endl;
220 std::vector<double>& engeCoeffsEntry, std::vector<double>& engeCoeffsExit) {
226 double& entranceParameter1,
double& entranceParameter2,
double& entranceParameter3) {
233 double& exitParameter1,
double& exitParameter2,
double& exitParameter3) {
255 const size_t N = coefs.size();
256 double expSum = coefs.at(0);
258 for (
size_t i = 1; i < N; ++i) {
259 expSum += std::pow(z, i) * coefs.at(i);
262 return 1.0 / (1.0 + exp(expSum));
ippl::Vector< T, Dim > Vector_t
bool interpreteEOF(std::ifstream &in)
void disableFieldmapWarning()
static std::string typeset_msg(const std::string &msg, const std::string &title)
bool interpretLine(std::ifstream &in, S &value, const bool &file_length_known=true)
double entranceParameter2_m
double entranceParameter3_m
virtual void setFrequency(double freq)
double entranceParameter1_m
double gapHeight_m
Enge function order for entry region.
virtual void get1DProfile1ExitParam(double &exitParameter1, double &exitParameter2, double &exitParameter3)
double computeExitFringe(double z) const
double computeFringe(const std::vector< double > &coefs, double z) const
virtual void get1DProfile1EngeCoeffs(std::vector< double > &engeCoeffsEntry, std::vector< double > &engeCoeffsExit)
friend class Fieldmap
End of field map in s coordinates (m).
virtual double getFrequency() const
virtual bool getFieldDerivative(const Vector_t< double, 3 > &X, Vector_t< double, 3 > &E, Vector_t< double, 3 > &B, const DiffDirection &dir) const
virtual double getFieldGap()
virtual void setFieldGap(double gap)
virtual bool getFieldstrength(const Vector_t< double, 3 > &X, Vector_t< double, 3 > &strength, Vector_t< double, 3 > &info) const
virtual void getInfo(Inform *)
double sEnd_m
Start of field map in s coordinates (m).
FM1DProfile1(std::string Filename)
Constructor with field map file name.
double sBegin_m
Full gap height of field map.
std::vector< double > engeCoeffsEntry_m
Enge coefficients for map entry and exit regions.
virtual void getFieldDimensions(double &zBegin, double &zEnd) const
int polyOrderExit_m
Enge function order for entry region.
virtual void get1DProfile1EntranceParam(double &entranceParameter1, double &entranceParameter2, double &entranceParameter3)
double computeEntranceFringe(double z) const
std::vector< double > engeCoeffsExit_m