using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DPumpHydr.OpenFwUI.Volute { 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; } public void ModelToThis(DPumpHydr.OpenModel.GeomBaseInfo geomBaseInfo) { this.B3 = geomBaseInfo.B3; this.D3 = geomBaseInfo.D3; this.FAI0 = geomBaseInfo.FAI0; } public DPumpHydr.OpenModel.GeomBaseInfo ThisToModel() { DPumpHydr.OpenModel.GeomBaseInfo geomBaseInfo = new OpenModel.GeomBaseInfo(); geomBaseInfo.B3 = this.B3; geomBaseInfo.D3 = this.D3; geomBaseInfo.FAI0 = this.FAI0; return geomBaseInfo; } //D3min=D3max=D3=0.0; //b3min=b3max=b3=0.0; //FAI0=FAI0min=FAI0max=0.0; //K3=0.0; /// /// 基圆直径 /// public double D3 { get;set;} /// /// 蜗壳入口宽度 /// public double B3 { get; set; } /// /// 割舌角 /// public double FAI0 { get; set; } ///// ///// 1. 隔舌切于基圆 0 采用正常切面 ///// //public bool IsQieYuJiYuan { get; set; } /// /// /// /// public void Initial(HdrBaseInfo base_info) { if (base_info == null) return; // this.D3 = (int)( 1.03 * base_info.D2) + 2 ; //计算并设置b3 if (base_info.B2 <= 7) this.B3 = base_info.B2 * 3; if (base_info.B2 <= 32 && base_info.B2 > 7) this.B3 = base_info.B2 * 2; if (base_info.B2 > 32 && base_info.B2 <= 60) this.B3 = base_info.B2 * 1.5; if (base_info.B2 > 60) this.B3 = base_info.B2 * 1.2; //计算并设置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; } } } }