[Gmsh] Extrude 2D surface by rotating to create mesh - Openflower crashes

David Colignon David.Colignon at ulg.ac.be
Tue Aug 12 15:51:18 CEST 2008


Hi Tim,

the Extrude command you try to use is deprecated, as indicated by the error message you mention:

line 34 : Explicit region numbers in layers are deprecated

 From the documentation:

http://geuz.org/gmsh/doc/texinfo/gmsh-full.html#SEC36

...
Please note that, starting with Gmsh 2.0, region numbers cannot be specified explicitly anymore in Layers commands. Instead, as with all 
other geometry commands, you must use the automatically created entity identifier created by the extrusion command. For example, the 
following extrusion command will return the id of the new "top" surface in num[0] and the id of the new volume in num[1]:
  	
num[] = Extrude {0,0,1} { Surface{1}; Layers{10}; };
...


You should modify your .geo file according to the new syntax:

http://geuz.org/gmsh/doc/texinfo/gmsh-full.html#SEC28
and
http://geuz.org/gmsh/doc/texinfo/gmsh-full.html#SEC36

, starting from

Extrude { { 0, 0, 1 }, { 0, 0, 0 }, 2*Pi/3 } { Surface { 12 }; Layers { 6 }; Recombine; }

instead of

Extrude Surface {12, {0,0,1}, {0,0,0}, 2*Pi/3} {Recombine ; Layers { 6, 54, 1 } ; } ;

Cheers,

Dave

-- 
David Colignon, Ph.D.
Collaborateur Logistique du F.R.S.-FNRS (Équipements de Calcul Intensif)
ACE - Applied & Computational Electromagnetics
Institut Montefiore B28
Université de Liège
4000 Liège - BELGIQUE
Tél: +32 (0)4 366 37 32
Fax: +32 (0)4 366 29 10
WWW:    http://hpc.montefiore.ulg.ac.be/
Agenda: http://www.google.com/calendar/embed?src=david.colignon%40gmail.com



Martin, Timothy J wrote:
> Hi!
> 
> I am trying to extrude a surface by rotating it, then process the 3D 
> mesh in openflower.
> Extruding seems to create some errors - line 34 : Explicit region 
> numbers in layers are deprecated
> I can then generate a 3d mesh, but there is one error - Cannot 
> tetrahedralize volume with quadrangles on boundary
> Openflower crashes when trying to run the .flw file.
> 
> I have copied the following code, but don't understand where to get the 
> numbers from in the layers expression - Layers { 6, 54, 1 } could this 
> be the problem?
> 
> Extrude Surface {12, {0,0,1}, {0,0,0}, 2*Pi/3} {
>   Recombine ; Layers { 6, 54, 1 } ;
> } ;
> 
> Extrude Surface {64, {0,0,1}, {0,0,0}, 2*Pi/3} {
>   Recombine ; Layers { 6, 311, 1 } ;
> } ;
> 
> Extrude Surface {116, {0,0,1}, {0,0,0}, 2*Pi/3} {
>   Recombine ; Layers { 6, 568, 1 } ;
> } ;
> 
> 
> .geo .flw and GMSH error log attached.
> <<die2.flw>> <<die2.geo>> <<GMSH error.txt>>
> Many thanks!!
> 
> *Tim Martin*
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh