GridDyn is a power system simulator developed at Lawrence Livermore National Laboratory. The name is a concatenation of Grid Dynamics, and as such usually pronounced as "Grid Dine". It was created to meet a research need for exploring coupling between transmission, distribution, and communications system simulations. While good open source tools existed on the distribution side, the open source tools on the transmission side were limited in usability either in the language or platform or simulation capability, and commercial tools while quite capable simply did not allow the access to the internals required to conduct the research. Thus the decision was made to design a platform that met the needs of the research project. Building off of prior efforts in grid simulation, GridDyn was designed to meet the current and future research needs of the various grid related research and computational efforts. It is written in C++ making use of recent improvements in the C++ standards. It is intended to be cross platform with regard to operating system and machine scale. The design goals were for the software to be easy to couple with other simulation, and be easy to modify and extend. It is very much still in development and as such, the interfaces and code is likely to change, in some cases significantly as more experience and testing is done. It is our expectation that the performance, reliability, capabilities, and flexibility will continue to improve as projects making use of the code continue and new ones develop. We expect there are still many issues so any bug reports or fixes are welcome. And hopefully even in its current state and as the software improves the broader power systems research community will find it useful.
Documentation
The current user documentation is hosted on Read the Docs, including installation, quick start, Python API, and build guidance. The C++ API reference is generated separately with Doxygen; see the build guide for instructions.
The repository also includes background presentations:
- Intro
- Execution Flow
- Objects
- Object Construction and properties
- States and offsets
- Validation and Performance
Installation
For Python, install the package from PyPI with
python -m pip install griddyn (Python 3.13 or newer). See the
installation guide.
Quick Start
Start with the quick start guide.
Python package
The griddyn Python package provides simulation control, network inspection,
and PYPOWER/MATPOWER power-flow case export. Install it on Python 3.13 or newer:
python -m pip install griddyn
from pathlib import Path
import griddyn as gd
sim = gd.load(Path("network.xml"))
sim.PFlow.run()
warnings = sim.save_pypower_case(Path("network.py"))
See the Python interface guide
for setup, available methods, case-export limits, and four runnable examples
covering power flow, OPF, load changes, and dynamic recorder time series. For
example, run python -m griddyn.examples.power_flow after installing the package.
Get Involved!
GridDyn is an open source project. Questions, discussion, and contributions are welcome. Contributions can be anything from new packages to bugfixes, or even new core features. We are actively working on improving it and making it better, as well as development related to specific projects.
Contributions
See CONTRIBUTING.md for the current contribution process and development guidance. Please include tests for new behavior where practical.
Authors
GridDyn was originally written by Philip Top, top1@llnl.gov. A number of other people have contributed, see CONTRIBUTORS for more details
Source Repo
The GridDyn source code is hosted on GitHub: https://github.com/LLNL/GridDyn
Release
GridDyn is distributed under the terms of the BSD-3 clause license. All new contributions must be made under this license. LICENSE
SPDX-License-Identifier: BSD-3-Clause
portions of the code written by LLNL with release number
LLNL-CODE-681053
Release files for griddyn 0.12.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| griddyn-0.12.0.tar.gz | 41.7 MB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| griddyn-0.12.0-cp314-cp314t-win_amd64.whl | CPython 3.14 | CPython 3.14 free-threading | Windows x86-64 | Details |
| griddyn-0.12.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl | CPython 3.14 | CPython 3.14 free-threading | Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 | Details |
| griddyn-0.12.0-cp314-cp314t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl | CPython 3.14 | CPython 3.14 free-threading | Linux glibc 2.28+ ARM64, Linux glibc 2.26+ ARM64 | Details |
| griddyn-0.12.0-cp314-cp314t-macosx_14_0_arm64.whl | CPython 3.14 | CPython 3.14 free-threading | macOS 14.0+ ARM64 | Details |
| griddyn-0.12.0-cp313-abi3-win_amd64.whl | CPython 3.13 | abi3 | Windows x86-64 | Details |
| griddyn-0.12.0-cp313-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl | CPython 3.13 | abi3 | Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 | Details |
| griddyn-0.12.0-cp313-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl | CPython 3.13 | abi3 | Linux glibc 2.28+ ARM64, Linux glibc 2.26+ ARM64 | Details |
| griddyn-0.12.0-cp313-abi3-macosx_14_0_arm64.whl | CPython 3.13 | abi3 | macOS 14.0+ ARM64 | Details |
Total release size: 94.0 MB
Release files / griddyn-0.12.0.tar.gz
| Download URL | griddyn-0.12.0.tar.gz |
|---|---|
| Size | 41.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df6e840d91a28bd94fdf33b5f1cd9ab99e5d9016e12eeeeada662f4862575a56
|
|
BLAKE2b-256 checksum How to use checksums |
7619798916dcdf1a79098c5e1b6f4bf3d691aa90a422d4ba832d9523fa44416d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / griddyn-0.12.0-cp314-cp314t-win_amd64.whl
| Download URL | griddyn-0.12.0-cp314-cp314t-win_amd64.whl |
|---|---|
| Size | 7.2 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a8b88c6b87274aa4da16d9d672b73c550d09385018db543e34630e029a1e84c2
|
|
BLAKE2b-256 checksum How to use checksums |
15a38b2293d57c8d4b5cd2d819e16b6f9e0ffbfefd25abd03ff3a75a5135a2ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / griddyn-0.12.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | griddyn-0.12.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 7.4 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
86e099132ebc825757c6e0f0975a347e7b5c7f6f9f688263414c48dbc9166d21
|
|
BLAKE2b-256 checksum How to use checksums |
3d367d098004aedade3d1fffeb6f198e88d5919f3a03826bbe55bfe78e7177f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / griddyn-0.12.0-cp314-cp314t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | griddyn-0.12.0-cp314-cp314t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 6.8 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
c40760b5690c1af676c9811c64e3964241d60a89957b7851772bb39d93a2b680
|
|
BLAKE2b-256 checksum How to use checksums |
1d09d35cbb497058a654aaead9ef8d3bfc32203053b429d27160c8b30605d35f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / griddyn-0.12.0-cp314-cp314t-macosx_14_0_arm64.whl
| Download URL | griddyn-0.12.0-cp314-cp314t-macosx_14_0_arm64.whl |
|---|---|
| Size | 4.8 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
04afdb2399787513d17f0f69c23a5a532b8fafc8e0e06bc6995dce609e9e4458
|
|
BLAKE2b-256 checksum How to use checksums |
af9fbe29c0965cbc7364c6ba10b15ec462e03fe3faed1868b055fabeab23fd3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / griddyn-0.12.0-cp313-abi3-win_amd64.whl
| Download URL | griddyn-0.12.0-cp313-abi3-win_amd64.whl |
|---|---|
| Size | 6.9 MB |
| Tags | CPython 3.13 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
e12360d843ba7765559e8675e7a8e480feb0779b90e4a7f4a4f6cbe9a7196e75
|
|
BLAKE2b-256 checksum How to use checksums |
9e48dacb5d9b85b14a75a7dfd53afde712b39b7b3dd1b953272e038111df4d26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / griddyn-0.12.0-cp313-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | griddyn-0.12.0-cp313-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 7.4 MB |
| Tags | CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
3865e49727f17694984e38245ecb66aec55c0adfa78a10497919d86eaa0c21b6
|
|
BLAKE2b-256 checksum How to use checksums |
00a168c2aacc3bab8ec221ebc7e7288d04c26ce913b96cafca754981f852346e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / griddyn-0.12.0-cp313-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | griddyn-0.12.0-cp313-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 6.8 MB |
| Tags | CPython 3.13 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
91d8cf58276e02d4d0023f98d739574216e1a38328af1e6765ccb71bb62e4622
|
|
BLAKE2b-256 checksum How to use checksums |
75ee1e8374e5b5a1ec3c356a912c52d4c6b5e535e21d584b07b7419164b5a2b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / griddyn-0.12.0-cp313-abi3-macosx_14_0_arm64.whl
| Download URL | griddyn-0.12.0-cp313-abi3-macosx_14_0_arm64.whl |
|---|---|
| Size | 4.8 MB |
| Tags | CPython 3.13 abi3 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
201c8597d23536656901d2c997a29578b0890dd61d9628104fabdd2365e30bba
|
|
BLAKE2b-256 checksum How to use checksums |
1c72882caaf4b251026b8e39a7901a36881c18da620b6d944885fc85363a52ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency log