<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div>Hi Artur - it's now in the API: give it a try.<div class=""><br class=""></div><div class="">PS: we have started to generate binary SDKs that contain the shared Gmsh library and the C++/C headers and Python module (see the *-sdk* files in <a href="http://gmsh.info/bin/" class="">gmsh.info/bin/</a>). The SDK is built using the same compilers as the official builds, with the same options (built-in OpenCASCADE, etc.). This should make it much easier to develop C++, C or Python code based on Gmsh, without having to compile the Gmsh code from scratch.<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 25 Apr 2018, at 22:30, Christophe Geuzaine <<a href="mailto:geuzaine@gmail.com" class="">geuzaine@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div>Hi Arthur,<div class=""><br class=""></div><div class="">Indeed it's currently missing from the API - we'll add it soon.</div><div class=""><br class=""></div><div class="">Christophe</div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On 25 Apr 2018, at 13:12, Artur Palha <<a href="mailto:artur.palha@gmail.com" class="">artur.palha@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Dear Benedikt,<div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">To make it clearer: What is the equivalent code using the API of gmsh that implements:</div><div class=""><br class=""></div><div class="">Periodic Line{mySlaveLine} = {myMasterLine};</div><div class=""><br class=""></div><div class="">Once again thank you for your help.</div><div class=""><br class=""></div><div class="">-artur palha</div><div class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Apr 25, 2018 at 12:07 PM, Benedikt Oswald <span dir="ltr" class=""><<a href="mailto:benedikt.oswald@lspr.swiss" target="_blank" class="">benedikt.oswald@lspr.swiss</a>></span> wrote:<br class=""><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 class="">
<br class="">
// constrain the boundary surfaces to conformal discretization<br class="">
<br class="">
// x<br class="">
Periodic Surface {2} = {1} Translate {400,0,0}; // ex<br class="">
<br class="">
// y<br class="">
Periodic Surface {4} = {3} Translate {0,300,0}; // ey<br class="">
<br class="">
// z - floor and roof<br class="">
Periodic Surface {6} = {5} Translate {0,0,150}; // ez<br class="">
<br class="">
in fact, you need to know the id of the geometrical entity (surface)<br class="">
<br class="">
and transfer it by the requested amount.<br class="">
<br class="">
Greeetings, Benedikt<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
Am 25.04.18 um 12:02 schrieb Artur Palha:<br class="">
<div class=""><div class="h5">> Dear All,<br class="">
><br class="">
> I am trying to use gmsh's API. I can successfully use it to setup my<br class="">
> geometry and generate the mesh. The only issue I am having is that I<br class="">
> cannot find the function (both in Python and C++) to define Periodic<br class="">
> Lines (or Periodic Surfaces). Does anyone know this?<br class="">
><br class="">
> Thank you.<br class="">
><br class="">
> -artur palha <br class="">
><br class="">
><br class="">
</div></div>> ______________________________<wbr class="">_________________<br class="">
> gmsh mailing list<br class="">
> <a href="mailto:gmsh@onelab.info" class="">gmsh@onelab.info</a><br class="">
> <a href="http://onelab.info/mailman/listinfo/gmsh" rel="noreferrer" target="_blank" class="">http://onelab.info/mailman/<wbr class="">listinfo/gmsh</a><br class="">
<span class="HOEnZb"><font color="#888888" class=""><br class="">
-- <br class="">
------------------------------<wbr class="">------------------------------<wbr class="">------------------------------<wbr class="">----------------------------<br class="">
Dr. sc. techn. Benedikt Oswald - first engineer - LSPR AG - phone +41 43 366 90 74<br class="">
Grubenstrasse 9, CH-8045 Zürich, <a href="mailto:benedikt.oswald@lspr.swiss" class="">benedikt.oswald@lspr.swiss</a><br class="">
------------------------------<wbr class="">------------------------------<wbr class="">------------------------------<wbr class="">----------------------------<br class="">
<br class="">
<br class="">
</font></span><br class="">______________________________<wbr class="">_________________<br class="">
gmsh mailing list<br class="">
<a href="mailto:gmsh@onelab.info" class="">gmsh@onelab.info</a><br class="">
<a href="http://onelab.info/mailman/listinfo/gmsh" rel="noreferrer" target="_blank" class="">http://onelab.info/mailman/<wbr class="">listinfo/gmsh</a><br class="">
<br class=""></blockquote></div><br class=""></div>
_______________________________________________<br class="">gmsh mailing list<br class=""><a href="mailto:gmsh@onelab.info" class="">gmsh@onelab.info</a><br class=""><a href="http://onelab.info/mailman/listinfo/gmsh" class="">http://onelab.info/mailman/listinfo/gmsh</a><br class=""></div></blockquote></div><br class=""></div></div>_______________________________________________<br class="">gmsh mailing list<br class=""><a href="mailto:gmsh@onelab.info" class="">gmsh@onelab.info</a><br class="">http://onelab.info/mailman/listinfo/gmsh<br class=""></div></blockquote></div><br class=""></div></body></html>