CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

3D mesh generating using snappyHexMesh

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By geth03
  • 1 Post By LuckyTran
  • 1 Post By Simbelmynė

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 18, 2024, 07:59
Default 3D mesh generating using snappyHexMesh
  #1
New Member
 
Join Date: Mar 2024
Posts: 10
Rep Power: 2
ncl94 is on a distinguished road
Dear foamers,


I was trying to generate a mesh using snappyHexMesh and this is what I currently have:


nozzle2Dcase2.png


As you can see, this quite a bad mesh and I would like something more like this:


nozzle2Dcase3-1.jpg


Any ideas about which command and how can I obtain a more structured mesh and potentially composed by hexahedrons solely?


Thank you
ncl94 is offline   Reply With Quote

Old   June 18, 2024, 09:25
Default
  #2
Senior Member
 
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 367
Rep Power: 8
geth03 is on a distinguished road
with snappyhexmesh you can not generate purely hex mesh, because in the snapping stage hex cells will be split.
you can refine the surface though and add layers which will look much better.

PS: it is a better idea to post openfoam related things in the openfoam sub-forum
ncl94 likes this.
geth03 is offline   Reply With Quote

Old   June 18, 2024, 11:22
Default
  #3
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,754
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
You cannot do a body-fitted grid with snappyHexMesh, that invalidates the "snappy" part of snappyHexMesh.

You need an external tool. ICEM, GridPro, etc. OpenFOAM does not provide tools that does such a grid.
ncl94 likes this.
LuckyTran is offline   Reply With Quote

Old   June 18, 2024, 11:40
Default
  #4
Senior Member
 
Simbelmynė's Avatar
 
Join Date: May 2012
Posts: 551
Rep Power: 16
Simbelmynė is on a distinguished road
You can do much with blockMesh, for example:

https://curiosityfluids.com/2019/04/...sh-an-example/

Gmsh is a good option for structured axisymmetric nozzles.

Edit: not sure why I read ”nozzle” ��
ncl94 likes this.
Simbelmynė is offline   Reply With Quote

Reply

Tags
snapphhexmesh, snappyhesmeshdict, snappyhexmesh 3d


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
foam-extend-4.1 release hjasak OpenFOAM Announcements from Other Sources 19 July 16, 2021 06:02
[snappyHexMesh] non uniform mesh near the stl object vava10 OpenFOAM Meshing & Mesh Conversion 0 January 31, 2021 15:41
[snappyHexMesh] SnappyHexMesh no layers and no decent mesh for complex geometry pizzaspinate OpenFOAM Meshing & Mesh Conversion 1 February 25, 2015 08:05
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 19:10


All times are GMT -4. The time now is 03:59.