Guys, Will really appreciate if any of you can provide some insights on how to
accomplish this.
I have the following code which multiplies a range of factors k by generator
and load powers:
define_constants;
for k = 1:0.1135:2.135
mpopt = mpoption;
mpc = loadcase('case39');
mpc.gen(:,PG) = k*mpc.gen(:,PG);
mpc.bus(:,PD) = k*mpc.bus(:,PD);
mpc.bus(:,QD) = k*mpc.bus(:,QD);
results = runpf(mpc, mpopt,'loading_scenario.txt');
end
Now the challenge is to make a plot of the load voltages vs k. There are 10
(ten) k values in the formula above.
Therefore I will need to plot Bus1 load voltage (10 different values) vs k, Bus
2 load voltage (10 different values) vs k, etc all on the same graph
load_voltages = results.bus(:,VM); yields only voltages corresponding to the
last value of k. How do I modify the code to be a function of k, where I can
plot the various voltages on each bus as k is varied.
Any insights will help. Thank you
--
Samuel Kusi
Electrical Engineering