<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Hello,<br></div><div><br></div><div>I am trying to get a uniform element size throughout the geometry. I have tried giving a constant value to element size and mesh "mesh size fields" but they do not work i.e. I get a uniform mesh at the boundary but inside the geometry, the elements are coarse.<br></div><div><br></div><div>I have also attached an image to clarify the problem.<br></div><div><br></div><div>I have also tried:<br></div><div><pre><span style="font-size: x-small;">-algo front3d -3
or
-algo front3d -3 -optimize_netgen</span></pre></div><div>but these options do not give a uniform mesh inside the geometry.<br></div><div><br></div><div>Is it possible to get a uniform mesh size throughout the geometry?<br></div><div><br></div><div>My geo file looks like this: <br></div><div><br></div><div>Point(1) ={0.315650761382760, 0.894382926819093, -0.302448630706616, 0.100000000000000};<br>Point(2) ={1.298440033476073, 1.362940371711625, 0.283099223758606, 0.100000000000000};<br>Point(3) ={1.298440033476073, 0.894382926819093, -0.262655810088256, 0.100000000000000};<br>Point(4) ={0.735232865266709, 1.411647357936784, 0.283099223758606, 0.100000000000000};<br>Point(5) ={0.340187717154710, 1.411647357936784, 0.311264675576753, 0.100000000000000};<br>Point(6) ={0.298440033476073, 0.457103015216639, 0.283099223758606, 0.100000000000000};<br>Point(7) ={0.903394885364074, 0.894382926819093, 0.697551369293384, 0.100000000000000};<br>Point(8) ={1.298440033476073, 0.894382926819093, 0.669385917475237, 0.100000000000000};<br>Point(9) ={0.340187717154710, 0.848927269539238, 0.697551369293384, 0.100000000000000};<br>Point(10) ={0.340187717154709, 0.411647357936784, 0.243306403140246, 0.100000000000000};<br>Point(11) ={0.735232865266709, 0.411647357936784, 0.283099223758606, 0.100000000000000};<br>Point(12) ={1.298440033476073, 0.457103015216640, 0.283099223758606, 0.100000000000000};<br>Point(13) ={0.903394885364074, 0.894382926819093, -0.302448630706616, 0.100000000000000};<br>Point(14) ={0.298440033476073, 0.894382926819093, -0.262655810088257, 0.100000000000000};<br>Point(15) ={0.322976989248022, 1.411647357936784, 0.283099223758606, 0.100000000000000};<br>Point(16) ={0.340187717154710, 0.943089913044252, 0.697551369293384, 0.100000000000000};<br>Point(17) ={0.315650761382760, 0.894382926819093, 0.697551369293384, 0.100000000000000};<br>Point(18) ={0.340187717154709, 0.848927269539238, -0.302448630706616, 0.100000000000000};<br>Point(19) ={0.322976989248022, 0.411647357936784, 0.283099223758606, 0.100000000000000};<br>Point(20) ={0.340187717154710, 0.411647357936784, 0.311264675576753, 0.100000000000000};<br>Point(21) ={0.340187717154709, 1.411647357936784, 0.243306403140246, 0.100000000000000};<br>Point(22) ={0.340187717154709, 0.943089913044252, -0.302448630706616, 0.100000000000000};<br>Point(23) ={0.298440033476073, 1.362940371711625, 0.283099223758606, 0.100000000000000};<br>Point(24) ={0.298440033476073, 0.894382926819093, 0.669385917475237, 0.100000000000000};<br>Point(25) ={0.340187717154710, -0.056910086955748, 0.697551369293384, 0.100000000000000};<br>Point(26) ={0.903394885364075, -0.105617073180907, 0.697551369293384, 0.100000000000000};<br>Point(27) ={1.322976989248022, 0.411647357936784, 1.283099223758606, 0.100000000000000};<br>Point(28) ={1.298440033476073, 0.362940371711625, 1.283099223758606, 0.100000000000000};<br>Point(29) ={0.340187717154710, 0.411647357936784, 1.243306403140246, 0.100000000000000};<br>Point(30) ={1.298440033476073, 0.457103015216639, 1.283099223758606, 0.100000000000000};<br>Point(31) ={1.340187717154710, -0.056910086955748, 0.697551369293384, 0.100000000000000};<br>Point(32) ={1.315650761382761, 0.894382926819093, 0.697551369293384, 0.100000000000000};<br>Point(33) ={0.735232865266709, 0.411647357936784, 1.283099223758606, 0.100000000000000};<br>Point(34) ={1.298440033476073, 0.894382926819093, 0.737344189911744, 0.100000000000000};<br>Point(35) ={1.298440033476074, -0.105617073180907, 0.737344189911744, 0.100000000000000};<br>Point(36) ={1.298440033476073, 0.362940371711625, 0.283099223758606, 0.100000000000000};<br>Point(37) ={1.315650761382761, -0.105617073180907, 0.697551369293384, 0.100000000000000};<br>Point(38) ={1.298440033476073, -0.105617073180907, 0.669385917475237, 0.100000000000000};<br>Point(39) ={1.340187717154710, 0.411647357936784, 1.243306403140246, 0.100000000000000};<br>Point(40) ={1.322976989248022, 0.411647357936784, 0.283099223758606, 0.100000000000000};<br>Point(41) ={1.340187717154710, 0.848927269539238, 0.697551369293384, 0.100000000000000};<br>Point(42) ={1.340187717154710, 0.411647357936784, 0.311264675576753, 0.100000000000000};<br>Line(1) = {2, 3};<br>Line(2) = {3, 12};<br>Line(3) = {12, 8};<br>Line(4) = {8, 2};<br>Line(5) = {2, 4};<br>Line(6) = {4, 21};<br>Line(7) = {21, 22};<br>Line(8) = {22, 13};<br>Line(9) = {13, 3};<br>Line(10) = {8, 7};<br>Line(11) = {7, 16};<br>Line(12) = {16, 5};<br>Line(13) = {5, 4};<br>Line(14) = {13, 18};<br>Line(15) = {18, 10};<br>Line(16) = {10, 11};<br>Line(17) = {11, 12};<br>Line(18) = {5, 15};<br>Line(19) = {15, 21};<br>Line(20) = {16, 17};<br>Line(21) = {17, 24};<br>Line(22) = {24, 23};<br>Line(23) = {23, 15};<br>Line(24) = {6, 24};<br>Line(25) = {17, 9};<br>Line(26) = {9, 20};<br>Line(27) = {20, 19};<br>Line(28) = {19, 6};<br>Line(29) = {6, 14};<br>Line(30) = {14, 23};<br>Line(31) = {19, 10};<br>Line(32) = {18, 1};<br>Line(33) = {1, 14};<br>Line(34) = {7, 9};<br>Line(35) = {11, 20};<br>Line(36) = {22, 1};<br>Line(37) = {26, 35};<br>Line(38) = {35, 37};<br>Line(39) = {37, 38};<br>Line(40) = {38, 26};<br>Line(41) = {26, 25};<br>Line(42) = {25, 29};<br>Line(43) = {29, 33};<br>Line(44) = {33, 28};<br>Line(45) = {28, 35};<br>Line(46) = {38, 36};<br>Line(47) = {36, 11};<br>Line(48) = {20, 25};<br>Line(49) = {27, 30};<br>Line(50) = {30, 34};<br>Line(51) = {34, 32};<br>Line(52) = {32, 41};<br>Line(53) = {41, 39};<br>Line(54) = {39, 27};<br>Line(55) = {27, 28};<br>Line(56) = {33, 30};<br>Line(57) = {39, 31};<br>Line(58) = {31, 37};<br>Line(59) = {36, 40};<br>Line(60) = {40, 12};<br>Line(61) = {40, 42};<br>Line(62) = {42, 41};<br>Line(63) = {32, 8};<br>Line(64) = {34, 7};<br>Line(65) = {9, 29};<br>Line(66) = {31, 42};<br>Line Loop(67) = {1, 2, 3, 4};<br>Plane Surface(1) = {67};<br>Line Loop(68) = {5, 6, 7, 8, 9, -1};<br>Plane Surface(2) = {68};<br>Line Loop(69) = {-4, 10, 11, 12, 13, -5};<br>Plane Surface(3) = {69};<br>Line Loop(70) = {-9, 14, 15, 16, 17, -2};<br>Plane Surface(4) = {70};<br>Line Loop(71) = {-13, 18, 19, -6};<br>Plane Surface(5) = {71};<br>Line Loop(72) = {-12, 20, 21, 22, 23, -18};<br>Plane Surface(6) = {72};<br>Line Loop(73) = {24, -21, 25, 26, 27, 28};<br>Plane Surface(7) = {73};<br>Line Loop(74) = {29, 30, -22, -24};<br>Plane Surface(8) = {74};<br>Line Loop(75) = {-28, 31, -15, 32, 33, -29};<br>Plane Surface(9) = {75};<br>Line Loop(76) = {34, -25, -20, -11};<br>Plane Surface(10) = {76};<br>Line Loop(77) = {-10, -3, -17, 35, -26, -34};<br>Plane Surface(11) = {77};<br>Line Loop(78) = {-31, -27, -35, -16};<br>Plane Surface(12) = {78};<br>Line Loop(79) = {-8, 36, -32, -14};<br>Plane Surface(13) = {79};<br>Line Loop(80) = {-33, -36, -7, -19, -23, -30};<br>Plane Surface(14) = {80};<br>Line Loop(81) = {37, 38, 39, 40};<br>Plane Surface(15) = {81};<br>Line Loop(82) = {41, 42, 43, 44, 45, -37};<br>Plane Surface(16) = {82};<br>Line Loop(83) = {-40, 46, 47, 35, 48, -41};<br>Plane Surface(17) = {83};<br>Line Loop(84) = {49, 50, 51, 52, 53, 54};<br>Plane Surface(18) = {84};<br>Line Loop(85) = {55, -44, 56, -49};<br>Plane Surface(19) = {85};<br>Line Loop(86) = {-54, 57, 58, -38, -45, -55};<br>Plane Surface(20) = {86};<br>Line Loop(87) = {-47, 59, 60, -17};<br>Plane Surface(21) = {87};<br>Line Loop(88) = {-3, -60, 61, 62, -52, 63};<br>Plane Surface(22) = {88};<br>Line Loop(89) = {-63, -51, 64, -10};<br>Plane Surface(23) = {89};<br>Line Loop(90) = {-42, -48, -26, 65};<br>Plane Surface(24) = {90};<br>Line Loop(91) = {-65, -34, -64, -50, -56, -43};<br>Plane Surface(25) = {91};<br>Line Loop(92) = {66, -61, -59, -46, -39, -58};<br>Plane Surface(26) = {92};<br>Line Loop(93) = {-57, -53, -62, -66};<br>Plane Surface(27) = {93};<br>Surface Loop(29) = {1,2,3,4,5,6,7,8,9,10,11,12,13,14};<br>Volume(1)={29};<br>Physical Volume(1)={1};<br>Surface Loop(30) = {15,16,17,18,19,20,11,21,22,23,24,25,26,27};<br>Volume(2)={30};<br>Physical Volume(2)={2};<br>Periodic Surface 1 {1,2,3,4} = 8 {-30,-29,24,22};<br>Periodic Surface 2 {5,6,7,8,9,-1} = 3 {5,-13,-12,-11,-10,4};<br>Periodic Surface 2 {5,6,7,8,9,-1} = 4 {-17,-16,-15,-14,9,2};<br>Periodic Surface 2 {5,6,7,8,9,-1} = 14 {23,19,7,36,33,30};<br>Periodic Surface 3 {-4,10,11,12,13,-5} = 6 {-22,-21,-20,12,18,-23};<br>Periodic Surface 3 {-4,10,11,12,13,-5} = 11 {3,10,34,26,-35,17};<br>Periodic Surface 3 {-4,10,11,12,13,-5} = 17 {-46,40,41,-48,-35,-47};<br>Periodic Surface 4 {-9,14,15,16,17,-2} = 9 {-33,-32,15,-31,28,29};<br>Periodic Surface 4 {-9,14,15,16,17,-2} = 11 {10,34,26,-35,17,3};<br>Periodic Surface 4 {-9,14,15,16,17,-2} = 25 {64,34,65,43,56,50};<br>Periodic Surface 5 {-13,18,19,-6} = 12 {35,27,31,16};<br>Periodic Surface 6 {-12,20,21,22,23,-18} = 7 {-26,-25,21,-24,-28,-27};<br>Periodic Surface 6 {-12,20,21,22,23,-18} = 14 {7,36,33,30,23,19};<br>Periodic Surface 7 {24,-21,25,26,27,28} = 9 {29,-33,-32,15,-31,28};<br>Periodic Surface 7 {24,-21,25,26,27,28} = 11 {3,10,34,26,-35,17};<br>Periodic Surface 7 {24,-21,25,26,27,28} = 22 {3,-63,52,-62,-61,60};<br>Periodic Surface 9 {-28,31,-15,32,33,-29} = 14 {23,19,7,36,33,30};<br>Periodic Surface 10 {34,-25,-20,-11} = 13 {14,32,-36,8};<br>Periodic Surface 11 {-10,-3,-17,35,-26,-34} = 17 {40,-46,-47,-35,-48,41};<br>Periodic Surface 11 {-10,-3,-17,35,-26,-34} = 22 {-63,3,60,-61,-62,52};<br>Periodic Surface 11 {-10,-3,-17,35,-26,-34} = 25 {64,50,56,43,65,34};<br>Periodic Surface 15 {37,38,39,40} = 23 {-64,51,63,10};<br>Periodic Surface 16 {41,42,43,44,45,-37} = 17 {41,-48,-35,-47,-46,40};<br>Periodic Surface 16 {41,42,43,44,45,-37} = 20 {-58,-57,54,55,45,38};<br>Periodic Surface 16 {41,42,43,44,45,-37} = 25 {34,65,43,56,50,64};<br>Periodic Surface 17 {-40,46,47,35,48,-41} = 26 {39,46,59,61,-66,58};<br>Periodic Surface 18 {49,50,51,52,53,54} = 20 {55,45,38,-58,-57,54};<br>Periodic Surface 18 {49,50,51,52,53,54} = 22 {60,3,-63,52,-62,-61};<br>Periodic Surface 18 {49,50,51,52,53,54} = 25 {56,50,64,34,65,43};<br>Periodic Surface 19 {55,-44,56,-49} = 21 {-59,47,17,-60};<br>Periodic Surface 20 {-54,57,58,-38,-45,-55} = 26 {61,-66,58,39,46,59};<br>Periodic Surface 22 {-3,-60,61,62,-52,63} = 26 {46,59,61,-66,58,39};<br>Periodic Surface 24 {-42,-48,-26,65} = 27 {57,66,62,53};<br></div><div><br></div><div><br></div><div>Best regards,<br></div><div>Harris Farooq<br></div></div></body></html>