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

gmsh-generated unstructured hexahedral mesh fails Gauss's Law test #339

Closed
MTCam opened this issue May 17, 2024 · 3 comments · Fixed by #342
Closed

gmsh-generated unstructured hexahedral mesh fails Gauss's Law test #339

MTCam opened this issue May 17, 2024 · 3 comments · Fixed by #342

Comments

@MTCam
Copy link
Contributor

MTCam commented May 17, 2024

The attached simple mesh was created in gmsh by splitting tets into hexs. It has multiple volumes. It fails the Gauss's Law test in grudge, and fails to hold a quiescent fluid state in mirgecom, even with inviscid operators.

so_weird.msh.txt

Screenshot 2024-05-17 at 8 55 45 AM
>       assert abs(int_1 - int_2) < 1e-13
E       assert cl.TaggableCLArray(1.38647505e-09) < 1e-13
E        +  where cl.TaggableCLArray(1.38647505e-09) = abs((cl.TaggableCLArray(0.00285925) - cl.TaggableCLArray(0.00285925)))

The only weird thing I can find about this mesh is that its faces aren't exactly coplanar. The worst face I found was basically a tet with a volume of about -1e-11.

@inducer
Copy link
Owner

inducer commented May 17, 2024

As discussed during meeting: I think this may be explained by not accurately integrating the mapping Jacobians (and other geometric factors). If increasing the quadrature order gets this to be accurate, then IMO there's nothing to see here. (But please do this experiment and follow up.)

@MTCam
Copy link
Contributor Author

MTCam commented May 17, 2024

As discussed during meeting: I think this may be explained by not accurately integrating the mapping Jacobians (and other geometric factors). If increasing the quadrature order gets this to be accurate, then IMO there's nothing to see here. (But please do this experiment and follow up.)

FYI, the ACTII mesh that MikeA showed in the meeting does pass the Gauss's Law test. 😮

@MTCam
Copy link
Contributor Author

MTCam commented May 21, 2024

Here's another, simpler mesh that reproduces the Gauss's Law test failure. Overintegration did not appear to have an affect on the results for any of the hex meshes. Setting ($p=3$) actually gets a passing test.

Here's the hex version that fails the test for ($p&lt;3$):
simple_hexs.msh.txt

Here's the tet version that the hex mesh was generated from:
simple_tets.msh.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants