electricpy.tap_changing_transformer

electricpy.tap_changing_transformer(Vgen, Vdis, Pload, Qload, R, X)[source]

Calculate Turn Ratio of Load Tap Changing Transformer.

The purpose of a tap changer is to regulate the output voltage of a transformer. It does this by altering the number of turns in one winding and thereby changing the turns ratio of the transformer

\[\sqrt{\frac{Vgen^2}{Vgen \cdot Vdis - R \cdot P - X \cdot Q}}\]
Parameters:
Vgen : float

Generating station voltage

Vdis : float

Distribution network voltage

Pload : float

Transmission line load active power in Watt

Qload : float

Transmission line load reactive power in VAR

R : float

Resistance of transmission line

X : float

Reactance of transmission line

Returns:

ts – Turns ration of transformer

Return type:

float