Hi Iman,
The magnitude and angle of bus voltage can be extracted as follows.
Where the output variable 'results' is in structure format.
==================Type in command window ===============
define_constants;
results = runpf('case14');
success=results.success ; % success flag, 1 = succeeded, 0 = failed
Vm=results.bus(:,VM); % Bus Voltage Magnitude
Va=results.bus(:,VA); % Bus Voltage Angle
Pg=results.gen(:, PG); % generator real power injections
Qg=results.gen(:, QG); % generator reactive power injections
======================================================
You can find more details about the extracting all components of power flow
results in section 4.3 and table 4-1 in the manual. Hope this helps.
On Tue, Nov 22, 2011 at 1:53 AM, hedayat saboori <[email protected]> wrote:
>
> Hi Iman
>
> Try these scripts:
>
> runpf('case14')
> Vm=bus(:,8) % Bus Voltage Magnitude
> Va=bus(:,9) % Bus Voltage Angle
>
> ------------------------------
> *From:* iman <[email protected]>
> *To:* [email protected]
> *Sent:* Tuesday, November 22, 2011 12:14 AM
> *Subject:* extracting elemnts from powerflow results
>
> Dear All,
>
> Having amended my bus system,now I want to extract the elements of Power
> flow results,specifically Magnitude Voltage of buses and Total Power loss
> of the system but I don't know how.
>
> writing the scripts as :
>
> >>mpc = loadcase('case14');
> >> results=runpf(mpc);
>
> I have only managed to extract P (MW) by writing the scrpit as:
>
> results.branch(:, PF) so I want to do the same thing sfor other elements.How
> can I do it?
>
> --
> Best regards
> Iman
>
>
>
>
-------------------------------------------------------------
WITH REGARDS,
V. Ravikumar Pandi, Ph.D (IITD), MIEEE,
Post Doctoral Fellow,
Masdar Institute, Abu Dhabi,
United Arab Emirates - 54224.
-------------------------------------------------------------
HAVE A NICE DAY
-------------------------------------------------------------