CircularWire¶
-
class
plasmapy.formulary.
CircularWire
(normal, center: Unit(‘m’), radius: Unit(‘m’), current: Unit(‘A’), n=300)¶ Bases:
plasmapy.formulary.magnetostatics.Wire
Circular wire(coil) class
- Parameters
normal – three-dimensional normal vector of the circular coil
center (
astropy.units.Quantity
) – three-dimensional position vector of the circular coil’s centerradius (
astropy.units.Quantity
) – radius of the circular coilcurrent (
astropy.units.Quantity
) – electric current
Methods Summary
Calculate magnetic field generated by this wire at position
p
Convert this
Wire
into aGeneralWire
.Methods Documentation
-
magnetic_field
(p)¶ Calculate magnetic field generated by this wire at position
p
- Parameters
p (
astropy.units.Quantity
) – three-dimensional position vector- Returns
B – magnetic field at the specified positon
- Return type
Notes
We use n points Gauss-Legendre quadrature to compute the integral. The default n is 300.
-
to_GeneralWire
()¶ Convert this
Wire
into aGeneralWire
.