tangxu
2022-11-03 e32f35f3850e3209f15d81b0b41117764febc6e2
Calculation/IStation.Calculation.Dispatch/custom/shys/station/½ðº£±ÃÕ¾/OptAna.cs
@@ -158,7 +158,8 @@
            double totalQ = 0, totalH = 0, totalP = 0;
            int pipe_count = 0;
            int ResultStatus = 1;
            string ResultStatusInfo = null;
            IStation.Calculation.DispatchAna.Model.AnaScheme pipe1_result = null;
            List<IStation.Calculation.DispatchAna.Model.AnaScheme> pipe1_results = null;
            if (pipe1_TargetFlow > 50)
@@ -179,6 +180,8 @@
                        break;
                    }
                    outlet_press_calc = outlet_press_calc * 1.05;
                    ResultStatus = 2;
                    ResultStatusInfo = "提高了一号出口管液位参数";
                }
                if (pipe1_results == null || pipe1_results.Count() == 0)
                {
@@ -194,10 +197,12 @@
            }
            IStation.Calculation.DispatchAna.Model.AnaScheme pipe2_result = null;
            List<IStation.Calculation.DispatchAna.Model.AnaScheme> pipe2_results = null;
            if (pipe2_TargetFlow > 50)
            {
                double outlet_press_calc = pipe2_TargetPess;
                for (int i = 0; i < 5; i++)
                double outlet_press_calc = pipe2_TargetPess;
                int i = 0;
                for (  i = 0; i < 5; i++)
                {//扬程过低,算不出来就增加出口压力 
                    calc_pipe2_helper.InitialParas(
                        pipe2_TargetFlow,
@@ -211,7 +216,9 @@
                    {
                        break;
                    }
                    ResultStatus = 2;
                    outlet_press_calc = outlet_press_calc * 1.05;
                    ResultStatusInfo = "提高了二号出口管液位参数";
                }
                if (pipe2_results == null || pipe2_results.Count() == 0)
                {
@@ -220,6 +227,7 @@
                    return null;
                }
                pipe2_result = pipe2_results[0];
                totalQ += pipe2_result.TotalWrkQ;
                totalP += pipe2_result.TotalWrkP;
                totalH += pipe2_result.TotalWrkH;
@@ -246,7 +254,9 @@
                    {
                        break;
                    }
                    ResultStatus = 2;
                    outlet_press_calc = outlet_press_calc * 1.05;
                    ResultStatusInfo = "提高了三号出口管液位参数";
                }
                if (pipe3_results == null || pipe3_results.Count() == 0)
                {
@@ -281,7 +291,8 @@
            if (pipe3_result.Items != null && pipe3_result.Items.Count > 0)
                plan.Items.AddRange(pipe3_result.Items);
            plan.ResultStatus = ResultStatus;
            plan.ResultStatusInfo = ResultStatusInfo;
            return new List<Model.AnaScheme>() { plan };   
        }