コード例 #1
0
 public void StartSimulation()
 {
     for (int i = 0; i < NeutronNums; i++)
         neutrons.Add(new Neutron(new CustomPoint3D(), SigmaA, SigmaTr));
     var threads = new NeutronThreadsWrapper(neutrons);
     threads.LaunchCalculations();
     Console.WriteLine("MeanFreePathBeforeAbsorption: {0}", MeanFreePathBeforeAbsorption());
 }
コード例 #2
0
 public List<Neutron> SimulateBatchNeutrons()
 {
     for (int i = 0; i < NeutronNums; i++)
         _neutrons.Add(new Neutron(new CustomPoint3D(), SigmaA, SigmaS, SigmaTr, SigmaT));
     var threads = new NeutronThreadsWrapper(_neutrons);
     threads.LaunchCalculations();
     return _neutrons;
 }