Dear all
I'm about to evaluate the effect of line nominal voltage on line
losses. I simply increase line connected bus voltages, run power flow, and
calculate losses. But, in spite of increasing voltage loss is constant in all
cases. I have developed a simple code for a 2 bus network. M-files are
attached. What is the problem? does nominal voltage change any thing?
function mpc = case2


%% MATPOWER Case Format : Version 2
mpc.version = '2';

%%-----  Power Flow Data  -----%%
%% system MVA base
mpc.baseMVA = 100;

%% bus data
%       bus_i   type    Pd      Qd      Gs      Bs      area Vm Va      baseKV  
zone    Vmax    Vmin
mpc.bus = [
        1           3   0        0          0   0       1       1       0       
20      1       1.1       0.9;
        2           1   100      100    0       0       1       1       0       
20      1       1.1       0.9;

];

%% generator data
%        bus    Pg      Qg      Qmax    Qmin    Vg      mBase   status  Pmax    
Pmin    Pc1     Pc2     Qc1min  Qc1max  Qc2min  Qc2max  ramp_agc        ramp_10 
ramp_30 ramp_q  apf
mpc.gen = [
        1       100     0       200      -200   1.00    100       1         500 
 0      0       0       0       0       0       0       0       0       0       
0       0;
    ];

%% branch data
%       fbus    tbus    r       x       b       rateA   rateB   rateC   ratio   
angle   status  angmin  angmax
mpc.branch = [
        1       2       0.05    0.1      0.0    250     250     250      0      
0       1       -360    360;
];



clc
define_constants;
mpc=loadcase('case2');
for Vn=1:1000;
    mpc.bus(:,10)=Vn;
    r=runpf(mpc,mpoption('OUT_ALL',0,'VERBOSE',0));
    loss(Vn)=r.branch(1,PF)+r.branch(1,PT);
end
plot(loss)

    
    

Reply via email to