ningshuxia
2025-04-16 a67da735b33be01b24845ce03ae7551cf55ddbbc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
namespace IStation.Epanet.Enums
{
    /// <summary>
    /// 错误代码
    /// </summary>
    public enum ErrorCode
    {
        /// <summary>No error</summary> 
        Ok = 0,
 
        /// <summary> WARNING:System hydraulically unbalanced.</summary> 
        [Error("警告:系统液压失衡")]
        Warn1 = 1,
 
        /// <summary> WARNING:System may be hydraulically unstable.</summary>
        [Error("警告:系统液压可能不稳定")]
        Warn2 = 2,
 
        /// <summary> WARNING:System disconnected.</summary>
        [Error("警告:系统断开连接")]
        Warn3 = 3,
 
        /// <summary> WARNING:Pumps cannot deliver enough flow or head.</summary>
        [Error("警告:泵无法提供足够的流量或扬程")]
        Warn4 = 4,
 
        /// <summary> WARNING:Valves cannot deliver enough flow.</summary>
        [Error("警告:阀门无法提供足够的流量")]
        Warn5 = 5,
 
        /// <summary> WARNING:System has negative pressures.</summary>
        [Error("警告:系统有负压")]
        Warn6 = 6,
 
        /// <summary>System Error 101:insufficient memory available.</summary>
        [Error("系统错误:可用内存不足")]
        Err101 = 101,
 
        /// <summary>System Error 102:no network data available.</summary>
        [Error("系统错误:没有需要处理的管网数据")]
        Err102 = 102,
 
        /// <summary>System Error 103:hydraulics not initialized.</summary>
        [Error("系统错误:水力求解器没有初始化")]
        Err103 = 103,
 
        /// <summary>System Error 104:no hydraulics for water quality analysis.</summary>
        [Error("系统错误:没有可用的水力结果")]
        Err104 = 104,
 
        /// <summary>System Error 105:water quality not initialized.</summary>
        [Error("系统错误:水质求解器没有初始化")]
        Err105 = 105,
 
        /// <summary>System Error 106:no results saved to report on.</summary>
        [Error("系统错误:没有可以报告的结果")]
        Err106 = 106,
 
        /// <summary>System Error 107:hydraulics supplied from external file.</summary>
        [Error("系统错误:液压系统由外部文件提供")]
        Err107 = 107,
 
        /// <summary>System Error 108:cannot use external file while hydraulics solver is active.</summary>
        [Error("系统错误:液压求解器激活时无法使用外部文件")]
        Err108 = 108,
 
        /// <summary>System Error 109:cannot change time parameter when solver is active.</summary>
        [Error("系统错误:求解器激活时无法更改时间参数")]
        Err109 = 109,
 
        /// <summary>System Error 110:cannot solve network hydraulic equations.</summary>
        [Error("系统错误:不能够求解水力方程组")]
        Err110 = 110,
 
        /// <summary>System Error 120:cannot solve water quality transport equations.</summary>
        [Error("系统错误:不能够求解WQ迁移方程组")]
        Err120 = 120,
 
        /// <summary>Input Error 200:one or more errors in input file.</summary>
        [Error("输入错误:输入文件中有一处或者多处错误")]
        Err200 = 200,
 
        /// <summary>Input Error 201:syntax error in following line of [%s] section:</summary>
        [Error("输入错误:syntax error in following line of [%s] section")]
        Err201 = 201,
 
        /// <summary>Input Error 202:%s %s contains illegal numeric value.</summary>
        [Error("输入错误:函数调用中具有非法数值")]
        Err202 = 202,
 
        /// <summary>Input Error 203:%s %s refers to undefined node.</summary>
        [Error("输入错误:函数调用中具有未定义的节点")]
        Err203 = 203,
 
        /// <summary>Input Error 204:%s %s refers to undefined link.</summary>
        [Error("输入错误:函数调用中具有未定义的管段")]
        Err204 = 204,
 
        /// <summary>Input Error 205:%s %s refers to undefined time pattern.</summary>
        [Error("输入错误:函数调用中具有未定义的时间模式")]
        Err205 = 205,
 
        /// <summary>Input Error 206:%s %s refers to undefined curve.</summary>
        [Error("输入错误:%s %s refers to undefined curve")]
        Err206 = 206,
 
        /// <summary>Input Error 207:%s %s attempts to control a CV.</summary>
        [Error("输入错误:试图控制止回阀")]
        Err207 = 207,
 
        /// <summary>Input Error 208:%s specified for undefined Node %s.</summary>
        [Error("输入错误:%s specified for undefined Node %s")]
        Err208 = 208,
 
        /// <summary>Input Error 209:illegal %s value for Node %s.</summary>
        [Error("输入错误:illegal %s value for Node %s")]
        Err209 = 209,
 
        /// <summary>Input Error 210:%s specified for undefined Link %s.</summary>
        [Error("输入错误:%s specified for undefined Link %s")]
        Err210 = 210,
 
        /// <summary>Input Error 211:illegal %s value for Link %s.</summary>
        [Error("输入错误:illegal %s value for Link %s")]
        Err211 = 211,
 
        /// <summary>Input Error 212:trace node %.0s %s is undefined.</summary>
        [Error("输入错误:trace node %.0s %s is undefined")]
        Err212 = 212,
 
        /// <summary>Input Error 213:illegal option value in [%s] section:</summary>
        [Error("输入错误:illegal option value in [%s] section")]
        Err213 = 213,
 
        /// <summary>Input Error 214:following line of [%s] section contains too many characters:</summary>
        [Error("输入错误:following line of [%s] section contains too many characters")]
        Err214 = 214,
 
        /// <summary>Input Error 215:%s %s is a duplicate ID.</summary>
        [Error("输入错误:%s %s is a duplicate ID")]
        Err215 = 215,
 
        /// <summary>Input Error 216:%s data specified for undefined Pump %s.</summary>
        [Error("输入错误:%s data specified for undefined Pump %s")]
        Err216 = 216,
 
        /// <summary>Input Error 217:invalid %s data for Pump %s.</summary>
        [Error("输入错误:invalid %s data for Pump %s")]
        Err217 = 217,
 
        /// <summary>Input Error 219:%s %s illegally connected to a tank.</summary>
        [Error("输入错误:%s %s illegally connected to a tank")]
        Err219 = 219,
 
        /// <summary>Input Error 220:%s %s illegally connected to another valve.</summary>
        [Error("输入错误:%s %s illegally connected to another valve")]
        Err220 = 220,
 
        /*** Updated on 10/25/00 ***/
 
        /// <summary>Input Error 222:%s %s has same start and end nodes.</summary>
        [Error("输入错误:%s %s has same start and end nodes")]
        Err222 = 222,
 
        /// <summary>Input Error 223:not enough nodes in network</summary>
        [Error("输入错误:管网中没有充分的节点")]
        Err223 = 223,
 
        /// <summary>Input Error 224:no tanks or reservoirs in network.</summary>
        [Error("输入错误:管网中不存在水池或者水库")]
        Err224 = 224,
 
        /// <summary>Input Error 225:invalid lower/upper levels for Tank %s.</summary>
        [Error("输入错误:invalid lower/upper levels for Tank %s")]
        Err225 = 225,
 
        /// <summary>Input Error 226:no head curve supplied for Pump %s.</summary>
        [Error("输入错误:no head curve supplied for Pump %s")]
        Err226 = 226,
 
        /// <summary>Input Error 227:invalid head curve for Pump %s.</summary>
        [Error("输入错误:invalid head curve for Pump %s")]
        Err227 = 227,
 
        /// <summary>Input Error 230:Curve %s has nonincreasing x-values.</summary>
        [Error("输入错误:Curve %s has nonincreasing x-values")]
        Err230 = 230,
 
        /// <summary>Input Error 233:Node %s is unconnected.</summary>
        [Error("输入错误:Node %s is unconnected")]
        Err233 = 233,
 
        /// <summary>Input Error 240:%s %s refers to undefined source.</summary>
        [Error("输入错误:函数调用中具有未定义的水源")]
        Err240 = 240,
 
        /// <summary>Input Error 241:%s %s refers to undefined control.</summary>
        [Error("输入错误:函数调用中具有未定义的控制语句")]
        Err241 = 241,
 
        /// <summary>Input Error 250:function call contains invalid format.</summary>
        [Error("输入错误:函数参数格式非法")]
        Err250 = 250,
 
        /// <summary>Input Error 251:function call contains invalid parameter code.</summary>
        [Error("输入错误:函数调用中具有非法参数代号")]
        Err251 = 251,
 
        /// <summary>File Error 301:identical file names.</summary>
        [Error("文件错误:相同的文件名")]
        Err301 = 301,
 
        /// <summary>File Error 302:cannot open input file.</summary>
        [Error("文件错误:不能够打开输入文件")]
        Err302 = 302,
 
        /// <summary>File Error 303:cannot open report file.</summary>
        [Error("文件错误:不能够打开报告文件")]
        Err303 = 303,
 
        /// <summary>File Error 304:cannot open binary output file.</summary>
        [Error("文件错误:不能够打开二进制输出文件")]
        Err304 = 304,
 
        /// <summary>File Error 305:cannot open hydraulics file.</summary>
        [Error("文件错误:不能够打开水力文件")]
        Err305 = 305,
 
        /// <summary>File Error 306:hydraulics file does not match network data.</summary>
        [Error("文件错误:非法水力文件")]
        Err306 = 306,
 
        /// <summary>File Error 307:cannot read hydraulics file.</summary>
        [Error("文件错误:不能够阅读水力文件")]
        Err307 = 307,
 
        /// <summary>File Error 308:cannot save results to file.</summary>
        [Error("文件错误:不能够将结果保存到文件")]
        Err308 = 308,
 
        /// <summary>File Error 309:cannot save results to report file.</summary>
        [Error("文件错误:不能够将报告写入文件")]
        Err309 = 309,
    }
 
 
 
}