Command line
The gridsim tool runs every study as a verb, with strict versioned study files and JSON or CSV results for scripted pipelines.
The platform
Power flow, optimisation, short circuit, dynamics and protection in one C#/.NET core. One network model, one set of numerics, and results that repeat to the bit.
Eight areas
01 / Power flow
AC power flow by Newton-Raphson in polar form. The sparse engine, Gilbert-Peierls LU over an exact minimum-degree ordering, runs every meshed network by default. The dense engine is selectable and agrees with it bit for bit: every value, iteration count and status.
Radial feeders use the backward/forward sweep. Every solve can be exported with its full trace, from the Y-bus to every iteration and Jacobian, so anyone can check it independently.
Power flow, technical chapter
02 / OPF and SCOPF
DC and AC optimal power flow share the case, the limits and the results format. The full AC-OPF is an interior point method with voltage, reactive and branch MVA limits. Security-constrained dispatch holds every secured outage inside its limits.
Around the optimiser sit unit commitment, loadability and contingency screening, so a dispatch can be found, stressed and screened in one tool.
OPF technical chapterContingency analysisacopf-full) and a DC-OPF dispatch with an AC loss loop (acopf)scopf)03 / Short circuit
The IEC 60909-0 duty study gives Ik'', the peak ip by methods B and C, the breaking current Ib with the near-generator factor, the thermal Ith and the decaying DC component, with the impedance correction factors on request.
Sequence-network fault studies cover three-phase, line-to-ground, line-to-line and double line-to-ground faults, at a bus or part-way along a line.
IEC 60909 technical chapterUser manual, faults04 / Dynamics, RMS and EMT
A multi-machine RMS transient-stability engine with critical clearing time search, small-signal modal analysis, impedance-based stability and a Dommel-method EMT solver in one and three phases. Every model starts at rest on its solved power-flow point.
Inertia is modelled per machine, not as one scalar: a lumped centre-of-inertia model or a distributed multi-domain model that collapses exactly to the lumped one.
Dynamic-model librarySmall-signal and impedanceEMT05 / Protection
Placed relays, fuses, reclosers and breakers are audited for coordination at every bus, with grading margins, sensitivity at the smallest in-zone fault, instantaneous reach and breaker duty. IDMT overcurrent grading follows the IEC 60255 and IEEE C37.112 curves.
A passive assessment reads the solved state, or a fault on it, and reports which protection would operate, with its pickup, time and basis. The solve itself is unchanged.
Protection technical chapterIDMT grading06 / CGMES and PSS/E exchange
GridSim reads and writes the formats power-system models actually travel in, and checks what it reads. CGMES export writes per profile, and conformity checks report what an imported model gets wrong.
A model handover can be tested end to end: solve, export, read back and solve again, and compare the voltages.
CIM and CGMESFile and wire formats.m import and export; JSON cases v1 and v2 with a schema validator--json, --csv or --out07 / Scripting and Python API
gridsim-script runs GridSim from a text script, one statement per line, the way a person would type it at a console: load a case, solve it, trip a generator, step a simulation, report, export. Every interactive session is saved as a script, so anything done by hand can be run again byte for byte.
Python drives the gridsim command line through a small, pure-Python package that runs each verb and reads its result document, so every number is the CLI’s own, bit for bit.
08 / User models
A user model is a gridsim-model/1 JSON block diagram, not code: ports, parameters with units and bounds, blocks from a closed catalogue, wires and an initialisation block. It runs on the same step operators as the coded controllers, inside the same integration machinery.
So a declarative model is inside GridSim’s bit-identity guarantee: a model that re-expresses a coded one gives the coded model’s output bit for bit.
Extending GridSimuser-model check checks a model before it runsThe numerical foundation
The gridsim tool runs every study as a verb, with strict versioned study files and JSON or CSV results for scripted pipelines.
A desktop control room on Windows and Linux with a single-line editor, analysis views and a case editor, and a Blazor web app with REST and WebSocket APIs.
GridSim.Core embeds in a C#/.NET application. The linear solve sits behind a swappable seam: native ROCm for AMD Instinct first, then OpenCL and CUDA.