Пример #1
0
		public void Recalculate() {

			mPlot.Clear ();

			MathModel mm = new MathModel ();

			mm.Ag=0.1;

			//1.1;
			mm.b= this.hscale_b.Value;
				
			//1.0;
			mm.y=this.hscale_y.Value;

			mm.D=0.1;
			//0.9;
			mm.a=this.hscale_a.Value;
			//0.2;
			mm.mc=this.hscale_mc.Value;

			mm.Ab=0.0;
			//1.1;
			mm.p=this.hscale_p.Value;
			//0.1;
			mm.n=this.hscale_n.Value;
			//0.4;
			mm.mf=this.hscale_mf.Value;

			int i = 0; 

			foreach(var sp in mm.Solve()) {
				//	Console.WriteLine("{0}\t{1}", sp.T, sp.X);
				mPlot.AddPoints(i++, sp.X[0], sp.X[1], sp.X[2]);
			}

		}
Пример #2
0
        public void Recalculate()
        {
            mPlot.Clear();

            MathModel mm = new MathModel();

            mm.Ag = 0.1;

            //1.1;
            mm.b = this.hscale_b.Value;

            //1.0;
            mm.y = this.hscale_y.Value;

            mm.D = 0.1;
            //0.9;
            mm.a = this.hscale_a.Value;
            //0.2;
            mm.mc = this.hscale_mc.Value;

            mm.Ab = 0.0;
            //1.1;
            mm.p = this.hscale_p.Value;
            //0.1;
            mm.n = this.hscale_n.Value;
            //0.4;
            mm.mf = this.hscale_mf.Value;

            int i = 0;

            foreach (var sp in mm.Solve())
            {
                //	Console.WriteLine("{0}\t{1}", sp.T, sp.X);
                mPlot.AddPoints(i++, sp.X[0], sp.X[1], sp.X[2]);
            }
        }