First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered Apr 28 '15

nwilson gravatar image

The brnflo method will return MW and MVAR for a branch with sign according to first bus to second bus. The branch ID must always be in single quotes.

ierr, branchflow = psspy.brnflo(68168,64124,'1')

To see the result, use print branchflow. To see just the MW, use print branchflow.real. To see just the MVAR, use print branchflow.imag

click to hide/show revision 2
No.2 Revision

The brnflo method will return MW and MVAR for a branch with sign according to first bus to second bus. The branch ID must always be in single quotes.

ierr, branchflow = psspy.brnflo(68168,64124,'1')
psspy.brnflo(12,13,'1')

To see the result, use print branchflow. To see just the MW, use print branchflow.real. To see just the MVAR, use print branchflow.imag