| | |
| | | namespace Yw.WinFrmUI.Phart |
| | | { |
| | | public class PumpSerialParallelInfoViewModel : PumpSerialParallelViewModel |
| | | { |
| | | |
| | | public class PumpSerialParallelInfoViewModel : PumpParallelViewModel |
| | | { |
| | | public PumpSerialParallelInfoViewModel() { } |
| | | public PumpSerialParallelInfoViewModel(PumpSerialParallelViewModel rhs) : base(rhs) |
| | | public PumpSerialParallelInfoViewModel(PumpParallelViewModel rhs) : base(rhs) |
| | | { |
| | | this.Calc(); |
| | | } |
| | | |
| | | public PumpSerialParallelInfoViewModel(PumpSerialParallelInfoViewModel rhs) : base(rhs) |
| | | { |
| | | this.Code = rhs.Code; |
| | | { |
| | | this.Color = rhs.Color; |
| | | this.QueryQ = rhs.QueryQ; |
| | | this.QueryH = rhs.QueryH; |
| | |
| | | public double? ExtendFlow { get; set; } |
| | | public void Calc() |
| | | { |
| | | this.CurrentSpeed = Math.Round(this.CurrentHz / 50 * this.RatedSpeed); |
| | | this.CurrentN = Math.Round(this.CurrentHz / 50 * this.RatedN); |
| | | |
| | | 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); |
| | | this.QhCalc = Yw.WinFrmUI.Phart.PumpCalcHelper.CalculateSimilarQH(this.CurveQH, this.RatedN, this.CurrentN); |
| | | this.QeCalc = Yw.WinFrmUI.Phart.PumpCalcHelper.CalculateSimilarQE(this.CurveQE, this.RatedN, this.CurrentN); |
| | | this.QpCalc = Yw.WinFrmUI.Phart.PumpCalcHelper.CalculateSimilarQP(this.CurveQP, this.RatedN, this.CurrentN); |
| | | |
| | | if (this.QhCalc != null) |
| | | this.QhCalc.MaxX = this.QhCalc.MaxX * this.ExtendRatio / 100; |
| | |
| | | this.QpCalc.MaxX = this.QpCalc.MaxX * this.ExtendRatio / 100; |
| | | |
| | | |
| | | this.ExtendFlow = this.Qh.MaxX; |
| | | this.ExtendFlow = this.CurveQH.MaxX; |
| | | } |
| | | |
| | | |