OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
consts.h
Go to the documentation of this file.
1
17#ifndef CONSTS_H
18#define CONSTS_H
19
20#include "version.h"
21
39#define VERSION PROJECT_VERSION_SWMM_FORMAT
40
45#define MAGICNUMBER 516114522
46
52#define EOFMARK 0x1A // Use 0x04 for UNIX systems
53
58#define MAXTITLE 3 // Max. # title lines
59
64#define MAXMSG 1024 // Max. # characters in message text
65
70#define MAXLINE 1024 // Max. # characters per input line
71
76#define MAXFNAME 259 // Max. # characters in file name
77
82#define MAXTOKS 40 // Max. items per line of input
83
88#define MAXSTATES 10 // Max. # computed hyd. variables
89
94#define MAXODES 4 // Max. # ODE's to be solved
95
100#define NA -1 // NOT APPLICABLE code
101
106#define TRUE 1 // Value for TRUE state
107
112#define FALSE 0 // Value for FALSE state
113
118#define BIG 1.E10 // Generic large value
119
124#define TINY 1.E-6 // Generic small value
125
130#define ZERO 1.E-10 // Effective zero value
131
136#define MISSING -1.E10 // Missing value code
137
142#define PI 3.141592654 // Value of pi
143
148#define GRAVITY 32.2 // accel. of gravity in US units
149
154#define SI_GRAVITY 9.81 // accel of gravity in SI units
155/* DEPRECATED
156#define MAXFILESIZE 2147483647L // largest file size in bytes
157*/
158
163#define MAXHOTSTARTFILES 10 // largest file size in bytes
164
170#define MAXTIMESERIESCACHESIZE 10 // maximum number of time series that can be cached
171
187#define PHI 1.486
203#define MIN_RUNOFF_FLOW 0.001 // cfs
204
210#define MIN_EXCESS_DEPTH 0.0001 // ft, = 0.03 mm <NOT USED>
211
216#define MIN_TOTAL_DEPTH 0.004167 // ft, = 0.05 inches
217
222#define MIN_RUNOFF 2.31481e-8 // ft/sec = 0.001 in/hr
237#define FLOW_TOL 0.00001 // cfs
238
244#define DEPTH_TOL 0.00001 // ft <NOT USED>
245
251#define VOLUME_TOL 0.01 // ft3 <NOT USED>
256//---------------------------------------------------
257// Minimum depth for reporting non-zero water quality
258//---------------------------------------------------
259// #define MIN_WQ_DEPTH 0.01 // ft (= 3 mm)
260// #define MIN_WQ_FLOW 0.001 // cfs
261
272#define FUDGE 0.0001 // ft or ft2
287#define GPMperCFS 448.831
288
293#define AFDperCFS 1.9837
294
299#define MGDperCFS 0.64632
300
305#define IMGDperCFS 0.5382
306
311#define LPSperCFS 28.317
312
317#define LPMperCFS 1699.0
318
323#define CMHperCFS 101.94
324
329#define CMDperCFS 2446.6
330
335#define MLDperCFS 2.4466
336
341#define M3perFT3 0.028317
342
347#define LperFT3 28.317
348
353#define MperFT 0.3048
354
359#define PSIperFT 0.4333
360
365#define KPAperPSI 6.895
366
371#define KWperHP 0.7457
372
377#define SECperDAY 86400
378
383#define MSECperDAY 8.64e7
384
389#define MMperINCH 25.40
405#define SEPSTR " \t\n\r"
406
411#define TBLSEPSTR " \t\n\r,"
412
421#endif // CONSTS_H