<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Umut,<br>
<br>
For a surface, meshed with triangles:<br>
If you extrude without Recombine, you get tetrahedra.<br>
If you  extrude with Recombine, you get prisms.<br>
<br>
For a surface, meshed with quadrangles (use first lines of your code):<br>
If you extrude without Recombine, no 3D mesh is generated. A little
bug? We'll have a look.<br>
If you  extrude with Recombine, you get hexaedra.<br>
<br>
Ruth<br>
<br>
Umut Tabak wrote:
<blockquote cite="mid:4918CAC5.30409@tudelft.nl" type="cite">Dear all,
  <br>
  <br>
In a hexahedral mesh generation, I can do the tetrahedral meshing
without problems with the below piece of code. But uncommenting the
commented lines results in this problem : My surface is extruded,
however the surfaces in the direction of the extrusion are meshed with
quadrangles and the others with triangles and (I guess) as a result, I
can not get a hexahedral mesh for a simple box geometry.  I am sure I
am missing sth simple from the manual and your help is appreciated.
  <br>
  <br>
P.S. I think I can define 8 corners of my box, define lines and
surfaces with transfinite to end up with the hexa mesh. But I wondered
the correct usage of extruded mesh option if I understood correctly
from the manual with the code below(lines uncommented).
  <br>
  <br>
Thanks for the replies in advance. Attached also the include file.
  <br>
  <br>
Umut
  <br>
  <br>
   11 Include "truck3d_1r.geo";
  <br>
   12
  <br>
   13 // Transfinite Line{1} = 21 ;
  <br>
   14 // Transfinite Line{2,4} = 11;
  <br>
   15 // Transfinite Line{3} = 21;
  <br>
   16 // Transfinite Surface{10} = {1,2,3,4};
  <br>
   17 // Recombine Surface { 10 };
  <br>
   18 // Physical Surface(4) = {10};
  <br>
   19 // vol[]=Extrude {0.0,0.0,0.5}{  
Surface{10};Layers{10};Recombine; };
  <br>
   20 // vol[]=Extrude {0.0,0.0,0.5}{ Surface{10};Layers{10}; };
  <br>
   21 vol[]=Extrude {0.0,0.0,0.5}{ Surface{10}; Layers{5}; };
  <br>
   22 //Transfinite Volume {11} = vol[1] ;
  <br>
   23 Physical Volume (11) = { vol[1] } ;
  <br>
   24 // binary format
  <br>
   25 // Mesh.MshBinary = 1 ;  // GMSH 2.2.4
  <br>
   26 // Mesh.Binary = 1 ;         // GMSH 2.2.5 changed to this
  <br>
   27 // color
  <br>
   28 // Mesh.Color.Quadrangles ;
  <br>
   29 // Nastran bdf format : option value is 31 for BDF output
  <br>
   30 // Mesh.Format = 31 ;
  <br>
  <br>
  <br>
  <pre wrap=""><pre wrap="">
<hr size="4" width="90%">
_______________________________________________
gmsh mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gmsh@geuz.org">gmsh@geuz.org</a>
<a class="moz-txt-link-freetext" href="http://www.geuz.org/mailman/listinfo/gmsh">http://www.geuz.org/mailman/listinfo/gmsh</a>
</pre></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Dr. Ir. Ruth V. Sabariego
University of Liege, Institut Montefiore,
Dept. of Electrical Engineering & Computer Science, 
Applied & Computational Electromagnetics (ACE),
Sart Tilman Campus, Grande Traverse, 10 (B28), B-4000 LIEGE, Belgium
phone: +32-4-3663737 -- fax: +32-4-3662910 -- <a class="moz-txt-link-freetext" href="http://elap.montefiore.ulg.ac.be/">http://elap.montefiore.ulg.ac.be/</a></pre>
</body>
</html>