|
| enum | swmm_Object {
swmm_GAGE
,
swmm_SUBCATCH
,
swmm_NODE
,
swmm_LINK
,
swmm_POLLUTANT
,
swmm_LANDUSE
,
swmm_TIME_PATTERN
,
swmm_CURVE
,
swmm_TIMESERIES
,
swmm_CONTROL_RULE
,
swmm_TRANSECT
,
swmm_AQUIFER
,
swmm_UNIT_HYDROGRAPH
,
swmm_SNOWPACK
,
smmm_XSECTION_SHAPE
,
swmm_LID
,
swmm_STREET
,
swmm_INLET
,
swmm_SYSTEM = 100
} |
| | Enumeration of object types used in SWMM5. More...
|
| |
| enum | swmm_NodeType {
swmm_JUNCTION = 0
,
swmm_OUTFALL = 1
,
swmm_STORAGE = 2
,
swmm_DIVIDER = 3
} |
| | Enumeration of node types used in SWMM5. More...
|
| |
| enum | swmm_LinkType {
swmm_CONDUIT = 0
,
swmm_PUMP = 1
,
swmm_ORIFICE = 2
,
swmm_WEIR = 3
,
swmm_OUTLET = 4
} |
| | Enumeration of link types used in SWMM5. More...
|
| |
| enum | swmm_GageProperty {
swmm_GAGE_TOTAL_PRECIPITATION = 100
,
swmm_GAGE_RAINFALL
,
swmm_GAGE_SNOWFALL
} |
| | Enumeration of gage properties used in SWMM5. More...
|
| |
| enum | swmm_SubcatchProperty {
swmm_SUBCATCH_AREA = 200
,
swmm_SUBCATCH_RAINGAGE
,
swmm_SUBCATCH_RAINFALL
,
swmm_SUBCATCH_EVAP
,
swmm_SUBCATCH_INFIL
,
swmm_SUBCATCH_RUNOFF
,
swmm_SUBCATCH_RPTFLAG
,
swmm_SUBCATCH_WIDTH
,
swmm_SUBCATCH_SLOPE
,
swmm_SUBCATCH_OUTLET_TYPE
,
swmm_SUBCATCH_OUTLET_INDEX
,
swmm_SUBCATCH_INFILTRATION_MODEL
,
swmm_SUBCATCH_FRACTION_IMPERVIOUS
,
swmm_SUBCATCH_SUB_AREA_ROUTE_TO
,
swmm_SUBCATCH_SUB_AREA_FRACTION_OUTLET
,
swmm_SUBCATCH_SUB_AREA_MANNINGS_N
,
swmm_SUBCATCH_SUB_AREA_FRACTION_AREA
,
swmm_SUBCATCH_SUB_AREA_DEPRESSION_STORAGE
,
swmm_SUBCATCH_SUB_AREA_INFLOW
,
swmm_SUBCATCH_SUB_AREA_RUNOFF
,
swmm_SUBCATCH_SUB_AREA_DEPTH
,
swmm_SUBCATCH_LID_UNITS_COUNT
,
swmm_SUBCATCH_LID_UNITS_PERV_AREA
,
swmm_SUBCATCH_LID_UNITS_FLOW_TO_PERV_AREA
,
swmm_SUBCATCH_LID_UNITS_DRAIN_FLOW
,
swmm_SUBCATCH_LID_UNIT_REPLICATES
,
swmm_SUBCATCH_LID_UNIT_AREA
,
swmm_SUBCATCH_LID_UNIT_FULL_WIDTH
,
swmm_SUBCATCH_LID_UNIT_BOTTOM_WIDTH
,
swmm_SUBCATCH_LID_UNIT_INIT_SATURATION
,
swmm_SUBCATCH_LID_UNIT_FROM_IMPERVIOUS
,
swmm_SUBCATCH_LID_UNIT_FROM_PERVIOUS
,
swmm_SUBCATCH_LID_UNIT_TO_PERVIOUS
,
swmm_SUBCATCH_LID_UNIT_RECEIVING_OUTLET_TYPE
,
swmm_SUBCATCH_LID_UNIT_RECEIVING_OUTLET_INDEX
,
swmm_SUBCATCH_LID_UNIT_SURFACE_DEPTH
,
swmm_SUBCATCH_LID_UNIT_SOIL_MOISTURE
,
swmm_SUBCATCH_LID_UNIT_GREEN_AMPT_CAPILLARY_SUCTION
,
swmm_SUBCATCH_LID_UNIT_GREEN_AMPT_SATURATED_CONDUCTIVITY
,
swmm_SUBCATCH_LID_UNIT_GREEN_AMPT_MAXIMUM_SOIL_MOISTURE_DEFICIT
,
swmm_SUBCATCH_CURB_LENGTH
,
swmm_SUBCATCH_API_RAINFALL
,
swmm_SUBCATCH_API_SNOWFALL
,
swmm_SUBCATCH_POLLUTANT_BUILDUP
,
swmm_SUBCATCH_EXTERNAL_POLLUTANT_BUILDUP
,
swmm_SUBCATCH_POLLUTANT_RUNOFF_CONCENTRATION
,
swmm_SUBCATCH_POLLUTANT_PONDED_CONCENTRATION
,
swmm_SUBCATCH_POLLUTANT_TOTAL_LOAD
} |
| | Enumeration of subcatchment properties used in SWMM5 \TODO Add LID properties to this enum. More...
|
| |
| enum | swmm_NodeProperty {
swmm_NODE_TYPE = 300
,
swmm_NODE_ELEV
,
swmm_NODE_MAXDEPTH
,
swmm_NODE_DEPTH
,
swmm_NODE_HEAD
,
swmm_NODE_VOLUME
,
swmm_NODE_LATFLOW
,
swmm_NODE_INFLOW
,
swmm_NODE_OVERFLOW
,
swmm_NODE_RPTFLAG
,
swmm_NODE_SURCHARGE_DEPTH
,
swmm_NODE_PONDED_AREA
,
swmm_NODE_INITIAL_DEPTH
,
swmm_NODE_POLLUTANT_CONCENTRATION
,
swmm_NODE_POLLUTANT_LATMASS_FLUX
} |
| | Enumeration of node properties used in SWMM5. More...
|
| |
| enum | swmm_LinkProperty {
swmm_LINK_TYPE = 400
,
swmm_LINK_NODE1 = 401
,
swmm_LINK_NODE2 = 402
,
swmm_LINK_LENGTH = 403
,
swmm_LINK_SLOPE = 404
,
swmm_LINK_FULLDEPTH = 405
,
swmm_LINK_FULLFLOW = 406
,
swmm_LINK_SETTING = 407
,
swmm_LINK_TIMEOPEN = 408
,
swmm_LINK_TIMECLOSED = 409
,
swmm_LINK_FLOW = 410
,
swmm_LINK_DEPTH = 411
,
swmm_LINK_VELOCITY = 412
,
swmm_LINK_TOPWIDTH = 413
,
swmm_LINK_VOLUME = 414
,
swmm_LINK_CAPACITY = 415
,
swmm_LINK_RPTFLAG = 416
,
swmm_LINK_OFFSET1 = 417
,
swmm_LINK_OFFSET2 = 418
,
swmm_LINK_INITIAL_FLOW = 419
,
swmm_LINK_FLOW_LIMIT = 420
,
swmm_LINK_INLET_LOSS = 421
,
swmm_LINK_OUTLET_LOSS = 422
,
swmm_LINK_AVERAGE_LOSS = 423
,
swmm_LINK_SEEPAGE_RATE = 424
,
swmm_LINK_HAS_FLAPGATE = 425
,
swmm_LINK_POLLUTANT_CONCENTRATION = 426
,
swmm_LINK_POLLUTANT_LOAD = 427
,
swmm_LINK_POLLUTANT_LATMASS_FLUX = 428
} |
| | Enumeration of link properties used in SWMM5. More...
|
| |
| enum | swmm_SystemProperty {
swmm_STARTDATE = 0
,
swmm_CURRENTDATE = 1
,
swmm_ELAPSEDTIME = 2
,
swmm_ROUTESTEP = 3
,
swmm_MAXROUTESTEP = 4
,
swmm_REPORTSTEP = 5
,
swmm_TOTALSTEPS = 6
,
swmm_NOREPORT = 7
,
swmm_FLOWUNITS = 8
,
swmm_ENDDATE = 9
,
swmm_REPORTSTART = 10
,
swmm_UNITSYSTEM = 11
,
swmm_SURCHARGEMETHOD = 12
,
swmm_ALLOWPONDING = 13
,
swmm_INERTIADAMPING = 14
,
swmm_NORMALFLOWLTD = 15
,
swmm_SKIPSTEADYSTATE = 16
,
swmm_IGNORERAINFALL = 17
,
swmm_IGNORERDII = 18
,
swmm_IGNORESNOWMELT = 19
,
swmm_IGNOREGROUNDWATER = 20
,
swmm_IGNOREROUTING = 21
,
swmm_IGNOREQUALITY = 22
,
swmm_ERROR_CODE = 23
,
swmm_RULESTEP = 24
,
swmm_SWEEPSTART = 25
,
swmm_SWEEPEND = 26
,
swmm_MAXTRIALS = 27
,
swmm_NUMTHREADS = 28
,
swmm_MINROUTESTEP = 29
,
swmm_LENGTHENINGSTEP = 30
,
swmm_STARTDRYDAYS = 31
,
swmm_COURANTFACTOR = 32
,
swmm_MINSURFAREA = 33
,
swmm_MINSLOPE = 34
,
swmm_RUNOFFERROR = 35
,
swmm_FLOWERROR = 36
,
swmm_QUALERROR = 37
,
swmm_HEADTOL = 38
,
swmm_SYSFLOWTOL = 39
,
swmm_LATFLOWTOL = 40
} |
| | Enumeration of system properties used in SWMM5. More...
|
| |
| enum | swmm_FlowUnitsProperty {
swmm_CFS = 0
,
swmm_GPM = 1
,
swmm_MGD = 2
,
swmm_CMS = 3
,
swmm_LPS = 4
,
swmm_MLD = 5
} |
| | Enumeration of flow units used in SWMM5. More...
|
| |
| enum | swmm_API_Errors {
ERR_API_NOT_OPEN = -999901
,
ERR_API_NOT_STARTED = -999902
,
ERR_API_NOT_ENDED = -999903
,
ERR_API_OBJECT_TYPE = -999904
,
ERR_API_OBJECT_INDEX = -999905
,
ERR_API_OBJECT_NAME = -999906
,
ERR_API_PROPERTY_TYPE = -999907
,
ERR_API_PROPERTY_VALUE = -999908
,
ERR_API_TIME_PERIOD = -999909
,
ERR_API_HOTSTART_FILE_OPEN = -999910
,
ERR_API_HOTSTART_FILE_FORMAT = -999911
,
ERR_API_IS_RUNNING = -999912
} |
| | Enumeration of API errors used in SWMM5. More...
|
| |
|
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_run (const char *inputFile, const char *reportFile, const char *outputFile) |
| | Run a SWMM simulation with the given input file, report file, and output file.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_run_with_callback (const char *inputFile, const char *reportFile, const char *outputFile, progress_callback callback) |
| | Run a SWMM simulation with the given input file, report file, and output file with a progress callback.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_open (const char *inputFile, const char *reportFile, const char *outputFile) |
| | Open a SWMM simulation with the given input file, report file, and output file.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_start (int saveFlag) |
| | Start a SWMM simulation with the given save flag.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_step (double *elapsedTime) |
| | Perform a SWMM simulation step and return the elapsed time.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_stride (int strideStep, double *elapsedTime) |
| | Perform a SWMM simulation step with a stride step and return the elapsed time.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_useHotStart (const char *hotStartFile) |
| | Set hotstart file for SWMM simulation.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_saveHotStart (const char *hotStartFile) |
| | Save hotstart file for SWMM simulation at current time.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_end (void) |
| | End a SWMM simulation.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_report (void) |
| | Writes simulation results to the report file.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_close (void) |
| | Close a SWMM simulation.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_getMassBalErr (float *runoffErr, float *flowErr, float *qualErr) |
| | Get the mass balance errors for a SWMM simulation.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_getVersion (void) |
| | Get the version of the SWMM engine.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_getError (char *errMsg, int msgLen) |
| | Retrieves the code number and text of the error condition that caused SWMM to abort its analysis.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_getErrorFromCode (int error_code, char *outErrMsg[1024]) |
| | Retrieves the text of the error message that corresponds to the error code number.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_getWarnings (void) |
| | Gets the number of warnings issued during a simulation.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_getCount (int objType) |
| | Retrieves the number of objects of a specific type.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_getName (int objType, int index, char *name, int size) |
| | Retrieves the ID name of an object.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_getIndex (int objType, const char *name) |
| | Retrieves the index of a named object.
|
| |
| double EXPORT_OPENSWMMCORE_SOLVER_API | swmm_getValue (int property, int index) |
| | Get the value of a property for an object of a given property in the SWMM model.
|
| |
| double EXPORT_OPENSWMMCORE_SOLVER_API | swmm_getValueExpanded (int objType, int property, int index, int subIndex, int pollutantIndex) |
| | Get the value of a property for an object given property, index, and subindex in the SWMM model.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_setValue (int property, int index, double value) |
| | Set the value of a property for an object of a given property and index in the SWMM model.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_setValueExpanded (int objType, int property, int index, int subIndex, int pollutantIndex, double value) |
| | Set the value of a property for an object given property, index, and subindex in the SWMM model.
|
| |
| double EXPORT_OPENSWMMCORE_SOLVER_API | swmm_getSavedValue (int property, int index, int period) |
| | Get saved value of.
|
| |
| void EXPORT_OPENSWMMCORE_SOLVER_API | swmm_writeLine (const char *line) |
| | Write a line of text to the SWMM report file.
|
| |
| void EXPORT_OPENSWMMCORE_SOLVER_API | swmm_decodeDate (double date, int *year, int *month, int *day, int *hour, int *minute, int *second, int *dayOfWeek) |
| | Decode double date value into year, month, day, hour, minute, second, and day of week.
|
| |
| double EXPORT_OPENSWMMCORE_SOLVER_API | swmm_encodeDate (int year, int month, int day, int hour, int minute, int second) |
| | Encode date values into a double date value.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_getSubcatchStats (int index, swmm_SubcatchStats *stats) |
| | Get cumulative subcatchment statistics.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_getNodeStats (int index, swmm_NodeStats *stats) |
| | Get cumulative node statistics.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_getStorageStats (int index, swmm_StorageStats *stats) |
| | Get cumulative storage node statistics.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_getOutfallStats (int index, swmm_OutfallStats *stats) |
| | Get cumulative outfall node statistics.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_getLinkStats (int index, swmm_LinkStats *stats) |
| | Get cumulative link statistics.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_getPumpStats (int index, swmm_PumpStats *stats) |
| | Get cumulative pump statistics.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_getSystemRoutingTotals (swmm_RoutingTotals *totals) |
| | Get system-level flow routing mass balance totals.
|
| |
| int EXPORT_OPENSWMMCORE_SOLVER_API | swmm_getSystemRunoffTotals (swmm_RunoffTotals *totals) |
| | Get system-level surface runoff mass balance totals.
|
| |