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
double yes - The series resistance
double yes - The series reactance
double S yes - The first side shunt conductance
double S yes - The first side shunt susceptance
double S yes - The second side shunt conductance
double S yes - The second side shunt susceptance

Lines can also have current limits defined for each end.

Model

Power lines are modelled using a standard model with distributed parameters.

Power line model

With series impedance and the shunt admittance on each side and :

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)
    .add();