# CircularWire¶

class plasmapy.formulary.magnetostatics.CircularWire(normal, center: Unit("m"), radius: Unit("m"), current: Unit("A"), n=300)

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 a GeneralWire.

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 vector B – magnetic field at the specified positon 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 a GeneralWire.