EN#

module wntr.epanet.util

class EN[source]#

Bases: IntEnum

All the EN_ constants for the EPANET toolkit.

For example, EN_LENGTH is accessed as EN.LENGTH, instead. Please see the EPANET toolkit documentation for the description of these enums. Several enums are duplicated in separate classes above for clarity during programming.

The enums can be broken in the following groups.


ACCURACY = 1#
AFD = 4#
AGE = 2#
AVERAGE = 1#
BASEDEMAND = 1#
CFS = 0#
CHEM = 1#
CMD = 9#
CMH = 8#
CONCEN = 0#
CONST_HP = 0#
CONTROLCOUNT = 5#
CURVECOUNT = 4#
CUSTOM = 2#
CVPIPE = 0#
DEMAND = 9#
DEMANDMULT = 4#
DIAMETER = 0#
DURATION = 0#
ELEVATION = 0#
EMITEXPON = 3#
EMITTER = 3#
ENERGY = 13#
FCV = 6#
FIFO = 2#
FLOW = 8#
FLOWPACED = 3#
GPM = 1#
GPV = 8#
HALTFLAG = 12#
HEAD = 10#
HEADLOSS = 10#
HILEVEL = 1#
HTIME = 11#
HYDSTEP = 1#
IMGD = 3#
INITFLOW = 10#
INITQUAL = 4#
INITSETTING = 5#
INITSTATUS = 4#
INITVOLUME = 14#
ITERATIONS = 0#
JUNCTION = 0#
KBULK = 6#
KWALL = 7#
LENGTH = 1#
LIFO = 3#
LINKCOUNT = 2#
LINKPATTERN = 15#
LINKQUAL = 14#
LOWLEVEL = 0#
LPM = 6#
LPS = 5#
MASS = 1#
MAXIMUM = 3#
MAXLEVEL = 21#
MAXVOLUME = 25#
MGD = 2#
MINIMUM = 2#
MINLEVEL = 20#
MINORLOSS = 3#
MINVOLUME = 18#
MIX1 = 0#
MIX2 = 1#
MIXFRACTION = 22#
MIXMODEL = 15#
MIXZONEVOL = 16#
MLD = 7#
NEXTEVENT = 13#
NODECOUNT = 0#
NONE = 0#
NOSAVE = 0#
PATCOUNT = 3#
PATTERN = 2#
PATTERNSTART = 4#
PATTERNSTEP = 3#
PBV = 5#
PERIODS = 9#
PIPE = 1#
POWER_FUNC = 1#
PRESSURE = 11#
PRV = 3#
PSV = 4#
PUMP = 2#
QUALITY = 12#
QUALSTEP = 2#
RANGE = 4#
RELATIVEERROR = 1#
REPORTSTART = 6#
REPORTSTEP = 5#
RESERVOIR = 1#
ROUGHNESS = 2#
RULESTEP = 7#
SAVE = 1#
SETPOINT = 2#
SETTING = 12#
SOURCEMASS = 13#
SOURCEPAT = 6#
SOURCEQUAL = 5#
SOURCETYPE = 7#
STARTTIME = 10#
STATISTIC = 8#
STATUS = 11#
TANK = 2#
TANKCOUNT = 1#
TANKDIAM = 17#
TANKLEVEL = 8#
TANKVOLUME = 24#
TANK_KBULK = 23#
TCV = 7#
TIMEOFDAY = 3#
TIMER = 2#
TOLERANCE = 2#
TRACE = 3#
TRIALS = 0#
VELOCITY = 9#
VOLCURVE = 19#