pypowsybl.network.Network.create_2_windings_transformers#

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

Creates 2 windings transformers.

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 transformer

  • voltage_level1_id: the voltage level where the new transformer will be connected on side 1. The voltage level must already exist.

  • bus1_id: the bus where the new transformer will be connected on side 1, if the voltage level has a bus-breaker topology kind.

  • connectable_bus1_id: the bus where the new transformer will be connectable on side 1, if the voltage level has a bus-breaker topology kind.

  • node1: the node where the new transformer will be connected on side 1, if the voltage level has a node-breaker topology kind.

  • voltage_level2_id: the voltage level where the new transformer will be connected on side 2. The voltage level must already exist.

  • bus2_id: the bus where the new transformer will be connected on side 2, if the voltage level has a bus-breaker topology kind.

  • connectable_bus2_id: the bus where the new transformer will be connectable on side 2, if the voltage level has a bus-breaker topology kind.

  • node2: the node where the new transformer will be connected on side 2, if the voltage level has a node-breaker topology kind.

  • name: an optional human-readable name

  • rated_u1: nominal voltage of the side 1 of the transformer

  • rated_u2: nominal voltage of the side 2 of the transformer

  • rated_s: nominal power of the transformer

  • b: the shunt susceptance, in S

  • g: the shunt conductance, in S

  • r: the resistance, in Ohm

  • x: the reactance, in Ohm

Examples

Using keyword arguments:

network.create_2_windings_transformers(id='T-1', voltage_level1_id='VL1', bus1_id='B1',
                                       voltage_level2_id='VL2', bus2_id='B2',
                                       b=1e-6, g=1e-6, r=0.5, x=10, rated_u1=400, rated_u2=225)