Unstructured hexahedral meshing with Gmsh
Posted: Tue Oct 26, 2010 4:02 am
Hello everybody.
I've been using Gmsh for a while to mesh with hexaedra around an airfoil, using transfinite, extrude and recombine algorithms. I never had a problem, but given the way in which the space discretization is made, I would like to know if I there is some way of creating unstructured hex meshes by means of the same algorithms, in order to lower a bit the element quantity (my PC is not exactly a great number cruncher). Choosing plainly a tet algorithm and then setting "all hexas" in the GUI is not a choice. I tried setting different nodal discretization on two opposing sides of a same transfinite surface but Gmsh says that cannot be done, that dimensions should match. So on that surface the transfinite algorithm is not applied and that part gets an unstructured tet mesh.
If you look at the image attached, volumes 1, 2, 7 and 8 are the ones I want to keep fine meshed for obvious reasons, and the rest should be relatively coarse like volumes 5, 6, 9 and 10 (the last two are the big green and yellow areas). However, due to an apparent limitation of Gmsh's transfinite surface algorithm I cannot reduce the streamwise discretization of volumes 3 and 4. I only need the refinement around the airfoil and its wake, the rest of the flow is little pertubed. I was thinking of superimposing new identical ellipse lines with different discretization over the existing ones between volumes 1&3 and 2&4, so in that way I would get what I want, but the volumes are not going to be connected (except for individual points). Would that be an issue? Are there alternative solutions? I'm providing also the .geo script. Thank you in advance. César
PD: I know the meshing seems odd, I did it on purpose to investigate an alternative way in order to lower the necessary elements.
I've been using Gmsh for a while to mesh with hexaedra around an airfoil, using transfinite, extrude and recombine algorithms. I never had a problem, but given the way in which the space discretization is made, I would like to know if I there is some way of creating unstructured hex meshes by means of the same algorithms, in order to lower a bit the element quantity (my PC is not exactly a great number cruncher). Choosing plainly a tet algorithm and then setting "all hexas" in the GUI is not a choice. I tried setting different nodal discretization on two opposing sides of a same transfinite surface but Gmsh says that cannot be done, that dimensions should match. So on that surface the transfinite algorithm is not applied and that part gets an unstructured tet mesh.
If you look at the image attached, volumes 1, 2, 7 and 8 are the ones I want to keep fine meshed for obvious reasons, and the rest should be relatively coarse like volumes 5, 6, 9 and 10 (the last two are the big green and yellow areas). However, due to an apparent limitation of Gmsh's transfinite surface algorithm I cannot reduce the streamwise discretization of volumes 3 and 4. I only need the refinement around the airfoil and its wake, the rest of the flow is little pertubed. I was thinking of superimposing new identical ellipse lines with different discretization over the existing ones between volumes 1&3 and 2&4, so in that way I would get what I want, but the volumes are not going to be connected (except for individual points). Would that be an issue? Are there alternative solutions? I'm providing also the .geo script. Thank you in advance. César
PD: I know the meshing seems odd, I did it on purpose to investigate an alternative way in order to lower the necessary elements.