Dr. Ismail Musirin wrote:
> Dear all,
> 
> 
> I am Ismail Musirin from Universiti Teknologi MARA, Malaysia. First of
> all, I must say thank you to Prof. Ray Zimmerman for the power flow
> package you developed to solve the power flow problems.
> 
> I am writing to you to ask how can I extract all the load flow results
> and put them in the workspace. Apparently using the following example:-
> 
>>> runpf 'case118'
> 
> we may get beautiful load flow results on the screen or command window.
> However, the variables such as the bus and branch variables are not
> appeared in the workspace. I need to know all these variables in order
> to do my further coding.
> 
> I appreciate your response.
> 
> Best regards.
>  
> *Associate Professor Dr. Ismail Musirin

> 
[pfstruct.baseMVA,pfstruct.bus,pfstruct.gen,pfstruct.branch]=runpf('case118')

Will put all the data in a structure.

Afterwards you can easily adjust the values in the structure (called
pfstruct) and rerun the powerflow:

pfstruct.branch(4,11)=0;
[pfstruct.baseMVA,pfstruct.bus,pfstruct.gen,pfstruct.branch]=runpf(pfstruct)

Dirk

-- 
Dirk Van Hertem                       [email protected]
Electrical Engineering Department  http://www.esat.kuleuven.be/electa
K.U. Leuven, ESAT-ELECTA                         tel: +32-16-32.18.95
10, Kasteelpark Arenberg, B-3001 Heverlee        fax: +32-16-32.19.85

Reply via email to