Schematic Editor

Note: This is documentation for version 4.3 of Source. For a different version of Source, select the relevant space by using the Spaces menu in the toolbar above

Schematic Editor

The Schematic Editor allows you to create and manage an operations or schematic scenario.

Figure 1. Schematic Editor contextual menus

Note: You can select multiple components in one of two ways:

  • Click on a blank area in the Schematic Editor and then drag the mouse. This will create a blue rectangle. Any component entirely inside the rectangle will become selected when you release the mouse; and

  • Shift-click on individual components to add them to a selection.

Several commands are available when you right-click a component or a selection of components in the Schematic Editor (Figure 1):

  • Edit opens the selected component's feature editor where you can edit its configuration

  • Rename the selected component

  • Activate selected component(s) if it has previously been deactivated

  • Deactivate selected component(s), see below for details. 

  • Multi-activate activates the selected component and either all upstream component or all downstream components (including all components in tributaries), based on your choice from the sub-menu.

  • Multi-deactivate deactivates the selected component and either all upstream components or all downstream components (including all components in tributaries), based on your choice from the sub-menu.

  • Add opens a sub-menu listing all nodes. Select a node from the list and it will be added at the place you clicked. This option is synonymous to dragging a node from the node palette on to the schematic. It is only visible in the contextual menu if you right click on a blank area in the Schematic Editor, rather than on a component. 

  • Copy the selected component(s)

  • Delete removes the selected component(s) from the scenario

  • Paste the selected component(s) you have previously copied

  • Apply Params to All Links applies the parameters of the selected link to all links in the scenario

  • Routing Type changes the type of the selected link. Choose the link routing type from the resulting sub-menu

  • Line Type changes the representation of the selected link to either elbow (orthogonal) lines (Figure 2, left pane) or a straight line (Figure 2, right pane). Each line has one control point which you can adjust to route the line around obstacles. The control point for an orthogonal line can only be moved in the vertical dimension whereas the control point for a straight line has no restrictions on its movement

  • Rotate rotates the orientation of the selected node(s) to the orientation chosen from the sub-menu. The default direction is 0 degrees, which corresponds to North to South. See below for more information.

  • Grid Settings... opens the grid settings dialog (Figure 3). Here you can choose to:

    • Toggle display of the grid using Display Grid. The default state is off but the setting is saved with your project. This is synonymous to the Display Grid button in the Schematic Editor toolbar (Figure 5). 

    • Toggle whether nodes will snap to the grid when moved within Schematic Editor using Snap to Grid. Turning this setting on does not affect the alignment of existing nodes. Alignment with the grid is only enforced when you drag a node. Figure 3 compares the appearance of the Schematic Editor with the Snap to Grid control turned off (left) versus on (Grid Size is 50 pixels in centre and 100 pixels on right).  The default state is off but the setting is saved with your project. This is synonymous to the Snap to Grid button in the Schematic Editor toolbar (Figure 5). 

    • Change the frequency of grid lines using Set Grid Size. The default is 10 pixels but the setting is saved with your project. Figure 4 shows the appearance of the Schematic Editor with a grid size setting of 10 pixels (left), 50 pixels (centre) and 100 pixels (right). This is synonymous to entering the grid size in the Schematic Editor toolbar (Figure 5).

Figure 2. Schematic Editor options comparison

Figure 3. Grid Settings dialog

Figure 4. Snap to grid on/off comparison

Schematic Editor toolbar (refer to Figure 5)

Figure 5. Schematic Editor toolbar

 

Figure 6. Schematic editor, Print Preview

Node Rotation

By default, Source nodes have a north to south orientation. If your schematic represents a model that has a different orientation, you can choose to rotate some or all of your nodes to represent this. 

You can rotate a node two ways:

  • Click on a node to select it. A green circle handle will appear, you can drag the handle to rotate the node (Figure 7, left node). 

  • Right click a node or a selection of nodes and choose Rotate from the contextual menu (Figure 1). Then choose either the default direction or one of the four compass directions from the sub-menu  (Figure 7, right nodes). You can set the default rotation in Edit » Scenario Options, then select Default Node Rotation from the side tree. Nodes added from the node palette will have the default rotation. 

Figure 7. Node rotation

Deactivating Nodes and Links

Deactivated components allow water to pass through that component as if it was not there. That is, a deactivated component's downstream flow is always the same as its upstream flow. Similarly constituents and orders are not effected by the deactivated component. This allows you to test the effect of component(s) on the simulation. For example, the effectiveness of a proposed storage can be modelled by running the scenario twice; once with the storage node activated and once with it deactivated.

Performance Improvement

Deactivating large sections of a model (eg. a network branch) will improve performance by decreasing model run-time. This can be useful when you are working with part of a model only, eg. during calibration.

Nodes and links can be deactivated two ways, either:

  • select the component(s), right-click to open the contextual menu, select Deactivate; or

  • Right-click on a single component, choose Multi-deactivate to deactivate the selected component and either all upstream or all downstream components, based on your choice from the sub-menu.

Deactivated nodes are indicated by a grey circle backlash symbol on top of the node icon. Deactivated links become a solid grey line. Figure 8 shows what happens when the storage alone was deactivated using Deactivate (left pane), or the storage  and all upstream components were deactivated using Multi-deactivate » This and all upstream, or the storage and all downstream components were deactivated using Multi-deactivate » This and all downstream including tributaries (right pane).

Figure 8. Deactivation of nodes and links comparison

Note the following about deactivation:

  • Multi-deactivate and multi-activate does not work if traversing the network leads back to the starting component, such as an anabranch. Source will notify you if this occurs. For example, it is not possible to use multi-deactivate (either upstream or downstream) on either the environmental demand node or the water user node in Figure 8. 

  • Two Warning notifications are generated by Source when running a model with deactivated components:

    • One indicates how many components were deactivated

    • The other indicates how many components were excluded from the run order. Excluding components from the run order will reduce run time. 

  • Deactivation has not been implemented for a wetland cluster. If a component of a wetland cluster is deactivated, there will be a run time error. 

  • If a splitter is deactivated, all the flow, constituent and orders are passed down the non-effluent link.

  • If a supply point is deactivated, the connected water user will not receive water.