Pin Cell: Settings Object

Hi all,

I am new to nuclear modeling in general and I’m working through the pin cell example and I have a question regarding the below section of code:

settings = openmc.Settings()
settings.source = source
settings.batches = 100
settings.inactive = 10
settings.particles = 1000

I interpret this to mean that our source of neutrons is “source”, and that there will be 100 batches of 1000 particles starting from this source. 10 out of these 100 batches will be inactive. Correct so far? And why have inactive batches?

Appreciate any guidance here.

Thanks,
Luke

Hello Luke. You are right about all that! The point of having inactive batches is to allow the initial source “guess” to converge to the correct source before you start tallying results. It is explained here in section 7.2.2. 7. Execution Settings — OpenMC Documentation

Best,
Miriam