Hello Akash You might want to try the function *Losses=get_losses(results) . *It computes branch series losses and optionally also returns reactive injections from line charging as functions of bus voltages and branch parameters.
Thanks, On Sun, May 14, 2017 at 4:02 AM, Akash Tyagi <akashtyagi0...@gmail.com> wrote: > Below is the attached file of the results of the case9ab. > The values for P (MW) are calculated by PF and PT. > My question is how Q(MVAR) LOSS is calculated in the attached file in the > last column, Is there any formula to calculate the the Q? > > On Sun, May 14, 2017 at 2:15 PM, Akash Tyagi <akashtyagi0...@gmail.com> > wrote: > >> The results are still not coming. >> I have run the normal power flow and then see the values in the command >> window. >> P(real power loss) is calculated by PF and PT by the following command- >> real_power_loss=results.bracnh(:,PF)+results.branch(:,PT); >> The results are same as given in the command window for P(MW) for >> different branches. >> how the Q(reactive Power loss) is calculated ?? >> It is not giving the same results as done for the real power loss. >> reactive_power_loss=results.branch(:,QF)+results.branch(:,QT); >> The values are different by using the above command and also it is not >> same in the command window for Q(MVAR) >> >> On Sun, May 14, 2017 at 1:58 PM, Bone, Gorazd <gorazd.b...@fe.uni-lj.si> >> wrote: >> >>> Hi Akash, >>> >>> is it possible that the problem is with the shunt capacitances. I >>> suggest you calculate the line currents (from ohm's law) and then Qloss = >>> X*I^2. >>> >>> regards >>> ------------------------------ >>> *Od:* bounce-121528073-78499...@list.cornell.edu [ >>> bounce-121528073-78499...@list.cornell.edu] v imenu Akash Tyagi [ >>> akashtyagi0...@gmail.com] >>> *Poslano:* 14. maj 2017 9:46 >>> *Za:* MATPOWER discussion forum >>> *Zadeva:* Reactive power Loss >>> >>> Hello everyone, >>> I am working on my project and I got stuck with reactive power loss. >>> I was trying to calculate the reactive power loss for all the branches. >>> I have given the following case below- >>> I run the normal power flow for the case attached below by the >>> following command- << runpf (case9ab) >>> After then I have to calculate the reactive power loss by using the >>> following command- >>> reactive_power_loss=results.br >>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__results.br&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=FrRmAo_pr5URbIuBK7LUda4uMUvmCsV_CJMIoeZcq8E&m=S2EgfdRrCqp1E48Jlerjl7Z7THn_qFbuCpOhmMZIKBg&s=_bJjTwRJu0e7k8vG0UxsvMBueJr20q1_CqtRMyWOaBE&e=> >>> anch(:,QF)+results.branch(:,QT) >>> But it is not giving the same results as coming after power flow in the >>> command window. >>> My Question is how to calculate the reactive power loss values (Q (MVAR) >>> ) as given in the branch data after power flow. >>> >> >> > -- *Aaqib A Peerzada* *Graduate Student * *Department of Electrical and Computer Engineering* *Wisenbaker Engineering Research Center* *Texas A&M University* *College Station, Texas* *United States.* *Phone # 979-739-2799* *Email: peerz...@tamu.edu <peerz...@tamu.edu>*