Volume of cells from DAGMC file?

Hi all,

I’m trying to run flux tallies on individual cells from a DAGMC geometry. I’ve been able to use the cell IDs from the DAGMC file to create cell filters (and I’ve confirmed that these work properly, as I’ve corroborated the results with a materials filter for one of the cells). However, since I need to divide the flux tally output by the cell volume, I need to use the stochastic volume calculation, which demands that I input the cell itself, and not just the ID. I can’t calculate the volume by material, because some of my cells in different areas of the geometry use the same material.

I’m not really sure how to extract the each cell object itself from the dagmc geometry. When I use openmc.DAGMCUniverse.n_cells, I get 5 (which is correct), but any attempt I make to get the cells themselves just gives me an empty ordered dictionary. Is there some get cell by ID function that I’ve missed? Am I going about this the wrong way?

Thank you,
Eleanor

1 Like

Hi Eleanor

I know this is not an idea solution but I tend to use a separate material for each cell volume.

The volume ID numbers available are tricky to find. I did write a proof of concept package that can get the volume ID numbers with their correlated material names.

Perhaps this is a temporary solution till we get such functional in openmc.

I wound up using different materials, and that worked great! Thank you