void FindBaseStreamLines()
 {
     async_base = new IniFillAsync(AsyncIniFill);
     res_list   = new List <IAsyncResult>();
     h          = 0.05;
     for (double x = x_min + h; x < x_max; x += h)
     {
         x = Round(x, 4);
         StreamLinesBase.Add(new List <DataPoint>());
         res_list.Add(async_base.BeginInvoke(StreamLinesBase[StreamLinesBase.Count - 1], x, null, null));
     }
     StreamLinesBase.Add(new List <DataPoint>());
     res_list.Add(async_base.BeginInvoke(StreamLinesBase[StreamLinesBase.Count - 1], w.a - 0.01, null, null));
     for (double x = x_min + h + w.R; x < x_max + w.R; x += h)
     {
         x = Round(x, 4);
         StreamLinesBase.Add(new List <DataPoint>());
         res_list.Add(async_base.BeginInvoke(StreamLinesBase[StreamLinesBase.Count - 1], x, null, null));
     }
     StreamLinesBase.Add(new List <DataPoint>());
     res_list.Add(async_base.BeginInvoke(StreamLinesBase[StreamLinesBase.Count - 1], -w.a + w.R + 0.01, null, null));
     while (!res_list.IsAllThreadsCompleted())
     {
     }
     res_list = null;
 }
 void FindBaseStreamLines()
 {
     FindInitSpecial();
     StreamLinesBase = new List <List <DataPoint> >();
     async_base      = new IniFillAsync(AsyncIniFill);
     res_list        = new List <IAsyncResult>();
     for (double y = h; y <= y_max - h; y += h)
     {
         StreamLinesBase.Add(new List <DataPoint>());
         StreamLinesBase.Add(new List <DataPoint>());
         res_list.Add(async_base.BeginInvoke(StreamLinesBase[StreamLinesBase.Count - 2], StreamLinesBase[StreamLinesBase.Count - 1], y, null, null));
     }
     while (!res_list.IsAllThreadsCompleted())
     {
     }
     res_list = null;
 }
Example #3
0
 void FindBaseStreamLines()
 {
     async_base = new IniFillAsync(AsyncIniFill);
     res_list   = new List <IAsyncResult>();
     if (w.f is Conformal_Maps.Diffusor)
     {
         y_min = -h;
     }
     for (double y = y_min + h; y <= y_max - h; y += h)
     {
         StreamLinesBase.Add(new List <DataPoint>());
         res_list.Add(async_base.BeginInvoke(StreamLinesBase[StreamLinesBase.Count - 1], y, null, null));
     }
     while (!res_list.IsAllThreadsCompleted())
     {
     }
     res_list = null;
 }