// All comments follow the "//" (double backslash) // // Make sure that both "ee499.exe" and "psap.exe" are in the same directory // // Open "ee499.exe" and follow the below transcript Enter a bus node or press <0> to quit: 1 Enter a bus node or press <0> to quit: 2 Enter a bus node or press <0> to quit: 3 Enter a bus node or press <0> to quit: 0 Enter the two nodes that the branch links or press <0> to quit:1 2 Enter the two nodes that the branch links or press <0> to quit:2 3 Enter the two nodes that the branch links or press <0> to quit:3 1 Enter the two nodes that the branch links or press <0> to quit:0 Enter the node at which you wish to place a generator or press <0> to quit:1 Enter the node at which you wish to place a generator or press <0> to quit:2 Enter the node at which you wish to place a generator or press <0> to quit:0 Enter the node at which you wish to add load or press <0> to quit:3 3 Enter the node at which you wish to add load or press <0> to quit:0 0 There are 3 buses, 3 branches, 2 generators, and 1 loads in your grid. Enter the PER UNIT generation at the following generators (if a slack bus, enter anything): generator 1-1: 0 generator 2-1: 2.6 Enter the real and reactive power used at the following loads, separated by a SP ACE: load 3-1: 3.1 -1.8 Enter the voltage magnitudes at the following P-V buses: bus 2: 1.1 Which bus is the slack bus? 1 Enter the SHORT-LINE impedances of the following branches: 1-2-1: 0.5 2-3-1: 0.4 3-1-1: 0.3 Open pf.txt. Then select the contents and paste them into a file to run in psap .exe. After running the power flow, copy the result and paste it into pf.txt. When done, type anything to continue. // At this point the above window is waiting // DON'T close it! // Open "psap.exe" POWER SYSTEM ANALYSIS PROGRAM - PSAP ----- ------ -------- ------- ---- by James Cote VERSION 4.3--- December 23, 1988 PSAP >>> read pf.txt END OF INPUT FILE FOUND. // hit "enter" if no changes ENTER LINE DATA : FROM,TO,ID,R,X,GF,BF,GT,BT,STATUS,RATING ENTER DC LINE DATA : // hit "enter" FROM,TO,MODE,ORDER,VDC,R,ALPHA,MIN,MAX,LOW,GAMMA,MIN,MARGIN, BRIDGES,MVA,TURNS RATIO,REACTANCE,DCTAP,ACTAP,TAPHI,TAPLO,TSTEP (RECT) BRIDGES,MVA,TURNS RATIO,REACTANCE,DCTAP,ACTAP,TAPHI,TAPLO,TSTEP (INVT) ENTER TRANSFORMER DATA : // hit "enter" FROM, TO, ID, R, X, FRMVLT, TOVLT, STATUS, RATING SYSTEM SUMMARY : 3 BUSSES 2 GENERATORS 3 AC LINES 0 DC LINES 0 TRANSFORMERS PSAP >>> solve NUMBER OF YBUS TERMS = 6 ITER DELTA P(BUS#) DELTA ANG(BUS#) DELTA Q(BUS#) DELTA V(BUS#) ------------------------------------------------------------------------ 1 3.1000( 3) .37250( 3) .9119( 3) .15633( 3) 2 .2592( 3) .04029( 3) .1589( 3) .02356( 3) 3 .0282( 3) .00470( 2) .0211( 3) .00319( 3) 4 .0035( 3) .00043( 3) .0033( 3) .00050( 3) 5 .0008( 3) .00009( 3) .0004( 3) .00006( 3) 6 .0000( 2) .00000( 2) .0001( 3) .00001( 3) SOLUTION REACHED IN 6 ITERATIONS. PSAP >>> write pf.txt DELETE EXISTING FILE ? y FINISHED WRITING PF.TXT PSAP >>> stop // The "psap.exe" window should have disappeared after hitting "enter" // // Now switch back to the "ee499.exe" window // Continued from above... Open pf.txt. Then select the contents and paste them into a file to run in psap .exe. After running the power flow, copy the result and paste it into pf.txt. When done, type anything to continue. c // any "char" character will suffice here--"c" is a random choice Branch flows (from node1 to node2 at node1): 1-2-1 -0.741431 0.142345 2-3-1 -1.85852 -0.356382 3-1-1 -1.2417 0.24105 c Radials branches/buses: Loop branches/buses: 1-2-1 2-3-1 3-1-1 1 2 c Here are the branch weights: 1-2-1 -2 2-3-1 5 3-1-1 3 c // after hitting "enter" here, the "ee499.exe" window disappears