Try this ...
%% define named indices into bus, gen, branch matrices
[PQ, PV, REF, NONE, BUS_I, BUS_TYPE, PD, QD, GS, BS, BUS_AREA,
VM, ...
VA, BASE_KV, ZONE, VMAX, VMIN, LAM_P, LAM_Q, MU_VMAX, MU_VMIN]
=
idx_bus;
[F_BUS, T_BUS, BR_R, BR_X, BR_B, RATE_A, RATE_B, RATE_C, ...
TAP, SHIFT, BR_STATUS, PF, QF, PT, QT, MU_SF, MU_ST, ...
ANGMIN, ANGMAX, MU_ANGMIN, MU_ANGMAX] = idx_brch;
[GEN_BUS, PG, QG, QMAX, QMIN, VG, MBASE, GEN_STATUS, PMAX, PMIN, ...
MU_PMAX, MU_PMIN, MU_QMAX, MU_QMIN, PC1, PC2, QC1MIN, QC1MAX, ...
QC2MIN, QC2MAX, RAMP_AGC, RAMP_10, RAMP_30, RAMP_Q, APF] =
idx_gen;
%% run the power flow
[baseMVA, bus, gen, branch, success, et] = runpf('case30');
%% see results
bus(:, [VM VA])
branch(:, PF)
gen(:, PG)
The first several lines just define a bunch of constants that you
can
use to address the columns of the data matrices.
--
Ray Zimmerman
Senior Research Associate
428-B Phillips Hall, Cornell University, Ithaca, NY 14853
phone: (607) 255-9645
On Aug 14, 2008, at 4:17 PM, Sridhar Chouhan Jr wrote:
Hi Everybody,
I am new to Matpower. I want to know how can we retrieve the stored
results of power flow. When I am reading the manual, It was there
that> results are going to be stored in the vectors like
bus(:, VM)
bus(:, VA)
gen(:, PG)
-
-
- and etc.
But when I am typing this in command prompt I am not getting any
thing> back.
Thank you very much,
Awaiting reply,
Sridhar chouhan.
West Virginia University.