SewerGEMS 2024 Help

Condition Clauses

A Condition Clause of a Control Rule has the following formats:

object id attribute relation value

object id attribute relation object id attribute

where:

object = a category of object

id = the object's ID label

attribute =  an attribute or property of the object

relation = a relational operator (=, <>, <, <=, >, >=)

value = an attribute value

Some examples of condition clauses are: 

GAGE  G1   6-HR_DEPTH > 0.5

NODE  N23  DEPTH  >  10

NODE  N23  DEPTH  >  NODE 25 DEPTH

PUMP  P45  STATUS =  OFF

LINK  P45  TIMEOPEN >= 6:30

SIMULATION CLOCKTIME = 22:45:00

The objects and attributes that can appear in a condition clause are as follows:

Obect Attributes Value
GAGE

INTENSITY

n-HR_DEPTH

numerical value

numerical value

NODE

DEPTH

MAXDEPTH

HEAD

VOLUME

INFLOW

numerical value

numerical value

numerical value

numerical value

numerical value

LINK or CONDUIT

FLOW

FULLFLOW

DEPTH

MAXDEPTH

VELOCITY

LENGTH

SLOPE

STATUS

TIMEOPEN

TIMECLOSED

numerical value

numerical value

numerical value

numerical value

numerical value

numerical value

fractional value

OPEN or CLOSED

decimal hours orhr:min

decimal hours orhr:min

PUMP

STATUS

SETTING

FLOW

ON or OFF

pump curve multiplier

numerical value

ORIFICE SETTING fraction open
WEIR SETTING fraction open
OUTLET SETTING rating curve multiplier
SIMULATION

TIME

DATE

MONTH

DAY

DAYOFYEAR

CLOCKTIME

elapsed time in decimal hours orhr:min:sec

month/day/year

month of year (1 - 12)

day of week (Sunday = 1)

day of year (month/day)

time of day inhr:min:sec

Gage INTENSITY is the rainfall intensity for a specific rain gage in the current simulation time period. Gage n-HR_DEPTH is a gage's total rainfall depth over the past n hours where n is a number between 1 and 48. 

TIMEOPEN is the duration a link has been in an OPEN or ON state or have its SETTING be greater than zero; TIMECLOSED is the duration it has remained in a CLOSED or OFF state or have its SETTING be zero.