[Gmsh] Question on GMSH

Christophe Geuzaine geuzaine at acm.caltech.edu
Tue Nov 16 16:19:51 CET 2004


Timothée SCHLATTER wrote:
> hello,
> I'm working on the 1.56 version of GMSH and I want to do a mesh in 2D.
> I would like to know if it is possible to define a non plane surface 
> like in this example :
> 
> 
> 
> Point(1)={1,3,0,1};
> Point(2)={1,3,2,1};
> Point(3)={3,1,2,1};
> Point(4)={3,1,0,1};
> Point(5)={6,4,0,1};
> Point(6)={6,4,2,1};
> Point(7)={9,2,2,1};
> Point(8)={9,2,0,1};
> 
> Line(1)={1,2};
> Line(2)={2,3};
> 
> Line(4)={4,1};
> Line(5)={4,5};
> 
> Line(7)={6,3};
> Line(8)={6,7};
> Line(9)={7,8};
> Line(10)={8,5};
> 

Yes. You just need to define the surface with 3 patches, i.e., add the
following commands:

Line(11) = {4,3};
Line(12) = {5,6};
Line Loop(13) = {10,12,8,9};
Plane Surface(14) = {13};
Line Loop(15) = {7,-11,5,12};
Plane Surface(16) = {15};
Line Loop(17) = {4,1,2,-11};
Plane Surface(18) = {17};

Best,

Christophe


> 
> 
> 
> Line Loop(1)={1,2,-7,8,9,10,-5,4};
> 
> I want to mesh this surface with respect of the relief defined.
> 
> Best regards.
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
> 
> 


-- 
Christophe Geuzaine
Applied and Computational Mathematics, Caltech
geuzaine at acm.caltech.edu - http://geuz.org