pypowsybl.network.Network.get_lcc_converter_stations#

Network.get_lcc_converter_stations(all_attributes=False, attributes=None, **kwargs)[source]#

Get a dataframe of LCC converter stations.

Parameters:
  • all_attributes (bool) – flag for including all attributes in the dataframe, default is false

  • attributes (List[str] | None) – attributes to include in the dataframe. The 2 parameters are mutually exclusive. If no parameter is specified, the dataframe will include the default attributes.

  • kwargs (_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]) – the data to be selected, as named arguments.

Returns:

A dataframe of LCC converter stations.

Return type:

DataFrame

Notes

The resulting dataframe, depending on the parameters, will include the following columns:

  • power_factor: the power factor

  • loss_factor: the loss factor

  • p: active flow on the LCC converter station, NaN if no loadflow has been computed (in MW)

  • q: the reactive flow on the LCC converter station, NaN if no loadflow has been computed (in MVAr)

  • i: The current on the LCC converter station, NaN if no loadflow has been computed (in A)

  • voltage_level_id: at which substation the LCC converter station is connected

  • bus_id: bus where this station is connected

  • bus_breaker_bus_id (optional): bus of the bus-breaker view where this station is connected

  • node (optional): node where this station is connected, in node-breaker voltage levels

  • connected: True if the LCC converter station is connected to a bus

  • fictitious (optional): True if the LCC converter is part of the model and not of the actual network

This dataframe is indexed by the id of the LCC converter

Examples

net = pp.network.create_four_substations_node_breaker_network()
net.get_lcc_converter_stations()

will output something like:

.

power_factor

loss_factor

p

q

i

voltage_level_id

bus_id

connected

id

LCC1

0.6

1.1

80.88

NaN

NaN

S1VL2

S1VL2_0

True

LCC2

0.6

1.1

-79.12

NaN

NaN

S3VL1

S3VL1_0

True

net = pp.network.create_four_substations_node_breaker_network()
net.get_lcc_converter_stations(all_attributes=True)

will output something like:

.

power_factor

loss_factor

p

q

i

voltage_level_id

bus_id

connected

id

LCC1

0.6

1.1

80.88

NaN

NaN

S1VL2

S1VL2_0

True

LCC2

0.6

1.1

-79.12

NaN

NaN

S3VL1

S3VL1_0

True

net = pp.network.create_four_substations_node_breaker_network()
net.get_lcc_converter_stations(attributes=['p','q','i','voltage_level_id','bus_id','connected'])

will output something like:

.

p

q

i

voltage_level_id

bus_id

connected

id

LCC1

80.88

NaN

NaN

S1VL2

S1VL2_0

True

LCC2

-79.12

NaN

NaN

S3VL1

S3VL1_0

True