pypowsybl.network.Network.create_dc_lines¶
- Network.create_dc_lines(df=None, **kwargs)[source]¶
Creates DC lines.
- Parameters:
- 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 line
name: an optional human-readable name
dc_node1_id: the DC node where the new DC line will be connected on side 1. It must already exist.
dc_node2_id: the DC node where the new DC line will be connected on side 2. It must already exist.
r: the resistance of the DC line, in Ohm
Examples
Using keyword arguments:
network.create_dc_lines(id='DL1', dc_node1_id='DN1', dc_node2_id='DN2', r=1.0)