How to use the Load Flow Simulator
Draw a single-line diagram, run a load flow, read where the power goes. Every clip on this page is the real tool, recorded while it was used.
The short version
-
Draw or load a network
Start from a worked network in Quick Start, or drag buses, lines, transformers, generators and loads onto the diagram.
-
Set it up
Select an element for its ratings and set points. The Load flow tab picks AC Newton-Raphson or DC, and the limits a result is read against.
-
Run and read
Press Run load flow. The diagram shows voltages, flows and loadings; the figures and tables under it give the detail.
Nothing is uploaded. The load flow runs in your browser, on PSA.js, a JavaScript port of PyPSA.
The screen
Inputs on the left, the diagram beside them, the results under it. Point at a part in the list to see where it is.
-
Inputs
Quick Start, save and open, then three tabs: Element, Load flow and Labels. Run load flow sits at the bottom. The chevrons fold the card to a slim Inputs rail.
-
Parts
Bus, node, line, transformer, generator, solar, wind, grid, load, shunt, storage and HVDC link. Under them: undo, redo and Clear.
-
Diagram
Your network, with the result written on it. Above it: the flow animations, Colour by and Share. In it: full screen and zoom.
-
Results
Four figures (convergence, losses, the voltage range, the highest loading), then Results by element and What this assumes.
Top right, Tour replays a one minute walk through the tool, and Guide opens this page.
Quick Start
Four worked networks: the WSCC 9-bus system, a 3-bus ring, a 20/0.4 kV feeder with rooftop solar, and two areas joined by an HVDC link. One click replaces the diagram and solves it.
On a phone, press Full screen under a clip and turn the phone sideways to read it.
Open the inputs
On a first visit the card is folded to a rail, so the diagram has the room. Click Inputs to open it; it stays the way you leave it.
Pick a network
Hover a button to read what it holds. A click loads it over the diagram and runs the load flow.
- The WSCC 9-bus is a check. It reproduces the published voltages and generator outputs of Anderson and Fouad to the last digit shown.
- Then make it yours. Change anything over the top of an example; Undo brings the last step back.
Draw a network
Buses first, then the devices on them and the branches between them. Every part takes sensible values for its voltage, so a network runs as soon as it is connected.
Drop a bus
Drag Bus (a bar) or Node (a dot) onto the diagram. A new bus takes the voltage of the selected bus, or the one most buses have.
Drop a device on a bus
Drag a generator, solar, wind, Grid, load, shunt or storage onto a bus. It snaps to it.
Connect two buses
Pick Line, Transformer or HVDC link, then drag from one bus to the other. Esc stops.
Run it
Run load flow, or Ctrl Enter. The values appear on the diagram.
- Every island needs a slack. A Grid, or a generator set to Slack, holds the voltage and takes up the balance.
- Which end first. A transformer is drawn from its high-voltage bus; an HVDC link from its sending bus.
- Move and arrange. Drag anything to move it, empty space to pan, scroll to zoom. The arrow keys nudge a selection, R turns a bus upright.
- Mistakes are cheap. Undo and redo sit under the parts. Clear empties the diagram after asking, and Undo brings it back.
Edit an element
Select an element on the diagram and the Element tab shows its values: a bus's voltage, a line's type and length, a generator's control and set points, a load's demand.
Select an element
Click it on the diagram. Its name, kind and where it connects head the panel.
Change a value
Type it in. The last result stays, faded, and a note says the network changed.
Run it again
The new flows replace the faded ones.
Nothing selected
Esc, or a click on empty space, shows the network: its name, every element by kind, and any Checks to fix before it runs.
- Standard types. Lines and transformers offer PyPSA's standard types, those matching the bus voltage first; Custom takes your own impedance and rating.
- Duplicate, delete, deselect. The three icons beside the name, or Ctrl D, Del and Esc.
- Its own labels. An element can show other values than the rest of its kind.
Load flow and labels
The Load flow tab sets what is solved and what a result is read against. Labels sets what the diagram writes beside each kind of element.
Load flow
AC, Newton-Raphson for voltages, angles, reactive power and losses, or DC, linear for active power only.
Limits
The lowest and highest voltage and the highest loading. They flag a bus or a branch in colour; they never change the result.
Labels
One row per kind of element, one tick per value it shows on the diagram.
- Newton-Raphson. The tolerance, the initial guess (a DC load flow, so phase-shifting transformers converge, or a flat start), and a Distributed slack shared by dispatch or by rating.
Read the diagram
After a run, every bus carries its voltage and angle and every branch its flow. Solid arrows are active power, open arrows reactive power, moving the way it flows.
Colour by
Bus voltage, branch loading, both or nothing. Amber nears a limit, red is past it.
Hover to read
Hover or tap an element and the box under the diagram gives its values, both ends of a branch included.
The flows
Tick or untick the active and reactive power animations.
Full screen
β€’ fills the screen with the diagram; the same button brings it back. β³ fits the view again.
Results
Under the diagram: the answer in four figures, then every element's values in tables, then what the result assumes.
Four figures
Iterations to converge, losses and their share, the voltage range and where, and the most loaded branch.
Open the tables
Results by element opens from its chevron.
Pick a table
Buses, Branches or Devices. β¬ CSV saves the one shown.
- What this assumes. The last card lists what the result rests on for this network, such as the method and the slack.
Shortcuts
- Ctrl Enter run the load flow
- Ctrl Z undo
- Ctrl Y redo
- Ctrl D duplicate
- Ctrl A select everything
- Delete remove the selection
- R turn a bus
- β β β β nudge (with Shift, further)
- Esc stop drawing, clear the selection
Ready to run one?
Open the tool