Hi,
I’m modelling a core with several hundreds of pincells, and I’m using DistribcellFilter in order to tally reaction rates in each cell.
I would like to have a separate tally for each pincell, and apply a unique name to it, in order to facilitate later verification of the results.
Is there a way to do so?
Thanks,
Shai
Hi Shai,
tally1 = openmc.Tally(name='name of your tally)
may be you can use such constructor
tally = []*10
for i in numpy.arrange(10):
tally[i] = openmc.Tally(name=‘name of your tally’+str(i))
or similar.
Good luck!
Thanks for your reply Illia!
I can use a loop to initiate several tallies, and apply unique name to each of them, my question is how do I assign different pincell to each one of them?
In the geometry definitions, I use one openmc cell for the pincell, which is replicated in the core using lattices.
I don’t want to define separate openmc cell for each pincell.
Thanks,
Shai
Hi Shai,
This is currently not possible using the distribcell filter in OpenMC. However, I have a new feature put together (this would be for the next release) called a cell instance filter that would allow you to do exactly this – pull out a specific instance of a cell and ask for it in a tally. Assuming it gets merged into the code, this is something you can look forward to using in our next release.
Best regards,
Paul