epyt-flow 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. epyt_flow/EPANET/EPANET/SRC_engines/AUTHORS +28 -0
  2. epyt_flow/EPANET/EPANET/SRC_engines/LICENSE +21 -0
  3. epyt_flow/EPANET/EPANET/SRC_engines/Readme_SRC_Engines.txt +18 -0
  4. epyt_flow/EPANET/EPANET/SRC_engines/enumstxt.h +134 -0
  5. epyt_flow/EPANET/EPANET/SRC_engines/epanet.c +5578 -0
  6. epyt_flow/EPANET/EPANET/SRC_engines/epanet2.c +865 -0
  7. epyt_flow/EPANET/EPANET/SRC_engines/epanet2.def +131 -0
  8. epyt_flow/EPANET/EPANET/SRC_engines/errors.dat +73 -0
  9. epyt_flow/EPANET/EPANET/SRC_engines/funcs.h +193 -0
  10. epyt_flow/EPANET/EPANET/SRC_engines/genmmd.c +1000 -0
  11. epyt_flow/EPANET/EPANET/SRC_engines/hash.c +177 -0
  12. epyt_flow/EPANET/EPANET/SRC_engines/hash.h +28 -0
  13. epyt_flow/EPANET/EPANET/SRC_engines/hydcoeffs.c +1151 -0
  14. epyt_flow/EPANET/EPANET/SRC_engines/hydraul.c +1117 -0
  15. epyt_flow/EPANET/EPANET/SRC_engines/hydsolver.c +720 -0
  16. epyt_flow/EPANET/EPANET/SRC_engines/hydstatus.c +476 -0
  17. epyt_flow/EPANET/EPANET/SRC_engines/include/epanet2.h +431 -0
  18. epyt_flow/EPANET/EPANET/SRC_engines/include/epanet2_2.h +1786 -0
  19. epyt_flow/EPANET/EPANET/SRC_engines/include/epanet2_enums.h +468 -0
  20. epyt_flow/EPANET/EPANET/SRC_engines/inpfile.c +810 -0
  21. epyt_flow/EPANET/EPANET/SRC_engines/input1.c +707 -0
  22. epyt_flow/EPANET/EPANET/SRC_engines/input2.c +864 -0
  23. epyt_flow/EPANET/EPANET/SRC_engines/input3.c +2170 -0
  24. epyt_flow/EPANET/EPANET/SRC_engines/main.c +93 -0
  25. epyt_flow/EPANET/EPANET/SRC_engines/mempool.c +142 -0
  26. epyt_flow/EPANET/EPANET/SRC_engines/mempool.h +24 -0
  27. epyt_flow/EPANET/EPANET/SRC_engines/output.c +852 -0
  28. epyt_flow/EPANET/EPANET/SRC_engines/project.c +1359 -0
  29. epyt_flow/EPANET/EPANET/SRC_engines/quality.c +685 -0
  30. epyt_flow/EPANET/EPANET/SRC_engines/qualreact.c +743 -0
  31. epyt_flow/EPANET/EPANET/SRC_engines/qualroute.c +694 -0
  32. epyt_flow/EPANET/EPANET/SRC_engines/report.c +1489 -0
  33. epyt_flow/EPANET/EPANET/SRC_engines/rules.c +1362 -0
  34. epyt_flow/EPANET/EPANET/SRC_engines/smatrix.c +871 -0
  35. epyt_flow/EPANET/EPANET/SRC_engines/text.h +497 -0
  36. epyt_flow/EPANET/EPANET/SRC_engines/types.h +874 -0
  37. epyt_flow/EPANET/EPANET-MSX/MSX_Updates.txt +53 -0
  38. epyt_flow/EPANET/EPANET-MSX/Src/dispersion.h +27 -0
  39. epyt_flow/EPANET/EPANET-MSX/Src/hash.c +107 -0
  40. epyt_flow/EPANET/EPANET-MSX/Src/hash.h +28 -0
  41. epyt_flow/EPANET/EPANET-MSX/Src/include/epanetmsx.h +102 -0
  42. epyt_flow/EPANET/EPANET-MSX/Src/include/epanetmsx_export.h +42 -0
  43. epyt_flow/EPANET/EPANET-MSX/Src/mathexpr.c +937 -0
  44. epyt_flow/EPANET/EPANET-MSX/Src/mathexpr.h +39 -0
  45. epyt_flow/EPANET/EPANET-MSX/Src/mempool.c +204 -0
  46. epyt_flow/EPANET/EPANET-MSX/Src/mempool.h +24 -0
  47. epyt_flow/EPANET/EPANET-MSX/Src/msxchem.c +1285 -0
  48. epyt_flow/EPANET/EPANET-MSX/Src/msxcompiler.c +368 -0
  49. epyt_flow/EPANET/EPANET-MSX/Src/msxdict.h +42 -0
  50. epyt_flow/EPANET/EPANET-MSX/Src/msxdispersion.c +586 -0
  51. epyt_flow/EPANET/EPANET-MSX/Src/msxerr.c +116 -0
  52. epyt_flow/EPANET/EPANET-MSX/Src/msxfile.c +260 -0
  53. epyt_flow/EPANET/EPANET-MSX/Src/msxfuncs.c +175 -0
  54. epyt_flow/EPANET/EPANET-MSX/Src/msxfuncs.h +35 -0
  55. epyt_flow/EPANET/EPANET-MSX/Src/msxinp.c +1504 -0
  56. epyt_flow/EPANET/EPANET-MSX/Src/msxout.c +401 -0
  57. epyt_flow/EPANET/EPANET-MSX/Src/msxproj.c +791 -0
  58. epyt_flow/EPANET/EPANET-MSX/Src/msxqual.c +2010 -0
  59. epyt_flow/EPANET/EPANET-MSX/Src/msxrpt.c +400 -0
  60. epyt_flow/EPANET/EPANET-MSX/Src/msxtank.c +422 -0
  61. epyt_flow/EPANET/EPANET-MSX/Src/msxtoolkit.c +1164 -0
  62. epyt_flow/EPANET/EPANET-MSX/Src/msxtypes.h +551 -0
  63. epyt_flow/EPANET/EPANET-MSX/Src/msxutils.c +524 -0
  64. epyt_flow/EPANET/EPANET-MSX/Src/msxutils.h +56 -0
  65. epyt_flow/EPANET/EPANET-MSX/Src/newton.c +158 -0
  66. epyt_flow/EPANET/EPANET-MSX/Src/newton.h +34 -0
  67. epyt_flow/EPANET/EPANET-MSX/Src/rk5.c +287 -0
  68. epyt_flow/EPANET/EPANET-MSX/Src/rk5.h +39 -0
  69. epyt_flow/EPANET/EPANET-MSX/Src/ros2.c +293 -0
  70. epyt_flow/EPANET/EPANET-MSX/Src/ros2.h +35 -0
  71. epyt_flow/EPANET/EPANET-MSX/Src/smatrix.c +816 -0
  72. epyt_flow/EPANET/EPANET-MSX/Src/smatrix.h +29 -0
  73. epyt_flow/EPANET/EPANET-MSX/readme.txt +14 -0
  74. epyt_flow/EPANET/compile.sh +4 -0
  75. epyt_flow/VERSION +1 -0
  76. epyt_flow/__init__.py +24 -0
  77. epyt_flow/data/__init__.py +0 -0
  78. epyt_flow/data/benchmarks/__init__.py +11 -0
  79. epyt_flow/data/benchmarks/batadal.py +257 -0
  80. epyt_flow/data/benchmarks/batadal_data.py +28 -0
  81. epyt_flow/data/benchmarks/battledim.py +473 -0
  82. epyt_flow/data/benchmarks/battledim_data.py +51 -0
  83. epyt_flow/data/benchmarks/gecco_water_quality.py +267 -0
  84. epyt_flow/data/benchmarks/leakdb.py +592 -0
  85. epyt_flow/data/benchmarks/leakdb_data.py +18923 -0
  86. epyt_flow/data/benchmarks/water_usage.py +123 -0
  87. epyt_flow/data/networks.py +650 -0
  88. epyt_flow/gym/__init__.py +4 -0
  89. epyt_flow/gym/control_gyms.py +47 -0
  90. epyt_flow/gym/scenario_control_env.py +101 -0
  91. epyt_flow/metrics.py +404 -0
  92. epyt_flow/models/__init__.py +2 -0
  93. epyt_flow/models/event_detector.py +31 -0
  94. epyt_flow/models/sensor_interpolation_detector.py +118 -0
  95. epyt_flow/rest_api/__init__.py +4 -0
  96. epyt_flow/rest_api/base_handler.py +70 -0
  97. epyt_flow/rest_api/res_manager.py +95 -0
  98. epyt_flow/rest_api/scada_data_handler.py +476 -0
  99. epyt_flow/rest_api/scenario_handler.py +352 -0
  100. epyt_flow/rest_api/server.py +106 -0
  101. epyt_flow/serialization.py +438 -0
  102. epyt_flow/simulation/__init__.py +5 -0
  103. epyt_flow/simulation/events/__init__.py +6 -0
  104. epyt_flow/simulation/events/actuator_events.py +259 -0
  105. epyt_flow/simulation/events/event.py +81 -0
  106. epyt_flow/simulation/events/leakages.py +404 -0
  107. epyt_flow/simulation/events/sensor_faults.py +267 -0
  108. epyt_flow/simulation/events/sensor_reading_attack.py +185 -0
  109. epyt_flow/simulation/events/sensor_reading_event.py +170 -0
  110. epyt_flow/simulation/events/system_event.py +88 -0
  111. epyt_flow/simulation/parallel_simulation.py +147 -0
  112. epyt_flow/simulation/scada/__init__.py +3 -0
  113. epyt_flow/simulation/scada/advanced_control.py +134 -0
  114. epyt_flow/simulation/scada/scada_data.py +1589 -0
  115. epyt_flow/simulation/scada/scada_data_export.py +255 -0
  116. epyt_flow/simulation/scenario_config.py +608 -0
  117. epyt_flow/simulation/scenario_simulator.py +1897 -0
  118. epyt_flow/simulation/scenario_visualizer.py +61 -0
  119. epyt_flow/simulation/sensor_config.py +1289 -0
  120. epyt_flow/topology.py +290 -0
  121. epyt_flow/uncertainty/__init__.py +3 -0
  122. epyt_flow/uncertainty/model_uncertainty.py +302 -0
  123. epyt_flow/uncertainty/sensor_noise.py +73 -0
  124. epyt_flow/uncertainty/uncertainties.py +555 -0
  125. epyt_flow/uncertainty/utils.py +206 -0
  126. epyt_flow/utils.py +306 -0
  127. epyt_flow-0.1.0.dist-info/LICENSE +21 -0
  128. epyt_flow-0.1.0.dist-info/METADATA +139 -0
  129. epyt_flow-0.1.0.dist-info/RECORD +131 -0
  130. epyt_flow-0.1.0.dist-info/WHEEL +5 -0
  131. epyt_flow-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,28 @@
1
+ # Authors ordered alphabetically
2
+
3
+ Authors with Contributions in the Public Domain:
4
+
5
+ Lewis Rossman <LRossman@cinci.rr.com>
6
+ Michael Tryby <tryby.michael@epa.gov>
7
+
8
+ Authors with Contributions Subject to Copyright (see LICENSE):
9
+
10
+ Jinduan Chen <jinduan.uc@gmail.com>
11
+ Maurizio Cingi <mrzcng2@gmail.com>
12
+ Demetrios Eliades <eldemet@gmail.com>
13
+ Will Furnass <will@thearete.co.uk>
14
+ Milad Ghiami <milad-ghiami@users.noreply.github.com>
15
+ Sam Hatchett <samhatchett@gmail.com>
16
+ Abel Heinsbroek <mail@abelheinsbroek.nl>
17
+ Mike Kane <muke195@gmail.com>
18
+ Marios Kyriakou <mariosmsk@gmail.com>
19
+ Steffen Macke <sdteffen@sdteffen.de>
20
+ Angela Marchi <angela.marchi@adelaide.edu.au>
21
+ Bryant McDonnell <bemcdonnell@gmail.com>
22
+ Elad Salomons <selad@optiwater.com>
23
+ Feng Shang <fshang>
24
+ Yunier Soad <yunier.soad@gmail.com>
25
+ Markus Sunela <markus.sunela@fluidit.fi>
26
+ Tom Taxon <tntaxon@anl.gov>
27
+ James Uber <jim@citilogics.com>
28
+ Hyoungmin Woo <hyoungmin.woo@gmail.com>
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017 (see AUTHORS)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,18 @@
1
+ This folder archives the EPA/OWA and community collaboration source code files for the EPANET hydraulic and water quality engines for v2.2.0.
2
+
3
+ It contains the source code for the EPANET 2.2 network hydraulic and water quality solver.
4
+ It is written in ANSI-compatible C and can be compiled into either a Windows Dynamic Link Library of functions
5
+ or into a command-line executable.
6
+
7
+ The DLL version of the solver (epanet2.dll) is used with
8
+ the EPANET 2 user interface executable (epanet2w.exe) to
9
+ form a complete Windows modeling package. It also serves
10
+ as the function library for the EPANET Programmer's Toolkit,
11
+ allowing developers to construct their own customized pipe
12
+ network analysis applications.
13
+
14
+ All the files except main.c are needed to build the DLL version of the solver.
15
+ The file main.c needs to be incudled for building a command-line executable.
16
+ Epanet2.def should be inculded as a module definition file
17
+ for building the DLL that can be used in EPANET user inferface (epanet2w.exe).
18
+
@@ -0,0 +1,134 @@
1
+ /*
2
+ *****************************************************************************
3
+ Project: OWA EPANET
4
+ Version: 2.2
5
+ Module: enumstxt.h
6
+ Description: text strings for enumerated data types
7
+ Authors: see AUTHORS
8
+ Copyright: see AUTHORS
9
+ License: see LICENSE
10
+ Last Updated: 06/20/2019
11
+ ******************************************************************************
12
+ */
13
+
14
+ #ifndef ENUMSTXT_H
15
+ #define ENUMSTXT_H
16
+ #include "text.h"
17
+
18
+ char *NodeTxt[] = {t_JUNCTION,
19
+ t_RESERVOIR,
20
+ t_TANK};
21
+
22
+ char *LinkTxt[] = {w_CV,
23
+ w_PIPE,
24
+ w_PUMP,
25
+ w_PRV,
26
+ w_PSV,
27
+ w_PBV,
28
+ w_FCV,
29
+ w_TCV,
30
+ w_GPV};
31
+
32
+ char *StatTxt[] = {t_XHEAD,
33
+ t_TEMPCLOSED,
34
+ t_CLOSED,
35
+ t_OPEN,
36
+ t_ACTIVE,
37
+ t_XFLOW,
38
+ t_XFCV,
39
+ t_XPRESSURE,
40
+ t_FILLING,
41
+ t_EMPTYING,
42
+ t_OVERFLOWING};
43
+
44
+ char *FormTxt[] = {w_HW,
45
+ w_DW,
46
+ w_CM};
47
+
48
+ char *RptFormTxt[] = {t_HW,
49
+ t_DW,
50
+ t_CM};
51
+
52
+ char *RptFlowUnitsTxt[] = {u_CFS,
53
+ u_GPM,
54
+ u_MGD,
55
+ u_IMGD,
56
+ u_AFD,
57
+ u_LPS,
58
+ u_LPM,
59
+ u_MLD,
60
+ u_CMH,
61
+ u_CMD};
62
+
63
+ char *FlowUnitsTxt[] = {w_CFS,
64
+ w_GPM,
65
+ w_MGD,
66
+ w_IMGD,
67
+ w_AFD,
68
+ w_LPS,
69
+ w_LPM,
70
+ w_MLD,
71
+ w_CMH,
72
+ w_CMD};
73
+
74
+ char *PressUnitsTxt[] = {w_PSI,
75
+ w_KPA,
76
+ w_METERS};
77
+
78
+ char *DemandModelTxt[] = { w_DDA,
79
+ w_PDA,
80
+ NULL };
81
+
82
+ char *QualTxt[] = {w_NONE,
83
+ w_CHEM,
84
+ w_AGE,
85
+ w_TRACE};
86
+
87
+
88
+ char *SourceTxt[] = {w_CONCEN,
89
+ w_MASS,
90
+ w_SETPOINT,
91
+ w_FLOWPACED};
92
+
93
+ char *ControlTxt[] = {w_BELOW,
94
+ w_ABOVE,
95
+ w_TIME,
96
+ w_CLOCKTIME};
97
+
98
+ char *TstatTxt[] = {w_NONE,
99
+ w_AVG,
100
+ w_MIN,
101
+ w_MAX,
102
+ w_RANGE};
103
+
104
+ char *MixTxt[] = {w_MIXED,
105
+ w_2COMP,
106
+ w_FIFO,
107
+ w_LIFO,
108
+ NULL};
109
+
110
+ char *RptFlagTxt[] = {w_NO,
111
+ w_YES,
112
+ w_FULL};
113
+
114
+ char *SectTxt[] = {s_TITLE, s_JUNCTIONS, s_RESERVOIRS,
115
+ s_TANKS, s_PIPES, s_PUMPS,
116
+ s_VALVES, s_CONTROLS, s_RULES,
117
+ s_DEMANDS, s_SOURCES, s_EMITTERS,
118
+ s_PATTERNS, s_CURVES, s_QUALITY,
119
+ s_STATUS, s_ROUGHNESS, s_ENERGY,
120
+ s_REACTIONS, s_MIXING, s_REPORT,
121
+ s_TIMES, s_OPTIONS, s_COORDS,
122
+ s_VERTICES, s_LABELS, s_BACKDROP,
123
+ s_TAGS, s_END,
124
+ NULL};
125
+
126
+ char *Fldname[] = {t_ELEV, t_DEMAND, t_HEAD,
127
+ t_PRESSURE, t_QUALITY, t_LENGTH,
128
+ t_DIAM, t_FLOW, t_VELOCITY,
129
+ t_HEADLOSS, t_LINKQUAL, t_LINKSTATUS,
130
+ t_SETTING, t_REACTRATE, t_FRICTION,
131
+ "", "", "", "", "", "", NULL};
132
+
133
+
134
+ #endif