Skip to main content

LargeLoad-Screen

Tests

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 using CITATION.cff (GitHub's "Cite this repository" button reads it).

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.

Metadata

Release files for largeload-screen 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for largeload-screen 0.1.0
File Size Uploaded Provenance Actions
largeload_screen-0.1.0.tar.gz 104.7 kB Without provenance Details for largeload_screen-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for largeload-screen 0.1.0
File Interpreter ABI Platform Actions
largeload_screen-0.1.0-py3-none-any.whl Python 3 none any Details for largeload_screen-0.1.0-py3-none-any.whl

Total release size: 199.4 kB

Release files / largeload_screen-0.1.0.tar.gz

Download URL largeload_screen-0.1.0.tar.gz
Size 104.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a146a0df0cfd923af4b4e58003cdfd69b147096defcdc252d4684cec39cd8647
BLAKE2b-256 checksum
How to use checksums
605bfe41563ee480117b1460b4b0df086edb6961700f8e0cb57143052ae5ae39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / largeload_screen-0.1.0-py3-none-any.whl

Download URL largeload_screen-0.1.0-py3-none-any.whl
Size 94.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7a2de6bbed878ed07be66855b654d4e517ff54809127f5bdb9afb3bddb84c028
BLAKE2b-256 checksum
How to use checksums
964b690362f1f084c1f308ef0c6c11c7860c25a45ddca53d7b8c8aceafde1f12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Security for largeload-screen 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page