30 const std::vector<double>& coefnum,
31 const std::vector<double>& coefdenom,
32 const std::vector<double>& coefnumphi,
33 const std::vector<double>& coefdenomphi):
34 TrimCoilFit(bmax, rmin, rmax, coefnum, coefdenom, coefnumphi, coefdenomphi)
40 if (r < rmin_m || r >
rmax_m)
return;
42 double btr = 0.0, dr = 0.0;
44 double phi = 0.0, dphi = 0.0;
50 *br +=
bmax_m * (dr * phi + btr*dphi) * z;
double bmax_m
Maximum B field (kG)
double rmax_m
Maximum radius (m)
virtual void doApplyField(const double r, const double z, const double phi_rad, double *br, double *bz)
virtual implementation of applyField
void calculateRationalFunction(FunctionType, double value, double ", double &der_quot) const
calculate rational function and its first derivative