EPANET  3.0
EPANET Development Project
constants.h
Go to the documentation of this file.
1 /* EPANET 3
2  *
3  * Copyright (c) 2016 Open Water Analytics
4  * Licensed under the terms of the MIT License (see the LICENSE file for details).
5  *
6  */
7 
10 
11 #ifndef CONSTANTS_H_
12 #define CONSTANTS_H_
13 
14 const int VERSION = 30000;
15 const int MAGICNUMBER = 1236385461;
16 const double MISSING = -999999999.9;
17 
18 const double PI = 3.141592654;
19 const double GRAVITY = 32.2;
20 const double VISCOSITY = 1.1E-5;
21 const double DIFFUSIVITY = 1.3E-8;
22 
23 // Conversion factors for US flow units
24 const double GPMperCFS = 448.831;
25 const double MGDperCFS = 0.64632;
26 const double IMGDperCFS = 0.5382;
27 const double AFDperCFS = 1.9837;
28 
29 // Conversion factors for SI flow units
30 const double LPSperCFS = 28.317;
31 const double LPMperCFS = 1699.0;
32 const double CMHperCFS = 101.94;
33 const double CMDperCFS = 2446.6;
34 const double MLDperCFS = 2.4466;
35 
36 // Conversion factors for SI quantities
37 const double LperFT3 = 28.317;
38 const double M3perFT3 = 0.028317;
39 const double MperFT = 0.3048;
40 const double KPAperPSI = 6.895;
41 const double KWperHP = 0.7457;
42 
43 // Miscellaneous factors
44 const double SECperDAY = 86400.0;
45 const double PSIperFT = 0.4333;
46 const double FT3perL = 0.0353145;
47 
48 #endif
const double MISSING
missing value
Definition: constants.h:16
const double VISCOSITY
kinematic viscosity of water @ 20 deg C (sq ft/sec)
Definition: constants.h:20
const double DIFFUSIVITY
molecular diffusivity of chlorine @ 20 deg C (sq ft/sec)
Definition: constants.h:21
const double GRAVITY
gravitational constant (ft/sec/sec)
Definition: constants.h:19
const double PI
value of PI
Definition: constants.h:18
const int VERSION
current version
Definition: constants.h:14
const int MAGICNUMBER
magic number
Definition: constants.h:15