From 809cab44fa1cbea94d84c42cce94a35cc49ce5ad Mon Sep 17 00:00:00 2001 From: yangyin <1850366751@qq.com> Date: 星期一, 13 一月 2025 14:01:45 +0800 Subject: [PATCH] 断面总参数页圆半径 添加验证变色 --- WinFrmUI/DPumpHydr.WinFrmUI.Volute/断面设计/ViewModel/SectionBundleInfo.cs | 23 ++++++++++++++++++----- 1 files changed, 18 insertions(+), 5 deletions(-) diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ViewModel/SectionBundleInfo.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ViewModel/SectionBundleInfo.cs" index 7d0606f..762fae6 100644 --- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ViewModel/SectionBundleInfo.cs" +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ViewModel/SectionBundleInfo.cs" @@ -146,6 +146,16 @@ /// <param name="v3"></param> public void ResetAllParas(HdrBaseInfo hdr_info, GeomBaseInfo geom_info ) { + this.R_out = 1500.0; + if (geom_info.D3 > 1000) + this.R_out = 6000.0; + else if (geom_info.D3 > 500) + this.R_out = 3000.0; + else if (geom_info.D3 > 300) + this.R_out = 2000.0; + else + this.R_out = 1500.0; + InitialK3(hdr_info, geom_info); this.BaseWidth = geom_info.B3; @@ -163,7 +173,7 @@ // CheckChamferR(); } - + /// <summary> /// V3鏀逛簡, 閲嶆柊璁$畻闈㈢Н鍜岄珮搴� /// </summary> @@ -171,8 +181,7 @@ /// <param name="geom_info"></param> /// <param name="v3"></param> public void CalcParaV3(HdrBaseInfo hdr_info, GeomBaseInfo geom_info ) - { - + { this.BaseWidth = geom_info.B3; this.BaseCircleRadius = geom_info.D3 / 2; @@ -387,7 +396,7 @@ //} this.R_Right[8] = this.R_Left[8]; - this.R_out = 1000.0; + //鎴潰R1 鍜� R4鐨勫噺灏戣搴� DecreaseR double DecreaseR = 0.5; @@ -414,7 +423,11 @@ for (int index = 7; index >= 1; index--) { this.R_Left[index] = this.R_Left[index + 1] - DecreaseR; + if (this.R_Left[index] < 1) + this.R_Left[index] = 1; this.R_Right[index] = this.R_Right[index + 1] - DecreaseR; + if (this.R_Right[index] < 1) + this.R_Right[index] = 1; } } @@ -423,7 +436,7 @@ /// </summary> private void CheckChamferR() { - for (int index = 7; index >= 1; index--) + for (int index = 8; index >= 1; index--) { if (this.R_Left[index] > (this.H[index] + 1)) this.R_Left[index] = Math.Round(this.H[index] * 0.85 - 1, 0); -- Gitblit v1.9.3