Dear Sk. Md. Golam Mostafa,

 

Please add “define_constants” before the use of “results.bus(:, VM)” or 
“results.gen(:, PG)”. The constants such as “VM” and “PG” are defined by 
“define_constants” in MATPOWER.

 

Best regards,

 

Gang

 

From: [email protected] 
[mailto:[email protected]] On Behalf Of Sk. Md. Golam 
Mostafa
Sent: Saturday, December 17, 2016 10:49 PM
To: MATPOWER discussion forum
Subject: Re: Helping regarding Matpower function

 

Dear Sir,

 

I tried to use Table 4-1 in Matpower User's Manual. To find Bus voltage I used 
results.bus(: ,VM) but it says undefined variable 'VM'. Similarly for power I 
used results.gen(: ,PG); Again it says it says undefined variable 'PG'.  Would 
you please suggest me, what was the wrong?

 

Best Regardes.

Sk. Md. Golam Mostafa

 

On Thu, Dec 15, 2016 at 1:23 AM, Ray Zimmerman <[email protected] 
<mailto:[email protected]> > wrote:

See Table 4-1 in the MATPOWER User’s Manual 
<http://www.pserc.cornell.edu/matpower/docs/MATPOWER-manual-6.0b2.pdf> . Flows 
are recorded as powers, so to get the currents, you’ll need to compute them 
yourself from the corresponding power and voltage.

 

    Ray

 

On Dec 13, 2016, at 10:26 AM, Sk. Md. Golam Mostafa <[email protected] 
<mailto:[email protected]> > wrote:

 

Hello Sir/Madam,

 

I am a student & doing my Masters Thesis at AIT. I run 16 bus with results = 
runpf(mycase);. & I got losses with a command total_system_real_losses = 
sum(real(get_losses(results))); a Now, How can I will get voltage of buses, & 
voltage in a certain bus no. I also need current & power. 

 

Thank you so much in advance.

 

Sk. Md. Golam Mostafa

Masters student

EPSM, AIT,Thailand

 

 

Reply via email to