idaholab / moose

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

Hex to tet mesh generator #23822

Open aprilnovak opened 1 year ago

aprilnovak commented 1 year ago

Reason

We would like to directly perform surface-to-surface ray tracing using Cardinal's DAGMC plugin on MOOSE meshes.

Design

DAGMC only performs tracking on tet meshes, but many of the meshes created by the MOOSE reactor module use hexahedral meshes. All we need is to have a mesh generator that converts from the hex meshes into tets, and then we can load that in Cardinal.

Impact

New feature.

fyi @pshriwise @helen-brooks

miaoyinb commented 1 year ago

No need to be achieved in the PR that closes this issue; but I think a general MG that converts all types of elements into TRI/TET would also be helpful.

GiudGiud commented 1 year ago

Saving this in the TA work package so we move it to next year. I think we could have it done next year, it s not going to be very difficult

aprilnovak commented 1 year ago

I'm 90% of the way done with this actually - I have some local thing which does it. The only missing component is retaining sidesets from the hex mesh.

GiudGiud commented 1 year ago

ah awesome!

aprilnovak commented 1 year ago

I'll make a PR with what I have so far