pypowsybl.network.NodeBreakerTopology#

class NodeBreakerTopology(network_handle, voltage_level_id)[source]#

Node-breaker representation of the topology of a voltage level.

The topology is actually represented as a graph, where vertices are called “nodes” and are identified by a unique number in the voltage level, while edges are switches (breakers and disconnectors), or internal connections (plain “wires”).

Parameters:
  • network_handle (pypowsybl._pypowsybl.JavaHandle) –

  • voltage_level_id (str) –

create_graph()[source]#

Representation of the topology as a networkx graph.

Return type:

Graph

property internal_connections: DataFrame#

The list of internal connection of the voltage level, together with the nodes they connect.

The dataframe includes the following columns:

  • node1: node where the internal connection is connected at side 1

  • node2: node where the internal connection is connected at side 2

property nodes: DataFrame#

The list of nodes of the voltage level, together with their corresponding network element (if any), as a dataframe.

The dataframe includes the following columns:

  • connectable_id: Connected element, if any.

This dataframe is indexed by the id of the nodes.

property switches: DataFrame#

The list of switches of the voltage level, together with their connection status, as a dataframe.

The dataframe includes the following columns:

  • name: Switch name

  • kind: Switch kind (BREAKER, DISCONNECTOR, …)

  • open: True if the switch is opened

  • retained: True if the switch is to be retained in the Bus/Breaker view

  • node1: node where the switch is connected at side 1

  • node2: node where the switch is connected at side 2

This dataframe is indexed by the id of the switches.