Power-system simulation in C#/.NET

Simulate the grid.
Get the same answer every time.

Power flow to EMT, short circuit to protection, in one engine. Results that repeat to the last bit on every run, CPU and operating system, from a numerical core cross-checked to machine epsilon.

GridSim starts from a per-unit network model, the bus admittance matrix and a Newton-Raphson load flow, and grows from there one tested step at a time.

GridSim desktop view of a GB example transmission network: substations drawn as rings, joined by corridors coloured by power flow.
GridSim desktop network view · GB example model, live power flow
POWER FLOWDYNAMICSPROTECTION

One engine. Every study. The same bits.

Measured, with the data published

Fast where it counts. Checked where it matters.

20,758 buses

The largest network solved in the RC4 benchmark, at 0.76 s per solve from a flat start.

109 / 109

Fastest on every case where GridSim and at least one other solver passed the 1e-8 pu residual check.

4.29×

Median ratio of the fastest other solver's time to GridSim's, case by case, on those 109 cases.

4.4e-16 pu

Voltage difference from pandapower on case9. Every reference case sits inside a 4096 machine-epsilon gate.

Read the benchmarkSee the cross-checks

Determinism

Same inputs. Same bits. Everywhere.

Every run, every CPU tier from AVX-512 to scalar, Windows, Linux, macOS and ARM64: the same answer to the last bit.

GridSim carries its own deterministic maths library, bans fused multiply-add from numerical paths and enforces both with a test that reads the compiled code. When a release changes a result, it says so: every such change ships labelled BREAKING CHANGE, with a tool that checks your stored results against it.

How determinism works

Licence

Free licences, on request.

GridSim is source-available. Licences are issued free of charge today: ask by email and receive a licence with no restrictions.