Overview
The dynamic simulation module provides time-domain simulation capabilities using the Dynawo solver. It allows you to model dynamic behavior of power systems including generators, loads, transformers, and events.Main Classes
Simulation
Main class for running dynamic simulations.Methods
Run the dynamic simulation.Parameters:
network(Network): The network to simulatemodel_mapping(ModelMapping): Mapping of network elements to dynamic modelsevent_mapping(EventMapping, optional): Events to simulatetimeseries_mapping(OutputVariableMapping, optional): Output variables to recordparameters(Parameters, optional): Simulation parametersreport_node(ReportNode, optional): Report node for logging
Get list of parameters for Dynawo provider.Returns: List[str] - List of parameter names
Get supported dynamic simulation specific parameters.Returns: DataFrame - Dynamic simulation parameters dataframe
Parameters
Parameters for dynamic simulation execution.Instant of time at which the dynamic simulation begins, in seconds
Instant of time at which the dynamic simulation ends, in seconds
Parameters linked to the dynamic simulation provider (Dynawo)
ModelMapping
Class to map network elements to their respective dynamic behavior models.Key Methods
Add a load mapping.Parameters:
df(DataFrame, optional): Attributes as a dataframestatic_id(str): ID of the network element to mapparameter_set_id(str): ID of the parameter set in Dynawo configurationmodel_name(str, optional): Name of the model (default model used if not specified)
Add a base generator mapping.Example:
Add a synchronous generator mapping with detailed dynamic models.Example:
Add a transformer mapping.Example:
Add an HVDC P mapping for HVDC lines.
Get the dynamic model categories.Returns: List[str] - List of category names
Get supported dynamic models for a given category.Parameters:
category_name(str): Dynamic model category name
EventMapping
Class to map events that occur during simulation.Methods
Create an equipment disconnection event.Parameters:
static_id(str): ID of the network element to disconnectstart_time(float): Timestep at which the event happensdisconnect_only(str, optional): Side to disconnect for branch equipment (‘ONE’ or ‘TWO’)
Create an active power variation event on generator or load.Parameters:
static_id(str): ID of the load or generatorstart_time(float): Timestep at which the event happensdelta_p(float): Active power variation
Create a bus node fault event.Parameters:
static_id(str): ID of the busstart_time(float): Event start timefault_time(float): Duration of faultr_pu(float): Resistance in per unitx_pu(float): Reactance in per unit
OutputVariableMapping
Class to map curves and final state values for output.Add curves mapping on a dynamic model.Parameters:
dynamic_model_id(str): ID of the dynamic modelvariables(List[str] or str): Variable names to record
Add curves mapping on network equipment without dynamic model.Parameters:
static_id(str): ID of the network equipmentvariables(List[str] or str): Variable names to record
SimulationResult
Result object returned by simulation run.Status of the simulation (SUCCESS or FAILURE)Returns: DynamicSimulationStatus
Status text of the simulation (failure description or empty if success)Returns: str
Dataframe of the curves results.Returns: DataFrame - Columns are curve names, rows are timesteps
Dataframe of final state values results.Returns: DataFrame - First column is FSV names, second is values
Dataframe of the simulation timeline.Returns: DataFrame - Event time, model name, and event message
