CircularWire

class plasmapy.formulary.magnetostatics.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 (Quantity) – Three-dimensional position vector of the circular coil’s center.

  • radius (Quantity) – Radius of the circular coil.

  • current (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)

Calculate magnetic field generated by this wire at position p.

Parameters

p (Quantity) – Three-dimensional position vector.

Returns

B – Magnetic field at the specified position.

Return type

Quantity

Notes

We use n points using Gauss-Legendre quadrature to compute the integral. The default n is 300.

to_GeneralWire()

Convert this Wire into a GeneralWire.