PowerGridModel/power-grid-model — reverse-engineered prompt

Reverse engineered prompt

Build me a fast library for distribution power grid analysis that I can use mainly from Python, with a simple C interface too. I want the heavy computation done in C++, but the end result should feel easy to install and use.

It should support the core steady state calculations people expect for this kind of tool, namely power flow, state estimation, and short circuit analysis. Please make it possible to define a small sample grid, run each type of calculation, and inspect the results in a clear way. A few realistic examples would help a lot, especially for power flow and state estimation, plus basic input validation and a way to export input and output data.

Please wire it up so it can be built from source cleanly, has tests, and includes enough documentation that someone can get started without digging through the code. If there are existing public docs or examples for this project, feel free to look them up and follow that direction.

Want more depth? Deep Reverse