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

[snappyHexMesh] How to have well snapped surfaces and keep reasonable cell size?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 15, 2021, 03:42
Default How to have well snapped surfaces and keep reasonable cell size?
  #1
New Member
 
Zürich
Join Date: Nov 2021
Posts: 5
Rep Power: 4
river_fish is on a distinguished road
Hi everybody,
I am trying to mesh an open channel domain for simulation with interFoam. I use an .stl file for the channel geometry. The channel has very smooth walls so I think it should not be too hard to have good snapping to the surface.
However, so far I have only achieved, satisfying snapping, when I choose very high refinement levels. This gives me a mesh with small cells close to the surface resulting in extremely slow computation time (see below). My colleague on the other hand created a similar mesh shown in using cfMesh. Apparently it does not require such high cell refinement close to the surface.
How can I set sHM parameters to get a mesh that also has reasonably large cells but still gets the surface well?
Attached Images
File Type: jpg sHM.jpg (75.1 KB, 28 views)
File Type: jpg cf_mesh.jpg (62.0 KB, 25 views)
river_fish is offline   Reply With Quote

Old   November 17, 2021, 07:00
Default
  #2
Member
 
Join Date: May 2017
Posts: 31
Rep Power: 8
sqek is on a distinguished road
Hello
Try setting nSmoothPatch in snapControls to 0, if it isn't already - it looks like it might be smoothing your surface, which shows up more in the coarse one as the movement allowed when smoothing scales with cell size.
Also have a look in the other time directories at the castellated mesh it's generating before snapping, that can often give a hint as to where it's going wrong
Hope this helps
sqek is offline   Reply With Quote

Reply

Tags
cell refinement, cfmesh, snappyhexmesh, surface snapping


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



All times are GMT -4. The time now is 08:18.