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 |   85 +++++++++++++++++++++++++++---------------
 1 files changed, 55 insertions(+), 30 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 1943f02..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,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>
-        /// 
+        /// 铚楀3鍏ュ彛瀹藉害
         /// </summary>
         public double B3 { get; set; }
-
- 
+        /// <summary>
+        /// 鍓茶垖瑙�
+        /// </summary>
+        public double FAI0 { get; set; }
+        
 
         ///// <summary>
         ///// 1. 闅旇垖鍒囦簬鍩哄渾   0 閲囩敤姝e父鍒囬潰
@@ -48,30 +73,30 @@
 
 
             //璁$畻骞惰缃瓼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;
-            //}
-            //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;
+            }
         }
     }
 }

--
Gitblit v1.9.3