Shipped Demo Cases
Sparlectra ships seven self-built networks in the Sparlectra Case Format, tracked in data/scf, so a fresh install can run power flow, state estimation, short circuit, N-1 and scenarios without downloading anything.
These networks were built for Sparlectra. They are not the IEEE cases of the same bus count, and no data was taken from MATPOWER, DTF or any other source. Every number was chosen at construction or derived from a solved run of that construction, with fixed seeds.
The number in the name is the bus count, the sp_ prefix marks them as Sparlectra's own. Components carry invented place names: busbars <Ort>_<kV> (Ostheim_110, Moorau_20; a second busbar section gets a b suffix), lines by their endpoints (Ostheim_Neuwiese_1/_2 for a double circuit; spcase60's deliberate same-name pair carries the bare corridor name on both legs), transformers by station plus both voltage levels (`Moorau11020;spcase6tapnames themT<n><from><to>,T1NordwerkKreuzau, after the labels of its single-line diagram); the short technical handle (H1,A12,MC9) stays in the file asexternalid. Each case exceptspcase6tapships with measurements (a noisy CSV with the seed in the header, plus a bad-data variant with one gross reading), a scenarios block (explicit mode; N-1 expansions are chosen on the Runs page), short-circuit study buses and a solved start state.spcase6tapships with one measurement table and nothing else of this list;spcase14islandsships with the thinned measurement table ofspcase14and no bad-data variant,spcase16islands` with a measurement table, a scenarios block and a start state.
| Case | Buses | What it demonstrates |
|---|---|---|
sp_case5 | 5 | The hand-checkable entry: two voltage levels, an external grid as slack and IEC 60909 feeder, one PV machine, ratings chosen so that line outages overload the surviving parallel path (line_Borntal_Lindhof_out: 122 percent) while the base keeps 32 percent reserve. |
sp_case6tap | 6 | The tap control case: three transformers, two of them regulated, see sp_case6tap. Power flow, short circuit and state estimation on a measurement table taken from the settled controller state (no bad-data variant). |
sp_case14 | 14 | The regulated feeder: a meshed 110 kV level, a radial 20 kV feeder behind a transformer with a discrete tap controller (deadband 0.01 pu, settles in 5 outer iterations), a fixed-tap transformer off neutral, and N-1 outages that island the load-only feeder. |
sp_case14_islands | 14 | sp_case14 with a measurement set that leaves the transformer Wehrden_110_20 and the injections at both its ends unmeasured: two observable islands, the transformer unobservable. Its case configuration switches zero injection off and sets state_estimation.observability.on_unobservable = observable_islands, so an SE run estimates the islands one by one. The demo for the observability gap modes and the measurement placement, see Observability. |
sp_case16_islands | 16 | sp_case6tap plus two attached networks on switchable ties, see spcase16islands. The measurement table leaves one tie unmeasured: two observable islands, estimated one by one (on_unobservable = observable_islands in its case configuration); the scenarios open the ties into three network islands. |
sp_case60 | 60 | The feature-dense operated grid: 220/110/20 kV, a PST holding its corridor flow, a combined ratio-and-phase Schraegregler, an SVC, a 40 percent series-compensated corridor, a same-name double circuit across two busbar sections joined by an impedance-less link, and a bridge branch whose outage island solves via PV promotion. No branch above 80 percent in the base case: the screening fixture. |
sp_case188 | 188 | The benchmark: a 380 kV double ring with a double busbar, a steerable HVDC pair (60 MW setpoint), four parametric 110/20 kV zones, a STATCOM with a remote target, an SSSC, a PST and a series-compensated corridor. |
data/mpower/sp_case118.m is a shipped MATPOWER file: a synthetic 118-bus case with the cardinalities of the IEEE 118-bus system (118 buses, 186 branches of which 9 transformers, 54 generators with a good third of synchronous condensers, 99 loads, three areas, an 11-bus 345 kV backbone over a 138 kV grid) and its own topology, parameters and names. It stands in for the downloaded IEEE case in the APSLF and scenarios workshops: several machines sit at a reactive limit, every branch keeps 25 percent headroom, and a handful of N-1 outages island a bus or do not converge.
In the Web UI the shipped cases appear in the case chooser (Case selector). Programmatically, load them like any other SCF file:
using Sparlectra
path = joinpath(pkgdir(Sparlectra), "data", "scf", "sp_case14.scf.json")
res = Sparlectra.import_case(path, load_sparlectra_config())
runpf!(res.net)Reference values (bus voltages, iterations, losses, N-1 summary counts, state-estimation objective and degrees of freedom, short-circuit currents at two buses) live in test/fixtures/demo_cases/ and data/scf/README.md.
sp_case6tap: tap control and tap estimation
sp_case6tap is a small net for tap control and tap estimation, written by hand. Two 220 kV buses feed a meshed 110 kV level through the coupling transformers T1 and T2, which close a loop; T3 feeds a 20 kV load bus.
T1_Nordwerk_Kreuzau, 220/110 kV, 200 MVA, with two tap changers: a ratio changer (+-12 steps of 1.25 percent) and a phase changer (+-20 steps of 1 degree).T2_Suedfeld_Ostheim, 220/110 kV, 200 MVA, ratio changer +-12 steps of 1.25 percent at position 0, no controller.T3_Mittelbach_Lindenau, 110/20 kV, 40 MVA, ratio changer +-12 steps of 1.25 percent.
Three controllers run in the outer loop: the T1 ratio changer holds Kreuzau_110 at 1.00 pu and the T3 ratio changer holds Lindenau_20 at 1.00 pu (deadband 0.01 pu each), the T1 phase changer holds 60 MW over T1 (deadband 4 MW). All taps start at position 0.
spcase16islands: attached networks and ties
sp_case16_islands is the sp_case6tap network unchanged plus two attached networks of five buses each. Network B (110/20 kV, the machine Gen_Weidach) hangs on the tie Ostheim_Haldorf, network C (20 kV, loads only) on the tie Lindenau_Erlbach. Both ties are closed in the base state. The measurement table leaves out the flows of Ostheim_Haldorf and the P and Q injections at both its ends: two observable islands, the tie unobservable, zero injection on. The scenario ties_out_three_islands opens both ties (three network islands; C has no source, so its power flow does not converge and its readings are gone), tie_Ostheim_Haldorf_out only the tie to B. See When the set is not observable.
spcase10areas: three areas for the multi-area estimation
sp_case10_areas is small enough to follow the multi-area estimation by hand. Ten buses in three areas, taken from the bus table of the file:
| Area | Buses | Border buses | Rows |
|---|---|---|---|
| 1 | Holmfeld_110 (slack), Rabenau_110, Kirchau_110, Lindwerk_110 | Kirchau_110, Lindwerk_110 | 32 |
| 2 | Marbach_110, Marbach_110b (closed coupler), Nesselau_110 (machine) | Marbach_110, Nesselau_110 | 17 |
| 3 | Oberried_110, Pfaffing_110, Oberried_20 | Oberried_110, Pfaffing_110 | 21 |
The tie lines Kirchau_Marbach, Lindwerk_Oberried and Nesselau_Pfaffing close a ring over the areas. The transformer Oberried_110_20 in area 3 carries a ratio changer (+-12 steps of 1.25 percent) released for estimation. The case file holds it at step 0; the measurement table (70 rows, seed 20261110) comes from the power flow at step +2. runse! and runse_multi_area! both fix the changer at +2 and end with J 52.1 at dof 51; the multi-area run takes three passes with the changer continuous and two with it fixed. The Literate workshop on state estimation walks through it (Example 17).
PowSyBl networks
data/powsybl/ ships three of PowSyBl's example networks as IIDM files (ieee14.xiidm, four_substations.xiidm, micro_grid_be.xiidm) and ieee14_sc.xiidm, the IEEE case with assumed short-circuit data on its generators; the Web UI case selector offers them, and run_sparlectra(casefile = "data/powsybl/ieee14.xiidm") runs one directly. What each covers: PowSyBl Import.
DTF demo deck
data/dtf_demo/sp_dtf5.DAT is a self-built five-bus network in the fixed-column DTF layout: a ring of 110 kV lines, one 110/20 kV transformer with a longitudinal tap control, two outage records; tools/build_dtf_demo.jl writes it card by card. It runs like every other case (run_sparlectra(casefile = "data/dtf_demo/sp_dtf5.DAT")) and is the deck of the foreign-formats workshop; decks of other origin are external data and do not ship. See DTF legacy input format.
CGMES deliveries of the demo cases
data/cgmes_demo/<case>/ holds CGMES 2.4.15 deliveries (EQ, TP, SSH, SV) that tools/gen_cgmes_fixtures.jl exports from sp_case14, sp_case118 and sp_casePST with Sparlectra's own exporter; a regeneration is byte identical apart from the Sparlectra version in the file header. Every element carries a name of its own: the branch name of the source case where it has one, else the bus names (ACL_<from>_<to>, Gen_<bus>), and sp_case118 carries the bus names of its MATPOWER file. The SV profile is the power flow with the Q limits of the EQ file; a unit at a limit keeps its voltage control and states the limit as its SSH q. They appear in the Web UI case selector as <case>_cgmes.zip. The exporter writes bus-branch deliveries only: no node-breaker topology, boundary sets or DifferenceModel.
data/cgmes_demo/sp_case6_igm/ is written by hand by the same tool (no export): a CGM of two operator models and a boundary set, for the bus areas of the CGMES import (Bus areas) and the multi-area state estimation. Six 110 kV buses: Holm (external grid, slack) and Rabe (load 30 MW) in the model Nord, Marbach (25 MW) and Nesselau (15 MW) in the model Sued, and the X nodes XNRabeMar and XNHolmNes. Each of the two tie lines is a half in each model, joined at its X node; the lines are 0.12 + j0.4 ohm/km and 9.5 nF/km. Nord has the sub-regions Nord-West (Holm) and Nord-Ost (Rabe). The delivery has no SV profile and carries no version stamp.