Bus net MW injection or extraction - Through flow
Hi,.
Is there a function to extract total MW injection into a bus or total MW out of a bus?
Regards
Hi,.
Is there a function to extract total MW injection into a bus or total MW out of a bus?
Regards
There is no such function available. You have to write your own!
Ok, thank you
ierr, cmpval1 = psspy.busdt2(1, "MVA", "ACT") This will give you the MVA value for the bus 1, as a complex number which has both real and imaginary parts. To acces the real part of that number (true power [MW]), do: truePowerMW = cmpval1.real
What do you mean with total injection? Is it the total of power flowing into the bus from branches, transformers, HVDC, FACTS etc, excluding the power flowing out? I.e. only the power with direction to the bus.
Yes, it is total of power flowing into the bus from branches, transformers, HVDC, FACTS etc.
You can write a simple bus other model and call the flow1 function and assign the MW and MVAr flow to VARs in your model. You will be able to get the flows in the line. For Flow1 function, take a look at model documentation