CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] Odd shaped cells near cells and layers collapsing

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 15, 2024, 05:40
Default Odd shaped cells near cells and layers collapsing
  #1
New Member
 
Tadeu Zagallo
Join Date: Sep 2023
Posts: 3
Rep Power: 2
tadeuzagallo is on a distinguished road
Hello,

I'm meshing a half car model for external aerodynamics simulation, using a relatively fine mesh (~30M cells) and the surface mesh looks decent (apart from some cells snapping to the wrong feature line), but I'm struggling with the shape of the cells near the surface and layers collapsing.

The attached snappyHexMeshDict has the latest configuration I used, where I significantly increased the following parameters, but it made no visible difference:
Code:
nSmoothPatch: 3 -> 10
nSolveIter: 30 -> 100
nRelaxIter: 5 -> 20
nFeatureSnapIter: 10 -> 50
I attached the logs for sMH and checkMesh, my snappyHexMeshDict, blockMeshDict and meshQualityDict zipped. I also included screenshots of the problem areas after each step (castellation/snapping/addLayers) as well as the final surface mesh.

I'd really appreciate any suggestions on what I could try next, as I've spent a few months trying to improve this and going through every thread I could find here.

Thanks,
Tadeu
Attached Images
File Type: jpg overview.jpg (204.2 KB, 11 views)
File Type: jpg castelated-far.jpg (187.2 KB, 13 views)
File Type: jpg snapped-far.jpg (202.0 KB, 13 views)
File Type: jpg layers-far.jpg (212.5 KB, 9 views)
Attached Files
File Type: zip logs_and_config.zip (70.3 KB, 0 views)
tadeuzagallo is offline   Reply With Quote

Old   February 15, 2024, 05:43
Default
  #2
New Member
 
Tadeu Zagallo
Join Date: Sep 2023
Posts: 3
Rep Power: 2
tadeuzagallo is on a distinguished road
Sorry, I could only attach five files, here are the remaining screenshots.
Attached Images
File Type: jpg surface.jpg (39.4 KB, 4 views)
File Type: jpg snapped-leading-edge.jpg (93.6 KB, 6 views)
File Type: jpg snapped-trailing-edge.jpg (162.7 KB, 5 views)
File Type: jpg layers-near.jpg (198.8 KB, 4 views)
tadeuzagallo is offline   Reply With Quote

Old   February 15, 2024, 06:54
Default
  #3
New Member
 
Tadeu Zagallo
Join Date: Sep 2023
Posts: 3
Rep Power: 2
tadeuzagallo is on a distinguished road
Sorry, I'm a newbie and completely forgot to turn on "Crinkle slice" in ParaView.

In the meantime I tried both setting minTetQuality and minVol to 1e-30 in meshQualityControls and the trick of scaling the STLs up, meshing, then scaling down. No visible difference.

Here's a couple screenshots with crinkle slice enabled, the updated quality settings and scaling the mesh.
Attached Images
File Type: jpg castelated-crinkle.jpg (175.2 KB, 10 views)
File Type: jpg layers-crinkle.jpg (137.3 KB, 8 views)
tadeuzagallo is offline   Reply With Quote

Old   February 16, 2024, 01:40
Default
  #4
Senior Member
 
M
Join Date: Dec 2017
Posts: 643
Rep Power: 12
AtoHM is on a distinguished road
There is no general fix for the layer generation with snappyHexMesh, its notoriously unstable.
Just a few hints that might help:
1) keep the refinement level at the surface constant where you want to grow layers. This helps to insert the layers. Currently you have smaller cells at leading and trailing edges, bigger mid-chord.

2) In the ESI version, you can use the laplacian mesh shrinker (see: https://www.openfoam.com/documentati...sh-layers.html at "DisplacementMotionSolver")
3) You can try using absolute sizing instead of relative.
...
AtoHM is online now   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
flow over cylinder in openFoam saeed jamshidi OpenFOAM Pre-Processing 3 August 11, 2023 15:16
[snappyHexMesh] snappyHexMesh does not create any mesh except one for the reference cell Arman_N OpenFOAM Meshing & Mesh Conversion 1 May 20, 2019 17:16
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 09:38
[snappyHexMesh] Collapsing Layers Tim_Simon OpenFOAM Meshing & Mesh Conversion 5 August 2, 2015 22:51
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11


All times are GMT -4. The time now is 16:27.