Skip to content

Line - Outputs

Output attributes are calculated by the optimization solver or power flow analysis. These values are read-only and represent the results of network calculations.

Basic

AttributeData TypeUnitDefaultRequiredStorage TypeDescription
sub_networkstringn/an/aNostaticName of connected sub-network to which line belongs. This attribute is set by PyPSA.

Electrical

AttributeData TypeUnitDefaultRequiredStorage TypeDescription
p0floatMW0Notimeseriesactive power at bus0 (positive if power flows from bus0 to bus1)
p1floatMW0Notimeseriesactive power at bus1 (positive if power flows from bus1 to bus0)
q0floatMVar0Notimeseriesreactive power at bus0
q1floatMVar0Notimeseriesreactive power at bus1
x_pufloatper unit0NostaticPer unit series reactance calculated from the series reactance (x) and the nominal voltage (v_nom) of the connected buses.
r_pufloatper unit0NostaticPer unit series resistance calculated from the series resistance (r) and the nominal voltage (v_nom) of the connected buses.
g_pufloatper unit0NostaticPer unit shunt conductance calculated from the shunt conductance (g) and the nominal voltage (v_nom) of the connected buses.
b_pufloatper unit0NostaticPer unit shunt susceptance calculated from the shunt susceptance (b) and the nominal voltage (v_nom) of the connected buses.
x_pu_efffloatper unit0NostaticEffective per unit series reactance for linear power flow
r_pu_efffloatper unit0NostaticEffective per unit series resistance for linear power flow

Capacity

AttributeData TypeUnitDefaultRequiredStorage TypeDescription
s_nom_optfloatMVA0NostaticOptimised nominal apparent power (s_nom) from capacity expansion optimization.

Costs

AttributeData TypeUnitDefaultRequiredStorage TypeDescription
mu_upperfloatcurrency/MVA0NotimeseriesShadow price of upper nominal apparent power (s_nom) limit
mu_lowerfloatcurrency/MVA0NotimeseriesShadow price of lower nominal apparent power (s_nom) limit

© Copyright 2025 Bayesian Energy