Hello all, I’ve got a odd question. I’m using OpenMC to plot my geometry that features a DAGMC Universe. In that universe are some empty regions. When I plot and <color_by=‘cell’> it assigns a random color to these essentially void cells that I don’t have a cell-id for. Is there any way I can tell it what color to use? Right now it makes for an ugly plot if it randomly chooses something like magenta to use.
Thanks,
Reed
Patrick Shriwise answered this for me: The dev branch of OpenMC (as I’m writing this) has a model.sync_dagmc_universes() feature, which then lets you call model.geometry.get_all_cells(), that way you know what cell-id the empty cell is!
Additionally, if you need a quick workaround like I did, the empty cell will be assigned an id one greater than the last volume id in the mesh. So for me, my last volume had an id of 41428, so I added a color for cell_id=41429 to my plotting color dictionary and it seems to have worked.