Skip to main content

Graph based scalable tool for computing energy resilience metrics for distribution systems.

Project description

CodeFactorcodecovGitHub licenseGitHub issuesPyPI - DownloadsUpload to PyPideploy-bookPytestDOIMCP ServerMCP Tools

ERAD (Energy Resilience Analysis for electric Distribution systems)

Visit full documentation here.

Understanding the impact of disaster events on people's ability to access critical services is key to designing appropriate programs to minimize the overall impact. Flooded roads, downed power lines, flooded power substation etc. could impact access to critical services like electricity, food, health and more. The field of disaster modeling is still evolving and so is our understanding of how these events would impact our critical infrastructures such power grid, hospitals, groceries, banks etc.

ERAD is a free, open-source Python toolkit for computing energy resilience measures in the face of hazards like earthquakes and flooding. It uses graph database to store data and perform computation at the household level for a variety of critical services that are connected by power distribution network. It uses asset fragility curves, which are functions that relate hazard severity to survival probability for power system assets including cables, transformers, substations, roof-mounted solar panels, etc. recommended in top literature. Programs like undergrounding, microgrid, and electricity backup units for critical infrastructures may all be evaluated using metrics and compared across different neighborhoods to assess their effects on energy resilience.

ERAD is designed to be used by researchers, students, community stakeholders, distribution utilities to understand and possibly evaluate effectiveness of different post disaster programs to improve energy resilience. It was funded by National Laboratory of the Rockies (NLR) and made publicly available with open license.

flowchart TD
A([Start])
B[Select entry point<br/>CLI or Python API or MCP tools]
C[Load Asset System<br/>Distribution model from file or cache]
D{Hazard input available?}
E[Load Hazard Model<br/>from JSON or model reference]
F[Create Empty Hazard System]
G[Add Historic Hazard Events<br/>Earthquake, Hurricane, Wildfire]
H[Validate fragility curve set<br/>DEFAULT_CURVES or custom]
I[Run Simulation<br/>asset system id plus hazard system id]
J[Simulation Result ID<br/>asset states and probabilities]
K[Analyze Results<br/>query assets, stats, topology]
L{Need uncertainty scenarios?}
M[Generate Monte Carlo Scenarios<br/>num samples and seed]
N[Tracked Changes Output]
O{Need exports?}
P[Export to SQLite<br/>for downstream analytics]
Q[Export to JSON<br/>asset and hazard systems]
R[Export Tracked Changes<br/>scenario deltas]
S[Clear loaded systems<br/>free memory and reset state]
T([End])

A --> B --> C --> D
D -- Yes --> E --> H
D -- No --> F --> G --> H
H --> I --> J --> K --> L
L -- Yes --> M --> N --> O
L -- No --> O
O -- Yes --> P
O -- Yes --> Q
O -- Yes --> R
O -- No --> S
P --> S
Q --> S
R --> S
S --> T

classDef startEnd fill:#0f172a,color:#ffffff,stroke:#0f172a,stroke-width:2px
classDef intake fill:#e0f2fe,color:#0c4a6e,stroke:#0284c7,stroke-width:1.5px
classDef decision fill:#fff7ed,color:#9a3412,stroke:#f97316,stroke-width:2px
classDef output fill:#f5f3ff,color:#4c1d95,stroke:#8b5cf6,stroke-width:1.5px
classDef cleanup fill:#f1f5f9,color:#334155,stroke:#64748b,stroke-width:1.5px

class A,T startEnd
class B,C,E,F,G,H,I,K,M intake
class D,L,O decision
class J,N,P,Q,R output
class S cleanup

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nrel_erad-0.1.14.tar.gz (70.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nrel_erad-0.1.14-py3-none-any.whl (83.4 kB view details)

Uploaded Python 3

File details

Details for the file nrel_erad-0.1.14.tar.gz.

File metadata

  • Download URL: nrel_erad-0.1.14.tar.gz
  • Upload date:
  • Size: 70.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nrel_erad-0.1.14.tar.gz
Algorithm Hash digest
SHA256 32ed720e722f50c5a30edc1a94e8706cf3ad76339a23809d2944cfdb8e98940a
MD5 beb0767054d2dc87f03b87e286d21222
BLAKE2b-256 0679b8ca6dd7bd4d452591a3650394ebfb318562c1af4b16c91f48cf926aaded

See more details on using hashes here.

Provenance

The following attestation bundles were made for nrel_erad-0.1.14.tar.gz:

Publisher: publish.yml on NLR-Distribution-Suite/erad

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nrel_erad-0.1.14-py3-none-any.whl.

File metadata

  • Download URL: nrel_erad-0.1.14-py3-none-any.whl
  • Upload date:
  • Size: 83.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nrel_erad-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 487aafbf402a4d52e7c12a991244e570e750672d513a14d44da0844d60f9af52
MD5 18e297b008a446c6bbb1015172cf9a16
BLAKE2b-256 067abbf26552ed541853864204248e7a18bb0c322c04c3d11fe670c2d0b48f62

See more details on using hashes here.

Provenance

The following attestation bundles were made for nrel_erad-0.1.14-py3-none-any.whl:

Publisher: publish.yml on NLR-Distribution-Suite/erad

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page