epyt-flow 0.14.2__py3-none-any.whl → 0.15.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 (100) hide show
  1. epyt_flow/VERSION +1 -1
  2. epyt_flow/__init__.py +0 -37
  3. epyt_flow/data/benchmarks/battledim.py +2 -2
  4. epyt_flow/data/benchmarks/leakdb.py +12 -9
  5. epyt_flow/gym/scenario_control_env.py +32 -33
  6. epyt_flow/simulation/events/actuator_events.py +24 -18
  7. epyt_flow/simulation/events/leakages.py +59 -57
  8. epyt_flow/simulation/events/quality_events.py +21 -30
  9. epyt_flow/simulation/events/system_event.py +3 -3
  10. epyt_flow/simulation/scada/complex_control.py +14 -12
  11. epyt_flow/simulation/scada/custom_control.py +22 -21
  12. epyt_flow/simulation/scada/scada_data.py +107 -104
  13. epyt_flow/simulation/scada/simple_control.py +38 -31
  14. epyt_flow/simulation/scenario_simulator.py +368 -395
  15. epyt_flow/simulation/sensor_config.py +31 -32
  16. epyt_flow/topology.py +11 -10
  17. epyt_flow/uncertainty/model_uncertainty.py +146 -122
  18. {epyt_flow-0.14.2.dist-info → epyt_flow-0.15.0.dist-info}/METADATA +14 -19
  19. epyt_flow-0.15.0.dist-info/RECORD +65 -0
  20. epyt_flow/EPANET/EPANET/SRC_engines/AUTHORS +0 -28
  21. epyt_flow/EPANET/EPANET/SRC_engines/LICENSE +0 -21
  22. epyt_flow/EPANET/EPANET/SRC_engines/Readme_SRC_Engines.txt +0 -18
  23. epyt_flow/EPANET/EPANET/SRC_engines/enumstxt.h +0 -134
  24. epyt_flow/EPANET/EPANET/SRC_engines/epanet.c +0 -5578
  25. epyt_flow/EPANET/EPANET/SRC_engines/epanet2.c +0 -865
  26. epyt_flow/EPANET/EPANET/SRC_engines/epanet2.def +0 -131
  27. epyt_flow/EPANET/EPANET/SRC_engines/errors.dat +0 -73
  28. epyt_flow/EPANET/EPANET/SRC_engines/funcs.h +0 -193
  29. epyt_flow/EPANET/EPANET/SRC_engines/genmmd.c +0 -1000
  30. epyt_flow/EPANET/EPANET/SRC_engines/hash.c +0 -177
  31. epyt_flow/EPANET/EPANET/SRC_engines/hash.h +0 -28
  32. epyt_flow/EPANET/EPANET/SRC_engines/hydcoeffs.c +0 -1151
  33. epyt_flow/EPANET/EPANET/SRC_engines/hydraul.c +0 -1117
  34. epyt_flow/EPANET/EPANET/SRC_engines/hydsolver.c +0 -720
  35. epyt_flow/EPANET/EPANET/SRC_engines/hydstatus.c +0 -476
  36. epyt_flow/EPANET/EPANET/SRC_engines/include/epanet2.h +0 -431
  37. epyt_flow/EPANET/EPANET/SRC_engines/include/epanet2_2.h +0 -1786
  38. epyt_flow/EPANET/EPANET/SRC_engines/include/epanet2_enums.h +0 -468
  39. epyt_flow/EPANET/EPANET/SRC_engines/inpfile.c +0 -810
  40. epyt_flow/EPANET/EPANET/SRC_engines/input1.c +0 -707
  41. epyt_flow/EPANET/EPANET/SRC_engines/input2.c +0 -864
  42. epyt_flow/EPANET/EPANET/SRC_engines/input3.c +0 -2170
  43. epyt_flow/EPANET/EPANET/SRC_engines/main.c +0 -93
  44. epyt_flow/EPANET/EPANET/SRC_engines/mempool.c +0 -142
  45. epyt_flow/EPANET/EPANET/SRC_engines/mempool.h +0 -24
  46. epyt_flow/EPANET/EPANET/SRC_engines/output.c +0 -852
  47. epyt_flow/EPANET/EPANET/SRC_engines/project.c +0 -1359
  48. epyt_flow/EPANET/EPANET/SRC_engines/quality.c +0 -685
  49. epyt_flow/EPANET/EPANET/SRC_engines/qualreact.c +0 -743
  50. epyt_flow/EPANET/EPANET/SRC_engines/qualroute.c +0 -694
  51. epyt_flow/EPANET/EPANET/SRC_engines/report.c +0 -1489
  52. epyt_flow/EPANET/EPANET/SRC_engines/rules.c +0 -1362
  53. epyt_flow/EPANET/EPANET/SRC_engines/smatrix.c +0 -871
  54. epyt_flow/EPANET/EPANET/SRC_engines/text.h +0 -497
  55. epyt_flow/EPANET/EPANET/SRC_engines/types.h +0 -874
  56. epyt_flow/EPANET/EPANET-MSX/MSX_Updates.txt +0 -53
  57. epyt_flow/EPANET/EPANET-MSX/Src/dispersion.h +0 -27
  58. epyt_flow/EPANET/EPANET-MSX/Src/hash.c +0 -107
  59. epyt_flow/EPANET/EPANET-MSX/Src/hash.h +0 -28
  60. epyt_flow/EPANET/EPANET-MSX/Src/include/epanetmsx.h +0 -102
  61. epyt_flow/EPANET/EPANET-MSX/Src/include/epanetmsx_export.h +0 -42
  62. epyt_flow/EPANET/EPANET-MSX/Src/mathexpr.c +0 -937
  63. epyt_flow/EPANET/EPANET-MSX/Src/mathexpr.h +0 -39
  64. epyt_flow/EPANET/EPANET-MSX/Src/mempool.c +0 -204
  65. epyt_flow/EPANET/EPANET-MSX/Src/mempool.h +0 -24
  66. epyt_flow/EPANET/EPANET-MSX/Src/msxchem.c +0 -1285
  67. epyt_flow/EPANET/EPANET-MSX/Src/msxcompiler.c +0 -368
  68. epyt_flow/EPANET/EPANET-MSX/Src/msxdict.h +0 -42
  69. epyt_flow/EPANET/EPANET-MSX/Src/msxdispersion.c +0 -586
  70. epyt_flow/EPANET/EPANET-MSX/Src/msxerr.c +0 -116
  71. epyt_flow/EPANET/EPANET-MSX/Src/msxfile.c +0 -260
  72. epyt_flow/EPANET/EPANET-MSX/Src/msxfuncs.c +0 -175
  73. epyt_flow/EPANET/EPANET-MSX/Src/msxfuncs.h +0 -35
  74. epyt_flow/EPANET/EPANET-MSX/Src/msxinp.c +0 -1504
  75. epyt_flow/EPANET/EPANET-MSX/Src/msxout.c +0 -401
  76. epyt_flow/EPANET/EPANET-MSX/Src/msxproj.c +0 -791
  77. epyt_flow/EPANET/EPANET-MSX/Src/msxqual.c +0 -2010
  78. epyt_flow/EPANET/EPANET-MSX/Src/msxrpt.c +0 -400
  79. epyt_flow/EPANET/EPANET-MSX/Src/msxtank.c +0 -422
  80. epyt_flow/EPANET/EPANET-MSX/Src/msxtoolkit.c +0 -1164
  81. epyt_flow/EPANET/EPANET-MSX/Src/msxtypes.h +0 -551
  82. epyt_flow/EPANET/EPANET-MSX/Src/msxutils.c +0 -524
  83. epyt_flow/EPANET/EPANET-MSX/Src/msxutils.h +0 -56
  84. epyt_flow/EPANET/EPANET-MSX/Src/newton.c +0 -158
  85. epyt_flow/EPANET/EPANET-MSX/Src/newton.h +0 -34
  86. epyt_flow/EPANET/EPANET-MSX/Src/rk5.c +0 -287
  87. epyt_flow/EPANET/EPANET-MSX/Src/rk5.h +0 -39
  88. epyt_flow/EPANET/EPANET-MSX/Src/ros2.c +0 -293
  89. epyt_flow/EPANET/EPANET-MSX/Src/ros2.h +0 -35
  90. epyt_flow/EPANET/EPANET-MSX/Src/smatrix.c +0 -816
  91. epyt_flow/EPANET/EPANET-MSX/Src/smatrix.h +0 -29
  92. epyt_flow/EPANET/EPANET-MSX/readme.txt +0 -14
  93. epyt_flow/EPANET/compile_linux.sh +0 -4
  94. epyt_flow/EPANET/compile_macos.sh +0 -4
  95. epyt_flow/simulation/backend/__init__.py +0 -1
  96. epyt_flow/simulation/backend/my_epyt.py +0 -1101
  97. epyt_flow-0.14.2.dist-info/RECORD +0 -142
  98. {epyt_flow-0.14.2.dist-info → epyt_flow-0.15.0.dist-info}/WHEEL +0 -0
  99. {epyt_flow-0.14.2.dist-info → epyt_flow-0.15.0.dist-info}/licenses/LICENSE +0 -0
  100. {epyt_flow-0.14.2.dist-info → epyt_flow-0.15.0.dist-info}/top_level.txt +0 -0
@@ -1,131 +0,0 @@
1
- LIBRARY EPANET2.DLL
2
-
3
- EXPORTS
4
- ENaddcontrol = _ENaddcontrol@24
5
- ENaddcurve = _ENaddcurve@4
6
- ENaddlink = _ENaddlink@20
7
- ENaddnode = _ENaddnode@12
8
- ENadddemand = _ENadddemand@16
9
- ENaddpattern = _ENaddpattern@4
10
- ENaddrule = _ENaddrule@4
11
- ENclearreport = _ENclearreport@0
12
- ENclose = _ENclose@0
13
- ENcloseH = _ENcloseH@0
14
- ENcloseQ = _ENcloseQ@0
15
- ENcopyreport = _ENcopyreport@4
16
- ENdeletecontrol = _ENdeletecontrol@4
17
- ENdeletecurve = _ENdeletecurve@4
18
- ENdeletedemand = _ENdeletedemand@8
19
- ENdeletelink = _ENdeletelink@8
20
- ENdeletenode = _ENdeletenode@8
21
- ENdeletepattern = _ENdeletepattern@4
22
- ENdeleterule = _ENdeleterule@4
23
- ENepanet = _ENepanet@16
24
- ENgetaveragepatternvalue = _ENgetaveragepatternvalue@8
25
- ENgetbasedemand = _ENgetbasedemand@12
26
- ENgetcomment = _ENgetcomment@12
27
- ENgetcontrol = _ENgetcontrol@24
28
- ENgetcoord = _ENgetcoord@12
29
- ENgetcount = _ENgetcount@8
30
- ENgetcurve = _ENgetcurve@20
31
- ENgetcurveid = _ENgetcurveid@8
32
- ENgetcurveindex = _ENgetcurveindex@8
33
- ENgetcurvelen = _ENgetcurvelen@8
34
- ENgetcurvetype = _ENgetcurvetype@8
35
- ENgetcurvevalue = _ENgetcurvevalue@16
36
- ENgetdemandindex = _ENgetdemandindex@12
37
- ENgetdemandmodel = _ENgetdemandmodel@16
38
- ENgetdemandname = _ENgetdemandname@12
39
- ENgetdemandpattern = _ENgetdemandpattern@12
40
- ENgetelseaction = _ENgetelseaction@20
41
- ENgeterror = _ENgeterror@12
42
- ENgetflowunits = _ENgetflowunits@4
43
- ENgetheadcurveindex = _ENgetheadcurveindex@8
44
- ENgetlinkid = _ENgetlinkid@8
45
- ENgetlinkindex = _ENgetlinkindex@8
46
- ENgetlinknodes = _ENgetlinknodes@12
47
- ENsetlinknodes = _ENsetlinknodes@12
48
- ENgetlinktype = _ENgetlinktype@8
49
- ENgetlinkvalue = _ENgetlinkvalue@12
50
- ENgetnodeid = _ENgetnodeid@8
51
- ENgetnodeindex = _ENgetnodeindex@8
52
- ENgetnodetype = _ENgetnodetype@8
53
- ENgetnodevalue = _ENgetnodevalue@12
54
- ENgetnumdemands = _ENgetnumdemands@8
55
- ENgetoption = _ENgetoption@8
56
- ENgetpatternid = _ENgetpatternid@8
57
- ENgetpatternindex = _ENgetpatternindex@8
58
- ENgetpatternlen = _ENgetpatternlen@8
59
- ENgetpatternvalue = _ENgetpatternvalue@12
60
- ENgetpremise = _ENgetpremise@36
61
- ENgetpumptype = _ENgetpumptype@8
62
- ENgetqualinfo = _ENgetqualinfo@16
63
- ENgetqualtype = _ENgetqualtype@8
64
- ENgetresultindex = _ENgetresultindex@12
65
- ENgetrule = _ENgetrule@20
66
- ENgetruleID = _ENgetruleID@8
67
- ENgetstatistic = _ENgetstatistic@8
68
- ENgetthenaction = _ENgetthenaction@20
69
- ENgettimeparam = _ENgettimeparam@8
70
- ENgettitle = _ENgettitle@12
71
- ENgetversion = _ENgetversion@4
72
- ENgetvertex = _ENgetvertex@16
73
- ENgetvertexcount = _ENgetvertexcount@8
74
- ENinit = _ENinit@16
75
- ENinitH = _ENinitH@4
76
- ENinitQ = _ENinitQ@4
77
- ENnextH = _ENnextH@4
78
- ENnextQ = _ENnextQ@4
79
- ENopen = _ENopen@12
80
- ENopenH = _ENopenH@0
81
- ENopenQ = _ENopenQ@0
82
- ENreport = _ENreport@0
83
- ENresetreport = _ENresetreport@0
84
- ENrunH = _ENrunH@4
85
- ENrunQ = _ENrunQ@4
86
- ENsaveH = _ENsaveH@0
87
- ENsavehydfile = _ENsavehydfile@4
88
- ENsaveinpfile = _ENsaveinpfile@4
89
- ENsetbasedemand = _ENsetbasedemand@12
90
- ENsetcomment = _ENsetcomment@12
91
- ENsetcontrol = _ENsetcontrol@24
92
- ENsetcoord = _ENsetcoord@20
93
- ENsetcurve = _ENsetcurve@16
94
- ENsetcurveid = _ENsetcurveid@8
95
- ENsetcurvevalue = _ENsetcurvevalue@16
96
- ENsetdemandmodel = _ENsetdemandmodel@16
97
- ENsetdemandname = _ENsetdemandname@12
98
- ENsetdemandpattern = _ENsetdemandpattern@12
99
- ENsetelseaction = _ENsetelseaction@20
100
- ENsetflowunits = _ENsetflowunits@4
101
- ENsetheadcurveindex = _ENsetheadcurveindex@8
102
- ENsetjuncdata = _ENsetjuncdata@16
103
- ENsetlinkid = _ENsetlinkid@8
104
- ENsetlinknodes = _ENsetlinknodes@12
105
- ENsetlinktype = _ENsetlinktype@12
106
- ENsetlinkvalue = _ENsetlinkvalue@12
107
- ENsetnodeid = _ENsetnodeid@8
108
- ENsetnodevalue = _ENsetnodevalue@12
109
- ENsetoption = _ENsetoption@8
110
- ENsetpattern = _ENsetpattern@12
111
- ENsetpatternid = _ENsetpatternid@8
112
- ENsetpatternvalue = _ENsetpatternvalue@12
113
- ENsetpipedata = _ENsetpipedata@20
114
- ENsetpremise = _ENsetpremise@36
115
- ENsetpremiseindex = _ENsetpremiseindex@12
116
- ENsetpremisestatus = _ENsetpremisestatus@12
117
- ENsetpremisevalue = _ENsetpremisevalue@12
118
- ENsetqualtype = _ENsetqualtype@16
119
- ENsetreport = _ENsetreport@4
120
- ENsetrulepriority = _ENsetrulepriority@8
121
- ENsetstatusreport = _ENsetstatusreport@4
122
- ENsettankdata = _ENsettankdata@32
123
- ENsetthenaction = _ENsetthenaction@20
124
- ENsettimeparam = _ENsettimeparam@8
125
- ENsettitle = _ENsettitle@12
126
- ENsetvertices = _ENsetvertices@16
127
- ENsolveH = _ENsolveH@0
128
- ENsolveQ = _ENsolveQ@0
129
- ENstepQ = _ENstepQ@4
130
- ENusehydfile = _ENusehydfile@4
131
- ENwriteline = _ENwriteline@4
@@ -1,73 +0,0 @@
1
- //EPANET 2 Error Messages
2
- DAT(0,"ok")
3
- DAT(101,"insufficient memory available")
4
- DAT(102,"no network data available")
5
- DAT(103,"hydraulic solver not opened")
6
- DAT(104,"no hydraulics for water quality analysis")
7
- DAT(105,"water quality solver not opened")
8
- DAT(106,"no results saved to report on")
9
- DAT(107,"hydraulics supplied from external file")
10
- DAT(108,"cannot use external file while hydraulics solver is active")
11
- DAT(110,"cannot solve network hydraulic equations")
12
- DAT(120,"cannot solve water quality transport equations")
13
-
14
- // These errors apply only to an input file
15
- DAT(200,"one or more errors in input file")
16
- DAT(201,"syntax error")
17
-
18
- // These errors apply to both an input file and to API functions
19
- DAT(202,"illegal numeric value")
20
- DAT(203,"undefined node")
21
- DAT(204,"undefined link")
22
- DAT(205,"undefined time pattern")
23
- DAT(206,"undefined curve")
24
- DAT(207,"attempt to control CV/GPV link")
25
- DAT(208,"illegal PDA pressure limits")
26
- DAT(209,"illegal node property value")
27
- DAT(211,"illegal link property value")
28
- DAT(212,"undefined trace node")
29
- DAT(213,"invalid option value")
30
- DAT(214,"too many characters in input line")
31
- DAT(215,"duplicate ID label")
32
- DAT(216,"reference to undefined pump")
33
- DAT(217,"invalid pump energy data")
34
- DAT(219,"illegal valve connection to tank node")
35
- DAT(220,"illegal valve connection to another valve")
36
- DAT(221,"mis-placed rule clause in rule-based control")
37
- DAT(222,"same start and end nodes for link")
38
-
39
- // These errors apply to network consistency check
40
- DAT(223,"not enough nodes in network")
41
- DAT(224,"no tanks or reservoirs in network")
42
- DAT(225,"invalid lower/upper levels for tank")
43
- DAT(226,"no head curve or power rating for pump")
44
- DAT(227,"invalid head curve for pump")
45
- DAT(230,"nonincreasing x-values for curve")
46
- DAT(233,"network has unconnected node")
47
-
48
- // These errors apply only to API functions
49
- DAT(240,"nonexistent source")
50
- DAT(241,"nonexistent control")
51
- DAT(250,"invalid format")
52
- DAT(251,"invalid parameter code")
53
- DAT(252,"invalid ID name")
54
- DAT(253,"nonexistent demand category")
55
- DAT(254,"node with no coordinates")
56
- DAT(255,"invalid link vertex")
57
- DAT(257,"nonexistent rule")
58
- DAT(258,"nonexistent rule clause")
59
- DAT(259,"attempt to delete a node that still has links connected to it")
60
- DAT(260,"attempt to delete node assigned as a Trace Node")
61
- DAT(261,"attempt to delete a node or link contained in a control")
62
- DAT(262,"attempt to modify network structure while solver is active")
63
-
64
- // File errors
65
- DAT(301,"identical file names")
66
- DAT(302,"cannot open input file")
67
- DAT(303,"cannot open report file")
68
- DAT(304,"cannot open binary output file")
69
- DAT(305,"cannot open hydraulics file")
70
- DAT(306,"hydraulics file does not match network data")
71
- DAT(307,"cannot read hydraulics file")
72
- DAT(308,"cannot save results to file")
73
- DAT(309,"cannot save results to report file")
@@ -1,193 +0,0 @@
1
- /*
2
- ******************************************************************************
3
- Project: OWA EPANET
4
- Version: 2.2
5
- Module: funcs.h
6
- Description: prototypes of external functions called by various modules
7
- Authors: see AUTHORS
8
- Copyright: see AUTHORS
9
- License: see LICENSE
10
- Last Updated: 11/15/2019
11
- ******************************************************************************
12
- */
13
- #ifndef FUNCS_H
14
- #define FUNCS_H
15
-
16
- // ------- PROJECT.C ------------
17
-
18
- void initpointers(Project *);
19
- int allocdata(Project *);
20
- void freedata(Project *);
21
-
22
- int openfiles(Project *, const char *, const char *,const char *);
23
- int openhydfile(Project *);
24
- int openoutfile(Project *);
25
- void closeoutfile(Project *);
26
-
27
- int buildadjlists(Network *);
28
- void freeadjlists(Network *);
29
-
30
- int incontrols(Project *, int, int);
31
- int valvecheck(Project *, int, int, int, int);
32
- int findnode(Network *, char *);
33
- int findlink(Network *, char *);
34
- int findtank(Network *, int);
35
- int findvalve(Network *, int);
36
- int findpump(Network *, int);
37
- int findpattern(Network *, char *);
38
- int findcurve(Network *, char *);
39
-
40
- Pdemand finddemand(Pdemand, int);
41
- int adddemand(Snode *, double, int, char *);
42
- void freedemands(Snode *);
43
-
44
- int addlinkvertex(Slink *, double, double);
45
- void freelinkvertices(Slink *);
46
-
47
- void adjustpatterns(Network *, int);
48
- void adjustcurves(Network *, int);
49
- int adjustpumpparams(Project *, int);
50
- int resizecurve(Scurve *, int);
51
-
52
- int getcomment(Network *, int, int, char *);
53
- int setcomment(Network *, int, int, const char *);
54
-
55
- int namevalid(const char *);
56
- void getTmpName(char *);
57
- char *xstrcpy(char **, const char *, const size_t n);
58
- int strcomp(const char *, const char *);
59
- double interp(int, double [], double [], double);
60
- char *geterrmsg(int, char *);
61
- void errmsg(Project *, int);
62
- void writewin(void (*vp)(char *), char *);
63
-
64
- // ------- INPUT1.C ----------------
65
-
66
- int getdata(Project *);
67
- void setdefaults(Project *);
68
- void initreport(Report *);
69
- void adjustdata(Project *);
70
- int inittanks(Project *);
71
- void initunits(Project *);
72
- void convertunits(Project *);
73
-
74
- //-------- INPUT2.C -----------------
75
-
76
- int netsize(Project *);
77
- int readdata(Project *);
78
- int updatepumpparams(Project *, int);
79
- int findmatch(char *, char *[]);
80
- int match(const char *, const char *);
81
- int gettokens(char *, char **, int, char *);
82
- int getfloat(char *, double *);
83
- double hour(char *, char *);
84
- int setreport(Project *, char *);
85
-
86
- // ------- INPUT3.C -----------------
87
-
88
- int juncdata(Project *);
89
- int tankdata(Project *);
90
- int pipedata(Project *);
91
- int pumpdata(Project *);
92
- int valvedata(Project *);
93
- int patterndata(Project *);
94
- int curvedata(Project *);
95
- int coordata(Project *);
96
- int demanddata(Project *);
97
- int controldata(Project *);
98
- int energydata(Project *);
99
- int sourcedata(Project *);
100
- int emitterdata(Project *);
101
- int qualdata(Project *);
102
- int reactdata(Project *);
103
- int mixingdata(Project *);
104
- int statusdata(Project *);
105
- int reportdata(Project *);
106
- int timedata(Project *);
107
- int optiondata(Project *);
108
- int vertexdata(Project *);
109
-
110
- // ------- RULES.C ------------------
111
-
112
- void initrules(Project *);
113
- void addrule(Parser *, char *);
114
- void deleterule(Project *, int);
115
- int allocrules(Project *);
116
- void freerules(Project *);
117
- int ruledata(Project *);
118
- void ruleerrmsg(Project *);
119
- void adjustrules(Project *, int, int);
120
- void adjusttankrules(Project *);
121
- Spremise *getpremise(Spremise *, int);
122
- Saction *getaction(Saction *, int);
123
- int writerule(Project *, FILE *, int);
124
- int checkrules(Project *, long);
125
-
126
- // ------- REPORT.C -----------------
127
-
128
- int clearreport(Project *);
129
- int copyreport(Project *, char *);
130
- int writereport(Project *);
131
- void writelogo(Project *);
132
- void writesummary(Project *);
133
- void writehydstat(Project *, int, double);
134
- void writeheader(Project *, int,int);
135
- void writeline(Project *, char *);
136
- void writerelerr(Project *, int, double);
137
- void writestatchange(Project *, int,char,char);
138
- void writecontrolaction(Project *, int, int);
139
- void writeruleaction(Project *, int, char *);
140
- int writehydwarn(Project *, int,double);
141
- void writehyderr(Project *, int);
142
- void writemassbalance(Project *);
143
- void writetime(Project *, char *);
144
- char *clocktime(char *, long);
145
-
146
- // ------- HYDRAUL.C -----------------
147
-
148
- int openhyd(Project *);
149
- void inithyd(Project *, int initFlags);
150
- int runhyd(Project *, long *);
151
- int nexthyd(Project *, long *);
152
- void closehyd(Project *);
153
- void setlinkstatus(Project *, int, char, StatusType *, double *);
154
- void setlinksetting(Project *, int, double, StatusType *, double *);
155
- int tanktimestep(Project *, long *);
156
- void getenergy(Project *, int, double *, double *);
157
- double tankvolume(Project *, int, double);
158
- double tankgrade(Project *, int, double);
159
-
160
- // ------- HYDCOEFFS.C -----------------
161
-
162
- void resistcoeff(Project *, int);
163
- void headlosscoeffs(Project *);
164
- void matrixcoeffs(Project *);
165
- void emitterheadloss(Project *, int, double *, double *);
166
- void demandheadloss(Project *, int, double, double, double *, double *);
167
-
168
- // ------- QUALITY.C --------------------
169
-
170
- int openqual(Project *);
171
- int initqual(Project *);
172
- int runqual(Project *, long *);
173
- int nextqual(Project *, long *);
174
- int stepqual(Project *, long *);
175
- int closequal(Project *);
176
- double avgqual(Project *, int);
177
-
178
- // ------- OUTPUT.C ---------------------
179
-
180
- int savenetdata(Project *);
181
- int savehyd(Project *, long *);
182
- int savehydstep(Project *, long *);
183
- int saveenergy(Project *);
184
- int readhyd(Project *, long *);
185
- int readhydstep(Project *, long *);
186
- int saveoutput(Project *);
187
- int savefinaloutput(Project *);
188
-
189
- // ------- INPFILE.C --------------------
190
-
191
- int saveinpfile(Project *, const char *);
192
-
193
- #endif