1 #ifndef CLASSIC_FIELDMAP1DDYNAMICFAST_HH
2 #define CLASSIC_FIELDMAP1DDYNAMICFAST_HH
14 double &yIni,
double &yFinal,
15 double &zIni,
double &zFinal)
const;
20 virtual void getOnaxisEz(std::vector<std::pair<double, double>> &eZ);
30 bool checkFileData(std::ifstream &fieldFile,
bool parsingPassed);
32 double onAxisFieldP[],
double onAxisFieldPP[],
33 double onAxisFieldPPP[]);
35 std::vector<double> fieldComponents)
const;
39 double onAxisFieldPP[],
40 double onAxisFieldPPP[]);
42 void normalizeField(
double maxEz, std::vector<double> &fourierCoefs);
43 double readFileData(std::ifstream &fieldFile,
double fieldData[]);
45 std::vector<std::pair<double, double>> &eZ);
47 void scaleField(
double maxEz, std::vector<std::pair<double, double>> &eZ);
gsl_interp_accel * onAxisFieldAccel_m
On axis field third derivative interpolation structure.
FM1DDynamic_fast(std::string aFilename)
virtual void getFieldDimensions(double &zBegin, double &zEnd) const
gsl_spline * onAxisFieldPInterpolants_m
On axis field interpolation structure.
void stripFileHeader(std::ifstream &fieldFile)
virtual bool getFieldstrength(const Vector_t &R, Vector_t &E, Vector_t &B) const
gsl_spline * onAxisFieldInterpolants_m
On axis field data.
double rEnd_m
Minimum radius of field.
double zBegin_m
Maximum radius of field.
gsl_interp_accel * onAxisFieldPPPAccel_m
void computeFieldOffAxis(const Vector_t &R, Vector_t &E, Vector_t &B, std::vector< double > fieldComponents) const
double zEnd_m
Longitudinal start of field.
void computeFieldOnAxis(double z, std::vector< double > &fieldComponents) const
virtual void setFrequency(double freq)
gsl_interp_accel * onAxisFieldPPAccel_m
std::vector< double > computeFourierCoefficients(double fieldData[])
double length_m
Longitudinal end of field.
gsl_spline * onAxisFieldPPPInterpolants_m
On axis field second derivative interpolation structure.
virtual double getFrequency() const
void normalizeField(double maxEz, std::vector< double > &fourierCoefs)
virtual void getOnaxisEz(std::vector< std::pair< double, double >> &eZ)
void computeInterpolationVectors(double onAxisFieldP[], double onAxisFieldPP[], double onAxisFieldPPP[])
double readFileData(std::ifstream &fieldFile, double fieldData[])
void prepareForMapCheck(std::vector< double > &fourierCoefs)
unsigned int numberOfGridPoints_m
Field length.
void computeFieldDerivatives(std::vector< double > fourierCoefs, double onAxisFieldP[], double onAxisFieldPP[], double onAxisFieldPPP[])
virtual bool getFieldDerivative(const Vector_t &R, Vector_t &E, Vector_t &B, const DiffDirection &dir) const
gsl_spline * onAxisFieldPPInterpolants_m
On axis field first derivative interpolation structure.
void scaleField(double maxEz, std::vector< std::pair< double, double >> &eZ)
bool checkFileData(std::ifstream &fieldFile, bool parsingPassed)
bool readFileHeader(std::ifstream &fieldFile)
virtual void getInfo(Inform *)
virtual bool isInside(const Vector_t &r) const
gsl_interp_accel * onAxisFieldPAccel_m
unsigned int accuracy_m
Field grid point spacing.
double deltaZ_m
Number of grid points in field input file.
double rBegin_m
2 Pi divided by the field RF wavelength squared.
double twoPiOverLambdaSq_m
Field angular frequency (Hz).