CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [snappyHexMesh] Bad quality mesh at external corners (https://www.cfd-online.com/Forums/openfoam-meshing/181234-bad-quality-mesh-external-corners.html)

Bollonga December 10, 2016 07:40

Bad quality mesh at external corners
 
4 Attachment(s)
Hey guys,

I'm trying to mesh a very simple case of a 2D square, using snappyHexMesh and then extrudeMesh to get a 2D slice. You can see the square cylinder STL and the final 2D mesh (Picture 1).

The issue is that even for such a simple case where the square walls are aligned with the grid, corners seem to have too skewed elements at the castellated step (picture 2), and somehow get distorted when applying the snapping (picture 3).

I don't know why this distortion appears and how to avoid it.

I've been playing with the quality parameters without success. The ones I've used to generate the mesh are the ones from the motorBike Tutorial.

How can I improve my corner mesh quality?

I attach the snappyHexMesh case with STL files, Allrun and Allclean files.

Any help will be much appreciated! Thanks!

me3840 January 20, 2017 01:26

The split cells you see are products of your paraview settings. When you load paraview select use VTKPolyhedron on the left, it will remove them.

vbchris October 31, 2017 13:42

castellatedMesh true;
snap true;
addLayers true;

Turn off snap and addLayers.
These will relax the mesh to try and improve its quality. In your case if the grid matches the geometry they aren't needed. I think you can also turn of a relaxation setting which should do the same.


All times are GMT -4. The time now is 01:41.