namespace HydroUI
|
{
|
|
|
|
[Serializable]
|
public class ValveNodeViewModel : NodeViewModel
|
{
|
public string Node1 { get; set; }
|
public string Node2 { get; set; }
|
|
|
|
[DisplayName("长度(m)")]
|
[Browsable(true)]
|
public float Length { get; set; }
|
|
|
[DisplayName("口径(mm)")]
|
[Browsable(true)]
|
public float Diameter { get; set; }
|
|
[Category("计算参数")]
|
[DisplayName("海森威廉系数")]
|
[Browsable(true)]
|
public float Roughness { get; set; } = 110;
|
[Category("计算参数")]
|
[DisplayName("局部阻力系数")]
|
[Browsable(true)]
|
public float MinorLoss { get; set; } = 0;
|
[Category("计算参数")]
|
[DisplayName("初始状态")]
|
[Browsable(true)]
|
public new StatusType Status { get; set; }
|
|
|
[Browsable(true)]
|
public new string Type { get; set; } = "GPV";
|
|
[DisplayName("曲线")]
|
[Browsable(true)]
|
public string Setting { get; set; } = "GPVDefault";
|
}
|
}
|