FeatureBuilt · in the lab
Grid study
An electrical network as tables and a single-line drawing: load flow, short circuit the IEC 60909 way, first-swing stability, protection curves, a solar and battery plant, and IEC 61850 SCL files.
Use this add-on:
Screenshots and a short video come with the listing (AL.3).
Overview
Grid study is a first tool for power system studies. You describe a network in three tables (buses, lines and transformers, machines and feeders) or open a published test case, and see it as a single-line drawing. From there it runs a Newton-Raphson load flow, short-circuit currents the IEC 60909 way, a first-swing stability check by the swing equations, protection grading on time-current curves, the yearly yield of a solar and battery plant against a load profile with a sizing table, and it reads, checks and writes IEC 61850 SCL station files.
In CadCraft the single-line drawing and the time-current chart are drawn into your drawing as ordinary entities. In CivilCraft the study runs in the panel. Every result is an aid for an engineer to check, not an approval: the load flow is checked on published test networks and the short circuit on published worked examples, and the listing says exactly which and how closely.
Who it’s for
- An electrical engineer who wants a quick load flow or fault level before opening a full study program.
- A protection engineer checking that relays, fuses and cables grade at given fault currents.
- A designer sizing a solar array and a battery against a site's load.
- A substation engineer who wants to open an SCL file, see what is in it and find structural mistakes.
- A student learning load flow, symmetrical components, the swing equation and time-current curves on a network they can change.
What you can do
- Describe a network as tables of buses, lines, transformers, machines and feeders, in per unit, ohms or transformer nameplate figures. Grid study tab, Network. verified
- Start from the published IEEE 14-bus test case, or open any case in the IEEE Common Data Format. Network, Load example and Open a file. verified
- See the network as a single-line drawing with voltages, flows and fault currents on it, and draw it into a CadCraft drawing on GRID- layers. Single-line drawing. verified
- Run a Newton-Raphson load flow with generator reactive limits and read voltages, angles, flows, losses and overloads. Load flow. verified
- Work out three-phase, phase-to-phase and earth-fault currents with the voltage factor and the transformer and generator correction factors: initial, peak, breaking and heating current. Short circuit. verified
- Follow the rotor angles of the machines through a fault and find the critical clearing time. Stability. verified
- Draw relays, a maker's fuse or breaker curve and a cable's damage line on one time-current chart and check the grading margin between each pair. Protection curves. verified
- Run a year of a solar array and battery against a load, from a weather file or a typed yearly yield, and fill a sizing table. Solar and battery plant. verified
- Open an IEC 61850 SCL file, read what it holds and check it against the structure of the schema; save it again. IEC 61850 file. verified
- Save the network as an SCL system specification and read it back complete. IEC 61850 file, Save the network as SCL. verified
- Save the results as CSV and as a calculation page for the report binder. Load flow. verified
- Follow a switching surge or a DC link: a breaker closing onto a capacitor bank or a cable, a DC link charging or discharging into a short circuit, with peak voltage and current. Switching transients. verified
- Follow a voltage step along a line with reflections at both ends and read the voltage at the far end. Line surges. verified
- Solve a railway supply: voltage along the line with trains drawing or returning power from DC substations, or one train on an AC feed. Traction and railway supply. verified
- Work out the yearly energy of wind turbines from a power curve and a Weibull wind distribution, then a year of wind, solar and load with a battery. Wind and hybrid plants. verified
- Analyze a voltage regulator or speed governor loop: gain and phase margin and the closed-loop step response. Controller loops. verified
- Write a test plan for an overcurrent relay (inject current, expected time, allowed band) and a fault record to play back, as CSV, JSON and COMTRADE files. Relay test plans. verified
Methods and standards
Load flow is Newton-Raphson in polar form on the bus admittance matrix, with the usual π branch and an off-nominal tap on the first bus; a generator on a reactive limit becomes a load bus and the flow is solved again. Short circuit uses symmetrical components on the bus impedance matrices with the equivalent voltage source c·Un/√3 at the fault, the transformer factor KT = 0.95 cmax/(1 + 0.6 xT), the generator factor KG, voltage levels referred through the rated transformer ratios, the peak factor κ = 1.02 + 0.98 e^(−3R/X) (1.15 κ in a meshed network) and the heating factor m for a fault far from generators. These were read in public sources that quote IEC 60909-0, not in the standard.
Stability is the classical model: each machine a fixed voltage behind its transient reactance, loads as fixed impedances, the network reduced to the machines for the time before, during and after the fault, and the swing equations stepped by the fourth-order Runge-Kutta rule. Protection uses the IEC 60255-151 and IEEE C37.112 inverse-time formulas, a maker's curve read between its points on logarithmic axes, and the cable line t = (k S / I)². The plant model puts light on the array with the isotropic sky model, turns it into power with one performance ratio, and books the battery's energy hour by hour. The SCL check walks the file against a table of element and attribute names, order, counts, value lists and key rules made from the schema.
Switching transients integrate the series R-L-C branch by fourth-order Runge-Kutta and are compared with its closed-form step response; line surges use the reflection lattice of a lossless line (Bewley); the DC traction supply is a nodal network with trains as constant-power loads solved by fixed-point iteration, a substation that would take back braking power is switched off and the unused power is reported; wind energy integrates the power curve against a Weibull density by Simpson's rule and a synthetic hourly year (seeded, AR(1) mapped through the Weibull quantile) feeds the same battery model as the solar plant; control loops are evaluated on a frequency sweep with margins found by bisection and a step response by Runge-Kutta; relay test points come from the same inverse-time formulas as the protection curves, and the fault record is written in the ASCII COMTRADE layout from its public description.
Data and sources
The IEEE 14-bus test case is included exactly as the University of Washington Power Systems Test Case Archive publishes it; its machine figures for short circuit and stability are not part of the case and are round example values, marked in the panel. The voltage factor c and the correction formulas come from public sources that quote IEC 60909-0; the standard itself was not read, and the panel says so. The relay curve constants are those of IEC 60255-151 and IEEE C37.112 as carried by the shared network engine. No maker's relay, fuse, breaker, cable, module or battery data is included: you type a maker's curve as points and a cable's k yourself. The daily load shapes are round shapes of ours, not measured profiles. The SCL structure table holds only names and counts taken from the IEC 61850-6 schema, edition 2007B4; the schema's text is not included.
Verification
| Case | Result |
|---|---|
| Network tables are checked before a study | A bus listed twice, a branch to a bus that is not there, a branch with no impedance, a second swing bus and a bus nothing reaches are each reported by name (bin/test-gridstudy.mjs) |
| Load flow against published test networks | IEEE 14-bus test case, read from the public archive's own file: converges in 4 iterations, every bus within 0.0015 pu and 0.02 degrees of the solution printed in the file, swing bus 232.4 MW as printed. IEEE 30-bus: voltages within 0.001 pu and generator 2 on its 50 MVAr limit as printed; the file's |
| Short circuit against published worked examples | A feeder, 630 kVA transformer and cable example published for IEC 60909: 22.18 kA, peak factor 1.471 and 46.15 kA peak at the transformer, 21.24 kA and 43.19 kA behind the cable, all as printed. A second published example: 15.8, 13.7 and 16.3 kA for three-phase, two-phase and earth faults, and 7.5, |
| Stability against the equal-area closed form | One machine against an infinite bus: the critical clearing time found by stepping the swing equation is 0.3071 s, the closed form gives 0.3071 s; 10 ms shorter is stable and 10 ms longer is not. Five machines on the 14-bus network run through a fault (bin/test-gridstudy.mjs) |
| Curves and grading by hand | An IEC normal inverse relay at ten times pickup operates in TMS times 0.14/(10^0.02 - 1); two relays with a 0.3 s margin pass, a smaller margin warns and a crossing is an error; a maker's curve passes through its own points; a cable line is (k S / I) squared (bin/test-gridstudy.mjs) |
| Plant energy bookkeeping against closed forms | An array equal to the load buys and sells nothing; a 12-hour array with no battery covers half the load; a large battery gives back 81 % at 0.9 each way; a 5 kWh battery above 20 % moves 4 kWh a night; an export limit caps what is sold; energy closes to rounding in every case (bin/test-gridstudy.mjs |
| An SCL file written by another tool | A 2007B4 station file from another project's test set reads as one substation, two voltage levels and three IEDs, writes back to the same content, and the check finds its two real deviations from the schema, both confirmed by hand. Missing headers, wrong order, unknown attributes, duplicate names an |
| The network as SCL and back | The 14-bus network written as an SCL system specification passes the structure check with no finding, and read back it has every impedance and tap and solves to the same load flow (bin/test-gridstudy.mjs) |
| Drawn in a real CadCraft page | In CadCraft's lab build the add-on is switched on, the 14-bus single-line is drawn on GRID- layers in one undo step and removed again (tools/gridstudy/browser.mjs) |
| Results saved from a real page | In the lab build a load flow, a short-circuit run, a stability run, a grading check, a plant year and an SCL check are run from the panel and the numbers read on the page (tools/gridstudy/browser.mjs) |
| Switching transients against the series circuit closed form | The RK4 trace agrees with the closed-form step response of the series R-L-C circuit (under-damped, critical and over-damped) within 1e-5 of the source at every sample; the peak equals V(1 + e^(-pi a/wd)); a DC link discharging into a short gives the closed-form peak current (bin/test-gridstudy2.mjs) |
| Line surges against the reflection lattice | An open end doubles the first wave; a source impedance of 100 ohm on a 400 ohm line gives 1.6 at the far end and settles to 1; a matched load shows no reflection; a resistive load settles to V ZL/(ZL+Zs) (bin/test-gridstudy2.mjs) |
| Traction supply against the one-train closed form | One train and one substation: the constant-power quadratic V = (Voc + sqrt(Voc^2 - 4RP))/2 to 1e-9; a train midway between two substations splits the current equally; the power balance closes to 1e-6 kW; a load the line cannot carry is refused as a voltage collapse (bin/test-gridstudy2.mjs) |
| Wind energy against the Weibull moments | The mean power of P = v^3 equals c^3 Gamma(1 + 3/k) within 0.02 percent; the synthetic year keeps its mean within 4 percent; the hybrid year closes its energy balance (bin/test-gridstudy2.mjs) |
| Controller margins against a closed form | For 4/(s(s+1)(s+2)) the phase crossover is sqrt 2 rad/s and the gain margin 6/4 = 1.5; a gain of 6 gives margin 1; the closed-loop step of an integrator loop is 1 - e^-t; the overshoot of the second-order loop matches e^(-pi zeta/sqrt(1-zeta^2)) (bin/test-gridstudy2.mjs) |
| Relay test plan against the inverse-time formula | A normal-inverse relay at 2 x pickup, TMS 1: 10.029 s, as worked by hand from 0.14/(2^0.02 - 1); the fault record reads back with the right rms before and after the fault. Not opened in another program (bin/test-gridstudy2.mjs) |
Limits
This is a design aid, not an engineering approval: it does not replace the judgement, the checks and the sign-off of the person responsible for the work, and nothing you build from its figures should rest on it alone.
It is a study aid, not an approval, a certificate, a protection setting or a grid connection study, and we accept no liability for what is built or set from it. An engineer must check every result against real equipment data. Load flow: balanced three-phase networks only, no automatic tap changers, no area control, dense matrices (a few hundred buses). Short circuit: the standard itself was not read; breaking, steady and heating currents are those of a fault far from generators, so the decay near a generator is not modeled; motors are not included; the peak in a network with several sources uses the 1.15 κ method; three-winding transformers are not included. Stability: the classical first-swing model only, with no voltage regulator, governor, damper windings or saliency; "stable" means no two machines pass 180° apart, which is a screening rule. Protection: no maker's data, no directional or distance elements, no current transformer saturation. Plant: one performance ratio stands for every loss, the battery is energy bookkeeping with no ageing or tariffs, and without a weather file the yield is your own figure spread by a clear-sky shape, not a forecast. SCL: the check is of structure, not of name shapes, number formats or the IEC 61850-7 data model; a file with no finding is not proved valid; a file from another tool gives topology only. The single-line symbols are generic and follow no one symbol standard. English only. It has been tested by our own test programs and in a browser, not by an outside engineer and not against another study program. Second part: the transient models are one lumped single-phase circuit or one lossless line (no corona, no frequency-dependent loss, no three-phase coupling); the traction model has trains at fixed positions and constant power, no timetable, no regeneration into the rectifier and no autotransformer feed, and its minimum voltage is yours to set; the wind power curve between cut-in and rated is a cubic, the synthetic hourly series stands in for measured data and wakes are one loss figure; the controller loops are linear with no saturation or rate limits, and the preset numbers are textbook sizes; the relay tolerance band is a placeholder of yours to set and the fault record has not been opened in another program; nothing here talks to a relay or a test set, and field testing of secondary equipment is not done.
Files and formats
Reads and writes its own network file (.gridstudy.json: the tables and the protection devices). Reads load flow cases in the IEEE Common Data Format. Reads EnergyPlus weather files (.epw) and a load file of 8760 hourly values (CSV or text). Reads IEC 61850 SCL files (.scd, .ssd, .icd, .cid, .iid, .sed) of edition 2007B4, and other editions with a note; writes an SCL file back as read, and writes the network as an SCL system specification (.ssd). Writes results as CSV and a calculation page as Markdown. In CadCraft it writes polylines, lines, circles and text on GRID- layers, which export to DXF and DWG. Files are read in your browser; nothing is sent anywhere. Writes a relay test plan as CSV and JSON and a fault current record as an ASCII COMTRADE pair (.cfg and .dat).
Get started
- Switch the add-on on in Settings, Add-ons, then open the Grid study tab.
- Under Network press Load example, then open Load flow and press Run load flow.
- Open Short circuit, Stability and Protection curves and run each on the same network.
- Open Solar and battery plant, type your load and array, and press Run the year.
- Open IEC 61850 file to check a station file, or to save the network as SCL.
- Open Switching transients, Line surges, Traction and railway supply, Wind and hybrid plants, Controller loops or Relay test plans and press the button in each: every fold starts from an example.
Languages
The text is available in:
- English (en)
Works in
| Edition | Works | Note |
|---|---|---|
| Browser (/use) (yours) | Added on demand | Fetched the first time you use it, then kept for offline use. |
| Studio from getcadcraft.com | Added on demand | Fetched the first time you use it, then kept for offline use. |
| Microsoft Store | Added on demand | Fetched the first time you use it, then kept for offline use. |
| Google Play | Added on demand | Fetched the first time you use it, then kept for offline use. |
| iPad and iPhone (App Store) | Included; switch it on | Part of the reviewed app; your list switches it on. |
| Custom build | Added on demand | Fetched the first time you use it, then kept for offline use. |
Comes with
Nothing else.
Versions
| Version | Channel | Date | What changed |
|---|---|---|---|
| 1.0.0 | lab | November 25, 2026 | First version in the Library. |
Licence and maker
CadCraft (CadCraft, first-party). Licence: Apache-2.0. Dependencies carry their own licences, listed on their pages.