# FiniteStraightWire¶

class plasmapy.formulary.magnetostatics.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: p1 (astropy.units.Quantity) – three-dimensional Cartesian coordinate of one end of the straight wire p2 (astropy.units.Quantity) – three-dimensional Cartesian coordinate of another end of the straight wire 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

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.