namespace Yw.EPAnet { /// /// 阀门 /// 阀门状态,参考ValveStatus类的定义 /// GPV阀如:ValveStatus.Open表示使用局部系数、ValveStatus.Closed表示完全关闭、ValveStatus.None表示使用流量压降曲线 /// 其他阀门:ValveStatus.Open表示使用局部系数、ValveStatus.Closed表示完全关闭、ValveStatus.None表示使用设置值来自动确定局部系数(各种阀门的设置意义不同) /// public class Valve : Link { /// /// /// public Valve() { } /// /// /// public Valve(Valve rhs) : base(rhs) { this.Diameter = rhs.Diameter; this.MinorLoss = rhs.MinorLoss; this.ValveType = rhs.ValveType; this.ValveSetting = rhs.ValveSetting; } /// /// 直径 /// public double Diameter { get; set; } /// /// 局阻系数 /// public double MinorLoss { get; set; } /// /// 阀门类型 /// public string ValveType { get; set; } /// /// 阀门设置 /// public string ValveSetting { get; set; } } }