First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
psspy.maxmsm()
maxmsm() Use this API to return the complex bus mismatch at the bus with the largest MVA mismatch.
Python syntax:
ierr, ibus, cmpval = maxmsm()
where:
Integer IBUS Bus number of the bus with the largest MVA mismatch (output).
Real P Real component (MW) of the bus mismatch (output).
Real Q Reactive component (Mvar) of the bus mismatch (output).
Complex CMPVAL Complex bus mismatch (output).
Integer IERR Is the error code (output):
IERR = 0 No error; 'IBUS', and 'P' and 'Q' or 'CMPVAL' returned.
IERR = 1 No in-service buses found; 'IBUS' of 0, and 'P' and 'Q' of 0.0 or 'CMPVAL' of (0.0,0.0) returned.
psspy.busmsm()
busmsm(ibus=None) Use this API to return complex bus mismatch.
Python syntax:
ierr, cmpval = busmsm(ibus)
where:
Integer IBUS Bus number (input).
Real P Real component (MW) of the bus mismatch (output).
Real Q Reactive component (Mvar) of the bus mismatch (output).
Complex CMPVAL Complex bus mismatch (output).
Integer IERR Is the error code (output):
IERR = 0 No error; 'P' and 'Q' or 'CMPVAL' returned.
IERR = 1 Bus not found; 'P' and 'Q' or 'CMPVAL' unchanged.
IERR = 2 Bus type code greater than 4; 'P' and 'Q' or 'CMPVAL' returned set to zero.
psspy.sysmsm()
sysmsm() Use this API to return the total system MVA mismatch.
Python syntax:
mva = sysmsm()
where:
Real MVA Total system MVA mismatch (output).