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