Skip to content

get_microxs_and_flux Incorrect Meshbase #3549

@yrrepy

Description

@yrrepy

Bug Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions