<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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 apple-content-edited="true">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-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-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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 href="http://ace.montefiore.ulg.ac.be/">http://ace.montefiore.ulg.ac.be/</a></div><br class="Apple-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="Apple-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 href="mailto:gdmcbain@freeshell.org">gdmcbain@freeshell.org</a>><br>To: Prasant K Samantaray(Tikina) <<a href="mailto:prasantud@yahoo.com">prasantud@yahoo.com</a>><br>Cc: "<a href="mailto:gmsh@geuz.org">gmsh@geuz.org</a>" <<a 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 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 href="mailto:gmsh@geuz.org">gmsh@geuz.org</a><br>http://www.geuz.org/mailman/listinfo/gmsh<br></div></blockquote></div><br></body></html>