As Geordie suggested, you still have to split the file, i.e.  a file per 
physical surface you want in your mesh.
The GUI will keep on showing the whole mesh but what you get in the msh file is 
just the elements corresponding to the physical regions.

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 11:38, Prasant K Samantaray(Tikina) wrote:

> Hi Dr Ruth,
> It is still meshing all the geometry at once. Could you please point out the 
> error?
> Best regards,
> Samantaray
> 
>  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};
> 
> 
> 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}]} ;
> 
> 
> 
> 
> 
> From: Ruth V. Sabariego <[email protected]>
> To: Prasant K Samantaray(Tikina) <[email protected]> 
> Cc: Geordie McBain <[email protected]>; "[email protected]" <[email protected]> 
> Sent: Friday, 2 December 2011 3:28 PM
> Subject: Re: [Gmsh] meshing cylinder separately
> 
> 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 <[email protected]>
>> To: Prasant K Samantaray(Tikina) <[email protected]>
>> Cc: "[email protected]" <[email protected]>
>> Sent: Friday, 2 December 2011 3:07 PM
>> Subject: Re: [Gmsh] meshing cylinder separately
>> 
>> 2011/12/2 Prasant K Samantaray(Tikina) <[email protected]>:
>>  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
>> [email protected]
>> http://www.geuz.org/mailman/listinfo/gmsh
> 
> 
> 

_______________________________________________
gmsh mailing list
[email protected]
http://www.geuz.org/mailman/listinfo/gmsh

Reply via email to