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()); }
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; }