FiniteStraightWire

class plasmapy.physics.magnetostatics.FiniteStraightWire(p1: Unit("m"), p2: Unit("m"), current: Unit("A"))

Bases: plasmapy.physics.magnetostatics.Wire

Finite length straight wire class.

p1 to p2 direction is the possitive current direction.

Parameters

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

Returns

B – magnetic field at the specified positon

Return type

astropy.units.Quantity

Notes

Let \(P_f\) be the foot of perpendicular, \(\theta_1\)theta_2`) be the angles between \(\overrightarrow{PP_1}\)overrightarrow{PP_2}`) and \(\overrightarrow{P_2P_1}\).

to_GeneralWire()

Convert this Wire into a GeneralWire.