# Cell tally naming

**URL:** <https://openmc.discourse.group/t/cell-tally-naming/522>\
**Category:** User Support\
**Created:** [December 9, 2019, 2:15pm UTC](https://openmc.discourse.group/t/cell-tally-naming/522 "2019-12-09T14:15:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaikinast](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@shaikinast](https://openmc.discourse.group/u/shaikinast)\
**Post date:** [December 9, 2019, 2:15pm UTC](https://openmc.discourse.group/t/cell-tally-naming/522/1 "2019-12-09T14:15:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Illia\_Mysiura](https://avatars.discourse-cdn.com/v4/letter/i/3bc359/32.png) [@Illia\_Mysiura](https://openmc.discourse.group/u/Illia_Mysiura)\
**Post date:** [December 9, 2019, 2:35pm UTC](https://openmc.discourse.group/t/cell-tally-naming/522/2 "2019-12-09T14:35:06Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![shaikinast](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@shaikinast](https://openmc.discourse.group/u/shaikinast)\
**Post date:** [December 9, 2019, 4:35pm UTC](https://openmc.discourse.group/t/cell-tally-naming/522/3 "2019-12-09T16:35:52Z")

</div>

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

---

<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:** [January 5, 2020, 2:05pm UTC](https://openmc.discourse.group/t/cell-tally-naming/522/4 "2020-01-05T14:05:57Z")

</div>

Hi Shai,

This is currently not possible using the distribcell filter in OpenMC. However, I have a [new feature](https://github.com/openmc-dev/openmc/pull/1433) 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
