I am running some fixed-source simulations and am trying to find a method of creating a source uniformly within a cell.
This is a plasma within a Tokamak so the cell is not not a simple sphere or cylinder. Actually it is a DAGMC volume so not even a CSG cell.
Anyway I noticed that there is a feature that is nearly what I am after where an openmc.stats.Box can be made around the cell and the only_fissionable can be set to True and this select sites that are inside the fissionable material.
I am after something similar but perhaps a more generic version of this only_fissionable argument where the user passes a material as the argument and the result is that the cell within the box that contains the material is then sampled uniformly.
Wondering if anyone has any hints, suggestions or ideas on this.
Thanks in advance