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 center - radius (
astropy.units.Quantity
) – radius of the circular coil - current (
astropy.units.Quantity
) – electric current
Methods Summary
magnetic_field
(p)Calculate magnetic field generated by this wire at position p
to_GeneralWire
()Convert this Wire
into aGeneralWire
.Methods Documentation
-
magnetic_field
(p) -> Unit("T")¶ Calculate magnetic field generated by this wire at position
p
Parameters: p ( astropy.units.Quantity
) – three-dimensional position vectorReturns: B – magnetic field at the specified positon Return type: astropy.units.Quantity
Notes
We use n points Gauss-Legendre quadrature to compute the integral. The default n is 300.
-
to_GeneralWire
()¶ Convert this
Wire
into aGeneralWire
.