lixiaojun
5 天以前 03b6ae3d20508dccf1c7fd7ee4e1c2e02c3a1da1
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
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
namespace Yw.Epanet
{
    /// <summary>
    /// 错误代码
    /// </summary>
    internal class ErrorCode
    {
        /// <summary>
        /// 无错误
        /// </summary>
        public const int OK = 0;
 
        /// <summary>
        /// 系统水力不平衡 - 在允许的试验次数内未能收敛到水力解
        /// System hydraulically unbalanced - convergence to a hydraulic solution was not achieved in the allowed number of trials
        /// </summary>
        public const int Warn1 = 1;
 
        /// <summary>
        /// 系统可能水力不稳定 - 仅在所有连接状态固定后才实现水力收敛
        /// System may be hydraulically unstable - hydraulic convergence was only achieved after the status of all links was held fixed
        /// </summary>
        public const int Warn2 = 2;
 
        /// <summary>
        /// 系统断开连接 - 一个或多个有正需求的节点与所有供水源断开连接
        /// System disconnected - one or more nodes with positive demands were disconnected from all supply sources
        /// </summary>
        public const int Warn3 = 3;
 
        /// <summary>
        /// 水泵无法提供足够的流量或扬程 - 一个或多个水泵被迫关闭(由于扬程不足)或超过最大额定流量运行
        /// Pumps cannot deliver enough flow or head - one or more pumps were forced to either shut down (due to insufficient head) or operate beyond the maximum rated flow
        /// </summary>
        public const int Warn4 = 4;
 
        /// <summary>
        /// 阀门无法提供足够的流量 - 一个或多个流量控制阀即使完全打开也无法提供所需流量
        /// Valves cannot deliver enough flow - one or more flow control valves could not deliver the required flow even when fully open
        /// </summary>
        public const int Warn5 = 5;
 
        /// <summary>
        /// 系统存在负压 - 一个或多个有正需求的节点处出现负压
        /// System has negative pressures - negative pressures occurred at one or more junctions with positive demand
        /// </summary>
        public const int Warn6 = 6;
 
        /// <summary>
        /// 可用内存不足
        /// Insufficient memory available
        /// </summary>
        public const int Err101 = 101;
 
        /// <summary>
        /// 没有可用的网络数据
        /// No network data available
        /// </summary>
        public const int Err102 = 102;
 
        /// <summary>
        /// 水力求解器未打开
        /// Hydraulic solver not opened
        /// </summary>
        public const int Err103 = 103;
 
        /// <summary>
        /// 水质分析没有可用的水力数据
        /// No hydraulics for water quality analysis
        /// </summary>
        public const int Err104 = 104;
 
        /// <summary>
        /// 水质求解器未打开
        /// Water quality solver not opened
        /// </summary>
        public const int Err105 = 105;
 
        /// <summary>
        /// 没有保存可供报告的结果
        /// No results saved to report on
        /// </summary>
        public const int Err106 = 106;
 
        /// <summary>
        /// 水力数据由外部文件提供
        /// Hydraulics supplied from external file
        /// </summary>
        public const int Err107 = 107;
 
        /// <summary>
        /// 水力求解器打开时无法使用外部文件
        /// Cannot use external file while hydraulics solver is open
        /// </summary>
        public const int Err108 = 108;
 
        /// <summary>
        /// 无法求解管网水力方程
        /// Cannot solve network hydraulic equations
        /// </summary>
        public const int Err110 = 110;
 
        /// <summary>
        /// 无法求解水质输运方程
        /// Cannot solve water quality transport equations
        /// </summary>
        public const int Err120 = 120;
 
        /// <summary>
        /// 输入文件存在一个或多个错误
        /// One or more errors in an input file
        /// </summary>
        public const int Err200 = 200;
 
        /// <summary>
        /// 语法错误
        /// Syntax error
        /// </summary>
        public const int Err201 = 201;
 
        /// <summary>
        /// 函数调用包含非法数值
        /// Function call contains an illegal numeric value
        /// </summary>
        public const int Err202 = 202;
 
        /// <summary>
        /// 函数调用引用了未定义的节点
        /// Function call refers to an undefined node
        /// </summary>
        public const int Err203 = 203;
 
        /// <summary>
        /// 函数调用引用了未定义的连接
        /// Function call refers to an undefined link
        /// </summary>
        public const int Err204 = 204;
 
        /// <summary>
        /// 函数调用引用了未定义的时间模式
        /// Function call refers to an undefined time pattern
        /// </summary>
        public const int Err205 = 205;
 
        /// <summary>
        /// 函数调用引用了未定义的曲线
        /// Function call refers to an undefined curve
        /// </summary>
        public const int Err206 = 206;
 
        /// <summary>
        /// 函数调用尝试控制止回阀、管道或 GPV 阀
        /// Function call attempts to control a check valve pipe or a GPV valve
        /// </summary>
        public const int Err207 = 207;
 
        /// <summary>
        /// 函数调用包含非法的 PDA 压力限制
        /// Function call contains illegal PDA pressure limits
        /// </summary>
        public const int Err208 = 208;
 
        /// <summary>
        /// 函数调用包含非法的节点属性值
        /// Function call contains an illegal node property value
        /// </summary>
        public const int Err209 = 209;
 
        /// <summary>
        /// 函数调用包含非法的连接属性值
        /// Function call contains an illegal link property value
        /// </summary>
        public const int Err211 = 211;
 
        /// <summary>
        /// 函数调用引用了未定义的追踪节点
        /// Function call refers to an undefined Trace Node
        /// </summary>
        public const int Err212 = 212;
 
        /// <summary>
        /// 函数调用包含无效的选项值
        /// Function call contains an invalid option value
        /// </summary>
        public const int Err213 = 213;
 
        /// <summary>
        /// 输入文件中某一行的字符过多
        /// Too many characters in a line of an input file
        /// </summary>
        public const int Err214 = 214;
 
        /// <summary>
        /// 函数调用包含重复的 ID 标签
        /// Function call contains a duplicate ID label
        /// </summary>
        public const int Err215 = 215;
 
        /// <summary>
        /// 函数调用引用了未定义的水泵
        /// Function call refers to an undefined pump
        /// </summary>
        public const int Err216 = 216;
 
        /// <summary>
        /// 无效的水泵能量数据
        /// Invalid pump energy data
        /// </summary>
        public const int Err217 = 217;
 
        /// <summary>
        /// 阀门与水箱节点的连接不合法
        /// Illegal valve connection to tank node
        /// </summary>
        public const int Err219 = 219;
 
        /// <summary>
        /// 阀门与另一个阀门的连接不合法
        /// Illegal valve connection to another valve
        /// </summary>
        public const int Err220 = 220;
 
        /// <summary>
        /// 基于规则的控制中存在错误放置的子句
        /// Mis-placed clause in rule-based control
        /// </summary>
        public const int Err221 = 221;
 
        /// <summary>
        /// 连接被分配了相同的起始和结束节点
        /// Link assigned same start and end nodes
        /// </summary>
        public const int Err222 = 222;
 
        /// <summary>
        /// 网络中的节点数量不足
        /// Not enough nodes in network
        /// </summary>
        public const int Err223 = 223;
 
        /// <summary>
        /// 网络中没有水箱或水库
        /// No tanks or reservoirs in network
        /// </summary>
        public const int Err224 = 224;
 
        /// <summary>
        /// 水箱的上下水位限制无效
        /// Invalid lower/upper levels for tank
        /// </summary>
        public const int Err225 = 225;
 
        /// <summary>
        /// 水泵没有水头曲线或功率额定值
        /// No head curve or power rating for pump
        /// </summary>
        public const int Err226 = 226;
 
        /// <summary>
        /// 水泵的水头曲线无效
        /// Invalid head curve for pump
        /// </summary>
        public const int Err227 = 227;
 
        /// <summary>
        /// 曲线的 x 值非递增
        /// Nonincreasing x-values for curve
        /// </summary>
        public const int Err230 = 230;
 
        /// <summary>
        /// 网络中有未连接的节点
        /// Network has unconnected node
        /// </summary>
        public const int Err233 = 233;
 
        /// <summary>
        /// 函数调用引用了不存在的水质源
        /// Function call refers to nonexistent water quality source
        /// </summary>
        public const int Err240 = 240;
 
        /// <summary>
        /// 函数调用引用了不存在的控制
        /// Function call refers to nonexistent control
        /// </summary>
        public const int Err241 = 241;
 
        /// <summary>
        /// 函数调用包含无效的格式(例如 ID 名称过长)
        /// Function call contains invalid format(e.g.too long an ID name)
        /// </summary>
        public const int Err250 = 250;
 
        /// <summary>
        /// 函数调用包含无效的参数代码
        /// Function call contains invalid parameter code
        /// </summary>
        public const int Err251 = 251;
 
        /// <summary>
        /// 函数调用引用了不存在的需求类别
        /// Function call refers to nonexistent demand category
        /// </summary>
        public const int Err253 = 253;
 
        /// <summary>
        /// 函数调用引用了没有坐标的节点
        /// Function call refers to node with no coordinates
        /// </summary>
        public const int Err254 = 254;
 
        /// <summary>
        /// 函数调用引用了不存在的规则
        /// Function call refers to nonexistent rule
        /// </summary>
        public const int Err257 = 257;
 
        /// <summary>
        /// 函数调用引用了不存在的规则子句
        /// Function call refers to nonexistent rule clause
        /// </summary>
        public const int Err258 = 258;
 
        /// <summary>
        /// 函数调用尝试删除仍有连接的节点
        /// Function call attempts to delete a node that still has links connected to it
        /// </summary>
        public const int Err259 = 259;
 
        /// <summary>
        /// 函数调用尝试删除被指定为追踪节点的节点
        /// Function call attempts to delete node assigned as a Trace Node
        /// </summary>
        public const int Err260 = 260;
 
        /// <summary>
        /// 函数调用尝试删除控制中包含的节点或连接
        /// Function call attempts to delete a node or link contained in a control
        /// </summary>
        public const int Err261 = 261;
 
        /// <summary>
        /// 函数调用尝试在求解器打开时修改网络结构
        /// Function call attempts to modify network structure while a solver is open
        /// </summary>
        public const int Err262 = 262;
 
        /// <summary>
        /// 不同类型的文件使用了相同的文件名
        /// Identical file names used for different types of files
        /// </summary>
        public const int Err301 = 301;
 
        /// <summary>
        /// 无法打开输入文件
        /// Cannot open input file
        /// </summary>
        public const int Err302 = 302;
 
        /// <summary>
        /// 无法打开报告文件
        /// Cannot open report file
        /// </summary>
        public const int Err303 = 303;
 
        /// <summary>
        /// 无法打开输出文件
        /// Cannot open output file
        /// </summary>
        public const int Err304 = 304;
 
        /// <summary>
        /// 无法打开水力文件
        /// Cannot open hydraulics file
        /// </summary>
        public const int Err305 = 305;
 
        /// <summary>
        /// 水力文件与网络数据不匹配
        /// Hydraulics file does not match network data
        /// </summary>
        public const int Err306 = 306;
 
        /// <summary>
        /// 无法读取水力文件
        /// Cannot read hydraulics file
        /// </summary>
        public const int Err307 = 307;
 
        /// <summary>
        /// 无法将结果保存到二进制文件
        /// Cannot save results to binary file
        /// </summary>
        public const int Err308 = 308;
 
        /// <summary>
        /// 无法将结果保存到报告文件
        /// Cannot save results to report file
        /// </summary>
        public const int Err309 = 309;
 
    }
}