Uploaded by Saif Ullah

MATPOWER

advertisement
FILE: caseNA02.m
function mpc = caseNA02
%CASENA02 Power flow data for 3 bus, 3 branches, 1 genenerator and 1 load
% Please see CASEFORMAT for details on the case file format.
%
% This is the 3 bus network example according to power-flow numerical
% applications.
% MATPOWER
%% MATPOWER Case Format : Version 2
mpc.version = '2';
%%----- Power Flow Data -----%%
%% system MVA base
mpc.baseMVA = 100;
%% bus data
%
% bus_i type Pd Qd Gs Bs area Vm Va baseKV zone Vmax Vmin
mpc.bus = [
1 3 0 0 0 0 1 1 0 132 1 1.1 0.9;
2 1 400 250 0 0 1 1 0 132 1 1.1 0.9;
3 2 0 0 0 0 1 1 0 132 1 1.1 0.9
];
%% generator data
%
% bus Pg Qg Qmax Qmin Vg mBase status Pmax Pmin Pc1 Pc2 Qc1min Qc1max Qc2min Qc2max ramp_agc ramp_10 ramp_30 ramp_q apf
mpc.gen = [
1 0 0 500 -500 1.05 100 1 0 0 0 0 0 0 0 0 0 0 0 0 0;
3 200 0 500 -500 1.04 100 1 0 0 0 0 0 0 0 0 0 0 0 0 0;
];
%% branch data
%
% fbus tbus r x b rateA rateB rateC ratio angle status angmin angmax
mpc.branch = [
1 2 0.02 0.04 0 1500 1500 1500 0 0 1 -360 360;
2 3 0.0125 0.025 0 1500 1500 1500 0 0 1 -360 360;
3 1 0.01 0.03 0 1500 1500 1500 0 0 1 -360 360
];
>> runpf(caseNA02)
MATPOWER Version 6.0, 16-Dec-2016 -- AC Power Flow (Newton)
Newton's method power flow converged in 3 iterations.
Converged in 0.02 seconds
================================================================================
| System Summary |
================================================================================
How many? How much? P (MW) Q (MVAr)
--------------------- ------------------- ------------- -----------------
Buses 3 Total Gen Capacity 0.0 -1000.0 to 1000.0
Generators 2 On-line Capacity 0.0 -1000.0 to 1000.0
Committed Gens 2 Generation (actual) 418.4 287.0
Loads 1 Load 400.0 250.0
Fixed 1 Fixed 400.0 250.0
Dispatchable 0 Dispatchable -0.0 of -0.0 -0.0
Shunts 0 Shunt (inj) -0.0 0.0
Branches 3 Losses (I^2 * Z) 18.42 37.03
Transformers 0 Branch Charging (inj) - 0.0
Inter-ties 0 Total Inter-tie Flow 0.0 0.0
Areas 1
Minimum Maximum
------------------------- --------------------------------
Voltage Magnitude 0.972 p.u. @ bus 2 1.050 p.u. @ bus 1
Voltage Angle -2.70 deg @ bus 2 0.00 deg @ bus 1
P Losses (I^2*R) - 9.85 MW @ line 2-3
Q Losses (I^2*X) - 19.69 MVAr @ line 2-3
================================================================================
| Bus Data |
================================================================================
Bus Voltage Generation Load
# Mag(pu) Ang(deg) P (MW) Q (MVAr) P (MW) Q (MVAr)
----- ------- -------- -------- -------- -------- --------
1 1.050 0.000* 218.42 140.85 - -
2 0.972 -2.696 - - 400.00 250.00
3 1.040 -0.499 200.00 146.18 - -
-------- -------- -------- --------
Total: 418.42 287.03 400.00 250.00
================================================================================
| Branch Data |
================================================================================
Brnch From To From Bus Injection To Bus Injection Loss (I^2 * Z)
# Bus Bus P (MW) Q (MVAr) P (MW) Q (MVAr) P (MW) Q (MVAr)
----- ----- ----- -------- -------- -------- -------- -------- --------
1 1 2 179.36 118.73 -170.97 -101.95 8.393 16.79
2 2 3 -229.03 -148.05 238.88 167.75 9.847 19.69
3 3 1 -38.88 -21.57 39.06 22.12 0.183 0.55
-------- --------
Total: 18.423 37.03
Download