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.

VL=VseRtL//IL=VsR(1eRtL)
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.