How to convert a simpower system network into a graph with nodes and edges

1 visualizzazione (ultimi 30 giorni)
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.

Risposte (1)

Siddharth Jawahar
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
Djibril DIOP
Djibril DIOP il 28 Set 2017
Hi, Thank for the feedback. Please find attached an example of electrical network. What I want to know through the graph is to get a tree-like structure of the grid in real-time and to know what equipment is connected to what node and if one equipment is actually connected/disconnected to/from the grid. Also to know what current is flowing on each edge. Thank you.
Siddharth Jawahar
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

Accedi per commentare.

Categorie

Scopri di più su Networks in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by