<div dir="ltr">Hi Dorin,<div><br></div><div style>You can add this lines at the end of your .geo to force the opposing faces to have the same mesh:</div><div style><br></div><div style><div> Periodic Surface 27 {4,13,11,22} = 19 {-2,14,-9,18};</div>
<div> Periodic Surface 6 {2,3,4,1} = 28 {9,10,11,8};</div><div> Periodic Surface 15 {14,8,13,1} = 23 {18,-10,22,-3};</div><div><br></div><div style>However it seems to me that by making the faces transfinite you should not require this...</div>
<div style><br></div><div style>Cheers,</div><div style>Felipe</div></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><br>--</div>Felipe Alves Portela<div>MSc student in Aerospace Eng. at TU Delft</div>
<div><a href="http://www.linkedin.com/in/felipealvesportela" target="_blank">http://www.linkedin.com/in/felipealvesportela</a> </div></div></div>
<br><br><div class="gmail_quote">On 21 March 2013 11:28, Dorin Niculescu <span dir="ltr"><<a href="mailto:niculescu_dorin85@yahoo.com" target="_blank">niculescu_dorin85@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div style="font-size:12pt;font-family:'times new roman','new york',times,serif">Hello all,</div><div style="font-size:12pt;font-family:'times new roman','new york',times,serif">
<br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif">I am trying to implement periodic boundary conditions for my 3D CFD code and i have troubles generating matching points on the opposite faces of a simple cube. I've used Extrude and Transfinite Surface as you can see below but the points seems to match perfectly<span style="background-color:transparent"> only for the </span><span style="background-color:transparent">zy</span><span style="background-color:transparent"> plan. Is there a way to make them
match on the other two plans too?</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif"><br></div><div style="background-color:transparent">
<font face="'times new roman', 'new york', times, serif">cl = 20.0;</font></div><div style="background-color:transparent"><font face="'times new roman', 'new york', times, serif">Point(1) = {-50, 50, 50, cl};</font></div>
<div style="background-color:transparent"><font face="'times new roman', 'new york', times, serif">Point(2) = {-50, -50, 50, cl};</font></div><div style="background-color:transparent"><font face="'times new roman', 'new york', times, serif">Point(3) = {-50, -50, -50, cl};</font></div>
<div style="background-color:transparent"><font face="'times new roman', 'new york', times, serif">Point(4) = {-50, 50, -50, cl};</font></div><div style="background-color:transparent"><font face="'times new roman', 'new york', times, serif">Line(1) = {1, 2};</font></div>
<div style="background-color:transparent"><font face="'times new roman', 'new york', times, serif">Line(2) = {2, 3};</font></div><div style="background-color:transparent"><font face="'times new roman', 'new york', times, serif">Line(3) = {3, 4};</font></div>
<div style="background-color:transparent"><font face="'times new roman', 'new york', times, serif">Line(4) = {4, 1};</font></div><div style="background-color:transparent"><font face="'times new roman', 'new york', times, serif">Line Loop(5) = {1, 2, 3, 4};</font></div>
<div style="background-color:transparent"><font face="'times new roman', 'new york', times, serif">Plane Surface(6) = {5};</font></div><div style="background-color:transparent"><font face="'times new roman', 'new york', times, serif">Extrude {100, 0, 0} {</font></div>
<div style="background-color:transparent"><font face="'times
new roman', 'new york', times, serif"> Surface{6};</font></div><div style="background-color:transparent"><font face="'times new roman', 'new york', times, serif">}</font></div><div style="background-color:transparent">
<font face="'times new roman', 'new york', times, serif">Extrude {0, 0, -100} {</font></div><div style="background-color:transparent"><font face="'times new roman', 'new york', times, serif"> Surface{15};</font></div>
<div style="background-color:transparent"><font face="'times new roman', 'new york', times, serif">}</font></div><div style="background-color:transparent"><font face="'times new roman', 'new york', times, serif">Extrude {0, 100, 0} {</font></div>
<div style="background-color:transparent"><font face="'times new roman', 'new york', times, serif"> Surface{19};</font></div><div style="background-color:transparent"><font face="'times new roman', 'new york', times, serif">}</font></div>
<div style="background-color:transparent"><font face="'times new roman', 'new york', times, serif">Transfinite Surface {6} = {1, 2, 3, 4};</font></div><div style="background-color:transparent"><font face="'times new roman', 'new york', times, serif">Transfinite Surface {28} = {5, 6, 10, 14};</font></div>
<div style="background-color:transparent"><font face="'times new roman', 'new york', times, serif">Transfinite Surface {15} = {1, 2, 6, 5};</font></div><div style="background-color:transparent"><font face="'times new roman', 'new york', times, serif">Transfinite Surface {23} = {4, 3, 10, 14};</font></div>
<div style="background-color:transparent"><font face="'times new roman', 'new york', times, serif">Transfinite Surface {19} = {2, 6, 10, 3};</font></div><div style="background-color:transparent"><font face="'times new roman', 'new york', times, serif">Transfinite Surface {27} = {1, 5, 14, 4};</font></div>
<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif"><font face="'times new roman', 'new york', times, serif"><br>
</font></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif"><font face="'times new roman', 'new york', times, serif"><br>
</font></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif"><font face="'times new roman', 'new york', times, serif">Thank you verry much for your time.</font></div>
<span class="HOEnZb"><font color="#888888"><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif"><font face="'times new roman', 'new york', times, serif"><br>
</font></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif"><font face="'times new roman', 'new york', times, serif">Dorin Niculescu</font></div>
</font></span></div></div><br>_______________________________________________<br>
gmsh mailing list<br>
<a href="mailto:gmsh@geuz.org">gmsh@geuz.org</a><br>
<a href="http://www.geuz.org/mailman/listinfo/gmsh" target="_blank">http://www.geuz.org/mailman/listinfo/gmsh</a><br>
<br></blockquote></div><br></div>