electricpy.passive.loadedvcapdischarge¶
- electricpy.passive.loadedvcapdischarge(t, vo, C, P)[source]¶
Loaded Capacitor Discharge Formula.
Returns the voltage of a discharging capacitor after time (t - seconds) given initial voltage (vo - volts), capacitor size (cap - Farads), and load (P - Watts).
\[V_t=\sqrt{v_0^2-2*P*\frac{t}{C}}\]- Parameters:
t (float) – Time at which to calculate voltage.
vo (float) – Initial capacitor voltage.
C (float) – Capacitance (in Farads)
P (float) – Load power consumption (in Watts).
- Returns:
Vt – Voltage of capacitor at time t.
- Return type:
float