# Question about principle of choosing number of batches and particles

**URL:** <https://openmc.discourse.group/t/question-about-principle-of-choosing-number-of-batches-and-particles/644>\
**Category:** User Support\
**Created:** [July 14, 2020, 12:00pm UTC](https://openmc.discourse.group/t/question-about-principle-of-choosing-number-of-batches-and-particles/644 "2020-07-14T12:00:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kingyue](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/kingyue/32/507_2.png) [@kingyue](https://openmc.discourse.group/u/kingyue)\
**Post date:** [July 14, 2020, 12:00pm UTC](https://openmc.discourse.group/t/question-about-principle-of-choosing-number-of-batches-and-particles/644/1 "2020-07-14T12:00:20Z")

</div>

Hi all,

To run a simulation, which setting below is recommended?  
1000 batches \* 1000 particles  
or 100 batches \* 10000 particles?  
Does the choice depend on the tally that I want to obtain?

Thanks in advance,  
Yue.

---

<div class="post-metadata">

**Author:** ![Jiankai](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/jiankai/32/1070_2.png) [@Jiankai](https://openmc.discourse.group/u/Jiankai)\
**Post date:** [July 14, 2020, 1:54pm UTC](https://openmc.discourse.group/t/question-about-principle-of-choosing-number-of-batches-and-particles/644/2 "2020-07-14T13:54:47Z")

</div>

Hi Yue,

I am not the expert on sampling variation estimation or fission source convergence.  
But I prefer the latter one, as more particles per batch is beneficial to reduce the shannon entropy and inter-batch correlation, so that finally accelerates the fission source convergence.

Best,  
Jiankai

---

<div class="post-metadata">

**Author:** ![paulromano](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/paulromano/32/486_2.png) [@paulromano](https://openmc.discourse.group/u/paulromano)\
**Post date:** [July 15, 2020, 12:47pm UTC](https://openmc.discourse.group/t/question-about-principle-of-choosing-number-of-batches-and-particles/644/3 "2020-07-15T12:47:28Z")

</div>

Yes, I generally tend to agree and much of what I’ve seen in the literature seems to point to larger batches being better. There are other practical benefits of using a larger batch, including less time on synchronization tasks between batches (for example, if you’re using MPI using larger batches as opposed to more batches will help reduce communication). However, it is possible to go “too far”. You’ll want to ensure that you have enough batches to ensure that you get a reliable estimate of the variance.

Best regards,  
Paul

---

<div class="post-metadata">

**Author:** ![kingyue](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/kingyue/32/507_2.png) [@kingyue](https://openmc.discourse.group/u/kingyue)\
**Post date:** [July 16, 2020, 6:45am UTC](https://openmc.discourse.group/t/question-about-principle-of-choosing-number-of-batches-and-particles/644/4 "2020-07-16T06:45:26Z")

</div>

Thanks Paul for your help!

在 2020年7月15日星期三 UTC+8下午8:47:40，Paul Romano写道：
