1 #ifndef CLASSIC_FIELDMAP1DDYNAMIC_HH
2 #define CLASSIC_FIELDMAP1DDYNAMIC_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 std::vector<double> fieldComponents)
const;
34 std::vector<double> &fieldComponents)
const;
37 double readFileData(std::ifstream &fieldFile,
double fieldData[]);
39 std::vector<std::pair<double, double>> &eZ);
41 void scaleField(
double maxEz, std::vector<std::pair<double, double>> &eZ);
double zBegin_m
Maximum radius of field.
virtual bool isInside(const Vector_t &r) const
void computeFieldOnAxis(double z, std::vector< double > &fieldComponents) const
int numberOfGridPoints_m
Field length.
void stripFileHeader(std::ifstream &fieldFile)
FM1DDynamic(std::string aFilename)
double twoPiOverLambdaSq_m
Field angular frequency (Hz).
double readFileData(std::ifstream &fieldFile, double fieldData[])
std::vector< double > fourierCoefs_m
Number of Fourier coefficients to use reconstructing field.
void scaleField(double maxEz, std::vector< std::pair< double, double >> &eZ)
double rEnd_m
Minimum radius of field.
double length_m
Longitudinal end of field.
bool checkFileData(std::ifstream &fieldFile, bool parsingPassed)
virtual double getFrequency() const
double zEnd_m
Longitudinal start of field.
virtual bool getFieldstrength(const Vector_t &R, Vector_t &E, Vector_t &B) const
virtual void getFieldDimensions(double &zBegin, double &zEnd) const
int accuracy_m
Number of grid points in field input file.
void computeFourierCoefficients(double maxEz, double fieldData[])
double rBegin_m
2 Pi divided by the field RF wavelength squared.
virtual void getInfo(Inform *)
void computeFieldOffAxis(const Vector_t &R, Vector_t &E, Vector_t &B, std::vector< double > fieldComponents) const
virtual bool getFieldDerivative(const Vector_t &R, Vector_t &E, Vector_t &B, const DiffDirection &dir) const
bool readFileHeader(std::ifstream &fieldFile)
virtual void setFrequency(double freq)
virtual void getOnaxisEz(std::vector< std::pair< double, double >> &eZ)