OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
The field of a magnetic dipole. More...
#include <BDipoleField.h>
Public Member Functions | |
BDipoleField () | |
Default constructor. More... | |
virtual | ~BDipoleField () |
virtual BVector | Bfield (const Point3D &P) const |
Get field. More... | |
virtual BVector | Bfield (const Point3D &P, double t) const |
Get field. More... | |
virtual double | getBx () const |
Get horizontal component. More... | |
virtual double | getBy () const |
Get vertical component. More... | |
virtual void | setBx (double Bx) |
Set horizontal component. More... | |
virtual void | setBy (double By) |
Set vertical component. More... | |
BDipoleField & | addField (const BDipoleField &field) |
Add to field. More... | |
BDipoleField & | subtractField (const BDipoleField &field) |
Subtract from field. More... | |
virtual void | scale (double scalar) |
Scale the field. More... | |
Public Member Functions inherited from ConstBField | |
ConstBField () | |
Default constructor. More... | |
virtual | ~ConstBField () |
virtual double | getBz () const |
Get component. More... | |
virtual void | setBz (double) |
Set component. More... | |
Public Member Functions inherited from StaticMagneticField | |
StaticMagneticField () | |
virtual | ~StaticMagneticField () |
Public Member Functions inherited from EMField | |
EMField () | |
Default constructor. More... | |
EMField (const EMField &right) | |
virtual | ~EMField () |
const EMField & | operator= (const EMField &right) |
virtual EVector | Efield (const Point3D &P) const |
Get field. More... | |
virtual EVector | Efield (const Point3D &P, double t) const |
Get field. More... | |
virtual EBVectors | EBfield (const Point3D &P) const |
Get field. More... | |
virtual EBVectors | EBfield (const Point3D &P, double t) const |
Get field. More... | |
Private Attributes | |
double | Bx |
double | By |
Additional Inherited Members | |
Static Public Attributes inherited from EMField | |
static const EVector | ZeroEfield |
The constant representing a zero electric field. More... | |
static const BVector | ZeroBfield |
The constant representing a zero magnetic field. More... | |
static const EBVectors | ZeroEBfield |
The constant representing a zero electromagnetic field. More... | |
The field of a magnetic dipole.
Definition at line 31 of file BDipoleField.h.
BDipoleField::BDipoleField | ( | ) |
Default constructor.
Definition at line 27 of file BDipoleField.cpp.
|
virtual |
Definition at line 31 of file BDipoleField.cpp.
BDipoleField & BDipoleField::addField | ( | const BDipoleField & | field | ) |
|
virtual |
Get horizontal component.
Reimplemented from ConstBField.
Definition at line 45 of file BDipoleField.cpp.
References Bx.
Referenced by CorrectorRep::getBx().
|
virtual |
Get vertical component.
Reimplemented from ConstBField.
Definition at line 49 of file BDipoleField.cpp.
References By.
Referenced by CorrectorRep::getBy().
|
virtual |
|
virtual |
Set horizontal component.
Reimplemented from ConstBField.
Definition at line 54 of file BDipoleField.cpp.
References Bx.
Referenced by CorrectorRep::setBx().
|
virtual |
Set vertical component.
Reimplemented from ConstBField.
Definition at line 58 of file BDipoleField.cpp.
References By.
Referenced by CorrectorRep::setBy().
BDipoleField & BDipoleField::subtractField | ( | const BDipoleField & | field | ) |
|
private |
Definition at line 82 of file BDipoleField.h.
Referenced by addField(), Bfield(), getBx(), scale(), setBx(), and subtractField().
|
private |
Definition at line 82 of file BDipoleField.h.
Referenced by addField(), Bfield(), getBy(), scale(), setBy(), and subtractField().