Line

The com.powsybl.iidm.network.Line interface is used to model an AC line. A line can also be a TieLine.

# Characteristics

Attribute Type Unit Required Default value Description
id string - yes - Unique identifier of the line
name string - no ”” Human-readable name of the line
$r$ double $\Omega\$ yes - The series resistance
$x$ double $\Omega\$ yes - The series reactance
$g_1$ double S yes - The first side shunt conductance
$b_1$ double S yes - The first side shunt susceptance
$g_2$ double S yes - The second side shunt conductance
$b_2$ double S yes - The second side shunt susceptance

Lines can also have current limits defined for each end.

# Model

Power lines are modeled using a standard $\pi$ model with distributed parameters.

With series impedance $z$ and the shunt admittance on each side $y_1$ and $y_2$:

The equations of the power line, in complex notations, are as follow:

# Examples

This example shows how to create a new line in the network:

Line line = network.newLine()
.setId("L")
.setName("My line")
.setVoltageLevel1("VL1")
.setVoltageLevel2("VL2")
.setNode1(1)
.setNode2(2)
.setR(4.0)
.setX(200.0)
.setG1(0.0)
.setB1(0.0)
.setG2(0.0)
.setB2(0.0)