Skip to content

Scenario work

This is the third of the three jobs people arrive with. You have a model of the network as it is. The question is what happens after a change: a main uprated, a pump swapped, a valve shut, a new development connected. Scenarios are how you ask that question without an edit to the model you trust.

If the model is not open yet, start at Build a model from GIS or Bring in an existing model.

A scenario is a branch of the model. When you create one, the app copies the model as it stands and puts you on the copy. From that moment two models are open: Main, and the scenario. An edit in the scenario cannot change Main.

Three things follow from that, and they are the three to know before you start:

  • Every scenario branches from Main. Scenarios sit side by side, never one inside another. You cannot branch a scenario off a scenario. The switcher shows them as a flat list under Main.
  • Main becomes read-only as soon as the first scenario exists. It stays read-only until you delete the last scenario. This is deliberate. It keeps the baseline still while the scenarios that came from it are open.
  • Scenarios live in the session only. The app does not write them to the project file. If you close the tab, you lose them. A scenario is a way to ask a question, not a way to store an answer.

The feature carries an Early access badge, and the first-run dialog says the same. The feature is under active development, and this first version is limited.

Scenarios are on the paid plans. Without a paid plan, your first attempt opens Upgrade to access scenarios. The two demo networks are the exception. There scenarios are free, so you can try the whole workflow before you decide anything. See Plans.

You also need a network. On an empty project, the attempt stops at Network required.

  1. Run Main first. Make sure that you are satisfied with the result. A scenario is only as useful as the baseline you compare it with.

    If the results are out of date when you create the first scenario, the app runs the model for you before it goes any further. A clean run carries straight on. A run that warns or fails stops on the summary. There, Ignore and create scenario takes the scenario anyway.

  2. The control is at the left of the status bar, next to the units. The status bar runs along the bottom of the window. After the first scenario exists, the control becomes the switcher and shows which branch you are on.

  3. The first time only, Create scenario explains the limits:

    • The main model goes read-only.
    • The app cannot save scenarios yet.
    • When you delete all the scenarios, Main unlocks again.
    • The feature is a paid one, and you can explore it on the demo models.

    Don’t show this again hides the notice next time. Create scenario confirms, and Cancel backs out.

  4. Scenario created confirms it. The new branch is called Scenario #1, and the switcher moves to it. Everything you do from here happens in that branch.

The scenario switcher, with Main and one scenario

Edit the model in a scenario the same way as anywhere else:

  • Change attributes in the Asset tab or the data tables.
  • Draw new assets.
  • Delete existing assets.
  • Change the status of a pipe.

Undo and redo work only inside the branch you are on. Each branch keeps its own history.

Where a scenario differs from Main, the Asset tab shows it. A changed field carries a colored stripe down its left edge. When you hover over that field, the app shows Main and the value the field has on the baseline. You can see what you changed without a switch back to the baseline. An asset that only exists in the scenario carries the same stripe down the panel header.

Then press Simulate. The results belong to that branch. If you switch away and back, the results are still there. The app solves each scenario independently. See Running a simulation.

The graph at the foot of the Asset tab draws the comparison. After an extended-period run, select an asset in a scenario. The graph plots two series over the whole run: the scenario, and Main. The gap between the two lines is the effect of the change.

Both branches need results for this. Until you run Main, the graph shows one line only. See Graphs.

For everything else, switch between the branches to compare them. The map, the status bar and the report all show the branch you are on. Move between the branches at the same timestep for a direct before-and-after.

The switcher lists Main first, and the scenarios under it. Click a scenario to switch to it. At the foot of the list, Create new scenario takes another branch from Main, not from the branch you are on. Each scenario has its own menu with Rename and Delete.

Three shortcuts do the same work without the mouse:

Shortcut What it does
Alt+Y Create a new scenario
Y Switch back and forth between the last two
Shift+Y Go to Main

Y is the one to learn. If your last two branches are a scenario and Main, this shortcut moves between them. That movement is what a comparison is made of. While a run plays back, the app ignores a switch and disables the switcher. See Keyboard shortcuts.

Rename Scenario takes any name under Scenario name, except Main, which is reserved, and except a name already in use. A rename early is worth the few seconds, because Scenario #1 and Scenario #2 have no meaning by the third one.

Delete Scenario asks for confirmation, and you cannot undo it. The branch and its results go together. If you delete the branch you are on, the app moves you to another scenario. If you delete the last scenario, the app returns you to Main and unlocks it. The numbering then starts again from one.

Scenarios branch the model. Some things sit outside the model, and the app freezes them for as long as any scenario exists:

  • Simulation settings become read-only. This covers the duration, the timesteps, the demand model, the quality settings and the energy defaults. Every branch runs with the same settings, so a comparison is always like for like. If you want to vary a run setting, do it on Main with no scenarios open. See Simulation settings.
  • You cannot add, rename or delete Custom attributes. You can still edit the value on each asset, but you cannot edit the definitions. See Custom attributes.
  • Allocate customer points is unavailable. The import and the allocation both belong to the baseline model. See Customer points.

Nothing you do in a scenario reaches a file. With scenarios open, File > Export > EPANET INP warns Scenarios won’t be saved. The app then exports Main, whatever branch you are on.

So a piece of scenario work ends with a decision, not a save. Read the comparison and note what it told you. Then delete the scenarios to unlock Main. Make the change you decided on there, once and deliberately. Then save the project. See Projects and Import and export.