data pipeline updated
Browse files
README.md
CHANGED
|
@@ -62,7 +62,13 @@ Each simulation run requires approximately 7 minutes of CPU execution time. Assu
|
|
| 62 |
The dataset creation involves a trade-off between simulation fidelity and computational and environmental cost. EMT simulations were necessary to accurately capture fast inverter dynamics, provide reliable ground truth for machine learning models, and enable cross-resolution learning between EMT and RMS domains. At the same time, the dataset size of 4000 scenarios was selected to provide sufficient diversity for machine learning applications, while keeping the overall computational footprint within a manageable range.
|
| 63 |
|
| 64 |
# 3- Data Pipeline
|
| 65 |
-
All data were produced by running 4,000 distinct operational scenarios across four simulation configurations and GFM and GFL control modes, each simulated in both the EMT (PSCAD) and RMS phasor domains (MATLAB/Simulink), yielding matched trajectory pairs for each scenario. Each simulation runs for 10 simulated seconds.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
|
| 67 |
- A three-phase upstream grid source:
|
| 68 |
|
|
@@ -83,14 +89,13 @@ All data were produced by running 4,000 distinct operational scenarios across fo
|
|
| 83 |
- Series damping resistor, R_f = 0.01 Ω
|
| 84 |
- A constant baseline load (R_L = 2 Ω, L_l = 0.01 H).
|
| 85 |
|
| 86 |
-
|
| 87 |
-
The GFM control architecture implements a cascaded voltage-current control structure with active power droop. The outer voltage control loops (V_d and V_q) use PI controllers (K_p = 14, T_i = 0.0007 s in EMT; K_p = 15, K_i = 1500 in RMS) with anti-windup back-calculation, feed-forward, and saturation blocks that enforce current limits of 2.365 pu. The inner current control loops (I_d and I_q) use PI controllers (K_p = 0.14, T_i = 0.07 s in EMT; K_p = 0.15, K_i = 15 in RMS). Active power droop is implemented with a droop coefficient of 1.5 (EMT) and 1.5×10⁻⁶ (RMS).
|
| 88 |
|
| 89 |
The GFL control architecture synchronizes to the grid via a Phase-Locked Loop (PLL; K_p = 90, K_i = 1500, base frequency 60 Hz in EMT). Active and reactive power are controlled independently through separate power control loops that produce d- and q-axis current references, which are then tracked by inner PI current controllers (K_p = 1, T_i = 0.1 s in EMT; K_p = 1, K_i = 10 in phasor domain).
|
| 90 |
|
| 91 |
Both modes implement a black-start ramp-up procedure at initialization; the active power reference is gradually increased from zero to its setpoint via an integrator and saturation block to avoid large transient overshoots that would corrupt the early portion of the trajectory data.
|
| 92 |
|
| 93 |
-
The control gains, filter components, and droop coefficients listed above are representative but not universal. Real inverters from different manufacturers implement variations of these structures with proprietary parameterizations, and the dataset does not capture that diversity. Models trained on this dataset will be most directly applicable to inverters whose control structure and parameter ranges are compatible with those implemented here.
|
| 94 |
|
| 95 |
## 3.2- Scenario Sampling:
|
| 96 |
|
|
@@ -100,9 +105,12 @@ Scenario diversity is achieved through stochastic parameterization of three dist
|
|
| 100 |
- Fault disturbances: Short-circuit events are introduced at randomly sampled occurrence times with randomly sampled durations. The fault type (e.g., single-phase-to-ground, three-phase) is also stochastically selected and applied via API. Fault ride-through (FRT) behavior is implemented: upon fault detection, the active power reference is set to zero and the inverter prioritizes reactive current injection for voltage support.
|
| 101 |
- Active power reference variations: The active power reference P_ref is varied across scenarios to sample a wide range of loading conditions and operating points.
|
| 102 |
|
| 103 |
-
Measurements are taken at the LCL filter output using the default multimeters embedded in the simulation platforms (PSCAD and MATLAB/Simulink). Signals recorded include three-phase voltages and currents transformed to the dq reference frame, active power, and reactive power.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
|
| 105 |
-
The stochastic sampling of scenario parameters is bounded by the ranges mentioned above and may not fully represent the real-world breadth and depth of possible disturbances. The stable and unstable labels assigned to each scenario are simulation-internal definitions of stability that approximate, but do not perfectly replicate, the operational stability criteria used by real grid operators.
|
| 106 |
|
| 107 |
|
| 108 |
|
|
|
|
| 62 |
The dataset creation involves a trade-off between simulation fidelity and computational and environmental cost. EMT simulations were necessary to accurately capture fast inverter dynamics, provide reliable ground truth for machine learning models, and enable cross-resolution learning between EMT and RMS domains. At the same time, the dataset size of 4000 scenarios was selected to provide sufficient diversity for machine learning applications, while keeping the overall computational footprint within a manageable range.
|
| 63 |
|
| 64 |
# 3- Data Pipeline
|
| 65 |
+
All data were produced by running 4,000 distinct operational scenarios across four simulation configurations and GFM and GFL control modes, each simulated in both the EMT (PSCAD) and RMS phasor domains (MATLAB/Simulink), yielding matched trajectory pairs for each scenario. Each simulation runs for 10 simulated seconds.
|
| 66 |
+
|
| 67 |
+
The simulations are grounded in established models of inverter-based systems and standard control strategies. That said, the dataset does not capture the nuances and complexities of a real-world power system dynamics, and must be interpreted as a significant approximation of real-world behavior. Moreover, the EMT and phasor domain models are not perfectly equivalent representations of the same physical system, they differ in modeling fidelity by design. The EMT model captures electromagnetic dynamics through the explicit representation of the inverter’s DC link and switching stage, and allows three-phase unbalanced operation in the random load. The phasor domain model operates at a coarser resolution, averaging switching behavior and representing the system in the positive sequence. This resolution gap is the primary axis of variation the dataset is designed to study, and the differences between EMT and phasor trajectories for matched scenarios are therefore a feature, not a defect.
|
| 68 |
+
|
| 69 |
+
## 3.1- Model Parameters:
|
| 70 |
+
|
| 71 |
+
All four simulation models share a common SIIB system architecture, consisting of the following:
|
| 72 |
|
| 73 |
- A three-phase upstream grid source:
|
| 74 |
|
|
|
|
| 89 |
- Series damping resistor, R_f = 0.01 Ω
|
| 90 |
- A constant baseline load (R_L = 2 Ω, L_l = 0.01 H).
|
| 91 |
|
| 92 |
+
The GFM control architecture implements a cascaded voltage-current control structure with active power droop [4]. The outer voltage control loops (V_d and V_q) use PI controllers (K_p = 14, T_i = 0.0007 s in EMT; K_p = 15, K_i = 1500 in RMS) with anti-windup back-calculation, feed-forward, and saturation blocks that enforce current limits of 2.365 pu. The inner current control loops (I_d and I_q) use PI controllers (K_p = 0.14, T_i = 0.07 s in EMT; K_p = 0.15, K_i = 15 in RMS). Active power droop is implemented with a droop coefficient of 1.5 (EMT) and 1.5×10⁻⁶ (RMS).
|
|
|
|
| 93 |
|
| 94 |
The GFL control architecture synchronizes to the grid via a Phase-Locked Loop (PLL; K_p = 90, K_i = 1500, base frequency 60 Hz in EMT). Active and reactive power are controlled independently through separate power control loops that produce d- and q-axis current references, which are then tracked by inner PI current controllers (K_p = 1, T_i = 0.1 s in EMT; K_p = 1, K_i = 10 in phasor domain).
|
| 95 |
|
| 96 |
Both modes implement a black-start ramp-up procedure at initialization; the active power reference is gradually increased from zero to its setpoint via an integrator and saturation block to avoid large transient overshoots that would corrupt the early portion of the trajectory data.
|
| 97 |
|
| 98 |
+
The control gains, filter components, and droop coefficients listed above are representative but not universal. Real inverters from different manufacturers implement variations of these structures with proprietary parameterizations, and the dataset does not capture that diversity. Models trained on this dataset will be most directly applicable to inverters whose control structure and parameter ranges are compatible with those implemented here.
|
| 99 |
|
| 100 |
## 3.2- Scenario Sampling:
|
| 101 |
|
|
|
|
| 105 |
- Fault disturbances: Short-circuit events are introduced at randomly sampled occurrence times with randomly sampled durations. The fault type (e.g., single-phase-to-ground, three-phase) is also stochastically selected and applied via API. Fault ride-through (FRT) behavior is implemented: upon fault detection, the active power reference is set to zero and the inverter prioritizes reactive current injection for voltage support.
|
| 106 |
- Active power reference variations: The active power reference P_ref is varied across scenarios to sample a wide range of loading conditions and operating points.
|
| 107 |
|
| 108 |
+
Measurements are taken at the LCL filter output using the default multimeters embedded in the simulation platforms (PSCAD and MATLAB/Simulink). Signals recorded include three-phase voltages and currents transformed to the dq reference frame, active power, and reactive power. Moreover, the data collection process introduces several intrinsic biases:
|
| 109 |
+
|
| 110 |
+
- Model-Based Bias: The dataset reflects the assumptions, structure, and parameterization of the underlying simulation models. Any modeling inaccuracies will propagate into the dataset.
|
| 111 |
+
- Scenario Selection Bias: The choice of disturbances, parameter ranges, and operating modes defines the distribution of system behaviors represented, which may not fully capture real-world variability.
|
| 112 |
+
- Simplified System Bias: The SIIB system abstracts away network-level complexity, limiting representation of multi-node interactions and large-scale grid behavior.
|
| 113 |
|
|
|
|
| 114 |
|
| 115 |
|
| 116 |
|