pypowsybl.network.Network.create_batteries#
- Network.create_batteries(df=None, **kwargs)[source]#
Creates batteries.
- 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 battery
voltage_level_id: the voltage level where the new battery will be created. The voltage level must already exist.
bus_id: the bus where the new battery will be connected, if the voltage level has a bus-breaker topology kind.
connectable_bus_id: the bus where the new battery will be connectable, if the voltage level has a bus-breaker topology kind.
node: the node where the new battery will be connected, if the voltage level has a node-breaker topology kind.
name: an optional human-readable name
min_p: minimum active power, in MW
max_p: maximum active power, in MW
target_p: active power consumption, in MW
target_q: reactive power consumption, in MVar
Examples
Using keyword arguments:
network.create_batteries(id='BAT-1', voltage_level_id='VL1', bus_id='B1', min_p=5, max_p=50, p0=10, q0=3)