electricpy.powerimpedance

electricpy.powerimpedance(S, V, PF=None, parallel=False, terms=False)[source]

Impedance from Apparent Power Formula.

Function to determine the ohmic resistance/reactance (impedance) represented by the apparent power (S).

(1)\[R = \frac{V^2}{P} \hspace{2cm} X = \frac{V^2}{Q}\]
(2)\[Z = \left(\frac{V^2}{S}\right)^*\]
(3)\[Z = \left(\frac{V^2}{(3*S)}\right)^*\]

This function can evaluate the component values for both series (1)/(2) and parallel (3) connected circuits.

Parameters:
S : complex, float

The apparent power of the passive element, may be purely resistive or purely reactive.

V : float

The operating voltage of the passive element. Note that this is specifically not Line-Line or Line-Neutral voltage, rather the voltage of the element.

PF : float, optional

The operating Power-Factor, should be specified if S is given as a float (not complex). Positive PF correlates to lagging, negative to leading. default=None

parallel : bool, optional

Control point to specify whether the ohmic impedance should be returned as series components (False opt.) or parallel components (True opt.).

terms : bool, optional

Control point to specify whether return should be made as resistance and reactance, or simply the complex impedance. Setting of False will return complex impedance, setting of True will return individual components (R, X).

Returns:

  • R (float) – The ohmic resistance required to consume the specified apparent power (S) at the rated voltage (V).

  • X (float) – The ohmic reactance required to consume the specified apparent power (S) at the rated voltage (V).