Insert the following line at the start of your code: define_constants
This is a built-in MATPOWER function that will define ‘PG’, ‘VM’ and many other column identifiers for you, to make it easier to use the program. Kind regards, Samuel From: [email protected] [mailto:[email protected]] On Behalf Of Sk. Md. Golam Mostafa Sent: 17. desember 2016 14:49 To: MATPOWER discussion forum <[email protected]> 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
