HI Dr. Ray Zimmerman, 

  The problem is solved, Now I am able to retrieve the results. I was
just wondering, Is there any sort of plotting function available in
Matpower which can plot the whole power system. I mean the plot in which
I can view the buses, lines, generators and etc.

Thanking you, 


Sridhar Chouhan, 
West Virginia University. 

  
----- Original Message -----
From: Ray Zimmerman <[email protected]>
Date: Thursday, August 14, 2008 4:39 pm
Subject: Re: Need help
To: MATPOWER discussion forum <[email protected]>

> 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.
> >
> 
> 
> 

Reply via email to