[Gmsh] error: Cannot bind multiple faces to single tag

Sathyanarayan Rao sathyanarayan.rao at uclouvain.be
Mon Feb 12 20:16:13 CET 2018


Dear Gmsh team,


I am following the same syntax as https://gitlab.onelab.info/gmsh/gmsh/blob/master/demos/boolean/boolean.geo


for generating boolean unioun of surfaces. But however it gives me error as in the subject line. Can you please

 help me to correctly combine surfaces 1:3 into one surface by a boolean unioun ?


SetFactory("OpenCASCADE");

// mesh size description

cl_1   =  5;
cl_2   =  0.01;

Geometry.NumSubEdges = 100; // nicer display of curve

var1 = 0.02;
var2 = 0.1;


// Define Segment coordinates

X1 ={0,0.000811,0.001097,0.001233,0.00129,0.001325,0.001335,0.001343,0.001346,0.001347,0.001348,0.001348,0.001349,0.001349,0.001349,0.001349,0.001349,0.001349,0.001349,0.0013487};
Y1 ={0,-2.4,-4,-5.6,-7.2,-8.8,-10.4,-12,-13.6,-15.2,-16.8,-18.4,-20,-21.6,-23.2,-24.8,-26.4,-28,-28.96,-29.118};

Point(newp)  =    {X1[1], Y1[1], 0, cl_2};

// Line 1
Extrude {var1, var1, 0} {
  Point{newp-1};
}

// Line 2
Extrude {var2, var2, 0} {
  Point{newp-1};
}

// Line 3
Extrude {var1, var1, 0} {
  Point{newp-1};
}


// Define 1 segment

l0 = newl;
l  = l0;
nR = #X1[];
p0  =  newp;
p   =  p0;
For i In {0:nR-1}
Point(newp)  =    {X1[i], Y1[i], 0, cl_2};
EndFor
p2  =  newp-1;
Spline(l0)   =  {p:p2};

Wire(l0) = {l0};
Extrude { Line{l0-3}; } Using Wire {l0}   //left
Extrude { Line{l0-2}; } Using Wire {l0}   // center
Extrude { Line{l0-1}; } Using Wire {l0}   // right

BooleanUnion(7) = { Surface {1}; Delete; }{ Surface {2:3}; Delete; };





________________________________
Best Regards,

Sathyanarayan Rao, PhD student
Earth and Life Institute/Environmental Sciences (ELI-e)
Université catholique de Louvain
c.037, Croix du Sud 2, Louvain-la-Neuve, Belgium
Phone: 010473827 ( intercom 73827)

________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20180212/86aa4005/attachment.html>


More information about the gmsh mailing list