OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
Public Member Functions | Private Member Functions | List of all members
TrimCoilBFit Class Reference

#include <TrimCoilBFit.h>

Inheritance diagram for TrimCoilBFit:
Inheritance graph
[legend]
Collaboration diagram for TrimCoilBFit:
Collaboration graph
[legend]

Public Member Functions

 TrimCoilBFit (double bmax, double rmin, double rmax, const std::vector< double > &coefnum, const std::vector< double > &coefdenom, const std::vector< double > &coefnumphi, const std::vector< double > &coefdenomphi)
 
virtual ~TrimCoilBFit ()
 
- Public Member Functions inherited from TrimCoilFit
 TrimCoilFit (double bmax, double rmin, double rmax, const std::vector< double > &coefnum, const std::vector< double > &coefdenom, const std::vector< double > &coefnumphi, const std::vector< double > &coefdenomphi)
 
virtual ~TrimCoilFit ()
 
- Public Member Functions inherited from TrimCoil
 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 ()
 

Private Member Functions

 TrimCoilBFit ()=delete
 
virtual void doApplyField (const double r, const double z, const double phi_rad, double *br, double *bz)
 virtual implementation of applyField More...
 

Additional Inherited Members

- Protected Types inherited from TrimCoilFit
enum  PolynomType { NUM , DENOM , NUMPHI , DENOMPHI }
 
enum  FunctionType { RADIUS =0 , PHI =2 }
 
- Protected Member Functions inherited from TrimCoilFit
void calculateRationalFunction (FunctionType, double value, double &quot, double &der_quot) const
 calculate rational function and its first derivative More...
 
void calculateRationalFunction (FunctionType, double value, double &quot, double &der_quot, double &der2_quot) const
 calculate rational function and its first and second derivative More...
 
- Protected Attributes inherited from TrimCoil
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...
 

Detailed Description

Definition at line 32 of file TrimCoilBFit.h.

Constructor & Destructor Documentation

◆ TrimCoilBFit() [1/2]

TrimCoilBFit::TrimCoilBFit ( double  bmax,
double  rmin,
double  rmax,
const std::vector< double > &  coefnum,
const std::vector< double > &  coefdenom,
const std::vector< double > &  coefnumphi,
const std::vector< double > &  coefdenomphi 
)

Definition at line 27 of file TrimCoilBFit.cpp.

◆ ~TrimCoilBFit()

virtual TrimCoilBFit::~TrimCoilBFit ( )
inlinevirtual

Definition at line 43 of file TrimCoilBFit.h.

◆ TrimCoilBFit() [2/2]

TrimCoilBFit::TrimCoilBFit ( )
privatedelete

Member Function Documentation

◆ doApplyField()

void TrimCoilBFit::doApplyField ( const double  r,
const double  z,
const double  phi_rad,
double *  br,
double *  bz 
)
privatevirtual

virtual implementation of applyField

Implements TrimCoil.

Definition at line 37 of file TrimCoilBFit.cpp.

References TrimCoil::bmax_m, TrimCoilFit::calculateRationalFunction(), TrimCoilFit::PHI, TrimCoilFit::RADIUS, and TrimCoil::rmax_m.

Here is the call graph for this function:

The documentation for this class was generated from the following files: