示例#1
0
        void Button3Click(object sender, EventArgs e)
        {
            double[] xx = new double[data.Count];
            double[] yy = new double[data.Count];
            double[] tt = new double[data.Count];

            int j = 0;

            foreach (SData prime in data)     // Loop through List with foreach
            {
                xx[j] = prime.x;
                yy[j] = prime.y;
                tt[j] = 0.020 * j;
                j++;
            }

            CDataIO io = new CDataIO();

            io.WriteArrayToFile("x.dat", (uint)data.Count, xx);
            io.WriteArrayToFile("y.dat", (uint)data.Count, yy);
            io.WriteArrayToFile("t.dat", (uint)data.Count, tt);

            io.ShowDataImager("DataImager2.2.exe", "t x");
            //io.ShowDataImager("DataImager2.2.exe","t y");
        }
示例#2
0
        void TrAero()
        {
            sigma0       = 3.9 / Sm;
            label10.Text = sigma0.ToString();
            //h0
            h0 = 0.78 + 0.038 * Sm;

            for (int i = 0; i < N; i++)
            {
                larr[i]  = lambda1 + i * (lambda2 - lambda1) / 1000;
                Trarr[i] = Tr(larr[i]);
            }
            io.WriteArrayToFile("Tr.dat", (uint)N, Trarr);
            io.WriteArrayToFile("lambda.dat", (uint)N, larr);
        }
示例#3
0
        void Button2Click(object sender, EventArgs e)
        {
            double[] y = new double[100000];
            double[] x = new double[100000];
            //x[0]=0;
            //y[0]=/*ApeLAC(100,0.01,0.00001)+*/IntLAC(10,1);

            for (int i = 0; i < 100000; i++)
            {
                x[i] = Math.Log10(i + 1);
                y[i] = 1;              //ForLAC(1,Tc,i+1)+ApeLAC(1,Tu,i+1)+ApeLAC(Ke,Ta,i+1)+IntLAC(1,i+1)+IntLAC(1,i+1)+ForLAC(1,T,i+1);
            }
            //double [] delta=row;
            DIO.WriteArrayToFile("y.dat", 100000, y);
            DIO.WriteArrayToFile("x.dat", 100000, x);
            DIO.ShowDataImager("DataImager2.2.exe", "x y");
        }