pypowsybl.network.Network.create_lines#

Network.create_lines(df=None, **kwargs)[source]#

Creates lines.

Parameters:
Return type:

None

Notes

Data may be provided as a dataframe or as keyword arguments. In the latter case, all arguments must have the same length.

Valid attributes are:

  • id: the identifier of the new line

  • voltage_level1_id: the voltage level where the new line will be connected on side 1. The voltage level must already exist.

  • bus1_id: the bus where the new line will be connected on side 1, if the voltage level has a bus-breaker topology kind.

  • connectable_bus1_id: the bus where the new line will be connectable on side 1, if the voltage level has a bus-breaker topology kind.

  • node1: the node where the new line will be connected on side 1, if the voltage level has a node-breaker topology kind.

  • voltage_level2_id: the voltage level where the new line will be connected on side 2. The voltage level must already exist.

  • bus2_id: the bus where the new line will be connected on side 2, if the voltage level has a bus-breaker topology kind.

  • connectable_bus2_id: the bus where the new line will be connectable on side 2, if the voltage level has a bus-breaker topology kind.

  • node2: the node where the new line will be connected on side 2, if the voltage level has a node-breaker topology kind.

  • name: an optional human-readable name

  • b1: the shunt susceptance, in S, on side 1

  • b2: the shunt susceptance, in S, on side 2

  • g1: the shunt conductance, in S, on side 1

  • g2: the shunt conductance, in S, on side 2

  • r: the resistance, in Ohm

  • x: the reactance, in Ohm

Examples

Using keyword arguments:

network.create_lines(id='LINE-1', voltage_level1_id='VL1', bus1_id='B1',
                     voltage_level2_id='VL2', bus2_id='B2',
                     b1=1e-6, b2=1e-6, g1=0, , g2=0, r=0.5, x=10)