You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
get_microxs_and_flux uses the meshbase of an existing weight window rather than prescribed domains meshbase
Steps to Reproduce
take an OpenMC model
apply weight windows
use openmc.deplete.get_microxs_and_flux(domains=openmc.MeshBase)
no new meshbase is created (corresponding to the domains), rather the existing weight window mesh is erroneously used by the get_microxs_and_flux calculation
Environment
Linux
OpenMC 0.15.3.dev99
Workarounds
can adjust the ww.h5 manually to change the ww and mesh ids to something other than 1
can adjust the model.xml manually to ids other than
thing is the natural workflows will tend to auto-assign it in Python to id=1
perhaps the wrong words.
I am creating a regular mesh openmc.RegularMesh(), using it as the domains. get_microxs_and_flux is ignoring it and using the existing mesh of the weight window
Activity
paulromano commentedon Aug 27, 2025
I'm a little confused. The domains argument to
get_microxs_and_fluxshould be a specific instance ofMeshBase, not theMeshBaseclass itself.yrrepy commentedon Aug 27, 2025
perhaps the wrong words.
I am creating a regular mesh
openmc.RegularMesh(), using it as the domains.get_microxs_and_fluxis ignoring it and using the existing mesh of the weight windowpshriwise commentedon Oct 2, 2025
To make sure I'm understanding, @yrrepy, it sounds like this occurs when the Mesh IDs are the same? Is that correct?
If so, follow up: in this scenario are you applying weight windows as XML objects or using a weight windows HDF5 file?
yrrepy commentedon Oct 2, 2025
I'll look to draw up an example when I can, it's hard as there are many moving parts with prop data
This was using wws=from_xml (so as XML)
At large, I'm having all number of knock-on situations: