electricpy.powerflow¶
- electricpy.powerflow(Vsend, Vrec, Xline)[source]¶
Approximated Power-Flow Calculator.
This function is designed to calculate the ammount of real power transferred from the sending end to the recieving end of an electrical line given the sending voltage (complex), the receiving voltage (complex) and the line impedance.
\[P_{flow}=\frac{|V_{send}|*|V_{rec}|}{X_{line}}*sin(\theta_{send} -\theta_{rec})\]- Parameters:
Vsend (complex) – The sending-end voltage, should be complex
Vrec (complex) – The receiving-end voltage, should be complex
Xline (float) – The line admitance, should be float
- Returns:
pflow – The Real power transferred from sending-end to receiving-end, positive values denote power flow from send to receive, negative values denote vice-versa.
- Return type:
float