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

[Gmsh] Create Hex Mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 3, 2008, 10:37
Default Create Hex Mesh
  #1
Member
 
fabrizio
Join Date: Mar 2009
Posts: 33
Rep Power: 17
fabrizio is on a distinguished road
Hi dear users, I'm an engineer student in Milan, Italy. I use Calculix to build Fem analysis importing OpenFoam results. To complete this import I need a hex mesh; how can I create a hex mesh with Gmsh? I've read a lot of tutorial, but are all concerning Gmsh generation of tet mesh.
Can you help me?

King regards

Fabrizio
fabrizio is offline   Reply With Quote

Old   November 3, 2008, 13:30
Default Hello Fabrizio, As far as I
  #2
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hello Fabrizio,

As far as I am aware, Gmsh cannot create a Hex mesh of a complex 3D geometry.

For most practical cases I have come across, Gmsh (and all other open source meshing software I have tried) only generates pure tetrahedral meshes.

Philippose
philippose is offline   Reply With Quote

Old   November 3, 2008, 15:33
Default Hi thank you for your reply. M
  #3
Member
 
fabrizio
Join Date: Mar 2009
Posts: 33
Rep Power: 17
fabrizio is on a distinguished road
Hi thank you for your reply. My geometry is quite simple. Can you tell me how use gmsh to generate the mesh?

Thank you

Fabrizio
fabrizio is offline   Reply With Quote

Old   November 3, 2008, 16:18
Default Hello again, Well.... I cou
  #4
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hello again,

Well.... I could probably help you out if I got to see the geometry :-)! As in... for example...

1. What format is your geometry in?
2. Have you been able to load it into GMSH yet?
3. What format do you want the output in... and does GMSH support this format?
4. How does the geometry itself look?
5. etc...etc...

Quoting from the GMSH Website:
"Gmsh's mesh module regroups several 1D, 2D and 3D mesh algorithms, all producing grids conforming in the sense of finite elements (see section 1.2 Mesh: finite element mesh generation).

The 2D unstructured algorithms generate triangles or both triangles and quadrangles (when Recombine Surface is used: see 4.2.3 Miscellaneous). The 3D unstructured algorithms only generate tetrahedra.

The 2D structured algorithms (transfinite and extrusion) generate triangles by default, but quadrangles can be obtained by using the Recombine commands (see 4.2.2 Structured grids, and 4.2.3 Miscellaneous). The 3D structured algorithms generate tetrahedra, hexahedra, prisms and pyramids, depending on the type of the surface meshes they are based on. "


So, if you need to create unstructured 3D meshes, then tetrahedral meshes are the only option....

Hope this helps..

Philippose
philippose is offline   Reply With Quote

Old   November 5, 2008, 10:30
Default Hi Philippose thank for help.
  #5
Member
 
fabrizio
Join Date: Mar 2009
Posts: 33
Rep Power: 17
fabrizio is on a distinguished road
Hi Philippose thank for help. I've decided to try another way to mesh my model, I think that SnappyHexMesh utility could be great for my pourpose.

Thank you again

Fabrizio
fabrizio is offline   Reply With Quote

Old   November 9, 2008, 12:17
Default Hi fabrizio, I'm aso a enginee
  #6
Member
 
Marco Moscaritolo
Join Date: Mar 2009
Location: Bergamo, Italy
Posts: 33
Rep Power: 17
mavimo is on a distinguished road
Hi fabrizio, I'm aso a engineer student in Milan

For snappyHexMesh I'm writing tutorial, you can find first step on http://www.cfditalia.org [IT].

If you have sono question or can help me to write it please contact me
mavimo is offline   Reply With Quote

Old   November 9, 2008, 13:20
Default Hi Marco thanks for your reply
  #7
Member
 
fabrizio
Join Date: Mar 2009
Posts: 33
Rep Power: 17
fabrizio is on a distinguished road
Hi Marco thanks for your reply. I have some problems in writing the snappyHexMeshDict file, the OF tutorial about this topic is not very clear in my opinion. I've read the tutorial in the site you suggested, but it's not about snappyHexMeshDict file, I've alredy created the base mesh with blockMesh utility; I'll be very interested in the second part of the tutorial when it will be on line. If you want we can meet in university, so we can speak about our OF works.

Thank you again

Fabrizio
fabrizio is offline   Reply With Quote

Old   November 10, 2008, 13:59
Default hi fabrizio, contact me by mai
  #8
Member
 
Marco Moscaritolo
Join Date: Mar 2009
Location: Bergamo, Italy
Posts: 33
Rep Power: 17
mavimo is on a distinguished road
hi fabrizio, contact me by mail (find it on my profile)
mavimo is offline   Reply With Quote

Old   November 12, 2008, 11:48
Default dear all, i have the problem
  #9
erik023
Guest
 
Posts: n/a
dear all,
i have the problem of getting very poor results when using a finer (0.1-0.3 m) background (blockmesh) for snappy. it does not seem to perform the refine surface. i get muche better results for the surface when using a very coarse background mesh (0.5-1m)

why is it behaving this way, there is now error when i run checkmesh?

thanks erik
  Reply With Quote

Old   March 22, 2010, 09:09
Default
  #10
Senior Member
 
Claus Meister
Join Date: Aug 2009
Location: Wiesbaden, Germany
Posts: 241
Rep Power: 17
idrama is on a distinguished road
Ciao mavimo,

I tried to reach your page which did you announced. But i could not get on it. Is it down? However, proparly you are very involved into snappyhexmesh. Therefore , I want to ask you the question how to avoid polyheder. Because I need a mesh consisting purely of hexhedron. How can I make it happen?

Cheers
idrama is offline   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
[snappyHexMesh] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! divergence OpenFOAM Meshing & Mesh Conversion 0 January 23, 2019 04:17
[blockMesh] BlockMesh number internal faces and boundary ynos OpenFOAM Meshing & Mesh Conversion 6 December 13, 2011 05:36
[blockMesh] Blockmesh error - 2D scramjet ishaninair OpenFOAM Meshing & Mesh Conversion 7 March 18, 2011 00:14
Where's the singularity/mesh flaw? audrich FLUENT 3 August 4, 2009 01:07
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 18:10


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