pypowsybl.network.Network.create_dc_switches

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

Creates DC switches.

Parameters:
  • df (DataFrame | None) – Attributes as a dataframe.

  • kwargs (ArrayLike) – Attributes as keyword arguments.

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 DC switch

  • name: an optional human-readable name

  • dc_node1_id: identifier of the first DC node the switch connects

  • dc_node2_id: identifier of the second DC node the switch connects

  • kind: the kind of DC switch (BREAKER or DISCONNECTOR)

  • open: True to create the switch in open state, False for closed (default)

  • r: resistance of the DC switch (in Ohm)

  • fictitious: True if the element is part of the model and not of the actual network

Examples

Using keyword arguments:

network.create_dc_switches(id='DS1', dc_node1_id='DN1', dc_node2_id='DN2',
                           kind='BREAKER', open=False, r=0.0)