electricpy.zsource

electricpy.zsource(S, V, XoR, Sbase=None, Vbase=None, perunit=True)[source]

Source Impedance Calculator.

Used to calculate the source impedance given the apparent power magnitude and the X/R ratio.

Parameters:
S : float

The (rated) apparent power magnitude of the source. This may also be refferred to as the “Short-Circuit MVA”

V : float

The (rated) voltage of the source terminals, not specifically identified as either Line-to-Line or Line-to- Neutral.

XoR : float

The X/R ratio rated for the source, may optionally be a list of floats to accomidate sequence impedances or otherwise.

Sbase : float, optional

The per-unit base for the apparent power. If set to None, will automatically force Sbase to equal S. If set to True will treat S as the per-unit value.

Vbase : float, optional

The per-unit base for the terminal voltage. If set to None, will automaticlaly force Vbase to equal V. If set to True, will treat V as the per-unit value.

perunit : boolean, optional

Control value to enable the return of output in per- unit base. default=True

Returns:

Zsource_pu – The per-unit evaluation of the source impedance. Will be returned in ohmic (not per-unit) value if perunit argument is specified as False.

Return type:

complex