@@ -63,9 +63,15 @@ cdef extern from "swmm5.h":
63
63
swmm_SUBCATCH_INFIL # Infiltration
64
64
swmm_SUBCATCH_RUNOFF # Runoff
65
65
swmm_SUBCATCH_RPTFLAG # Reporting flag
66
+ swmm_SUBCATCH_WIDTH # Width
67
+ swmm_SUBCATCH_SLOPE # Slope
68
+ swmm_SUBCATCH_CURB_LENGTH # Curb length
69
+ swmm_SUBCATCH_API_RAINFALL # API rainfall
70
+ swmm_SUBCATCH_API_SNOWFALL # API snowfall
66
71
swmm_SUBCATCH_POLLUTANT_BUILDUP # Pollutant buildup
67
- swmm_SUBCATCH_POLLUTANT_PONDED_CONCENTRATION # Pollutant ponded concentration
68
- swmm_SUBCATCH_POLLUTANT_RUNOFF_CONCENTRATION # Pollutant runoff concentration
72
+ swmm_SUBCATCH_EXTERNAL_POLLUTANT_BUILDUP # External pollutant buildup
73
+ swmm_SUBCATCH_POLLUTANT_RUNOFF_CONCENTRATION # Pollutant ponded concentration
74
+ swmm_SUBCATCH_POLLUTANT_PONDED_CONCENTRATION # Pollutant runoff concentration
69
75
swmm_SUBCATCH_POLLUTANT_TOTAL_LOAD # Pollutant total load
70
76
71
77
# SWMM Node properties
@@ -80,8 +86,11 @@ cdef extern from "swmm5.h":
80
86
swmm_NODE_INFLOW # Total inflow
81
87
swmm_NODE_OVERFLOW # Flooding
82
88
swmm_NODE_RPTFLAG # Reporting flag
89
+ swmm_NODE_SURCHARGE_DEPTH # Surcharge depth
90
+ swmm_NODE_PONDED_AREA # Ponded area
91
+ swmm_NODE_INITIAL_DEPTH # Initial depth
83
92
swmm_NODE_POLLUTANT_CONCENTRATION # Pollutant concentration
84
- swmm_NODE_POLLUTANT_INFLOW_CONCENTRATION # Pollutant inflow concentration
93
+ swmm_NODE_POLLUTANT_LATMASS_FLUX # Pollutant lateral mass flux
85
94
86
95
# SWMM Link properties
87
96
ctypedef enum swmm_LinkProperty:
@@ -100,8 +109,18 @@ cdef extern from "swmm5.h":
100
109
swmm_LINK_VELOCITY # Velocity
101
110
swmm_LINK_TOPWIDTH # Top width
102
111
swmm_LINK_RPTFLAG # Reporting flag
112
+ swmm_LINK_OFFSET1 # Inlet offset
113
+ swmm_LINK_OFFSET2 # Outlet offset
114
+ swmm_LINK_INITIAL_FLOW # Initial flow
115
+ swmm_LINK_FLOW_LIMIT # Flow limit
116
+ swmm_LINK_INLET_LOSS # Inlet loss
117
+ swmm_LINK_OUTLET_LOSS # Outlet loss
118
+ swmm_LINK_AVERAGE_LOSS # Average depth
119
+ swmm_LINK_SEEPAGE_RATE # Seepage rate
120
+ swmm_LINK_HAS_FLAPGATE # Flap gate
103
121
swmm_LINK_POLLUTANT_CONCENTRATION # Pollutant concentration
104
122
swmm_LINK_POLLUTANT_LOAD # Pollutant load
123
+ swmm_LINK_POLLUTANT_LATMASS_FLUX # Pollutant lateral mass flux
105
124
106
125
# SWMM System properties
107
126
ctypedef enum swmm_SystemProperty:
@@ -125,7 +144,7 @@ cdef extern from "swmm5.h":
125
144
swmm_IGNORERAINFALL # Flag indicating whether rainfall is ignored.
126
145
swmm_IGNORERDII # Flag indicating whether RDII is ignored.
127
146
swmm_IGNORESNOWMELT # Flag indicating whether snowmelt is ignored.
128
- swmm_IGNOREGWATER # Flag indicating whether groundwater is ignored.
147
+ swmm_IGNOREGROUNDWATER # Flag indicating whether groundwater is ignored.
129
148
swmm_IGNOREROUTING # Flag indicating whether routing is ignored.
130
149
swmm_IGNOREQUALITY # Flag indicating whether water quality is ignored.
131
150
swmm_RULESTEP # The rule step size.
@@ -168,6 +187,7 @@ cdef extern from "swmm5.h":
168
187
ERR_API_TIME_PERIOD # Invalid time period
169
188
ERR_API_HOTSTART_FILE_OPEN # Error opening hotstart file
170
189
ERR_API_HOTSTART_FILE_FORMAT # Invalid hotstart file format
190
+ ERR_API_IS_RUNNING # Simulation is already running
171
191
172
192
# SWMM API function return simulation progress
173
193
ctypedef void (* progress_callback)(double progress);
@@ -279,12 +299,27 @@ cdef extern from "swmm5.h":
279
299
# param: index: object index
280
300
cdef double swmm_getValue(int property, int index)
281
301
302
+
303
+ # Retrieves the value of a property for an object of a given type and index
304
+ # param: objType: object type
305
+ # param: property: property type
306
+ # param: index: object index
307
+ # param: subIndex: sub-index
308
+ cdef double swmm_getValueExpanded(int objType, int property, int index, int subIndex)
309
+
282
310
# Sets the value of a property for an object of a given type and index
283
311
# param: property: property type
284
312
# param: index: object index
285
313
# param: value: property value
286
314
cdef int swmm_setValue(int property, int index, double value)
287
315
316
+ # Sets the value of a property for an object of a given type and index
317
+ # param: objType: object type
318
+ # param: property: property type
319
+ # param: index: object index
320
+ # param: value: property value
321
+ cdef int swmm_setValueExpanded(int objType, int property, int index, int subindex, double value)
322
+
288
323
# Retrieves the value of a property for an object of a given type and index
289
324
# param: property: property type
290
325
# param: index: object index
0 commit comments