[Gmsh] Extrude for unstructured mesh

Geordie McBain gdmcbain at freeshell.org
Fri Feb 26 03:47:15 CET 2016


2016-02-26 1:57 GMT+11:00 Stephan Gekle <stephan.gekle at uni-bayreuth.de>:
> I need to mesh a 2D surface which has been created by extrusion (see code
> below). However, I need all surfaces to be meshed with triangles since I am
> using it with a self-made program which only handles triangles.
> How can I make the extruded be meshed with unstructured triangles and not
> with a structured mesh as is done when I run the code below?

Just delete the Recombine command from the Extrude Surface line.

> Extrude Surface { 2, {1,0,0}, {0,0,0}, Pi}  {
>    Layers{20}; Recombine;
> };

Extrude Surface { 2, {1,0,0}, {0,0,0}, Pi}  {
   Layers{20};
};

See http://gmsh.info/doc/texinfo/gmsh.html#Structured-grids .



More information about the gmsh mailing list