pypowsybl.network.Network.create_dc_grounds

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

Creates DC 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 DC ground

  • name: an optional human-readable name

  • dc_node_id the id of the DC Node connected to the DC ground

  • r: the resistance of the DC ground

Examples

Using keyword arguments:

network.create_dc_grounds(id='DG1', dc_node_id="DN1", r=1.0)