Wire

class plasmapy.formulary.magnetostatics.Wire[source]

Bases: MagnetoStatics

Abstract wire class for concrete wires to be inherited from.

Methods Summary

magnetic_field(p)

Calculate magnetic field generated by this wire at position p.

Methods Documentation

abstract magnetic_field(
p: Quantity,
) Quantity

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