Hi,
I just wanted to model the orifices with varying height over the time.
Can I use the control rules to do this task?
If so, could you please guide me to do it?
(No idea about the coding)
Attached herewith is one of my examples.
To seven orifices I would like to introduce time varying heights during the 02:30:00 simulation time period with 15 minute intervals, which really represent control gates to the orifices.
If anyone has any idea, share it with me.
Thanks a lot.
Upaka
Replies
OK thanks a lot. I think I have to enter the ratio between the depth at time "T" to full depth (depth at time T / Full depth) as the setting. This then surely going to be between and 1.
Thanks again.
The orifice HEIGHT at any time is
Height - Link[j].xsect.yFull * Link[j].setting
where yFull is the full depth you entered and setting is the current setting based on the RTC rules (the setting is between 0 and 1)
Upaka said:
Thanks for the reply.
You mean these opening setting are ratios?
Let's think the orifice full open height is 2 m. If I need to open it for 1.5 m, the entered number should be 1.5 / 2 = 0.75. Am I getting it correct?
Hi Robert,
Were you able to find the error of my problem?
If I have entered the control rules in-correctly, please guide me to enter them correctly.
Thanks a lot.
Upaka
This simplification helps me to reduce the number of rules surely.
In this sense, I can just implement 10 to 14 rules instead of big numbers.
Thanks a lot
Robert Dickinson said:
Hi,
I tried with 12 different orifice heights to the R1 as attached.
However, I am ending up with an error (please find the word document for the error report).
Could you please let me know the reason for this?
Thanks a lot
Upaka
You can also combine rules together using an AND statement - here are the rules for all 7 orifices
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
Thanks a lot for the detailed reply.
I will try to formulate the control rules based on these examples.
I have to input 70 to 98 rules for all the orifices. (15 minute interval through out the simulation period)
Is there any upper limit for the number of control rules in SWMM?
This is another more complicated rule that will work
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
THEN ORIFICE R1 SETTING = 0.90
RULE R1b
; Half 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:30:00
OR SIMULATION CLOCKTIME = 10:00:00
OR SIMULATION CLOCKTIME = 11:00:00
THEN ORIFICE R1 SETTING = 0.5