pypowsybl.network.Network.create_grounds

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

Create grounds.

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

  • kwargs (Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str]) – 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 ground

  • voltage_level_id: the voltage level where the new ground will be created. The voltage level must already exist.

  • bus_id: the bus where the new ground will be connected, if the voltage level has a bus-breaker topology kind.

  • connectable_bus_id: the bus where the new ground will be connectable, if the voltage level has a bus-breaker topology kind.

  • node: the node where the new ground will be connected, if the voltage level has a node-breaker topology kind.

  • name: an optional human-readable name

Examples

Using keyword arguments:

network.create_loads(id='GROUND-1', voltage_level_id='VL1', bus_id='B1')