idaholab / moose

Multiphysics Object Oriented Simulation Environment
https://www.mooseframework.org
GNU Lesser General Public License v2.1
1.72k stars 1.04k forks source link

ID Assignment in PatternedHexMeshGenerator not working properly #25112

Open olinwc opened 1 year ago

olinwc commented 1 year ago

Bug Description

When running the reactor module, when trying to assign pin_id in PatternedHexMeshGenerator some of the pins are actually given multiple pin_ids while other pins are all given the same pin_id within a single assembly.

Visualization of the problem in Paraview

Screen Shot 2023-08-04 at 11 01 51 AM

Steps to Reproduce

Run the attached input file. Multiple pins all receive pin_id of 330 while several pins are divided into 2 pin ids

mhtgr_2d_bug_example.txt

Impact

This prevents me from running a 2D or 3D pin-wise depletion problem

olinwc commented 1 year ago

For the attached input file, you can actually change it to final_generator = fuel_assembly and observe the problem in Paraview, this reduces the overall input file to only 7 or so active mesh blocks.

lindsayad commented 1 year ago

@miaoyinb is this something you might be able to help with?

yjung-anl commented 1 year ago

@olinwc I will take a look on this issue. If you have any issue on reporting ID stuffs, please ping me.

FYI @eshemon