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;
|
|
}
|
}
|