I am attempting to generate weight windows in a single simulation (with multiple batches/iterations within that simulation) and then subsequently load the already-generated weight windows into a different simulation, essentially trying to replicate what is shown in the user guide.
Based on the user guide, it appears that this should be simple to do ( 17. Variance Reduction — OpenMC Documentation , 17.3 in particular), and it indicates that the mesh should be stored in the weight windows file and not need redefinition when imported again later.
When I try to follow the example in the documentation above, I get the following error upon running OpenMC:
” ERROR: Mesh 1 used in weight windows does not exist.”
Inspection of the weight windows file does show existence of a mesh, albeit without an ID attribute associated with it.
“
import h5py
f = h5py.File(“weight_windows.h5”, “r”)
print(list(f.keys()))
[‘meshes’, ‘weight_windows’]
print(list(f[“meshes”].keys()))
[‘mesh 1’]
print(list(f[“meshes”][“mesh 1”].keys()))
[‘dimension’, ‘lower_left’, ‘type’, ‘upper_right’, ‘width’]
”
What might be causing this? Based on the user guide’s example, this should be straightforward to do with minimal definitions.