MCPcopy Create free account
hub / github.com/PowerGridModel/power-grid-model

github.com/PowerGridModel/power-grid-model @v1.13.108

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.13.108 ↗ · + Follow
3,335 symbols 8,998 edges 286 files 554 documented · 17% updated 4d agov1.13.111 · 2026-07-10★ 234110 open issues

Browse by type

Functions 2,475 Types & classes 819 Endpoints 41
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Power Grid Model logo

PyPI version PyPI Downloads PyPI Downloads per month

Anaconda-Server Badge Anaconda-Server Platforms Anaconda-Server Downloads

License: MPL2.0 OpenSSF Best Practices DOI

CI Build docs Nightly build

Quality Gate Status Coverage Maintainability Rating Reliability Rating Security Rating Vulnerabilities

Power Grid Model

power-grid-model is a library for steady-state distribution power system analysis distributed for Python and C. The core of the library is written in C++. Currently, it supports the following calculations:

  • Power Flow
  • State Estimation
  • Short Circuit

See the power-grid-model documentation for more information. For various conversions to the power-grid-model, refer to the power-grid-model-io repository. For an extended python interface to the the power-grid-model, refer to the power-grid-model-ds repository.

Want to be updated on the latest news and releases? Subscribe to the Power Grid Model mailing list by sending an (empty)
email to: powergridmodel+subscribe@lists.lfenergy.org

Installation

Install from PyPI

You can directly install the package from PyPI.

pip install power-grid-model

Install from Conda

If you are using conda, you can directly install the package from conda-forge channel.

conda install -c conda-forge power-grid-model

Build and install from Source

To install the library from source, refer to the Build Guide.

Examples

Please refer to Examples for more detailed examples for power flow and state estimation. Notebooks for validating the input data and exporting input/output data are also included.

License

This project is licensed under the Mozilla Public License, version 2.0 - see LICENSE for details.

Licenses third-party libraries

This project includes third-party libraries, which are licensed under their own respective Open-Source licenses. SPDX-License-Identifier headers are used to show which license is applicable. The concerning license files can be found in the LICENSES directory.

Contributing

Please read CODE_OF_CONDUCT, CONTRIBUTING, PROJECT GOVERNANCE and RELEASE for details on the process for submitting pull requests to us.

Visit Contribute for a list of good first issues in this repo.

Citations

If you are using Power Grid Model in your research work, please consider citing our library using the following references.

DOI

@software{Xiang_PowerGridModel_power-grid-model,
  author = {Xiang, Yu and Salemink, Peter and van Westering, Werner and Bharambe, Nitish and Govers, Martinus G.H. and van den Bogaard, Jonas and Stoeller, Bram and Wang, Zhen and Guo, Jerry Jinfeng and Figueroa Manrique, Santiago and Jagutis, Laurynas and Wang, Chenguang and van Raalte, Marc and {Contributors to the LF Energy project Power Grid Model}},
  doi = {10.5281/zenodo.8054429},
  license = {MPL-2.0},
  title = {{PowerGridModel/power-grid-model}},
  url = {https://github.com/PowerGridModel/power-grid-model}
}
@inproceedings{Xiang2023,
  author = {Xiang, Yu and Salemink, Peter and Stoeller, Bram and Bharambe, Nitish and van Westering, Werner},
  booktitle={27th International Conference on Electricity Distribution (CIRED 2023)},
  title={Power grid model: a high-performance distribution grid calculation library},
  year={2023},
  volume={2023},
  number={},
  pages={1089-1093},
  keywords={},
  doi={10.1049/icp.2023.0633}
}

Contact

Please read SUPPORT for how to connect and get into contact with the Power Grid Model project.

Core symbols most depended-on inside this repo

Shape

Method 1,474
Function 1,001
Class 775
Enum 44
Route 41

Languages

C++72%
Python28%
C1%

Modules by API surface

power_grid_model_c/power_grid_model/include/power_grid_model/auxiliary/serialization/deserializer.hpp126 symbols
power_grid_model_c/power_grid_model/include/power_grid_model/optimizer/tap_position_optimizer.hpp106 symbols
src/power_grid_model/_core/power_grid_core.py90 symbols
power_grid_model_c/power_grid_model/include/power_grid_model/common/exception.hpp72 symbols
power_grid_model_c/power_grid_model/include/power_grid_model/auxiliary/dataset.hpp64 symbols
src/power_grid_model/validation/errors.py61 symbols
power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/newton_raphson_se_solver.hpp60 symbols
tests/cpp_unit_tests/optimizer/test_tap_position_optimizer.cpp59 symbols
power_grid_model_c/power_grid_model/include/power_grid_model/auxiliary/serialization/serializer.hpp54 symbols
tests/unit/test_serialization.py52 symbols
tests/unit/test_internal_utils.py51 symbols
power_grid_model_c/power_grid_model/include/power_grid_model/calculation_parameters.hpp49 symbols

For agents

$ claude mcp add power-grid-model \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page