OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
#include <TrimCoil.h>
Public Member Functions | |
TrimCoil (double bmax, double rmin, double rmax) | |
void | applyField (const double r, const double z, const double phi_rad, double *br, double *bz) |
void | setAzimuth (const double phimin, const double phimax) |
Set azimuthal range. More... | |
virtual | ~TrimCoil () |
Protected Attributes | |
double | bmax_m |
Maximum B field (kG) More... | |
double | rmin_m |
Minimum radius (m) More... | |
double | rmax_m |
Maximum radius (m) More... | |
double | phimin_m = 0.0 |
Minimal azimuth (rad) More... | |
double | phimax_m = Physics::two_pi |
Maximal azimuth (rad) More... | |
Private Member Functions | |
virtual void | doApplyField (const double r, const double z, const double phi_rad, double *br, double *bz)=0 |
virtual implementation of applyField More... | |
Definition at line 30 of file TrimCoil.h.
TrimCoil::TrimCoil | ( | double | bmax, |
double | rmin, | ||
double | rmax | ||
) |
Definition at line 31 of file TrimCoil.cpp.
|
inlinevirtual |
Definition at line 40 of file TrimCoil.h.
void TrimCoil::applyField | ( | const double | r, |
const double | z, | ||
const double | phi_rad, | ||
double * | br, | ||
double * | bz | ||
) |
Apply the trim coil at position r and z to Bfields br and bz Calls virtual doApplyField
Definition at line 43 of file TrimCoil.cpp.
References abs(), bmax_m, doApplyField(), Physics::e, phimax_m, and phimin_m.
|
privatepure virtual |
virtual implementation of applyField
Implemented in TrimCoilPhaseFit, TrimCoilMirrored, and TrimCoilBFit.
Referenced by applyField().
void TrimCoil::setAzimuth | ( | const double | phimin, |
const double | phimax | ||
) |
Set azimuthal range.
Definition at line 52 of file TrimCoil.cpp.
References Physics::deg2rad, phimax_m, and phimin_m.
|
protected |
Maximum B field (kG)
Definition at line 45 of file TrimCoil.h.
Referenced by applyField(), TrimCoilBFit::doApplyField(), TrimCoilPhaseFit::doApplyField(), and TrimCoil().
|
protected |
Maximal azimuth (rad)
Definition at line 53 of file TrimCoil.h.
Referenced by applyField(), and setAzimuth().
|
protected |
Minimal azimuth (rad)
Definition at line 51 of file TrimCoil.h.
Referenced by applyField(), and setAzimuth().
|
protected |
Maximum radius (m)
Definition at line 49 of file TrimCoil.h.
Referenced by TrimCoilBFit::doApplyField(), TrimCoilMirrored::doApplyField(), TrimCoilPhaseFit::doApplyField(), and TrimCoil().
|
protected |
Minimum radius (m)
Definition at line 47 of file TrimCoil.h.
Referenced by TrimCoilMirrored::doApplyField(), and TrimCoil().