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

[snappyHexMesh] snappyHexMesh : how to get "full hexa" mesh ? (do NOT generate pyramid, tetra, ...)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 26, 2015, 13:38
Default snappyHexMesh : how to get "full hexa" mesh ? (do NOT generate pyramid, tetra, ...)
  #1
FGH
New Member
 
Franck HOUSSEN
Join Date: Feb 2015
Posts: 7
Rep Power: 11
FGH is on a distinguished road
Hello,

With snappyHexMesh (or another OpenFOAM mesher ?), is it possible to get only hexa ? (ie, prevent generation of pyramid, tetra and others elements)

I am new to OpenFOAM. I looked into the documentation and tutorials to get basics cases running.
I need to generate a mesh made ONLY of hexa (the solver I use can only handle hexa). To get these specific mesh, I tried to prevent pyramid / tetra generation playing on mesh quality controls : I didn't succeed to get a "hexa only" mesh. I looked in the documentation and also here https://openfoamwiki.net/images/f/f0...SlidesOFW7.pdf without success.

Can somebody advice me some means to get a "hexa only" mesh ? (tuning ? controls ? stl definition ? other ?)

Thanks for help,

FGH

Note: I attached all what is needed to mesh the case
Attached Files
File Type: gz cubecut.tar.gz (2.1 KB, 10 views)
FGH is offline   Reply With Quote

Old   February 26, 2015, 13:56
Default blockMesh
  #2
Senior Member
 
Bernhard Linseisen
Join Date: May 2010
Location: Heilbronn
Posts: 183
Blog Entries: 1
Rep Power: 16
Linse is on a distinguished road
Dear Franck,

for this simple geometry I strongly suggest to use blockMesh! While this is often not the mesher of choice (it s**** for complex geometries), here it definitely would work perfectly!

Simply build your cube from two blocks, with one containing the cut and the other one being fully rectangular. I guess this way it should be a matter of 20 minutes or so even for a meshing newbie. Everything you need is available in the OpenFoam User Guide, so no worries about that minor challenge!

Cheers,
Bernhard

Edit: I did a short effort and built a blockMeshDict similar to what you probably want. You just have to change the dimensions of the points accordingly and name the different patches correctly. And of course the definition of how many cells you need in which directions are all yours. ;-)
Attached Files
File Type: txt blockMeshDict.txt (1.6 KB, 21 views)

Last edited by Linse; February 26, 2015 at 14:13. Reason: Added small blockMeshDict-file
Linse is offline   Reply With Quote

Old   February 27, 2015, 06:01
Default
  #3
FGH
New Member
 
Franck HOUSSEN
Join Date: Feb 2015
Posts: 7
Rep Power: 11
FGH is on a distinguished road
Thanks for the suggestion : I've just tested it, and, it turns out to work fine.

Anyway, the "cubecut" case I attached is, in fact, a voluntary simplification of what I really need (and, for these cases, blockMesh will probably not work). Actually, I need to mesh "more complex" geometries where the cube would be cut by (more or less) curved surfaces : so, for a start, I cut the cube with a plane surface (if I get a correct behavior with this case, I guess I may get what I expect even if the cut is done slightly differently).

So I still need to mesh the cubecut in "full hexa" with snappyHexMesh. Is this possible maybe on playing with mesh quality controls ? Or even modifying a bit the code ?

FGH
FGH is offline   Reply With Quote

Old   February 27, 2015, 06:35
Default
  #4
Senior Member
 
Bernhard Linseisen
Join Date: May 2010
Location: Heilbronn
Posts: 183
Blog Entries: 1
Rep Power: 16
Linse is on a distinguished road
Unfortunately I am not that versed with snappyHexMesh as to hex-exclusive meshing. Maybe it is possible, but I would not know...

As long as you stay with curved cuts: These are possible with blockMesh as well, although probably that is quite the limit of reasonable use of this tool...
Linse is offline   Reply With Quote

Old   April 20, 2016, 22:25
Default
  #5
Member
 
Sami
Join Date: Nov 2012
Location: Cap Town, South Africa
Posts: 87
Rep Power: 14
Mehrez is on a distinguished road
Hi,
Did you find a way to get fully hex mesh ?
Thanks,
Mhrz
Mehrez is offline   Reply With Quote

Reply

Tags
hexa, snappy hex mesh


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
Difference in Visualization of q criterion in tetra and hexa mesh raunakjung Visualization & Post-Processing 3 January 10, 2021 06:15
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 06:38
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops avinashjagdale OpenFOAM Meshing & Mesh Conversion 53 March 8, 2019 10:42
[snappyHexMesh] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! divergence OpenFOAM Meshing & Mesh Conversion 0 January 23, 2019 05:17
[snappyHexMesh] snappyHexMesh & Mesh around a missile sasanghomi OpenFOAM Meshing & Mesh Conversion 2 October 15, 2014 20:54


All times are GMT -4. The time now is 10:53.