Concentric cylinders using cylinder command
Dear Gmsh team,
I am new to gmsh 3D and I came across this useful command cylinder which uses OpenCascade. I want to create a inner and a outer cylinder using this function
Mesh.Algorithm3D = 4; // 3D mesh algorithm (1=Delaunay, 4=Frontal, 5=Frontal Delaunay, 6=Frontal Hex, 7=MMG3D, 9=R-tree)
SetFactory("OpenCASCADE");
Cylinder(1) = {0.25, 0.25, 0.25, 0, 0, 1, 1, 2*3.1428}; //outer cylinder
Cylinder(2) = {0.25, 0.25, 0.25, 0, 0, 1, 0.2, 2*3.1428}; // inner cylinder
Physical Volume(600) = {1}; // cyl1
Physical Volume(605) = {2}; // cyl2
Mesh.CharacteristicLengthMax = 0.1;
However, although I could identify the regions later using above short code, but if I view the centeroid of each element with physical number 600 (blue) and physical number 605 (red), there is no concentric geometry. Instead both occupies same volume as seen below. Am I doing silly mistake ? I am sorry as I am new to gmsh, please let me know how do I get two seperate volumes in the above .geo code with different region markers ?