The command
SWMMCONTROLS creates and edits SWMM control rules.
In SWMM, these controls are edited on this screen:
To use, call SWMMCONTROLS from the command line, menu, toolbar, or Ribbon
Will it be? screen shown:
To create control rules, the editor has 4 frames, namely:
- Variables - Create/edit variables
Variables are a way to simplify writing and extend the use of arithmetic expressions to control rules
In the variables frame, click:
- Add - adds a new variable to the list
- Delete - deletes the selected variables
- Expressions - Create/edit expressions
Arithmetic expressions are used to obtain calculated values to be compared in control rules
In the expression frame, click:
- Add - adds a new variable to the list
- Delete - deletes the selected variables
- Add - adds a new expression to the list
- Delete - deletes selected expressions
- Rules - Create/edit control rules
Control rules are collections of condition/action that allow you to control certain features of the operation of the network
In the rules frame, click:
- Add - adds a new control rule to the list
Inform: the name of the rule in the table
- Name - name of the control rule
The name must have up to 31 characters, letters and numbers. Do not use spaces or special characters
- Description - description of the control rule
It is optional
- Rule Priority - is used to determine which rule applies when two or more rules require conflicting actions to be performed on a link.
A conflicting rule with a higher priority value takes precedence over one with a lower value (for example, PRIORITY 5 trumps PRIORITY 1).
A rule without a priority value always has a lower priority than one with a value.
For two rules with the same priority value, the rule that appears first gets the highest priority.
- Delete - deletes the selected rules
- Clauses - Creates/edits the clauses of a control rule
The clauses have conditions and actions that are executed or not during the simulation, allowing to vary the behavior of the network
In the clauses frame, click:
- Else Adds the ELSE clause to the list
- Add - adds a new clause to the list
A clause can be:
- Delete - deletes selected clauses
-
Format - formats the rules as they will appear in SWMM:
Editing control rules is very syntax sensitive, so the editor is better equipped to handle it
The IF and THEN clauses are mandatory. The ELSE clause is optional
Some remarks
- Note that as values are filled in, the row header changes status.
(errors)
for
(no mistakes). For the rules to work, all lines must have the icon
- The same considerations for creating SWMM rules for these controls apply
- Renaming devices on the network that are present in these rules can cause problems. not at all tolerant of naming rules
number of devices, then use name templates in the network number command that SWMM accepts.
Note: To be able to use this command, a
license is required. required. If not, you will be eligible. only view the properties.