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.

One engine. Every study. The same bits.
Measured, with the data published
Fast where it counts. Checked where it matters.
The largest network solved in the RC4 benchmark, at 0.76 s per solve from a flat start.
Fastest on every case where GridSim and at least one other solver passed the 1e-8 pu residual check.
Median ratio of the fastest other solver's time to GridSim's, case by case, on those 109 cases.
Voltage difference from pandapower on case9. Every reference case sits inside a 4096 machine-epsilon gate.
The platform
Eight study areas. One network model.
Power flow
Sparse and dense Newton-Raphson that agree to the bit, from 9 buses to 25,000.
Explore →02OPF and SCOPF
DC and full AC optimal power flow, security-constrained dispatch and unit commitment.
Explore →03Short circuit
IEC 60909, G74, ANSI, IEC 61363 and 61660 duty studies and IEEE 1584 arc flash.
Explore →04Dynamics, RMS and EMT
GENROU to WECC renewables, modal analysis and EMT in one and three phases.
Explore →05Protection
Overcurrent, directional and distance relays, fuses and reclosers, with coordination audited at every bus.
Explore →06CGMES and PSS/E
RAW 30 and 33 to 35, DYR, CGMES with conformity checks, MATPOWER, DGS and UCTE.
Explore →07Scripting and Python
A script language with a run record, and a Python package over the command line.
Explore →08User models
Declarative dynamic models, held to the same bit-identity guarantee.
Explore →Three results worth examining
The check is part of the result.
Fast, and inside the residual gate.
On the 20,758-bus case two solvers posted lower times but missed the 1e-8 pu residual. GridSim solved it to 8.7e-9 pu.
See the case →02 / GB event replay−0.171 Hz/s9 August 2019, reproduced.
Simulated RoCoF −0.171 Hz/s against −0.170 recorded; nadir 48.84 Hz against 48.80 Hz.
Follow the replay →03 / Model handover≈0.060 puThe file opened. The voltage moved.
A read-back of the GB model showed what each export format kept, and what it changed.
Examine the read-back →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 worksFor technical evaluation
Start with a network you know.
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.