<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi Dr Ruth,</span></div><div><span>It is still meshing all the geometry at once. Could you please point out the error?</span></div><div><span>Best regards,</span></div><div><span>Samantaray</span></div><div><br></div> Point(1) = {0,0,0,0.5};<br> Point(2) = {1,0,0,0.5};<br> Point(3) = {0,1,0,0.5};<br> Point(4) = {-1,0,0,0.5};<br> Point(5) = {0,-1,0,0.5};<br><br> Circle(1) = {2,1,3};<br> Circle(2) = {3,1,4};<br> Circle(3) = {4,1,5};<br> Circle(4) = {5,1,2};<br><br> Line Loop(5) = {1,2,3,4};<br> Plane Surface(6) = {5};<br><br><br><div>vol[]=Extrude {0,0,1} {</div><div>  Surface{6};</div><div>};</div><div>sizeVol = #vol[] ;</div><div>Physical Surface(1) = {6} ;</div><div>Physical Surface(2) = {vol[0]} ;</div><div>Physical Surface(3) = {vol[{2:sizeVol-1}]}
 ;</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div>  <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight: bold;">From:</span></b> Ruth V. Sabariego <r.sabariego@ulg.ac.be><br> <b><span style="font-weight: bold;">To:</span></b> Prasant K Samantaray(Tikina) <prasantud@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> Geordie McBain <gdmcbain@freeshell.org>; "gmsh@geuz.org" <gmsh@geuz.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, 2 December 2011 3:28 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Gmsh] meshing cylinder separately<br> </font> <br><meta http-equiv="x-dns-prefetch-control" content="off"><div id="yiv943001543"><div><div>You can recover the surfaces
 as:</div><div><br></div><div>vol[]=Extrude {0,0,1} {</div><div>  Surface{6};</div><div>};</div><div>sizeVol = #vol[] ;</div><div>Physical Surface(1) = {6} ;</div><div>Physical Surface(2) = {vol[0]} ;</div><div>Physical Surface(3) = {vol[{2:sizeVol-1}]} ;</div><div><br></div><div>HTH,</div><div>Ruth</div><div><br></div><div>
<div style="word-wrap: break-word;"><span class="yiv943001543Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><div style="word-wrap: break-word;"><div>--</div><div>Dr. Ir. Ruth V. Sabariego</div><div>University of Liege, Electrical Engineering & Computer Science, </div><div>Applied & Computational Electromagnetics (ACE),</div><div>phone: +32-4-3663737 - fax: +32-4-3662910 - <a rel="nofollow" target="_blank" href="http://ace.montefiore.ulg.ac.be/">http://ace.montefiore.ulg.ac.be/</a></div><br class="yiv943001543Apple-interchange-newline"><br></div></span></div>
</div>
<br><div><div>On 02 Dec 2011, at 10:49, Prasant K Samantaray(Tikina) wrote:</div><br class="yiv943001543Apple-interchange-newline"><blockquote type="cite"><div>Hi Geordie,<br>I can not define the Physical Surface separately with this geometry. Could you please give some hint.<br>Thanks for the reply.<br>Regards,<br>Samantaray<br><br><br><br>----- Original Message -----<br>From: Geordie McBain <<a rel="nofollow" ymailto="mailto:gdmcbain@freeshell.org" target="_blank" href="mailto:gdmcbain@freeshell.org">gdmcbain@freeshell.org</a>><br>To: Prasant K Samantaray(Tikina) <<a rel="nofollow" ymailto="mailto:prasantud@yahoo.com" target="_blank" href="mailto:prasantud@yahoo.com">prasantud@yahoo.com</a>><br>Cc: "<a rel="nofollow" ymailto="mailto:gmsh@geuz.org" target="_blank" href="mailto:gmsh@geuz.org">gmsh@geuz.org</a>" <<a rel="nofollow" ymailto="mailto:gmsh@geuz.org" target="_blank" href="mailto:gmsh@geuz.org">gmsh@geuz.org</a>><br>Sent:
 Friday, 2 December 2011 3:07 PM<br>Subject: Re: [Gmsh] meshing cylinder separately<br><br>2011/12/2 Prasant K Samantaray(Tikina) <<a rel="nofollow" ymailto="mailto:prasantud@yahoo.com" target="_blank" href="mailto:prasantud@yahoo.com">prasantud@yahoo.com</a>>:<br> Hi I am trying to mesh a simple cylinder with its cylindrical surface, top surface and bottom surface separately.<br> I have attached the geometry file below. I request your help in proceeding further. because while clicking 2D mesh, it meshes all the three surfaces at a time. I want to save the mesh file of each surface separately.<br><br> Point(1) = {0,0,0,0.5};<br> Point(2) = {1,0,0,0.5};<br> Point(3) = {0,1,0,0.5};<br> Point(4) = {-1,0,0,0.5};<br> Point(5) = {0,-1,0,0.5};<br><br> Circle(1) = {2,1,3};<br> Circle(2) = {3,1,4};<br> Circle(3) = {4,1,5};<br> Circle(4) = {5,1,2};<br><br> Line Loop(5) = {1,2,3,4};<br> Plane
 Surface(6) = {5};<br><br> Extrude {0,0,1} {<br>   Surface{6};<br> }<br><br>Hello.  An easy way is to have three separate copies of the .geo file<br>and in each declare just one of the surfaces a Physical Surface.  To<br>avoid duplication, you may Include the common code from a fourth<br>separate file.<br><br><br>_______________________________________________<br>gmsh mailing list<br><a rel="nofollow" ymailto="mailto:gmsh@geuz.org" target="_blank" href="mailto:gmsh@geuz.org">gmsh@geuz.org</a><br>http://www.geuz.org/mailman/listinfo/gmsh<br></div></blockquote></div><br></div></div><meta http-equiv="x-dns-prefetch-control" content="on"><br><br> </div> </div>  </div></body></html>