Posts

Showing posts from December, 2016

How to show Curve RTC Rules in #SWMM5 in the Control Actions Taken Section

#SWMM5 has very flexible control rules.  The rules are shown in the controls.c code.  However, one aspect I did not know was that if a rule is based on a control curve the RPT logging of the control actions is not shown.  You  can change by changing and compiling the code.  You will need to get rid of the half rule && a1->curve < 0                     so that the changing of the target setting is logged – see below for a snippet of the code.
Here is a sample curve tool
RULE MC3 IF SIMULATION TIME > 4 AND SIMULATION TIME <= 6 THEN PUMP Gbp1 SETTING = CURVE myControl Priority 3
And here is the control action log in the RPT file – it helps to see this log and verify the rules
  *********************   Control Actions Taken   *********************    01/01/2013: 00:00:00 Link Gbp1 setting changed to   0.00 by Control MC1    01/01/2013: 00:00:01 Link Gbp1 setting changed to   0.00 by Control MC1    01/01/2013: 00:00:11 Link Gbp1 setting changed to   0.01 by Control MC1 …

Beautiful-equations-how-insects-walk-on-water-and-galaxies-form Navier-Stokes