Class LoopFieldSource#

Inheritance Relationships#

Base Type#

Class Documentation#

class LoopFieldSource : public OrbitUtils::ShiftedFieldSource#

A class implements of BaseFiledSource class with magnetic fields of hard-edge quad

Public Functions

LoopFieldSource()#

Constructor.

~LoopFieldSource()#

Destructor

void setRadius(double radius)#

Sets the radius of the loop

double getRadius()#

Returns the radius of the loop

void setCurrent(double current)#

Sets the current in [A]

double getCurrent()#

Returns the current in [A]

void setMaxZ(double z_max)#

Sets the max distance in z direction

double getMaxZ()#

Returns the max distance in z direction

void setMaxR(double r_max)#

Sets the max distance in x-y plane

double getMaxR()#

Returns the max distance in x-y plane

virtual void getInnerElectricMagneticField(double x, double y, double z, double t, double &E_x, double &E_y, double &E_z, double &H_x, double &H_y, double &H_z)#

Returns inner components of the electric and magnetic fields.