Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faulty Elements Generated by FancyExtruderGenerator #21162

Closed
miaoyinb opened this issue May 27, 2022 · 2 comments · Fixed by #21163
Closed

Faulty Elements Generated by FancyExtruderGenerator #21162

miaoyinb opened this issue May 27, 2022 · 2 comments · Fixed by #21163
Labels
C: Meshing MeshGenerator system, mesh loading P: normal A defect affecting operation with a low possibility of significantly affects. T: defect An anomaly, which is anything that deviates from expectations.

Comments

@miaoyinb
Copy link
Contributor

Bug Description

The current algorithm used in FancyExtruderGenerator may generate faulty 3D elements during extrusion. To be specify, the generated 3D elements (i.e., PRISM6, PRISM18, HEX8, and HEX27) do not follow the node indexing convention. As a result, these 3D elements have negative volume and lead to negative Jacobian.

Steps to Reproduce

This issue usually happens in two cases:

  1. If a 2D element (mesh) can be extruded in (x y z) (e.g., (0 0 1)) direction without any issue, simply use (-x, -y, -z) (e.g., (0 0 -1)) direction to extrude it will lead to a faulty 3D element (mesh).
  2. For a 2D mesh in XY-plane, if we use TransformGenerator to rotate it (0 180 0) to achieve an effective "mirroring" operation, and then stitch it to another original 2D mesh in XY-plane. The result 2D mesh cannot be extruded correctly in any direction because it contains two types of 2D elements: one can be extruded in (x y z) direction, the other can be extruded in (-x -y -z) direction.

Impact

FancyExtruderGenerator may generate faulty elements that cannot be used in FEM simulation without warning/error messages.

@miaoyinb miaoyinb added P: normal A defect affecting operation with a low possibility of significantly affects. T: defect An anomaly, which is anything that deviates from expectations. labels May 27, 2022
@miaoyinb
Copy link
Contributor Author

@GiudGiud @eshemon FYI

@miaoyinb
Copy link
Contributor Author

@GiudGiud
I have a way to fix these faulty elements on the fly. Will push it soon and we can discuss if that is the best approach. Thanks.

miaoyinb added a commit to miaoyinb/moose that referenced this issue May 27, 2022
miaoyinb added a commit to miaoyinb/moose that referenced this issue May 27, 2022
miaoyinb added a commit to miaoyinb/moose that referenced this issue May 27, 2022
miaoyinb added a commit to miaoyinb/moose that referenced this issue May 27, 2022
@GiudGiud GiudGiud added the C: Meshing MeshGenerator system, mesh loading label May 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Meshing MeshGenerator system, mesh loading P: normal A defect affecting operation with a low possibility of significantly affects. T: defect An anomaly, which is anything that deviates from expectations.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants