electricpy.passive.inductorcharge

electricpy.passive.inductorcharge(t, Vs, R, L)[source]

Charging Inductor Formula.

Calculates the Voltage and Current of an inductor that is charging/storing energy.

\[V_L = V_s*e^{\frac{-R*t}{L}}// I_L = \frac{V_s}{R}*(1-e^{\frac{-R*t}{L}})\]
Parameters:
t : float

Time at which to calculate voltage and current.

Vs : float

Charging voltage across inductor and resistor.

R : float

Resistance related to inductor.

L : float

Inductance value in Henries.

Returns:

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

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