OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
#include <FM1DProfile1.h>
Public Member Functions | |
virtual bool | getFieldDerivative (const Vector_t &X, Vector_t &E, Vector_t &B, const DiffDirection &dir) const |
virtual void | get1DProfile1EntranceParam (double &entranceParameter1, double &entranceParameter2, double &entranceParameter3) |
virtual void | get1DProfile1ExitParam (double &exitParameter1, double &exitParameter2, double &exitParameter3) |
virtual double | getFieldGap () |
virtual void | getFieldDimensions (double &zBegin, double &zEnd) const |
virtual void | getFieldDimensions (double &xIni, double &xFinal, double &yIni, double &yFinal, double &zIni, double &zFinal) const |
virtual bool | getFieldstrength (const Vector_t &X, Vector_t &strength, Vector_t &info) const |
virtual double | getFrequency () const |
virtual void | getInfo (Inform *) |
virtual void | setFrequency (double freq) |
virtual void | get1DProfile1EngeCoeffs (std::vector< double > &engeCoeffsEntry, std::vector< double > &engeCoeffsExit) |
virtual void | swap () |
virtual void | setFieldGap (double gap) |
Public Member Functions inherited from Fieldmap | |
virtual void | setEdgeConstants (const double &bendAngle, const double &entranceAngle, const double &exitAngle) |
virtual void | setFieldLength (const double &) |
MapType | getType () |
virtual void | getOnaxisEz (std::vector< std::pair< double, double > > &onaxis) |
virtual bool | isInside (const Vector_t &) const |
template<class T > | |
bool | interpretLine (std::ifstream &in, T &value, const bool &file_length_known) |
Private Member Functions | |
FM1DProfile1 (std::string Filename) | |
Constructor with field map file name. More... | |
virtual | ~FM1DProfile1 () |
virtual void | freeMap () |
virtual void | readMap () |
double | computeEntranceFringe (double z) const |
double | computeExitFringe (double z) const |
double | computeFringe (const std::vector< double > &coefs, double z) const |
Private Attributes | |
double | entranceParameter1_m |
double | entranceParameter2_m |
double | entranceParameter3_m |
double | exitParameter1_m |
double | exitParameter2_m |
double | exitParameter3_m |
std::vector< double > | engeCoeffsEntry_m |
Enge coefficients for map entry and exit regions. More... | |
std::vector< double > | engeCoeffsExit_m |
int | polyOrderEntry_m |
int | polyOrderExit_m |
Enge function order for entry region. More... | |
double | gapHeight_m |
Enge function order for entry region. More... | |
double | sBegin_m |
Full gap height of field map. More... | |
double | sEnd_m |
Start of field map in s coordinates (m). More... | |
Friends | |
class | Fieldmap |
End of field map in s coordinates (m). More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Fieldmap | |
static Fieldmap * | getFieldmap (std::string Filename, bool fast=false) |
static std::vector< std::string > | getListFieldmapNames () |
static void | deleteFieldmap (std::string Filename) |
static void | clearDictionary () |
static MapType | readHeader (std::string Filename) |
static void | readMap (std::string Filename) |
static void | freeMap (std::string Filename) |
static std::string | typeset_msg (const std::string &msg, const std::string &title) |
Protected Member Functions inherited from Fieldmap | |
Fieldmap ()=delete | |
Fieldmap (const std::string &aFilename) | |
virtual | ~Fieldmap () |
void | getLine (std::ifstream &in, std::string &buffer) |
template<class S > | |
bool | interpretLine (std::ifstream &in, S &value, const bool &file_length_known=true) |
template<class S , class T > | |
bool | interpretLine (std::ifstream &in, S &value1, T &value2, const bool &file_length_known=true) |
template<class S , class T , class U > | |
bool | interpretLine (std::ifstream &in, S &value1, T &value2, U &value3, const bool &file_length_known=true) |
template<class S , class T , class U , class V > | |
bool | interpretLine (std::ifstream &in, S &value1, T &value2, U &value3, V &value4, const bool &file_length_known=true) |
template<class S > | |
bool | interpretLine (std::ifstream &in, S &value1, S &value2, S &value3, S &value4, S &value5, S &value6, const bool &file_length_known=true) |
bool | interpreteEOF (std::ifstream &in) |
void | interpretWarning (const std::ios_base::iostate &state, const bool &read_all, const std::string &error_msg, const std::string &found) |
void | missingValuesWarning () |
void | exceedingValuesWarning () |
void | disableFieldmapWarning () |
void | noFieldmapWarning () |
void | lowResolutionWarning (double squareError, double maxError) |
void | checkMap (unsigned int accuracy, std::pair< double, double > fieldDimensions, double deltaZ, const std::vector< double > &fourierCoefficients, gsl_spline *splineCoefficients, gsl_interp_accel *splineAccelerator) |
void | checkMap (unsigned int accuracy, double length, const std::vector< double > &zSampling, const std::vector< double > &fourierCoefficients, gsl_spline *splineCoefficients, gsl_interp_accel *splineAccelerator) |
void | write3DField (unsigned int nx, unsigned int ny, unsigned int nz, const std::pair< double, double > &xrange, const std::pair< double, double > &yrange, const std::pair< double, double > &zrange, const std::vector< Vector_t > &ef, const std::vector< Vector_t > &bf) |
Static Protected Member Functions inherited from Fieldmap | |
static void | getLine (std::ifstream &in, int &lines_read, std::string &buffer) |
Protected Attributes inherited from Fieldmap | |
MapType | Type |
std::string | Filename_m |
int | lines_read_m |
bool | normalize_m |
Definition at line 14 of file FM1DProfile1.h.
|
private |
Constructor with field map file name.
Definition at line 9 of file FM1DProfile1.cpp.
References abs(), Fieldmap::disableFieldmapWarning(), entranceParameter1_m, entranceParameter2_m, entranceParameter3_m, exitParameter1_m, exitParameter2_m, exitParameter3_m, Fieldmap::Filename_m, gapHeight_m, Fieldmap::interpreteEOF(), Fieldmap::noFieldmapWarning(), polyOrderEntry_m, polyOrderExit_m, sBegin_m, sEnd_m, T1DProfile1, and Fieldmap::Type.
|
privatevirtual |
Definition at line 125 of file FM1DProfile1.cpp.
|
private |
Definition at line 290 of file FM1DProfile1.cpp.
References computeFringe(), engeCoeffsEntry_m, and gapHeight_m.
Referenced by readMap().
|
private |
Definition at line 294 of file FM1DProfile1.cpp.
References computeFringe(), engeCoeffsExit_m, and gapHeight_m.
Referenced by readMap().
|
private |
Definition at line 298 of file FM1DProfile1.cpp.
Referenced by computeEntranceFringe(), and computeExitFringe().
|
privatevirtual |
Implements Fieldmap.
Definition at line 208 of file FM1DProfile1.cpp.
|
virtual |
Reimplemented from Fieldmap.
Definition at line 258 of file FM1DProfile1.cpp.
References engeCoeffsEntry_m, and engeCoeffsExit_m.
|
virtual |
Reimplemented from Fieldmap.
Definition at line 265 of file FM1DProfile1.cpp.
References entranceParameter1_m, entranceParameter2_m, and entranceParameter3_m.
|
virtual |
Reimplemented from Fieldmap.
Definition at line 273 of file FM1DProfile1.cpp.
References exitParameter1_m, exitParameter2_m, and exitParameter3_m.
|
virtual |
Implements Fieldmap.
Definition at line 221 of file FM1DProfile1.cpp.
|
virtual |
Implements Fieldmap.
Definition at line 233 of file FM1DProfile1.cpp.
|
virtual |
Implements Fieldmap.
Definition at line 228 of file FM1DProfile1.cpp.
|
virtual |
Reimplemented from Fieldmap.
Definition at line 281 of file FM1DProfile1.cpp.
References gapHeight_m.
|
virtual |
Implements Fieldmap.
Definition at line 211 of file FM1DProfile1.cpp.
|
virtual |
Implements Fieldmap.
Definition at line 251 of file FM1DProfile1.cpp.
|
virtual |
Implements Fieldmap.
Definition at line 245 of file FM1DProfile1.cpp.
References endl(), and Fieldmap::Filename_m.
|
privatevirtual |
Implements Fieldmap.
Definition at line 128 of file FM1DProfile1.cpp.
References computeEntranceFringe(), computeExitFringe(), endl(), engeCoeffsEntry_m, engeCoeffsExit_m, entranceParameter1_m, entranceParameter3_m, exitParameter1_m, exitParameter3_m, Fieldmap::Filename_m, INFOMSG, level3(), polyOrderEntry_m, polyOrderExit_m, and Fieldmap::typeset_msg().
|
virtual |
Reimplemented from Fieldmap.
Definition at line 284 of file FM1DProfile1.cpp.
References gapHeight_m.
|
virtual |
Implements Fieldmap.
Definition at line 255 of file FM1DProfile1.cpp.
|
virtual |
Implements Fieldmap.
Definition at line 242 of file FM1DProfile1.cpp.
|
friend |
End of field map in s coordinates (m).
Definition at line 87 of file FM1DProfile1.h.
|
private |
Enge coefficients for map entry and exit regions.
Definition at line 77 of file FM1DProfile1.h.
Referenced by computeEntranceFringe(), get1DProfile1EngeCoeffs(), and readMap().
|
private |
Definition at line 78 of file FM1DProfile1.h.
Referenced by computeExitFringe(), get1DProfile1EngeCoeffs(), and readMap().
|
private |
Definition at line 69 of file FM1DProfile1.h.
Referenced by FM1DProfile1(), get1DProfile1EntranceParam(), and readMap().
|
private |
Definition at line 70 of file FM1DProfile1.h.
Referenced by FM1DProfile1(), and get1DProfile1EntranceParam().
|
private |
Definition at line 71 of file FM1DProfile1.h.
Referenced by FM1DProfile1(), get1DProfile1EntranceParam(), and readMap().
|
private |
Definition at line 72 of file FM1DProfile1.h.
Referenced by FM1DProfile1(), get1DProfile1ExitParam(), and readMap().
|
private |
Definition at line 73 of file FM1DProfile1.h.
Referenced by FM1DProfile1(), and get1DProfile1ExitParam().
|
private |
Definition at line 74 of file FM1DProfile1.h.
Referenced by FM1DProfile1(), get1DProfile1ExitParam(), and readMap().
|
private |
Enge function order for entry region.
Definition at line 82 of file FM1DProfile1.h.
Referenced by computeEntranceFringe(), computeExitFringe(), FM1DProfile1(), getFieldGap(), and setFieldGap().
|
private |
Definition at line 80 of file FM1DProfile1.h.
Referenced by FM1DProfile1(), and readMap().
|
private |
Enge function order for entry region.
Definition at line 81 of file FM1DProfile1.h.
Referenced by FM1DProfile1(), and readMap().
|
private |
Full gap height of field map.
Definition at line 84 of file FM1DProfile1.h.
Referenced by FM1DProfile1(), and getFieldDimensions().
|
private |
Start of field map in s coordinates (m).
Definition at line 85 of file FM1DProfile1.h.
Referenced by FM1DProfile1(), and getFieldDimensions().