How to convert a simpower system network into a graph with nodes and edges
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi, I've modeled a power system via simpowersystems and want to convert this electrical network into a matlab graph with nodes and edges. My idea is to know what electrical component is connected to which node so that to use this information in an algorithm. Please advice.
0 Commenti
Risposte (1)
Siddharth Jawahar
il 28 Set 2017
It would be great if you could explain what these nodes and edges would be. Probably a visual representation of what you are trying to achieve would be helpful. And what properties of the node and edge would be used in the algorithm? Like current and voltage?
2 Commenti
Siddharth Jawahar
il 29 Set 2017
Thanks for your reply. Firstly, there are no built in functions that would get the tree representation out. With that out of the questions lets look at some of the options.
1)You could write a script to build a tree structure starting from a node say a generator. You could use the 'get_param' property to get to the outport and start navigating as such to reach the whole diagram. But the complexity come in when you don't know whether to create a new node if you have already passed by that one. Automating this would be a hard task. You can refer to the following link for the get_param options: https://www.mathworks.com/help/simulink/slref/block-specific-parameters.html
2) One more way is to come up with a connection matrix for the nodes available. 0 would represent the breaker is tripped and 1 would mean the opposite. For the connected nodes you get other information like the current and the real and reactive power flowing between the nodes
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!