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

[snappyHexMesh] Pure hex mesh with snappy

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree9Likes
  • 2 Post By arjun
  • 1 Post By tikulju
  • 1 Post By Tobi
  • 1 Post By Tobi
  • 4 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 29, 2009, 03:15
Default Pure hex mesh with snappy
  #1
New Member
 
Alf Melchior
Join Date: Apr 2009
Posts: 2
Rep Power: 0
alf23 is on a distinguished road
Hi!

I am just trying to generate a pure hex mesh with snappyHexMesh without any degenerated elements like wedges or alike. Is this possible at all with snappy? I tried playing around with some of the parameters of meshQualityControls (e.g. minDeterminant) but I get either at least some of the unwanted elements or a staircase like surface.

Thus my question: Is it possible to generate a pure hex mesh - and if it is which parameters to select (for example for the motorbike test case).

Thanks

Alf
alf23 is offline   Reply With Quote

Old   October 1, 2009, 10:20
Default
  #2
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Hi,

You could try IA-FEMesh:
http://www.ccad.uiowa.edu/mimx/IA-FEMesh/

It produces purely hex mesh from STL surfaces.

Philip
bigphil is offline   Reply With Quote

Old   October 6, 2009, 05:19
Default
  #3
New Member
 
Alf Melchior
Join Date: Apr 2009
Posts: 2
Rep Power: 0
alf23 is on a distinguished road
Hi Philip,

thanks for you answer. I tried it and it looks that it works quite well - even if the handling is somewhat unusual.

Alf
alf23 is offline   Reply With Quote

Old   January 21, 2011, 18:08
Default
  #4
Senior Member
 
Awais Ali
Join Date: Feb 2010
Location: Germany
Posts: 128
Rep Power: 17
owayz is on a distinguished road
Send a message via MSN to owayz
Can it generate Unstructured HexaHedral meshes.?
And how would your compare it with snappyHexmesh?
owayz is offline   Reply With Quote

Old   January 24, 2011, 05:07
Default
  #5
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Hi owayz,


All hexahedral meshes are structured.

That's why they are more difficult (and require much more user input) to create than tetrahedral meshes.

If you geometry is simple (or made up of simple shapes) then blockMesh will create a structured hexahedral mesh.

If you have a complex geometry and you have the STL surface file, then IA-FEMESH can create a pure structured hexahedral mesh.
snappyHexMesh can create a structured hexahedral mesh with polyhedral near the surface of the STL.
There are also many other meshing software that can do similar things like gambit, ICEM etc.

There might be some software that can automatically create a structured hexahedral mesh (like moceon cheetah) but I am not familiar with it.


Philip C
bigphil is offline   Reply With Quote

Old   February 14, 2011, 07:03
Default
  #6
Senior Member
 
Awais Ali
Join Date: Feb 2010
Location: Germany
Posts: 128
Rep Power: 17
owayz is on a distinguished road
Send a message via MSN to owayz
Hi Phillip,
Thanks very much for your reply. But I would really like to create a pure Hexahedral mesh with snappyhexmesh. So my question is still the same:
"Can it generate pure hexahedral meshes?" A "yes" or "no" might save me alot of effort and time.
And if it can and someone call tell how is it possible, I mean which parameters to change then it would be like heaven on earth for me.
owayz is offline   Reply With Quote

Old   February 14, 2011, 07:27
Default
  #7
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
owayz,

as far as I know (please correct me if I am wrong), snappyHexMesh cannot create a purely hexahedral mesh that is snapped to a surface,
it always puts general polyhedral cells near the stl surface during the snapping phase.

It can produce a pure hexahedral mesh that has not been snapped to the STL surface but this leaves your mesh surface as castellated so it might not be very useful.

Hopefully this helps,
Philip
bigphil is offline   Reply With Quote

Old   February 14, 2011, 10:06
Default
  #8
Senior Member
 
Awais Ali
Join Date: Feb 2010
Location: Germany
Posts: 128
Rep Power: 17
owayz is on a distinguished road
Send a message via MSN to owayz
Ya Thanks for the reply. I just relized that. Actually i was trying to generate the pure Hexahedralmesh with snappy but it turns out to be that a pure hexahedral mesh won't be snapped. In simple words snappy needs refinement to be done for snapping and during refinement its produces polyhedral cells. So there is no easy way around the solution. But I still would love to hear anyother aproach if there is possible.
Regards
Awais Ali
owayz is offline   Reply With Quote

Old   February 14, 2011, 10:21
Default
  #9
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Awais,

You could check out IA-FEMesh (http://www.ccad.uiowa.edu/mimx/IA-FEMesh/), it can produce pure hexahedral meshes from STL surface, albeit with considerable input from the user.
Also it can be awkward getting the mesh into OpenFOAM, but it is free.

There are commercial meshing programs like ICEM that will produce purely hex meshes.

Philip
bigphil is offline   Reply With Quote

Old   February 14, 2011, 10:36
Default
  #10
Senior Member
 
Awais Ali
Join Date: Feb 2010
Location: Germany
Posts: 128
Rep Power: 17
owayz is on a distinguished road
Send a message via MSN to owayz
Yes ICEM is a good option. But let us try to get things done inexpensively.
Thanks for your advise. I will surely give IA FEMESH a try.

Regards,
Awais Ali
owayz is offline   Reply With Quote

Old   February 14, 2011, 17:16
Default
  #11
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,273
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Quote:
Originally Posted by owayz View Post
Ya Thanks for the reply. I just relized that. Actually i was trying to generate the pure Hexahedralmesh with snappy but it turns out to be that a pure hexahedral mesh won't be snapped. In simple words snappy needs refinement to be done for snapping and during refinement its produces polyhedral cells. So there is no easy way around the solution. But I still would love to hear anyother aproach if there is possible.
Regards
Awais Ali

Owayz , i have this grid generation book:

http://www.amazon.com/Handbook-Grid-.../dp/0849326877

This book says that it is possible to snap to pure hexa meshes. It is difficult but possible. This book explains also how it is done.

As for snappyhexmesh of openFOAM is concerned it may not be possible.

(i am reading that book because i want to write similar grid generator myself and was interested in how to generate high quality meshes.)
owayz and Tobi like this.
arjun is offline   Reply With Quote

Old   January 25, 2013, 02:43
Default
  #12
New Member
 
Timo Kulju
Join Date: Aug 2009
Posts: 22
Rep Power: 16
tikulju is on a distinguished road
Hi!
I did a mesh with purely hex and polyhedral elements by setting minDeterminant to 1. My geometry is a bit simpler than motorbike, but anyway it was possible. Maybe with fine surface refinement, and using OpenFOAM-2.1.x, it could be done.

- Timo
owayz likes this.
tikulju is offline   Reply With Quote

Old   February 14, 2013, 05:52
Default
  #13
Member
 
Ali Khalifesoltani
Join Date: Mar 2011
Location: Esfahan, Iran
Posts: 56
Rep Power: 15
asoltoon is on a distinguished road
Hello everybody,

When I mesh a domain around a geometry like a boat, it seems that the generated mesh consists of tetrahedral elements(not hexahedral). I want to know how to produce a hexahedral mesh?

Any suggestion is welcome.

Regards,
Ali
asoltoon is offline   Reply With Quote

Old   February 14, 2013, 11:15
Default
  #14
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi,

I think you had a look at your mesh with paraview and slices or clips?
You have to use the filters for a correct view of the cells in paraview.

ExtractCellsByRegion

or you can calulate an new array with cooridnateX and have a look at that with treshhold.

Hope that is helpful

Tobi
elham-u likes this.
Tobi is offline   Reply With Quote

Old   February 15, 2013, 07:15
Default
  #15
Member
 
Ali Khalifesoltani
Join Date: Mar 2011
Location: Esfahan, Iran
Posts: 56
Rep Power: 15
asoltoon is on a distinguished road
Dear Tobias,
Thanks for the reply. I used ExtractCellsByRegion filter and attached a screenshot of my mesh in the central region. It looks like that the mesh contains polyhedral elements.(both 5 & 6) Am I wrong?

Cheers,
Ali
Attached Images
File Type: jpg 12.jpg (102.7 KB, 175 views)
asoltoon is offline   Reply With Quote

Old   February 15, 2013, 09:30
Default
  #16
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi,

you have to choose both option on the left side.
After that you have to move your slice to a good position to get a good result.
elham-u likes this.
Tobi is offline   Reply With Quote

Old   February 17, 2013, 13:52
Default
  #17
Member
 
Ali Khalifesoltani
Join Date: Mar 2011
Location: Esfahan, Iran
Posts: 56
Rep Power: 15
asoltoon is on a distinguished road
Hi again,
I used ExtractCellsByRegion filter, but still the cells looks like both 5 & 6 hedrals. I would be grateful if you help me on this!

regards
asoltoon is offline   Reply With Quote

Old   February 17, 2013, 14:24
Default
  #18
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

@Ali: When you run paraFoam, you're shown the "Object Inspector", in the lower left part of the ParaView window, which provides one of the following options:
  • If you are using the official plug-in, namely using the file extension ".OpenFOAM", then turn on the "Use VTKPolyhedron" option.
  • If you are using the internal plug-in, namely using the file extension ".foam", then turn off the "Decompose polyhedra" option.
Best regards,
Bruno
Tobi, GM_XIII, elham-u and 1 others like this.
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
snappyhexmesh hex

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[blockMesh] Openfoam: Meshing, where do my defaultFaces come from syntex OpenFOAM Meshing & Mesh Conversion 19 December 10, 2018 07:21
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 09:38
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11
[snappyHexMesh] snappy hex mesh error CFT OpenFOAM Meshing & Mesh Conversion 1 October 9, 2009 07:32
How to control Minximum mesh space? hung FLUENT 7 April 18, 2005 09:38


All times are GMT -4. The time now is 07:50.