OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches

General constants used in the SWMM model. More...

Collaboration diagram for SWMM General Constants:

Macros

#define VERSION   PROJECT_VERSION_SWMM_FORMAT
 SWMM version number.
 
#define MAGICNUMBER   516114522
 Magic number used to identify a SWMM binary file.
 
#define EOFMARK   0x1A
 End of file mark used in SWMM binary files.
 
#define MAXTITLE   3
 Maximum number of title lines.
 
#define MAXMSG   1024
 Maximum number of characters in a message.
 
#define MAXLINE   1024
 Maximum number of characters per input line.
 
#define MAXFNAME   259
 Maximum number of characters in a file name.
 
#define MAXTOKS   40
 Maximum number of items per line of input.
 
#define MAXSTATES   10
 Maximum number of computed hydraulic variables.
 
#define MAXODES   4
 Maximum number of ODE's to be solved.
 
#define NA   -1
 NOT APPLICABLE code.
 
#define TRUE   1
 Value for TRUE state.
 
#define FALSE   0
 Value for FALSE state.
 
#define BIG   1.E10
 Generic large value.
 
#define TINY   1.E-6
 Generic small value.
 
#define ZERO   1.E-10
 Effective zero value.
 
#define MISSING   -1.E10
 Missing value code.
 
#define PI   3.141592654
 Value of pi.
 
#define GRAVITY   32.2
 Acceleration of gravity in US units.
 
#define SI_GRAVITY   9.81
 Acceleration of gravity in SI units.
 
#define MAXHOTSTARTFILES   10
 Maximum number of hotstart files.
 
#define MAXTIMESERIESCACHESIZE   10
 Maximum number of time series rows that can be cached to memory to speed up simulation \TODO Allow users to set this value in the input file and GUI.
 

Detailed Description

General constants used in the SWMM model.

Macro Definition Documentation

◆ BIG

#define BIG   1.E10

Generic large value.

◆ EOFMARK

#define EOFMARK   0x1A

End of file mark used in SWMM binary files.

Note
Use 0x04 for UNIX systems

◆ FALSE

#define FALSE   0

Value for FALSE state.

◆ GRAVITY

#define GRAVITY   32.2

Acceleration of gravity in US units.

◆ MAGICNUMBER

#define MAGICNUMBER   516114522

Magic number used to identify a SWMM binary file.

◆ MAXFNAME

#define MAXFNAME   259

Maximum number of characters in a file name.

◆ MAXHOTSTARTFILES

#define MAXHOTSTARTFILES   10

Maximum number of hotstart files.

◆ MAXLINE

#define MAXLINE   1024

Maximum number of characters per input line.

◆ MAXMSG

#define MAXMSG   1024

Maximum number of characters in a message.

◆ MAXODES

#define MAXODES   4

Maximum number of ODE's to be solved.

◆ MAXSTATES

#define MAXSTATES   10

Maximum number of computed hydraulic variables.

◆ MAXTIMESERIESCACHESIZE

#define MAXTIMESERIESCACHESIZE   10

Maximum number of time series rows that can be cached to memory to speed up simulation \TODO Allow users to set this value in the input file and GUI.

◆ MAXTITLE

#define MAXTITLE   3

Maximum number of title lines.

◆ MAXTOKS

#define MAXTOKS   40

Maximum number of items per line of input.

◆ MISSING

#define MISSING   -1.E10

Missing value code.

◆ NA

#define NA   -1

NOT APPLICABLE code.

◆ PI

#define PI   3.141592654

Value of pi.

◆ SI_GRAVITY

#define SI_GRAVITY   9.81

Acceleration of gravity in SI units.

◆ TINY

#define TINY   1.E-6

Generic small value.

◆ TRUE

#define TRUE   1

Value for TRUE state.

◆ VERSION

#define VERSION   PROJECT_VERSION_SWMM_FORMAT

SWMM version number.

◆ ZERO

#define ZERO   1.E-10

Effective zero value.