Пример #1
0
        public static List <Grain> NewRSXMCList()
        {
            List <Grain> RSXMCgrains = new List <Grain>();

            foreach (Grain g in MainWindow.GrainTable)
            {
                if (NeighbourRecrystalized(g) && !g.Recrystalized)
                {
                    RSXMCgrains.Add(g);
                }
            }
            RSXMCgrains = RSXMCgrains.Distinct().ToList();
            RSXMCgrains = MonteCarlo.ShuffleList(RSXMCgrains);
            return(RSXMCgrains);
        }
Пример #2
0
        public static List <Grain> GetNewMCList()
        {
            List <Grain> list = new List <Grain>();

            foreach (Grain g in MainWindow.GrainTable)
            {
                if (Inclusions.IsOnTheEdge(g, 1, MainWindow.XNumOfCells, MainWindow.YNumOfCells))
                {
                    if (g.Inclusion == false)
                    {
                        list.Add(new Grain(g));
                    }
                }
            }
            list = MonteCarlo.ShuffleList(list);
            return(list);
        }