<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Dear sir,<br>
<br>
I have a problem when I use 'Periodic plane' method to get periodic
meshes. It could not work when I have corresponding lines on the
boundaries and use 'Line In Surface command' (Surface has
intersection with boundary). <br>
My code is attached below, could you please give me some ideas about
how to creat periodic mesh in this case?<br>
<br>
PS: I have tried 'extrude' command, but sometimes it did not work
well.<br>
Thank you very much.<br>
..............................
<div dir="ltr"><wbr>..............................<wbr>..............................<wbr>..............................<wbr>.........<br>
lc1 = 4;<br>
lc2 = 3;<br>
<br>
// We proceed by defining some elementary entities describing a
cube:<br>
<br>
Point(1) = {0,0,0,lc1};<br>
Point(2) = {50,0,0,lc1};<br>
Point(3) = {50,50,0,lc1};<br>
Point(4) = {0,50,0,lc1};<br>
Point(5) = {0,0,50,lc1};<br>
Point(6) = {50,0,50,lc1};<br>
Point(7) = {50,50,50,lc1};<br>
Point(8) = {0,50,50,lc1};<br>
<br>
Point(9)={1.718938e+01,0,0,<wbr>lc2};<br>
Point(10)={4.769079e+01,0,0,<wbr>lc2};<br>
Line(30)={1,9};<br>
Line(31)={9,10};<br>
Line(32)={10,2};<br>
Point(11)={50,3.326221e+01,0,<wbr>lc2};<br>
Point(12)={50,4.166568e+01,0,<wbr>lc2};<br>
Line(33)={2,11};<br>
Line(34)={11,12};<br>
Line(35)={12,3};<br>
Point(13)={4.769079e+01,50,0,<wbr>lc2};<br>
Point(14)={1.718938e+01,50,0,<wbr>lc2};<br>
Line(36)={3,13};<br>
Line(37)={13,14};<br>
Line(38)={14,4};<br>
Point(15)={0,4.166568e+01,0,<wbr>lc2};<br>
Point(16)={0,3.326221e+01,0,<wbr>lc2};<br>
Line(39)={4,15};<br>
Line(40)={15,16};<br>
Line(41)={16,1};<br>
Point(17)={1.718938e+01,0,50,<wbr>lc2};<br>
Point(18)={4.769079e+01,0,50,<wbr>lc2};<br>
Line(42)={5,17};<br>
Line(43)={17,18};<br>
Line(44)={18,6};<br>
Point(19)={50,3.326221e+01,<wbr>50,lc2};<br>
Point(20)={50,4.166568e+01,<wbr>50,lc2};<br>
Line(45)={6,19};<br>
Line(46)={19,20};<br>
Line(47)={20,7};<br>
Point(21)={4.769079e+01,50,<wbr>50,lc2};<br>
Point(22)={1.718938e+01,50,<wbr>50,lc2};<br>
Line(48)={7,21};<br>
Line(49)={21,22};<br>
Line(50)={22,8};<br>
Point(23)={0,4.166568e+01,50,<wbr>lc2};<br>
Point(24)={0,3.326221e+01,50,<wbr>lc2};<br>
Line(51)={8,23};<br>
Line(52)={23,24};<br>
Line(53)={24,5};<br>
Point(25)={0,0,1.923511e+01,<wbr>lc2};<br>
Line(54)={1,25};<br>
Line(55)={25,5};<br>
Point(26)={50,0,1.923511e+01,<wbr>lc2};<br>
Line(56)={2,26};<br>
Line(57)={26,6};<br>
Point(27)={50,50,1.923511e+<wbr>01,lc2};<br>
Line(58)={3,27};<br>
Line(59)={27,7};<br>
Point(28)={0,50,1.923511e+01,<wbr>lc2};<br>
Line(60)={4,28};<br>
Line(61)={28,8};<br>
Line Loop(62)={51,52,53,-55,-54,-<wbr>41,-40,-39,60,61};<br>
Plane Surface(14)={62};<br>
Line Loop(63)={-47,-46,-45,-57,-56,<wbr>33,34,35,58,59};<br>
Plane Surface(16)={63};<br>
Line Loop(64)={51,52,53,42,43,44,<wbr>45,46,47,48,49,50};<br>
Plane Surface(18)={64};<br>
Line Loop(65)={39,40,41,30,31,32,<wbr>33,34,35,36,37,38};<br>
Plane Surface(20)={65};<br>
Line Loop(66)={-55,-54,30,31,32,56,<wbr>57,-44,-43,-42};<br>
Plane Surface(22)={66};<br>
Line Loop(67)={-61,-60,-38,-37,-36,<wbr>58,59,48,49,50};<br>
Plane Surface(24)={67};<br>
Periodic Surface 14{51,52,53,-55,-54,-41,-40,-<wbr>39,60,61}=16
{-47,-46,-45,-57,-56,33,34,35,<wbr>58,59};<br>
Periodic Surface 18{51,52,53,42,43,44,45,46,47,<wbr>48,49,50}=20
{39,40,41,30,31,32,33,34,35,<wbr>36,37,38};<br>
Periodic Surface 22{-55,-54,30,31,32,56,57,-44,<wbr>-43,-42}=24
{-61,-60,-38,-37,-36,58,59,48,<wbr>49,50};<br>
Physical Surface(1)={20};<br>
Physical Surface(2)={18};<br>
Physical Surface(3)={22};<br>
Physical Surface(4)={24};<br>
Physical Surface(5)={14};<br>
Physical Surface(6)={16};<br>
Surface Loop(1)={18,14,22,24,20,16};<br>
Volume(1)={1};<br>
Physical Volume(1)={1};<br>
//n=1; <br>
Point(5000)={2.346600e+01,3.<wbr>924900e+01,3.162200e+01,lc2};<br>
Point(5001)={1.424700e+01,4.<wbr>774790e+01,2.338900e+01,lc2};<br>
Point(5002)={1.993606e+01,50,<wbr>1.934264e+01,lc2};<br>
Point(5003)={2.843243e+01,50,<wbr>1.739416e+01,lc2};<br>
Point(5004)={3.509900e+01,4.<wbr>385430e+01,2.334700e+01,lc2};<br>
Line(5005)={5000,5001};<br>
Line(5006)={5001,5002};<br>
Line(5007)={5002,5003};<br>
Line(5008)={5003,5004};<br>
Line(5009)={5004,5000};<br>
Line{5007} In Surface{24};<br>
Line Loop(5010)={5005,5006,5007,<wbr>5008,5009};<br>
Plane Surface(5011)={5010};<br>
Physical Surface(11)={5011};<br>
Surface{5011} In Volume{1};<br>
Point(5012)={1.993606e+01,0,<wbr>1.934264e+01,lc2};<br>
Point(5013)={2.588000e+01,2.<wbr>353000e+00,1.511500e+01,lc2};<br>
Point(5014)={2.843243e+01,0,<wbr>1.739416e+01,lc2};<br>
Line(5015)={5012,5013};<br>
Line(5016)={5013,5014};<br>
Line(5017)={5014,5012};<br>
Line{5017} In Surface{22};<br>
Line Loop(5018)={5015,5016,5017};<br>
Plane Surface(5019)={5018};<br>
Physical Surface(12)={5019};<br>
Surface{5019} In Volume{1};<br>
...........................................................................................................................<br>
best regards,<br>
Xiaoxin<br>
</div>
</body>
</html>