[Gmsh] transfinite options

Christophe Geuzaine christophe.geuzaine at case.edu
Mon Feb 20 22:43:04 CET 2006


Luc Bordier wrote:
> Hello,
> 
> i try to use transfinite options to have a structured mesh.
> to practice i try to mesh a simple box, but didn't succeed. The 1d and 
> 2d meshes are ok but when i ran the 3d meshing algorithm it simply ended 
> ok but no 3d elements are visible in the statistics (see snapshot).
> 
> So i tried to check with the t6.geo tutorial and there everything was 
> ok, i have the hexa and prisms elements !!
> 
> i surely missed something or don't understand the way to do it properly.

Extrude already creates the volume, so in your script you end up with 
two overlapping volumes. Here is a slightly modified version with a fix 
(cube.geo), as well as a shorter version that uses the "Layers" option 
in Extrude (cube2.geo).



> 
> can you help me please ..??
> 
> 
> ------------------------------------------------------------------------
> 
> // Gmsh project created on Mon Feb 20 21:46:30 2006
> Point(1) = {0,0,0,0.1};
> Point(2) = {0,10,0,0.1};
> Point(3) = {5,10,0,0.1};
> Point(4) = {5,0,0,0.1};
> Line(1) = {3,4};
> Line(2) = {1,4};
> Line(3) = {1,2};
> Line(4) = {2,3};
> Line Loop(5) = {1,-2,3,4};
> Ruled Surface(6) = {5};
> Extrude {0,0,3} {
>   Surface{6};
> }
> Surface Loop(29) = {6,-15,-19,-23,-27,-28};
> Volume(30) = {29};
> 
> 
> Transfinite Line {10,3,8,1} = 30 Using Progression 1;
> Transfinite Line {9,2,11,4} = 10 Using Progression 1;
> Transfinite Line {13,22,18,14} = 8 Using Progression 1;
> 
> 
> Transfinite Surface {23} = {1,2,14,10};
> Transfinite Surface {15} = {4,3,5,6};
> Transfinite Surface {28} = {6,5,14,10};
> Transfinite Surface {6} = {4,3,2,1};
> Transfinite Surface {19} = {4,1,10,6};
> Transfinite Surface {27} = {3,2,14,5};
> 
> Transfinite Volume{30} = {5,6,10,14,2,3,4,1};
> 
> Recombine Surface {6,15,27,23,28,19};
> 
> Physical Surface(31) = {28,19,15,27,23,6};
> Physical Volume(50) ={30};
> 
> 
> ------------------------------------------------------------------------
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh


-- 
Christophe Geuzaine
Assistant Professor, Case Western Reserve University, Mathematics
http://www.case.edu/artsci/math/geuzaine
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cube.geo
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20060220/d40602ba/attachment.geo>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cube2.geo
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20060220/d40602ba/attachment-0001.geo>