[Gmsh] Extrude 2D quadrilateral mesh and get hexahedrals
Christophe Geuzaine
cgeuzaine at ulg.ac.be
Wed Apr 9 21:47:29 CEST 2014
On 09 Apr 2014, at 19:44, Matteo Parsani <parsani.matteo at gmail.com> wrote:
> Excuse me, this is the right .geo file
>
> On Wednesday, April 9, 2014 1:42:32 PM UTC-4, Matteo Parsani wrote:
> Dear gmsh users and developers,
> I have mesh a square cylinder in an unstructured way using only quadrilateral elements.
> However, when I extrude it in 3D I get triangle, pyramids and hexahedrals. My goal is to only get hexahedral.
>
> Could you please advice?
>
Your 1D "Transfinite" meshing contraints are not compatible with having a even number of triangles in some surfaces. Two solutions:
- fix it by hand
- or use the "magic" option "Mesh.FlexibleTransfinite = 1;", which will try to do it for you.
Attached is a modified version of your file, which works fine here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: square-cylinder_new.geo
Type: application/octet-stream
Size: 5474 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20140409/71042487/attachment.geo>
-------------- next part --------------
> Please find in attachment the .geo file I am using
>
> Thank you
>
> <square-cylinder.geo>_______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
--
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine