Share
 
 

Editing a UPC scenario

Now that the UPC scenario has been created, it can be modified to perform more complex tasks. This is achieved by adding further ranges and rules as dependents for the regulator. You can also add more regulators to control other parts of the network.

In this stage, the scenario will be modified to ensure that the pump is not used between 4 pm and 7 pm, when electricity charges are at their peak.

To modify the UPC scenario:

  1. Open the 'Newtown UPC' network. You must have a network open in order to create or edit a UPC scenario.
  2. Open the scenario:
    • Right-click the 'CRES2 Pump Control' UPC scenario and select Copy.
    • Right-click the UPC Group and select Paste : CRES2 Pump Control (with children)
    • Rename the scenario as 'CRES2 Pump Control 2' by right-clicking the new scenario and selecting Rename.
    • Right-click 'CRES2 Pump Control 2' and select Open (or drag the icon onto the window background). The UPC dialog is displayed,
    • UPC dialog

    • Click the Plus button to the left of the KCH2PMP regulator entry to display its dependents, then adjust the column widths so that you can read the text.

      Looking at the regulator dependents

  3. Add a global range (which can be used by any regulator):
    • Right-click the Global item and select Insert dependent | Range.
    • Expand the list to see the new range, then select it.
    • In the right panel, enter a Name of 'TimeOff' and Type of 'TR - time repeat'.
    • Enter '16:00' as the Minimum and '19:00' as the Maximum. In each case, select 'Daily' from the drop-down list. This range will be applied each day that the simulation is run.

      Adding a range

    • Click Update. The entry on the left is updated with the new details.
  4. Add the new rule for the regulator:
    • Right-click the KCH2PMP item and select Insert dependent | Rule.
    • For the Condition, select TimeOff from the drop-down list.
    • For the Type, select OFF. This rule specifies that when the TimeOff condition is satisfied, the regulator (KCH2PMP) is switched off. The TimeOff condition is satisfied when the time is between 4 pm and 7 pm.
    • Click Update.

      Adding a new rule

  5. Inspect the scenario:
    • Click any item in the list to view or edit its definition.
    • Click the regulator to specify whether the rules override any controls in the network and to give it an initial value. The full description of the regulator is shown in the box at the bottom of the right-hand pane.

      Specifying the regulator settings

  6. Save the changes:
    • Click the UPC dialog's Close (Close dialog) button to close the dialog and click Yes to save the changes.
    • Close the GeoPlan view.
  7. Run the simulation with the revised scenario:
    • Open the 'Regulate CRES2' run.
    • In the Run Title box, change the title to 'Regulate CRES2 (Electricity)'.
    • Drag the 'CRES2 Pump Control 2' icon into the UPC Scenario box.
    • Click Run Simulations.
    • When the simulation is complete, close the Output window.
  8. View the simulation results:
    • Open the simulation from the 'Regulate CRES2 (Electricity)' run.
    • Use the Graph (Graph) button to display a graph of flow for K200236.K200034.1 and depth for CRES2.
    • Minimise the GeoPlan.
    • Tile the views horizontally. The pump now switches off at 4 o'clock and stays off during the peak period. At the end of the period it is switched on again until the level in the reservoir reaches the required level.

      Graphs tiled horizontally

    • Close the GeoPlan and graph views.

This lesson has demonstrated how a simple UPC scenario can be set up. With very little effort you can extend the scenario by adding more regulators etc. to simulate a variety of control options within the model.

Back Back to flowchartUPC Example

Related Topics

UPC Scenarios

Was this information helpful?