<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span><div>Hello <span id="misspell-0" class="mark">Filipe</span>,</div><div><br></div><div class="yui_3_7_2_34_1363940315581_199" style="background-color: transparent;">Thank you for your quick <span id="misspell-1" class="">answer</span>. Yes, <span id="misspell-1" class="mark">i've</span> tried to use Periodic Surface too but the result is even worst, the mesh seems to be the same on all the faces but when you are testing the coordinates you can see that there is a difference (not really big, but it can introduce errors in the solution). To find the <span id="misspell-3" class="">corresponding</span> mesh points i had to code a <span id="misspell-4" class="">subroutine</span> for testing numbers which allows me to set a tolerance. When i use Extrude and Transfinite Surface i
find perfectly corresponding mesh just on the first direction in which i extrude (<span id="misspell-2" class="mark">i've</span> tried to extrude in the other two directions hoping that it will work, but with no result). Is this a bug (<span id="misspell-3" class="mark">i'm</span> using <span id="misspell-4" class="mark">Gmsh</span> v 2.5.1) or is like this that it is <span id="misspell-5" class=""><span>supposed</span></span> to work?</div><div class="yui_3_7_2_34_1363940315581_160 yui_3_7_2_34_1363940315581_201" style="background-color: transparent;"><br></div><div class="yui_3_7_2_34_1363940315581_160 yui_3_7_2_34_1363940315581_203" style="background-color: transparent;">Thank you very much for your time!</div><div class="yui_3_7_2_34_1363940315581_160 yui_3_7_2_34_1363940315581_205" style="background-color: transparent;"><br></div><div class="yui_3_7_2_34_1363940315581_160 yui_3_7_2_34_1363940315581_207"
style="background-color: transparent;">Dorin</div></span></div><div><br></div> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> F. A. Portela <felipe.alves.portela@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Dorin Niculescu <niculescu_dorin85@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "gmsh@geuz.org" <gmsh@geuz.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, 21 March 2013, 23:34<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Gmsh] 3D Periodic Boundary Conditions<br> </font> </div> <br>
<div id="yiv1412031707"><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="yiv1412031707gmail_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>http://www.linkedin.com/in/felipealvesportela </div></div></div>
<br><br><div class="yiv1412031707gmail_quote">On 21 March 2013 11:28, Dorin Niculescu <span dir="ltr"><<a rel="nofollow" ymailto="mailto:niculescu_dorin85@yahoo.com" target="_blank" href="mailto:niculescu_dorin85@yahoo.com">niculescu_dorin85@yahoo.com</a>></span> wrote:<br><blockquote class="yiv1412031707gmail_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;">Hello all,</div><div style="font-size:12pt;">
<br></div><div style="font-style:normal;font-size:16px;background-color:transparent;">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;"><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 face="'times new roman', 'new york', times, serif"><br>
</font></div><div style="font-style:normal;font-size:16px;background-color:transparent;"><font face="'times new roman', 'new york', times, serif"><br>
</font></div><div style="font-style:normal;font-size:16px;background-color:transparent;"><font face="'times new roman', 'new york', times, serif">Thank you verry much for your time.</font></div>
<span class="yiv1412031707HOEnZb"><font color="#888888"><div style="font-style:normal;font-size:16px;background-color:transparent;"><font face="'times new roman', 'new york', times, serif"><br>
</font></div><div style="font-style:normal;font-size:16px;background-color:transparent;"><font face="'times new roman', 'new york', times, serif">Dorin Niculescu</font></div>
</font></span></div></div><br>_______________________________________________<br>
gmsh mailing list<br>
<a rel="nofollow" ymailto="mailto:gmsh@geuz.org" target="_blank" href="mailto:gmsh@geuz.org">gmsh@geuz.org</a><br>
http://www.geuz.org/mailman/listinfo/gmsh<br>
<br></blockquote></div><br></div>
</div><br><br> </div> </div> </div></body></html>