electricpy.vipf¶
-
electricpy.vipf(V=
None
, I=None
, PF=1
, find=''
)[source]¶ Voltage / Current / Power Factor Solver.
Given two of the three parameters, will solve for the third; beit voltage, current, or power factor.
- Parameters:¶
- V : complex¶
System voltage (in volts), default=None
- I : complex¶
System current (in amps), default=None
- PF : float¶
System power factor, (+)ive values denote leading power factor, (-)ive values denote lagging power factor; default=1
- find : str, optional¶
Control argument to specify which value should be returned.
- Returns:¶
V (complex) – System voltage (in volts), default=None
I (complex) – System current (in amps), default=None
PF (float) – System power factor, (+)ive values denote leading power factor, (-)ive values denote lagging poer factor; default=1
Examples
>>> import electricpy as ep >>> # Demonstrate the generic functionality >>> ep.vipf(V=480, I=ep.phasors.phasor(20, 120)) (480, (-9.999999999999996+17.320508075688775j), -0.499999...) >>> # Find the power factor >>> ep.vipf(V=480, I=ep.phasors.phasor(20, 120), find="PF") -0.49999...