[Gmsh] Obtaining same number of nodes on two lines
denis cohen
Denis.cohen at unige.ch
Wed Jun 6 14:00:05 CEST 2012
Hello,
I am trying to get the same number of nodes on two lines that have the
same length and the same element size.
The result, however, is that one line (Line 1) has one less node than Line 5.
How can I get the same number of nodes along each line?
I am using the command:
gmsh mesh2d.geo -1 -2
Thank you
Denis Cohen
here is the .geo file:
ri = 0.25;
ro = 0.45;
hi = 0.0193;
ho = 0.0348;
// pi
pi = Acos(-1);
// pi/6
theta = 0.523598776;
// pi/60
theta1 = 0.0523598776/2.;
// pi/240
theta2 = 0.0130899693899575;
lc = 0.010;
Point(1) = {ri, -theta1, 0.0, lc};
Point(2) = {ro, -theta1, 0.0, lc};
Point(3) = {ro, 0.0, 0.0, lc/4};
Point(4) = {ro, theta2, 0.0, lc/4};
Point(5) = {ro, theta , 0.0, lc};
Point(6) = {ri, theta , 0.0, lc};
Point(7) = {ri, theta2, 0.0, lc/4};
Point(8) = {ri, 0.0, 0.0, lc/4};
Line(1) = {1,2};
Line(2) = {2,3};
Line(3) = {3,4};
Line(4) = {4,5};
Line(5) = {5,6};
Line(6) = {6,7};
Line(7) = {7,8};
Line(8) = {8,1};
Line(9) = {8,3};
Line(10) = {7,4};
Line Loop(9) = {1,2,-9,8};
Line Loop(10) = {9,3,-10,7};
Line Loop(11) = {10,4,5,6};
Plane Surface(1) = {9};
Plane Surface(2) = {10};
Plane Surface(3) = {11};
Physical Line(1) = {1};
Physical Line(2) = {2};
Physical Line(3) = {3};
Physical Line(4) = {4};
Physical Line(5) = {5};
Physical Line(6) = {6};
Physical Line(7) = {7};
Physical Line(8) = {8};
Physical Line(9) = {9};
Physical Line(10) = {10};
Physical Surface(1) = {1,2,3};
//Physical Surface(2) = {2};
//Physical Surface(3) = {3};