[Gmsh] meshing cylinder separately
Ruth V. Sabariego
r.sabariego at ulg.ac.be
Fri Dec 2 10:58:44 CET 2011
You can recover the surfaces as:
vol[]=Extrude {0,0,1} {
Surface{6};
};
sizeVol = #vol[] ;
Physical Surface(1) = {6} ;
Physical Surface(2) = {vol[0]} ;
Physical Surface(3) = {vol[{2:sizeVol-1}]} ;
HTH,
Ruth
--
Dr. Ir. Ruth V. Sabariego
University of Liege, Electrical Engineering & Computer Science,
Applied & Computational Electromagnetics (ACE),
phone: +32-4-3663737 - fax: +32-4-3662910 - http://ace.montefiore.ulg.ac.be/
On 02 Dec 2011, at 10:49, Prasant K Samantaray(Tikina) wrote:
> Hi Geordie,
> I can not define the Physical Surface separately with this geometry. Could you please give some hint.
> Thanks for the reply.
> Regards,
> Samantaray
>
>
>
> ----- Original Message -----
> From: Geordie McBain <gdmcbain at freeshell.org>
> To: Prasant K Samantaray(Tikina) <prasantud at yahoo.com>
> Cc: "gmsh at geuz.org" <gmsh at geuz.org>
> Sent: Friday, 2 December 2011 3:07 PM
> Subject: Re: [Gmsh] meshing cylinder separately
>
> 2011/12/2 Prasant K Samantaray(Tikina) <prasantud at yahoo.com>:
> Hi I am trying to mesh a simple cylinder with its cylindrical surface, top surface and bottom surface separately.
> 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.
>
> Point(1) = {0,0,0,0.5};
> Point(2) = {1,0,0,0.5};
> Point(3) = {0,1,0,0.5};
> Point(4) = {-1,0,0,0.5};
> Point(5) = {0,-1,0,0.5};
>
> Circle(1) = {2,1,3};
> Circle(2) = {3,1,4};
> Circle(3) = {4,1,5};
> Circle(4) = {5,1,2};
>
> Line Loop(5) = {1,2,3,4};
> Plane Surface(6) = {5};
>
> Extrude {0,0,1} {
> Surface{6};
> }
>
> Hello. An easy way is to have three separate copies of the .geo file
> and in each declare just one of the surfaces a Physical Surface. To
> avoid duplication, you may Include the common code from a fourth
> separate file.
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20111202/fd07abb7/attachment.html>