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] Snapping issues with angled cylinder (https://www.cfd-online.com/Forums/openfoam-meshing/253862-snapping-issues-angled-cylinder.html)

onlyjus January 5, 2024 13:51

Snapping issues with angled cylinder
 
2 Attachment(s)
I have an 30 degree angled cylinder in-between two plates that I am having issue with snapping to the STL file. The STL file has a nice triangular surface generated with gmsh.

At the lower resolution mesh (larger cells) I get ok snapping.

https://www.cfd-online.com/Forums/at...1&d=1704480455

But if I refine the mesh, some cells snap well, but the majority of them don't seem to snap at all.

https://www.cfd-online.com/Forums/at...1&d=1704480455

Here are my snapping parameters. Any ideas?

Code:

snapControls
{
    nSmoothPatch 1;
    //nSmoothInternal $nSmoothPatch;
    tolerance 1.0;
    nSolveIter 500;
    nRelaxIter 100;
    nFeatureSnapIter 30;
    implicitFeatureSnap false;
    explicitFeatureSnap true;
    multiRegionFeatureSnap false;
}


onlyjus January 6, 2024 00:23

I figured it out. I was running into the minVol limit in the meshQualityDict.cfg. Lowering this to
Code:

minVol 1e-18;
did the trick


All times are GMT -4. The time now is 23:13.