<div dir="ltr">Dear Benedikt,<div><br></div><div>Thank you for your reply. Unfortunately I am unable to understand exactly what you mean by that. Roughly I think that you define the periodic surface 2 (for example) to be the translation along [400,0,0] of the surface 1. Still you make use of the Periodic Surface call. My problem is that I am unable to find an equivalent function to Periodic Surface in the API of gmsh. </div><div><br></div><div>To make it clearer: What is the equivalent code using the API of gmsh that implements:</div><div><br></div><div>Periodic Line{mySlaveLine} = {myMasterLine};</div><div><br></div><div>Once again thank you for your help.</div><div><br></div><div>-artur palha</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 25, 2018 at 12:07 PM, Benedikt Oswald <span dir="ltr"><<a href="mailto:benedikt.oswald@lspr.swiss" target="_blank">benedikt.oswald@lspr.swiss</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Artur, what you can do is something along these lines:<br>
<br>
// constrain the boundary surfaces to conformal discretization<br>
<br>
// x<br>
Periodic Surface {2} = {1} Translate {400,0,0};        // ex<br>
<br>
// y<br>
Periodic Surface {4} = {3} Translate {0,300,0};        // ey<br>
<br>
// z - floor and roof<br>
Periodic Surface {6} = {5} Translate {0,0,150};        // ez<br>
<br>
in fact, you need to know the id of the geometrical entity (surface)<br>
<br>
and transfer it by the requested amount.<br>
<br>
Greeetings, Benedikt<br>
<br>
<br>
<br>
<br>
Am 25.04.18 um 12:02 schrieb Artur Palha:<br>
<div><div class="h5">> Dear All,<br>
><br>
> I am trying to use gmsh's API. I can successfully use it to setup my<br>
> geometry and generate the mesh. The only issue I am having is that I<br>
> cannot find the function (both in Python and C++) to define Periodic<br>
> Lines (or Periodic Surfaces). Does anyone know this?<br>
><br>
> Thank you.<br>
><br>
> -artur palha <br>
><br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> gmsh mailing list<br>
> <a href="mailto:gmsh@onelab.info">gmsh@onelab.info</a><br>
> <a href="http://onelab.info/mailman/listinfo/gmsh" rel="noreferrer" target="_blank">http://onelab.info/mailman/<wbr>listinfo/gmsh</a><br>
<span class="HOEnZb"><font color="#888888"><br>
-- <br>
------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>----------------------------<br>
Dr. sc. techn. Benedikt Oswald - first engineer - LSPR AG - phone +41 43 366 90 74<br>
Grubenstrasse 9, CH-8045 Zürich, benedikt.oswald@lspr.swiss<br>
------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>----------------------------<br>
<br>
<br>
</font></span><br>______________________________<wbr>_________________<br>
gmsh mailing list<br>
<a href="mailto:gmsh@onelab.info">gmsh@onelab.info</a><br>
<a href="http://onelab.info/mailman/listinfo/gmsh" rel="noreferrer" target="_blank">http://onelab.info/mailman/<wbr>listinfo/gmsh</a><br>
<br></blockquote></div><br></div>