Hello Ray,

Thank you so much for your detailed response! Your suggested approach makes 
total sense, and I will keep an eye out for any case that doesn't satisfy the 
equal bus voltage base values and get back to you if I find any.

Best regards,
Jeffrey
________________________________
From: bounce-126023948-86837...@list.cornell.edu 
<bounce-126023948-86837...@list.cornell.edu> on behalf of Ray Daniel Zimmerman 
<r...@cornell.edu>
Sent: Monday, October 25, 2021 2:11 PM
To: MATPOWER-L <matpowe...@list.cornell.edu>
Subject: Re: Parsing Cases Data Not in p.u. or MV/MVAr

Hi Jeffrey,

Great questions. First a bit of background … if I recall, the reason for 
specifying some cases in these non-standard ways was that some of the original 
sources for these cases specified the data in this form, so it was easier to 
compare the case file with data from the original papers this way. But it 
really does make it difficult to impossible to parse from other languages. This 
is the disadvantage of specifying data in M-file form, or for that matter, any 
form that allows inclusion of anything besides the raw data.

To your questions ...

  1.  Unfortunately, I don’t think you can count on this. I don’t remember the 
details off the top of my head, but I think there were a few cases included 
with MATPOWER that have only one of the two non-standard specifications (branch 
impedances, load values).
  2.  Hmmm … I see what you mean. And, yes, I think this sort of code requires 
the assumption that voltage bases for all buses are equal. Let me know if 
you’ve noticed any for which that is not the case.

May I suggest another approach? What about using MATPOWER’s loadcase() and 
savecase() to do a one-time conversion of all such cases of interest to a “pure 
data” form, creating an equivalent case file that requires no special handling 
to read it from another language? That would be much simpler and more robust if 
it is an option. If access to MATLAB is the issue, you can always use the free, 
open-source Octave to do it.

Hope this helps,

   Ray



On Oct 24, 2021, at 5:21 PM, Liang Chen 
<liangjie.c...@mail.utoronto.ca<mailto:liangjie.c...@mail.utoronto.ca>> wrote:

Hi Everyone,

I'm trying to parse some MATPOWER cases in another language, and realized that 
some cases (e.g., case10ba.m) contain PD, QD data that are in kV/kVAr, and 
branch impedance in Ohms rather than p.u. I have two questions:

1. Is the "conversion to p.u. and MV/MVAr" process the identical across all 
such "non-standard" test cases, i.e., can I look for key phrases such as 
"converted to kW below" when parsing the test case?
2. Should the BASE_KV column in mpc.bus matrix be the same for all such cases? 
Again, with the case10ba.m example, I noticed that only Bus 1's BASE_KV value 
is used to convert the branch impedance to p.u.

Thanks very much for your help!

Jeffrey Chen

Reply via email to