pypowsybl.dynamic.EventMapping.add_active_power_variation¶
- EventMapping.add_active_power_variation(df=None, **kwargs)[source]¶
Creates an active power variation event on generator or load
- 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:
static_id: id of the load or generator affected by the event
start_time: timestep at which the event happens
delta_p: active power variation
Examples
Using keyword arguments:
event_mapping.add_active_power_variation(static_id='LOAD', start_time=14, delta_p=2)