[Gmsh] meshing cylinder separately
Prasant K Samantaray(Tikina)
prasantud at yahoo.com
Fri Dec 2 10:49:07 CET 2011
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.