electricpy.passive.inductordischarge

electricpy.passive.inductordischarge(t, Io, R, L)[source]

Discharging Inductor Formula.

Calculates the Voltage and Current of an inductor that is discharging its stored energy.

\[I_L=I_0*e^{\frac{-R*t}{L}}// V_L=I_0*R*(1-e^{\frac{-R*t}{L}})\]
Parameters:
  • t (float) – Time at which to calculate voltage and current.

  • Io (float) – Initial current traveling through inductor.

  • R (float) – Resistance being discharged to.

  • L (float) – Inductance value in Henries.

Returns:

  • Vl (float) – Voltage across inductor at time t.

  • Il (float) – Current through inductor at time t.