From 9dba1b6adc0bbb4aa8cc531f4e6d822bf1a56be3 Mon Sep 17 00:00:00 2001
From: chenn <gu.beic@qq.com>
Date: 星期五, 28 三月 2025 17:45:48 +0800
Subject: [PATCH] 添加例子

---
 WinFrmUI/DPumpHydr.WinFrmUI.Volute/基本参数/ViewModel/GeomBaseInfo.cs |  105 ++++++++++++++++++++++++----------------------------
 1 files changed, 49 insertions(+), 56 deletions(-)

diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\237\272\346\234\254\345\217\202\346\225\260/ViewModel/GeomBaseInfo.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\237\272\346\234\254\345\217\202\346\225\260/ViewModel/GeomBaseInfo.cs"
index 31a1a9e..26102a4 100644
--- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\237\272\346\234\254\345\217\202\346\225\260/ViewModel/GeomBaseInfo.cs"
+++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\237\272\346\234\254\345\217\202\346\225\260/ViewModel/GeomBaseInfo.cs"
@@ -8,62 +8,57 @@
 {
     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;}
-        public double D3_Min { get; set; }
-        public double D3_Max { get; set; }
-
+        /// <summary>
+        /// 铚楀3鍏ュ彛瀹藉害
+        /// </summary>
         public double B3 { get; set; }
-        public double B3_Min { get; set; }
-        public double B3_Max { get; set; }
-
-        public double FAI0 { get; set; }//闅旇垖瀹夋斁瑙�
-        public double FAI0_Min { get; set; }
-        public double FAI0_Max { get; set; }
-
-        public double K3 { get; set; }
         /// <summary>
-        /// 姣旇浆閫�
+        /// 鍓茶垖瑙�
         /// </summary>
-        public double ns { get; set; }
-        /// <summary>
-        /// 杩炴帴鐨勬偓鎸備綋鏈�澶у鐩村緞
-        /// </summary>
-        public double XgtBodyMaxDia { get; set; }
+        public double FAI0 { get; set; }
+        
 
-        /// <summary>
-        /// 1. 闅旇垖鍒囦簬鍩哄渾   0 閲囩敤姝e父鍒囬潰
-        /// </summary>
-        public bool IsQieYuJiYuan { get; set; }
+        ///// <summary>
+        ///// 1. 闅旇垖鍒囦簬鍩哄渾   0 閲囩敤姝e父鍒囬潰
+        ///// </summary>
+        //public bool IsQieYuJiYuan { get; set; }
         /// <summary>
         /// 
         /// </summary>
         /// <param name="base_info"></param>
-        public void Calc(HdrBaseInfo base_info)
+        public void Initial(HdrBaseInfo base_info)
         {
-            this.ns = base_info.ns;
-            //璁$畻骞惰缃甂3
-            if (base_info.ns < 170)
-                K3 = Math.Round((69.1549 - 0.446605 * base_info.ns + 0.0014497 * base_info.ns * base_info.ns) / 100,3);
-            else
-                K3 = 0.35;//0.347;
-
-            if (base_info.ShapeType == 2)
-                K3 = Math.Round(K3 * 0.9,3);//0.8 鐜舰
-
-            //鑷繁娣诲姞鐨勶紝闃叉鍙屽惛娉垫埅闈㈣繃灏�
-            if (base_info.IsSXB)
-                K3 = Math.Round(K3 * 0.85,3);// 鍙屽惛娉�
-                               //鎺掓薄娉�
-                               //if (DesignMode == YSSnxOpen::DesignMode::AssPawuQnshQw1)
-                               //{
-                               //    K3 = K3 * 0.75;
-                               //}
-
-            this.D3 = Math.Round(Math.Max(1.05 * base_info.D2, XgtBodyMaxDia) + 2);
+            if (base_info == null)
+                return;
+            //
+            this.D3 =   (int)( 1.03 * base_info.D2)   + 2 ;
 
 
             //璁$畻骞惰缃産3
@@ -75,34 +70,32 @@
                 this.B3 = base_info.B2 * 1.5;
             if (base_info.B2 > 60)
                 this.B3 = base_info.B2 * 1.2;
-            this.B3_Min = base_info.B2 * 1.1;
-            this.B3_Max = base_info.B2 * 3.5;
 
 
             //璁$畻骞惰缃瓼AIO
             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;
+                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;
+                //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;
+                //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;
+                //this.FAI0_Min = 40.0;
+                //this.FAI0_Max = 45.0;
             }
         }
     }

--
Gitblit v1.9.3