Thank you. I appreciate your help.

On Thu, Nov 7, 2013 at 10:08 AM, Shri <[email protected]> wrote:
>
> On Nov 6, 2013, at 11:15 PM, Vincent Roberge wrote:
>
>> Good day all,
>>
>> I am a student and I am trying to fully understand the N-R method for
>> power flow analysis. I wrote a C program that does it and I compare my
>> output to the one generated by MATPOWER. Everything matches until I
>> try case2736sp. In this case, the generator setpoint voltage and the
>> initial guess for the bus voltage associated to the generator do not
>> match. Instead of forcing the voltage of the bus to the generator
>> setpoint, MATPOWER uses some sort of a ratio which I don't undestand
>> at all. This all occurs in the file "runpf.m" at line 201:
>>
>> V0(gbus) = gen(on, VG) ./ abs(V0(gbus)).* V0(gbus);
>
> This just uses the set point voltage magnitude gen(on,VG) and the phase angle
> from the bus data to form the initial guess for the complex generator bus 
> voltages.
> You can interpret the above line as
>
> V0(gbus) = gen(on,VG).*exp(sqrt(-1)*angle(V0(gbus));
>
>>
>> How does this work? There must be something I don't understand about
>> generator setpoint. What is generator setpoint? Anyone willing to help
>> and explain me that line of code. Thanks in advance.
>>
>>
>> --
>> Vincent
>>
>
>
>



-- 
Vincent

Reply via email to