chenn
2025-03-28 9dba1b6adc0bbb4aa8cc531f4e6d822bf1a56be3
WinFrmUI/DPumpHydr.WinFrmUI.Volute/»ù±¾²ÎÊý/ViewModel/GeomBaseInfo.cs
@@ -8,17 +8,42 @@
{
    public class GeomBaseInfo
    {
        public bool IsSame(GeomBaseInfo para)
        {
            if (para == null)
                return false;
            if (this.D3 != para.D3)
                return false;
            if (this.B3 != para.B3)
                return false;
            if (this.FAI0 != para.FAI0)
                return false;
            return true;
        }
        //D3min=D3max=D3=0.0;
      //b3min=b3max=b3=0.0;
      //FAI0=FAI0min=FAI0max=0.0;
      //K3=0.0;
        //b3min=b3max=b3=0.0;
        //FAI0=FAI0min=FAI0max=0.0;
        //K3=0.0;
        /// <summary>
        /// åŸºåœ†ç›´å¾„
        /// </summary>
        public double D3 { get;set;}
        /// <summary>
        ///
        /// èœ—壳入口宽度
        /// </summary>
        public double B3 { get; set; }
        /// <summary>
        /// å‰²èˆŒè§’
        /// </summary>
        public double FAI0 { get; set; }
        ///// <summary>
        ///// 1. éš”舌切于基圆   0 é‡‡ç”¨æ­£å¸¸åˆ‡é¢
@@ -48,30 +73,30 @@
            //计算并设置FAIO
            //if (base_info.ns < 100)
            //{
            //    this.FAI0 = 25 + Math.Round(base_info.ns / 20,1);
            //    this.FAI0_Min = 25.0;
            //    this.FAI0_Max = 30.0;
            //}
            //if (base_info.ns >= 100 && base_info.ns < 200)
            //{
            //    this.FAI0 = 30 + Math.Round((base_info.ns - 100) / 12.5, 1);
            //    this.FAI0_Min = 30.0;
            //    this.FAI0_Max = 38.0;
            //}
            //if (base_info.ns >= 200 && base_info.ns < 300)
            //{
            //    this.FAI0 = 38 + Math.Round((base_info.ns - 200) / 50, 1);
            //    this.FAI0_Min = 38.0;
            //    this.FAI0_Max = 40.0;
            //}
            //if (base_info.ns > 300)
            //{
            //    this.FAI0 = 42;
            //    this.FAI0_Min = 40.0;
            //    this.FAI0_Max = 45.0;
            //}
            if (base_info.ns < 100)
            {
                this.FAI0 = 25 + Math.Round(base_info.ns / 20, 1);
                //this.FAI0_Min = 25.0;
                //this.FAI0_Max = 30.0;
            }
            if (base_info.ns >= 100 && base_info.ns < 200)
            {
                this.FAI0 = 30 + Math.Round((base_info.ns - 100) / 12.5, 1);
                //this.FAI0_Min = 30.0;
                //this.FAI0_Max = 38.0;
            }
            if (base_info.ns >= 200 && base_info.ns < 300)
            {
                this.FAI0 = 38 + Math.Round((base_info.ns - 200) / 50, 1);
                //this.FAI0_Min = 38.0;
                //this.FAI0_Max = 40.0;
            }
            if (base_info.ns > 300)
            {
                this.FAI0 = 42;
                //this.FAI0_Min = 40.0;
                //this.FAI0_Max = 45.0;
            }
        }
    }
}