Skip to content

About

Interconnection screening for large loads such as data centers

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

LargeLoad-Screen

Tests PyPI DOI

Free, open-source interconnection screening for large loads such as data centers.

Large computational loads can drop off the grid together when a transmission fault depresses the voltage, for example when their UPS (uninterruptible power supply) systems transfer to backup power. LargeLoad-Screen helps planners see where that risk sits before detailed studies start:

Screen Question it answers
1. Site strength How strong is the grid at the site, and how much does the voltage move if the site trips?
2. Fault-dip exposure Which bus faults pull each site below its ride-through threshold?
3. Common-mode trip How many MW can one fault trip across several sites at once?
4. Load-loss dynamics What do frequency and voltage do when that happens? (time-domain simulation with ANDES)

Version 0.1.0. Live demo dashboard (IEEE 39-bus example with four illustrative data centers).

LargeLoad-Screen dashboard: network map colored by the MW one fault would trip

LargeLoad-Screen is a screening tool. It shows where to look; it does not replace dynamic, EMT (electromagnetic transient) or protection studies, and it does not check compliance with any NERC (North American Electric Reliability Corporation) standard or utility requirement.

Install

pip install largeload-screen

Python 3.11 or newer (ANDES 2.0 needs 3.11). PSS/E import uses pypowsybl and Screen 4 uses andes; both are installed automatically.

Quick start

largeload-screen example my_examples
largeload-screen run ieee39 --sites my_examples/ieee39_sites_example.csv --out results.json --csv-dir results

ieee39 is the built-in IEEE 39-bus test system with assumed short-circuit data. Its results demonstrate the tool, not any real system.

Add --dashboard dashboard.html to get an interactive dashboard: one HTML file that works offline. It has an animated network map colored and sized by the MW one fault would trip (a pulsing ring marks faults that trip two or more sites), the selected fault's effect on every site, the retained-voltage grid, the common-mode ranking, and, for Screen 4, a playback of each simulated event on the map (bus voltages, the fault, the sites dropping off) next to the frequency and voltage plots, starting automatically with the worst event. The map zooms with +, − and Fit (or the mouse wheel, drag and pinch), a search box finds any bus or site, and the layout adapts to desktop, tablet and phone screens, in light or dark mode. CSV, Data (JSON) and Print / PDF buttons are built in. A worked walk-through is in docs/examples.md.

Screen 4 playback: bus voltages during the fault at bus 16, with three sites disconnected

Your own network

largeload-screen check  mycase.raw --dyr mycase.dyr
largeload-screen run    mycase.raw --dyr mycase.dyr --sites sites.csv --out results.json

Supported networks: PSS/E .raw (versions 32, 33 and 35) with an optional .dyr; pandapower .json; MATPOWER .m / .mat. Everything runs on your own computer, so restricted network data (CEII, Critical Energy/Electric Infrastructure Information) never leaves it.

check reports what was imported, where each machine's sub-transient reactance came from, and, for .raw files, compares a power flow of the converted network with PowSyBl's power flow of the original file. Run it first on every new case.

Machine short-circuit data, in order of preference:

  1. --gen-data CSV you supply (bus, id, xdss_pu, sn_mva, r_over_x, fault_source)
  2. X''d from GENROU or GENSAL records in the .dyr file
  3. The .raw source impedance ZX (on MBASE), unless it is the PSS/E default of 1.0
  4. Otherwise an assumed X''d = 0.20 pu on the machine rating, reported in the notes

Machines with an inverter-based resource (IBR) model in the .dyr file, or a non-zero WMOD in the .raw file, are not counted as short-circuit sources.

Sites file

One row per site. Run largeload-screen template for an example.

Column Required Meaning
site_id yes short unique name
bus yes bus number of the point of interconnection (PSS/E bus number for .raw files)
p_mw yes site demand, MW
ride_through_v_pu yes the site rides through dips at or above this voltage
ride_through_t_s no ...and dips below it lasting no longer than this, seconds (default 0)
power_factor, pf_type no default 1.0; lagging (default) or leading
trip_fraction no share of the site's MW lost when it trips (default 1.0)
name no description

The ride-through threshold is the site's own value, from the owner, the equipment data or the transmission owner's requirement. The tool ships no "official" threshold.

Method

Short-circuit model (classical flat start, common U.S. planning practice): 1.0 pu pre-fault voltage, no IEC c-factor; synchronous machines behind X''d, the external grid behind its short-circuit MVA; lines and transformers as series impedances at nominal ratio; loads, shunts and line charging ignored. IBRs contribute no fault current, which is conservative (lower short-circuit MVA, deeper dips).

Screen 1. Short-circuit MVA and X/R at the site bus; the load's short-circuit ratio (SCMVA ÷ MW, shown for context only, as there is no industry threshold for loads); the instantaneous voltage step if the site trips, ΔV ≈ (P·R + Q·X) ÷ S_base; voltage sensitivity dV/dP and dV/dQ from the power flow; and the steady-state voltage change after the site trips, at the site and at the most affected bus. The flag compares that change with your limits. The defaults, 3% "watch" and 5% "flag", are common screening values, not any ISO (independent system operator), RTO (regional transmission organization) or utility criteria; set your own with --dv-watch and --dv-flag.

Screen 2. For a three-phase bolted fault at bus f, the retained voltage at site bus k is |1 − Zkf ÷ Zff| (flat start), or uses power-flow pre-fault voltages with --prefault powerflow. A site trips when the retained voltage is below ride_through_v_pu and the assumed clearing time (--clearing-time, default 0.10 s) is longer than ride_through_t_s. Bus faults only in this release.

Screen 3. For each fault, the MW tripped is the sum of trip_fraction × p_mw over the sites that trip. The worst fault has the most MW (ties: more sites, then the deepest average dip). A co-trip table counts the faults that trip each pair of sites, and faults that trip exactly the same sites are grouped into distinct trip sets. --loss-limit flags faults above your system's largest loss criterion; no default is shipped.

Screen 4. The worst fault of each of the three worst trip sets (--dyn-events, 1 to 5), so every event trips a different group of sites, is simulated with ANDES (--dyn-pick fault takes the highest-ranked faults instead, and --dyn-fault-bus simulates one chosen fault): a bolted fault at t = 1 s cleared after the clearing time, with the tripping sites disconnected at the fault instant (--dyn-mode fault, default), or the site trips alone (--dyn-mode trip). Reported: center-of-inertia frequency peak and settled value, largest RoCoF (rate of change of frequency) over --rocof-window (default 0.5 s), highest bus voltage after clearing and at the end, and the largest rotor-angle spread. Two hand estimates are printed beside the simulation: initial RoCoF = ΔP·f0 ÷ ΣM and the settled rise from the governor droops and their downward range. The generator reactive limits are enforced in ANDES's power flow, so for a PSS/E case it starts from the same operating point as Screen 1 (the difference is reported). Screen 4 needs dynamic data: the built-in ieee39 (ANDES's IEEE 39-bus dynamic case: same buses and branches, its own load and dispatch) or a PSS/E version 32/33 .raw with its .dyr. A simulation that fails to initialize or stops early is reported as not completed.

Limitations

  • Bus faults only; faults part-way along lines are not screened yet.
  • One clearing time for all faults; delayed (backup) clearing is not modeled.
  • A single voltage threshold per site, not a full ride-through curve.
  • Screen 2 uses the initial (sub-transient) dip; during a longer fault the voltage can sag further as machine fluxes decay (up to 0.08 pu lower after 20 ms in the IEEE 14-bus check).
  • Post-trip power flows keep transformer taps and switched shunts fixed.
  • Screen 4 clears the fault without disconnecting equipment, models site demand like other loads (constant impedance by default), and does not model the sites' return from backup.
  • Screen 4 uses only the machine, exciter and governor models ANDES supports; generators without a dynamic model are held at fixed output (reported).
  • Converters, HVDC links and static var compensators in .raw files are not converted yet; check lists them and the power-flow comparison shows their effect.

Before relying on a result, read Limits and when to escalate.

Verification

See docs/verification.md. In short: hand-calculated Z-bus, short-circuit, retained-voltage and common-mode values; agreement with SCR-Screen's independent classical short-circuit code on all 39 buses of the IEEE 39-bus case; power flows of converted PSS/E cases matching PowSyBl; Screen 4 frequency results within 4–5% of hand estimates; and Screen 2 dips within 0.02 pu of the time-domain dip at the fault instant.

Citation

If you use LargeLoad-Screen, please cite it. The DOI 10.5281/zenodo.24873744 covers all versions and always resolves to the latest one; version 0.1.0 is 10.5281/zenodo.24873745.

Ibrahim, S. (2026). LargeLoad-Screen: interconnection screening for large loads such as data centers (Version 0.1.0) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.24873745

GitHub's "Cite this repository" button reads CITATION.cff.

License

GPL-3.0-or-later. Copyright (c) 2026 Shaibu Ibrahim, P.E.

The built-in IEEE 39-bus network file (ieee39_assumed.json) is shared with SCR-Screen.

About

Interconnection screening for large loads such as data centers

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages