It all depends on what you are asking for. If what you are looking for is the vectorcontaining complex injection currents for the present solution, then yes, the property is as follows:
DSSCircuit.YCurrents;
Otherwise, if what you are looking for is a vector containing the currents flowing though the circuit's PDElements (lines, transformers), then there is no interface for that. What you can do is to use the Lines interface and the CktElement interface to get that information, something as follows:
Well, you have the code, of course you can. "DSSLines.Name" should do the job, just put it into an array. Each current is delivered as complex pair per phase of element, so you'll have to fix it at your side.
Best regards
Davis
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The circuit contains 36 lines, and by using DSSLines.Name I got 36 names. 35 lines are 3-phase, complex pairs, so 3532=210. Plus a one phase jumper, that's 212. But I get 424 values, which is double. What am I missing?
Thanks again
Dor
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Is there a Matlab order similar to:
DSSCircuit.AllNodeVmagPUByPhase
regarding currents?
Best Regards,
Dor
Hello,
It all depends on what you are asking for. If what you are looking for is the vectorcontaining complex injection currents for the present solution, then yes, the property is as follows:
Otherwise, if what you are looking for is a vector containing the currents flowing though the circuit's PDElements (lines, transformers), then there is no interface for that. What you can do is to use the Lines interface and the CktElement interface to get that information, something as follows:
Best regards
Davis
Last edit: Davis Montenegro 2020-07-22
Thank you for your help Davis.
I ran your second suggestion on the IEEE37 circuit, and got a 424 length row.
Is there a way to see their names?
Also, is there a Matlab-OpenDSS manual somewhere?
Thanks again
Hello,
Well, you have the code, of course you can. "DSSLines.Name" should do the job, just put it into an array. Each current is delivered as complex pair per phase of element, so you'll have to fix it at your side.
Best regards
Davis
Documentation:
https://sourceforge.net/p/electricdss/code/HEAD/tree/trunk/Version8/Distrib/Doc/
Best regards
Davis
Hi Davis,
The circuit contains 36 lines, and by using DSSLines.Name I got 36 names. 35 lines are 3-phase, complex pairs, so 3532=210. Plus a one phase jumper, that's 212. But I get 424 values, which is double. What am I missing?
Thanks again
Dor
Hello,
Yes, this is an easy one. Let's check the numbers:
Best regards
Davis
I can't get it into an array, I'm probably doing something wrong
Thank you Davis, I thought so and forgot to write it here.
What about the oreder?
Is it line1:
1.terminal1 ph1_real
2.terminal1 ph1_comp
8.terminal2 ph1_comp
And then line2, and etc.?
Yes Sir,
Best regards
Davis
Thanks again