SWMM 5 Control Rules for Pumps


Subject:  SWMM 5 Control Rules for Pumps

If you want to define the setting for a pump between the Pump On and Pump Off depths then an IF statement based on the Pump flow will work better as in this example, which changes the setting for the pump between a depth of 18 and 20 meters.   The IF statement based on flow will ensure the rule only applies when the Pump Control depth is moving from the Pump On depth to the Pump Off depth and NOT between the Pump Off and Pump On depth.  Figure 1 shows how the Pump Flow is related to the Pump Setting.

RULE CONTROL_Rule2
IF PUMP PUMP1 FLOW > 0.000000
AND NODE WELL HEAD > 18.000000
AND NODE WELL HEAD < 20.000000
THEN PUMP PUMP1 SETTING = 0.700000
PRIORITY 2.000000


Figure 1   Pump Flow is related to the Pump Setting

You need to be a member of SWMM 5 or SWMM or EPASWMM and SWMM5 in ICM_SWMM to add comments!

Join SWMM 5 or SWMM or EPASWMM and SWMM5 in ICM_SWMM

Email me when people reply –

Replies

  • Where is the control editor in SWMM?  I have stormwater pumps set based upon level controls, but I would also like to add some code to tell them they can't turn on until 8 hours into the model run to simulate the operators response to turning them on in a storm.  This means adding timing controls to the pumps also.

     

    Any guidance on how to do this would be appreciated.

     

    thanks!!

     

     

    • Here is where the control editor is located, it is in the hydraulics section of the browser

      3293141854?profile=RESIZE_1024x1024


  • Introduction: If you have a lead and lag pump connecting the same upstream and downstream nodes the normal behavior for the two pumps is to have the the lead pump turn on first followed by the lag pump. The turn on and turn off depths for the pumps determine when the pumps turn of. The pump will work as a simple lead and lag pump based on a wet well elevation without any real time controls.




    If you want to add real time controls (RTC) to the lead and lag pumps you can add more sophisticated controls. For example, if you wanted to turn on and off the lead pump at successive time steps then you can add these RTC rules

    ; New Real Time Control (RTC) Rules
    RULE RULE-1
    IF PUMP LEAD_PUMP STATUS = ON
    AND PUMP LAG_PUMP STATUS = ON
    THEN PUMP LEAD_PUMP STATUS = OFF
    PRIORITY 1.000000

    RULE RULE-2
    IF PUMP LEAD_PUMP STATUS = OFF
    AND PUMP LAG_PUMP STATUS = ON
    THEN PUMP LEAD_PUMP STATUS = ON
    PRIORITY 1.000000

    RULE RULE-3
    IF PUMP LEAD_PUMP STATUS = OFF
    AND PUMP LAG_PUMP STATUS = ON
    THEN PUMP LEAD_PUMP STATUS = ON
    PRIORITY 1.000000

    If you want to add a pattern of 2 time steps and 1 time step off for both pumps then you can add this RTC new rule to control the lag pump:

    RULE RULE-4
    IF PUMP LEAD_PUMP STATUS = OFF
    AND PUMP LAG_PUMP STATUS = ON
    THEN PUMP LAG_PUMP STATUS = OFF
    PRIORITY 1.000000


    Reblog this post [with Zemanta]
  • Subject:   Example VSP Pump in SWMM 5 - Version 1

    Here is one way to model multiple pumps between the same downstream and upstream nodes using the pump curves and the Real Time Control Rules (RTC) in SWMM 5.  Here are the steps:

    1.   Enter the data for three pumps in the browser by using the Add Pump Icon
    2.   Enter three Pump Head/Flow Curves so that the 2nd and 3rd Pump Curves are the sum of the flows in the 1st and 2nd Pumps together and the sum of the flows in the 1st, 2nd and 3rd respectively for the 2nd and 3rd Pump Curves

    Image003
    3.   Enter a RTC Rule in the Control Editor so that when the 1st Pump is turned on – the 2nd and 3rd Pump is turned off
    4.   Enter a RTC Rule in the Control Editor so that when the 2nd  Pump is turned on – the 1st  and 3rd Pump is turned off
    5.   Enter a RTC Rule in the Control Editor so that when the 3rd  Pump is turned on – the 1st and 2nd Pump is turned off

    Using these rules you can see that for the 1st Pump turns on when the Node WetWell has a depth below 2 feet, the 2nd Pump turns on when the Node is between a depth of 2 to 5 feet and the 3rd Pump turns on when the Node Depth is above 5 feet.

    RULE Pump1
    IF Node WetWell Depth <= 2
    THEN PUMP PUMP2 STATUS = OFF
    AND PUMP PUMP3 STATUS = OFF
    Priority 1

    RULE Pump2
    IF Node WetWell Depth > 2
    AND Node WetWell Depth <= 5
    THEN PUMP PUMP1 STATUS = OFF
    AND PUMP PUMP3 STATUS = OFF
    Priority 2

    RULE Pump3
    IF Node WetWell Depth > 5
    THEN PUMP PUMP1 STATUS = OFF
    AND PUMP PUMP2 STATUS = OFF
    Priority 3


    Image002

  • Subject:   How Does a TYPE3 Variable Speed Pump Work in SWMM 5?


    In a SWMM 5 Type3 pump the flow is a function of the head difference between the downstream node head and the upstream node head (Figure 2) but the pump rules can be overwritten by a RTC Rule as in the attached example.   The RTC Controls in the example change the pump setting as a function of the depth in the Wet Well.  There is one pump between the Wet Well and Force Main but the Pump Setting varies from the RTC rules based on the depth in the Wet Well (Figure 1). As you can see in the composite Figure 2, the setting varies from 0, 1, 2 and 3 during the course of the simulation.

    Figure 1.  How a Pump Flow is Calculated in SWMM 5.


    Figure 2   RTC Rules and Schematic of a TYPE3 Pump in SWMM 5 with Force Mains Added along with three depth settings for a Variable Speed Pump or VSP.





  • Subject:  SWMM 5 Clocktime RTC Rules for Pumps, Weirs and Orifices

    You can use the Control or RTC rules in SWMM 5 to adjust the settings of the weirs, pumps and orifices based on the clock time each day of your simulation.  Here is an example that will adjust orifice height every ½ hour for 7 orifices at one time using two sets of rules.

    RULE R1a 
    ; Half hour setting
    IF SIMULATION CLOCKTIME = 0:30:00 
    OR SIMULATION CLOCKTIME = 1:30:00  
    OR SIMULATION CLOCKTIME = 2:30:00 
    OR SIMULATION CLOCKTIME = 3:30:00 
    OR SIMULATION CLOCKTIME = 4:30:00 
    OR SIMULATION CLOCKTIME = 5:30:00 
    OR SIMULATION CLOCKTIME = 6:30:00 
    OR SIMULATION CLOCKTIME = 7:30:00 
    OR SIMULATION CLOCKTIME = 8:30:00 
    OR SIMULATION CLOCKTIME = 9:30:00 
    OR SIMULATION CLOCKTIME = 10:30:00
    OR SIMULATION CLOCKTIME = 11:30:00
    OR SIMULATION CLOCKTIME = 12:30:00 
    OR SIMULATION CLOCKTIME = 13:30:00  
    OR SIMULATION CLOCKTIME = 14:30:00 
    OR SIMULATION CLOCKTIME = 15:30:00 
    OR SIMULATION CLOCKTIME = 16:30:00  
    OR SIMULATION CLOCKTIME = 17:30:00 
    OR SIMULATION CLOCKTIME = 18:30:00 
    OR SIMULATION CLOCKTIME = 19:30:00 
    OR SIMULATION CLOCKTIME = 20:30:00 
    OR SIMULATION CLOCKTIME = 21:30:00 
    OR SIMULATION CLOCKTIME = 22:30:00
    OR SIMULATION CLOCKTIME = 23:30:00
    THEN ORIFICE R1 SETTING = 0.90
    AND  ORIFICE R2 SETTING = 0.90
    AND  ORIFICE R3 SETTING = 0.90
    AND  ORIFICE R4 SETTING = 0.90
    AND  ORIFICE R5 SETTING = 0.90
    AND  ORIFICE R6 SETTING = 0.90
    AND  ORIFICE R7 SETTING = 0.90

    RULE R1b
    ; hour setting
    IF SIMULATION CLOCKTIME = 0:00:00
    OR SIMULATION CLOCKTIME = 1:00:00
    OR SIMULATION CLOCKTIME = 2:00:00
    OR SIMULATION CLOCKTIME = 3:00:00
    OR SIMULATION CLOCKTIME = 4:00:00
    OR SIMULATION CLOCKTIME = 5:00:00
    OR SIMULATION CLOCKTIME = 6:00:00
    OR SIMULATION CLOCKTIME = 7:00:00
    OR SIMULATION CLOCKTIME = 8:00:00
    OR SIMULATION CLOCKTIME = 9:00:00
    OR SIMULATION CLOCKTIME = 10:00:00
    OR SIMULATION CLOCKTIME = 11:00:00
    OR SIMULATION CLOCKTIME = 12:00:00 
    OR SIMULATION CLOCKTIME = 13:00:00
    OR SIMULATION CLOCKTIME = 14:00:00 
    OR SIMULATION CLOCKTIME = 15:00:00
    OR SIMULATION CLOCKTIME = 16:00:00
    OR SIMULATION CLOCKTIME = 17:00:00
    OR SIMULATION CLOCKTIME = 18:00:00 
    OR SIMULATION CLOCKTIME = 19:00:00 
    OR SIMULATION CLOCKTIME = 20:00:00 
    OR SIMULATION CLOCKTIME = 21:00:00 
    OR SIMULATION CLOCKTIME = 22:00:00 
    OR SIMULATION CLOCKTIME = 23:00:00
    THEN ORIFICE R1 SETTING = 0.5
    AND  ORIFICE R2 SETTING = 0.5
    AND  ORIFICE R3 SETTING = 0.5
    AND  ORIFICE R4 SETTING = 0.5
    AND  ORIFICE R5 SETTING = 0.5
    AND  ORIFICE R6 SETTING = 0.5
    AND  ORIFICE R7 SETTING = 0.5


    Image002
  • Subject:   How to Approximate a Timer in the RTC Rules of SWMM 5

    SWMM 5 does not have a explicit timer in its Real Time Control (RTC) rules but you can approximate it by using a Control Curve as in the attached example model.  The Control Curve will modify the setting of the Weir by the Inflow to the Storage node.  You can have normal weir flow settings based on the invert elevation of the weir and the Surface node water surface elevation but in addition you can control the weir setting by:

    1.   Closing the weir when the inflow is low,
    2.   Closing the weir by staggered Storage node depth,
    3.   Opening the weir gradually when the inflow increases
    4.   Closing the weir by a combination of Node Depth IF statements and Control Curve rules

    For example, you can have the Weir Setting controlled the Node Depth,  Link Inflow and Node Inflow  simultaneously approximately with the depth and the inflow parameters closing the weir by proxy instead of by time since the closing.


    Image004


    gate_timer.INP Download this file

    How to Approximate a Timer in the RTC Rules of SWMM 5.docx Download this file
  • 3293156295?profile=original

This reply was deleted.