namespace Yw.WinFrmUI.Phart
|
{
|
public class PumpWorkInfoViewModel : PumpWorkViewModel
|
{
|
public PumpWorkInfoViewModel() { }
|
public PumpWorkInfoViewModel(PumpWorkViewModel rhs) : base(rhs)
|
{
|
this.Calc();
|
}
|
|
public PumpWorkInfoViewModel(PumpWorkInfoViewModel rhs) : base(rhs)
|
{
|
this.Color = rhs.Color;
|
this.WorkPoint = rhs.WorkPoint;
|
this.Calc();
|
}
|
|
public Color Color { get; set; }
|
public Yw.Geometry.CubicSpline2d QhCalc { get; set; }
|
public Yw.Geometry.CubicSpline2d QeCalc { get; set; }
|
public Yw.Geometry.CubicSpline2d QpCalc { get; set; }
|
|
public void Calc()
|
{
|
this.CurrentSpeed = Math.Round(this.CurrentHz / 50 * this.RatedSpeed);
|
this.QhCalc = Yw.WinFrmUI.Phart.PumpCalcHelper.CalculateSimilarQH(this.Qh, this.RatedSpeed, this.CurrentSpeed);
|
this.QeCalc = Yw.WinFrmUI.Phart.PumpCalcHelper.CalculateSimilarQE(this.Qe, this.RatedSpeed, this.CurrentSpeed);
|
this.QpCalc = Yw.WinFrmUI.Phart.PumpCalcHelper.CalculateSimilarQP(this.Qp, this.RatedSpeed, this.CurrentSpeed);
|
}
|
|
|
}
|
|
|
}
|