|
OPAL (Object Oriented Parallel Accelerator Library)
2024.1
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 where trim coil acts: [phimin, phimax] (also when phimin > phimax) 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 32 of file TrimCoil.cpp.
References bmax_m, Units::mm2m, rmax_m, rmin_m, and Units::T2kG.
|
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(), Util::angle_0to2pi(), Util::angleBetweenAngles(), bmax_m, doApplyField(), Physics::e, phimax_m, and phimin_m.

|
privatepure virtual |
virtual implementation of applyField
Implemented in TrimCoilBFit, TrimCoilPhaseFit, and TrimCoilMirrored.
Referenced by applyField().
| void TrimCoil::setAzimuth | ( | const double | phimin, |
| const double | phimax | ||
| ) |
Set azimuthal range where trim coil acts: [phimin, phimax] (also when phimin > phimax)
Definition at line 53 of file TrimCoil.cpp.
References Util::angle_0to2pi(), Units::deg2rad, phimax_m, and phimin_m.

|
protected |
Maximum B field (kG)
Definition at line 40 of file TrimCoil.h.
Referenced by applyField(), TrimCoilMirrored::doApplyField(), TrimCoilPhaseFit::doApplyField(), TrimCoilBFit::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 TrimCoilMirrored::doApplyField(), TrimCoilPhaseFit::doApplyField(), TrimCoilBFit::doApplyField(), and TrimCoil().
|
protected |
Minimum radius (m)
Definition at line 47 of file TrimCoil.h.
Referenced by TrimCoilMirrored::doApplyField(), and TrimCoil().
1.8.5