[Gmsh] mesh a cylinder with hole

Alberto Griseri griser89 at hotmail.it
Thu May 1 01:42:53 CEST 2014



Dear gmsh developers and users,



I have a problem to mesh a cylinder with a hole. I don't know how to create the
volume. The hole crosses the cylinder on the curved surface as below

////////

Point(1) =
{0, 0, 0, 1.0};

Point(2) = {0, 1, 0, 1.0};

Point(3) = {-1, 0, 0, 1.0};

Circle(1) = {2, 1, 3};



For i In {1: 3 : 1}

Rotate {{0,0,1}, {0, 0, 0}, Pi/2} {

  Duplicata { Line{i}; }

}

EndFor



Extrude {0, 0, -5} {

  Line{1, 2, 3, 4};

}

Extrude {0, 0, 5} {

  Line{1, 2, 3, 4};

}

Point(28) = {0, 4, 0, 1.0};

Point(29) = {0, 4, 5, 1.0};

Point(30) = {-5, 4, 0, 1.0};

Circle(37) = {30, 28, 29};



For i In {37: 39 : 1}

Rotate {{0,1,0}, {0, 0, 0}, Pi/2} {

  Duplicata { Line{i}; }

}

EndFor

Extrude {0, -7, 0} {

  Line{37,38,39,40};

}

/////

Is there someone that could help me?Thanks a lot

Alberto

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20140501/65f66b84/attachment.html>