# FiniteStraightWire¶

class plasmapy.formulary.FiniteStraightWire(p1: Unit(‘m’), p2: Unit(‘m’), current: Unit(‘A’))

Finite length straight wire class.

p1 to p2 direction is the possitive current direction.

Parameters

Methods Summary

 Calculate magnetic field generated by this wire at position p Convert this Wire into a GeneralWire.

Methods Documentation

magnetic_field(p)

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.