Beispiel #1
0
        public DataTable SS_DT_2(string j_p1, string j_p2, string j_p3,
            double j_D1, double j_F1, double j_D8,
            double j_C4, double j_D4, double j_E4, double j_F4, double j_G4, double j_H4,
            double j_C7, double j_D7, double j_E7, double j_F7, double j_G7, double j_H7,
            double j_D9, double j_D11, double j_D45,
            double j_I9, double j_H49, double j_K11, double j_K12,
            double j_D45_2, double j_D41_2, double j_I18_2, double j_K9_2, double j_K39_2,
            double j_D11_2, double j_D9_2, double j_I35_2, double j_I33_2, double j_D29_2,
            double j_BQ_D27_2, double j_BQ_D58_2, double j_D33_2, double j_D50_2, double j_D39_2, double j_I10_2, double j_I13_2, double j_K11_2, DataTable dt_2, int I18_FLAG)
        {
            this.D1 = j_D1;
            this.F1 = j_F1;
            this.D8 = j_D8;
            this.C4 = j_C4;
            this.D4 = j_D4;
            this.E4 = j_E4;
            this.F4 = j_F4;
            this.G4 = j_G4;
            this.H4 = j_H4;
            this.C7 = j_C7;
            this.D7 = j_D7;
            this.E7 = j_E7;
            this.F7 = j_F7;
            this.G7 = j_G7;
            this.H7 = j_H7;
            this.D9 = j_D9;
            this.D11 = j_D11;
            this.D45 = j_D45;
            this.I9 = j_I9;
            this.H49 = j_H49;
            this.K11 = j_K11;
            this.K12 = j_K12;
            //--------------修正值
            this.D45_2 = j_D45_2;
            this.D41_2 = j_D41_2;
            this.I18_2 = j_I18_2;
            this.K9_2  = j_K9_2; //K9和I9都是膜通量
            this.I9 = j_K9_2; //K9和I9都是膜通量
            this.K39_2 = j_K39_2;
            this.D11_2 = j_D11_2;
            this.D9_2  = j_D9_2;
            this.I35_2 = j_I35_2;
            this.I33_2 = j_I33_2;
            this.D29_2 = j_D29_2;
            //this.D27_2 = j_D27_2;
            //this.D58_2 = j_D58_2;
            this.D33_2 = j_D33_2;
            this.D50_2 = j_D50_2;
            this.D39_2 = j_D39_2;
            this.I10_2 = j_I10_2;
            string I17_2_test = dt_2.Select("BS='SJ' AND WZ='I17'")[0][2].ToString();
            string I18_2_test = dt_2.Select("BS='SJ' AND WZ='I18'")[0][2].ToString();

            if (I18_FLAG == 0)
            {
                for (int j = 0; j < 50; j++)
                {
                    if (Math.Abs(I17 - I18) / I17 > 0.01)
                    {
                        I18 = I17;
                        j_I18_2 = double.Parse(SSVo(I18, K9_2).Select("BS='SJ' AND WZ='I18'")[0][2].ToString());  //第一次试算Vo
                    }
                    else
                    {
                        break;
                    }
                }
                this.I18_2 = j_I18_2;

            }
            else {
                this.I18_2 = j_I18_2;
            }

            ArrayList mjsList_2 = new ArrayList();
            DataTable jsdt_2 = new DataTable();
            jsdt_2 = SS_2(j_D45_2, j_D41_2, j_I18_2, j_K9_2, j_K39_2, j_D11_2, j_D9_2, j_I35_2, j_I33_2, j_D29_2, j_BQ_D27_2, j_BQ_D58_2, j_D33_2, j_D50_2, j_D39_2, j_I10_2, j_I13_2, j_K11_2, I18_FLAG, D17_FLAG,D18_FLAG);       //初始化第一次运算
            //膜计算
            this.K10 = D1 / K9_2 * 1000 / 0.9;
            mjsList_2 = new MJS().MLJS(K10, K12, D1, K9_2);
            I10 = double.Parse(mjsList_2[2].ToString());
            I13 = double.Parse(mjsList_2[1].ToString());
            K11 = double.Parse(mjsList_2[0].ToString());

            jsdt_2.Select("BS='SJ' AND WZ='I10'")[0][2] = I10;
            jsdt_2.Select("BS='SJ' AND WZ='I13'")[0][2] = I13;
            jsdt_2.Select("BS='SJ' AND WZ='K11'")[0][2] = K11;
            j_I10_2 = I10;
            j_I13_2 = I13;
            j_K11_2 = K11;
            jsdt_2 = SS_2(j_D45_2, j_D41_2, j_I18_2, j_K9_2, j_K39_2, j_D11_2, j_D9_2, j_I35_2, j_I33_2, j_D29_2, j_BQ_D27_2, j_BQ_D58_2, j_D33_2, j_D50_2, j_D39_2, j_I10_2, j_I13_2, j_K11_2, I18_FLAG, D17_FLAG, D18_FLAG);       //初始化第一次运算
             //   jsdt_2 = SS_2(j_D45_2, j_D41_2, j_I18_2, j_K9_2, j_K39_2, j_D11_2, j_D9_2, j_I35_2, j_I33_2, j_D29_2, j_BQ_D27_2, j_BQ_D58_2, j_D33_2, j_D50_2, j_D39_2, j_I10_2, j_I13_2, j_K11_2, I18_FLAG, D17_FLAG, D18_FLAG);       //初始化第一次运算
            if(I18_FLAG == 0)
            {
            jsdt_2.Select("BS='SJ' AND WZ='I18'")[0][2] = jsdt_2.Select("BS='SJ' AND WZ='I17'")[0][2];
            }
            else
            {
                jsdt_2.Select("BS='SJ' AND WZ='I17'")[0][2] = jsdt_2.Select("BS='SJ' AND WZ='I18'")[0][2];
            }
                /*
            for (int j = 0; j < 50; j++)
            {
                if (Math.Abs(I17 - I18) / I17 > 0.01)
                {
                    I18 = I17;
                    jsdt_2 = SSVo(I18);  //第一次试算Vo
                }
                else
                {
                    break;
                }
            } for (int j = 0; j < 50; j++)
            {
                if (Math.Abs(D40 - D41) / D40 > 0.01)
                {
                    this.D41 = this.D40;
                    jsdt_2 = SSVn(D41); //第一次试算Vn

                }
                else
                {
                    break;
                }
            }
             */
               D17_FLAG = 0;
               D18_FLAG = 0;
            return jsdt_2;
        }
Beispiel #2
0
        public DataTable SS_DT(string p1, string p2, string p3,
            double D1, double F1, double D8,
            double C4, double D4, double E4, double F4, double G4, double H4,
            double C7, double D7, double E7, double F7, double G7, double H7,
            double D45,
            double I9, double H49, double K11, double K12)
        {
            this.D1 = D1;
            this.F1 = F1;
            this.D8 = D8;
            this.C4 = C4;
            this.D4 = D4;
            this.E4 = E4;
            this.F4 = F4;
            this.G4 = G4;
            this.H4 = H4;
            this.C7 = C7;
            this.D7 = D7;
            this.E7 = E7;
            this.F7 = F7;
            this.G7 = G7;
            this.H7 = H7;
            this.K12 = K12;
            ArrayList mjsList = new ArrayList();
            DataTable jsdt = new DataTable();
            jsdt = SS();       //初始化第一次运算

            //膜计算
            mjsList = new MJS().MLJS(K10, K12, D1, K9);
            this.I10 = double.Parse(mjsList[2].ToString());
            this.I13 = double.Parse(mjsList[1].ToString());
            this.K11 = double.Parse(mjsList[0].ToString());

            for (int j =0 ;j < 50;j++)
            {
                if (Math.Abs(I17 - I18) / I17 > 0.01)
                {
                    I18 = I17;
                    jsdt = SSVo(I18,0);  //第一次试算Vo
                }
                else
                {
                    break;
                }
            }for (int j = 0; j < 50; j++)
            {
                if (Math.Abs(D40 - D41)/D40 > 0.01)
                {
                    this.D41 = this.D40;
                    jsdt = SSVn(D41); //第一次试算Vn
                    }
                else
                {
                    break;
                }
            }return jsdt;
        }