namespace PBS.WinFrmUI.Hydro.Dispatch.Model
{
///
/// 机泵基本信息
///
public class MachineDetailEx
{
///
///
///
public long PumpID { get; set; }
public long MachineID { get; set; }
///
///
///
public string MachineName { get; set; }
///
/// 泵型号
///
public string PumpCode { get; set; }
///
///
///
public bool IsFrequency { get; set; }
///
///
///
public double RatedQ { get; set; }
///
///
///
public double RatedH { get; set; }
///
///
///
public double RatedN { get; set; }
///
///
///
public double RatedP { get; set; }
///
/// 出口口径
///
public double? OutletCaliber { get; set; }
///
/// 进口口径
///
public double? InletCaliber { get; set; }
public long PumpCurveID { get; set; }
///
/// 曲线延长百分比
///
public double Percentage { get; set; } = 1;
///
/// 最大扬程曲线
///
public Yw.Ahart.CubicCurve MaxCurveInfoQH;
///
/// 最大功率曲线
///
public Yw.Ahart.CubicCurve MaxCurveInfoQP;
public MachineDetailEx(SimuPumpViewModel pump)
{
this.PumpID = pump.ID;
this.MachineID = pump.ID;
this.MachineName = pump.Name;
this.PumpCode = pump.Code;
this.IsFrequency = true;
this.RatedN = pump.Nr;
this.RatedQ = pump.Qr;
this.RatedH = pump.Hr;
this.RatedP = pump.Pr;
this.InletCaliber = pump.Ic;
this.OutletCaliber = pump.Oc;
this.MaxCurveInfoQH =(Yw.Ahart.CubicCurve) pump.CurveQH.FeatCurve;
this.MaxCurveInfoQP = (Yw.Ahart.CubicCurve)pump.CurveQP.FeatCurve;
this.InletCaliber = pump.Ic;
this.OutletCaliber = pump.Oc;
}
///
///
///
///
///
public double CalcSpeedByFrequence(double Frq)
{
if (!IsFrequency)
return RatedN;
return Math.Round(RatedN * Frq / 50.0, 1);
}
}
}