[Gmsh] Info on tetrahedra

David Colignon David.Colignon at ulg.ac.be
Thu May 11 08:49:41 CEST 2006


Hi,

If I use your example below in gmsh and I mesh it in 3D, I obtain only tetrahedra, so I don't understand your problem...

Point(1) = {0,0,0,0.1};
Point(2) = {1,0,0,0.1};
Point(3) = {1,1,0,0.1};
Point(4) = {0,1,0,0.1};
Line(1) = {1,2};
Line(2) = {2,3};
Line(3) = {3,4};
Line(4) = {4,1};
Line Loop(5) = {1,2,3,4};
Plane Surface(6) = {5};
Extrude {0,0,0.45} { Surface{6}; }
Physical Surface(101) = {6,19,27,28,15,23};
Physical Volume(100) = {1};

Cheers,

Dave

-- 
David Colignon, Ph.D.
ELAP - Service d'Electricité Appliquée
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
http://elap.montefiore.ulg.ac.be



giuseppe wrote:
> Hi Dr.Geuzaine
> my name is Giuseppe and I'm student of University of Bari and I'm using 
> GMSH for the first time, so this is my question :
> is possible obtain only tetrahedra in mesh generation and not prism? and 
> if yes what?
> My case is a simple cube which I'll use with OpenFOAM:
> 
> Point(1) = *{*0,0,0,0.1*}*;
> Point(2) = *{*1,0,0,0.1*}*;
> Point(3) = *{*1,1,0,0.1*}*;
> Point(4) = *{*0,1,0,0.1*}*;
> Line(1) = *{*1,2*}*;
> Line(2) = *{*2,3*}*;
> Line(3) = *{*3,4*}*;
> Line(4) = *{*4,1*}*;
> Line Loop(5) = *{*1,2,3,4*}*;
> Ruled Surface(6) = *{*5*}*;
>   Extrude *{*0,0,0.45*}* *{*
>   Surface*{*6*}*;
> *}*
> 
> 
> Physical Surface(101) = *{*6,19,27,28,15,23*}*;
> Physical Volume(100) = *{*1*}*;
> 
> Thanks and sorry if my question is stupid.
> Giuseppe
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh