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 ToolsPyPI Downloads

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.13.tar.gz (67.4 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.13-py3-none-any.whl (79.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nrel_erad-0.1.13.tar.gz
  • Upload date:
  • Size: 67.4 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.13.tar.gz
Algorithm Hash digest
SHA256 5ba1e3a94a1943b3bf521588490001728d33d2171daed5a04fdab2a7f735c771
MD5 5ba3af7cfa426751de847f89f7082afa
BLAKE2b-256 10ed53cbc986c04b3a3f1b4e1fcf0992cddf50acff79993365c2191c9b125119

See more details on using hashes here.

Provenance

The following attestation bundles were made for nrel_erad-0.1.13.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.13-py3-none-any.whl.

File metadata

  • Download URL: nrel_erad-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 79.9 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.13-py3-none-any.whl
Algorithm Hash digest
SHA256 6bc36d020440bc9bb066a94d2b2d622a0ac1eff73cfc048c792429e64d4cf7f2
MD5 18f6458b9a634aeeb0311f6c2c8c665b
BLAKE2b-256 862c7c9ec7e8e03010f943a0e3aa96a96f10b4374bd6af992e85db40050de4aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for nrel_erad-0.1.13-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