Shuxia Ning
2024-12-02 a2f11a5e60bb577fb793949191793a59953e236b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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);
        }
 
 
    }
 
 
}