You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add cross-references between PyRAMSES examples and test system pages
- Examples page: replaced duplicate Nordic/5-bus sections with concise
versions that link to test system pages for details
- Nordic page: added See Also linking to PyRAMSES examples
- 5-bus page: added See Also linking to PyRAMSES examples
Set `$OMEGA_REF SYN ;` in the solver settings file when exporting Jacobians for eigenanalysis.
192
192
:::
193
193
194
-
## Nordic Test System: Generator Trip
194
+
## Test System Examples
195
195
196
-
The following example is based on the [Nordic JHub starter notebook](https://github.com/SPS-L/Nordic_JhubStart). It simulates a generator trip at t = 10 s and plots the rotor speed of the tripped machine.
196
+
The following examples use the ready-to-run test systems. For system descriptions, data files, and disturbance scenarios, see the [Test Systems](/stepss-docs/test-systems/nordic/) section.
197
+
198
+
### Nordic Test System: Generator Trip
199
+
200
+
Trips generator g7 at $t = 10$ s on the heavily-stressed Operating Point B and observes the voltage collapse dynamics over 150 seconds. See the [Nordic Test System](/stepss-docs/test-systems/nordic/) page for full system details and file descriptions.
# --- Remove stale output files from previous runs ---
207
+
case.addData('dyn_B.dat')
208
+
case.addData('volt_rat_B.dat')
209
+
case.addData('settings1.dat')
210
+
case.addDst('nothing.dst')
211
+
case.addObs('obs.dat')
212
+
case.addTrj('output.trj')
213
+
212
214
for f in os.listdir('.'):
213
215
if f.endswith('.trj') or f.endswith('.trace'):
214
216
os.remove(f)
215
217
216
-
# --- Run simulation ---
217
218
ram = pyramses.sim()
218
-
ram.execSim(case, 0.0)# initialise, paused at t = 0
219
-
ram.addDisturb(10.0, 'BREAKER SYNC_MACH g7 0')# trip generator g7 at t = 10 s
220
-
ram.contSim(150.0)# simulate to t = 150 s
219
+
ram.execSim(case, 0.0)
220
+
ram.addDisturb(10.0, 'BREAKER SYNC_MACH g7 0')
221
+
ram.contSim(150.0)
221
222
ram.endSim()
222
223
223
-
# --- Extract and plot results ---
224
224
ext = pyramses.extractor(case.getTrj())
225
-
ext.getSync('g7').S.plot() # rotor speed of generator g7
225
+
ext.getSync('g7').S.plot() # rotor speed
226
+
ext.getBus('1041').mag.plot() # voltage at central bus
226
227
```
227
228
228
-
:::note
229
-
The Nordic test system files (`dyn_B.dat`, `volt_rat_B.dat`, etc.) are available in the [Nordic_JhubStart](https://github.com/SPS-L/Nordic_JhubStart) repository.
230
-
:::
231
-
232
-
## 5-Bus System: Exciter Parameter Change
229
+
### 5-Bus System: Exciter Parameter Change
233
230
234
-
The following example is based on the [5-bus test system Case 2 notebook](https://github.com/SPS-L/5_bus_test_system). It applies a step change to the exciter voltage setpoint at t = 1 s and plots the generator active power.
231
+
Applies a step change to the exciter voltage setpoint at $t = 1$ s and plots the generator response. See the [5-Bus Test System](/stepss-docs/test-systems/5bus/) page for details.
Copy file name to clipboardExpand all lines: src/content/docs/test-systems/5bus.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,3 +47,7 @@ ext.getSync('G').Q.plot() # reactive power
47
47
## Download
48
48
49
49
The test system files are available in the [5_bus_test_system repository](https://github.com/SPS-L/5_bus_test_system).
50
+
51
+
## See Also
52
+
53
+
-[PyRAMSES Examples](/stepss-docs/pyramses/examples/#5-bus-system-exciter-parameter-change) — Complete Python simulation workflow with this test system
Copy file name to clipboardExpand all lines: src/content/docs/test-systems/nordic.mdx
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -175,3 +175,8 @@ After a generator trip on Operating Point B, the simulation demonstrates:
175
175
- T. Van Cutsem, M. Classes, "Description, modelling and simulation results of a test system for voltage stability analysis," IEEE PES Technical Report PES-TR19, 2013. Available from the [IEEE Resource Center](https://resourcecenter.ieee.org/publications/technical-reports/PESTR19)
176
176
-[RAMSES project page](https://sps-lab.org/project/pyramses/) at the Sustainable Power Systems Lab
177
177
-[STEPSS project page](https://sps-lab.org/project/stepss/) at the Sustainable Power Systems Lab
178
+
179
+
## See Also
180
+
181
+
-[PyRAMSES Examples](/stepss-docs/pyramses/examples/#nordic-test-system-generator-trip) — Complete Python simulation workflow with this test system
182
+
-[PyRAMSES API Reference](/stepss-docs/pyramses/api-reference/) — Full API documentation for scripting simulations
0 commit comments