idaholab / moose

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

meshCentroidCalculator fails on some rotated meshes #23034

Open GiudGiud opened 1 year ago

GiudGiud commented 1 year ago

Bug Description

Hits a libmesh assert with no explanation in the centroid calculation

Steps to Reproduce

run this input, used to test this PR https://github.com/idaholab/moose/pull/22832. This is not a MWE

[Mesh]
  [fmg]
    type = FileMeshGenerator
    file = square_in.e
  []

  [gen2]
    type = CartesianConcentricCircleAdaptiveBoundaryMeshGenerator
    num_sectors_per_side = '4 4 4 4'
    background_intervals = 10
    square_size = 1
    sides_to_adapt = '3 0'
    inputs = 'fmg fmg'
  []

  [rotate]
    type = TransformGenerator
    transform = ROTATE
    vector_value = '0 90 40'
    input = gen2
  []

  [gen]
    type = CartesianConcentricCircleAdaptiveBoundaryMeshGenerator
    num_sectors_per_side = '4 4 4 4'
    square_size = 1.0
    sides_to_adapt = '3 0 1'
    inputs = 'fmg fmg rotate'
[]

Impact

Prevents rotated mesh generation for some geometries

GiudGiud commented 1 year ago

Tagging this with the reactor module since this utility is used there. It s actually in the framework iirc