<div dir="ltr">Dear Christophe,<div><br></div><div>I have one more question. After adding the periodic lines how can I have access to the periodicity information (master/slave) for the nodes of the mesh? Similar to what is found between $Periodic and $EndPeriodic in the msh file.</div><div><br></div><div>Once again thank you.</div><div><br></div><div>-artur palha</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Apr 26, 2018 at 3:06 PM Artur Palha <<a href="mailto:artur.palha@gmail.com">artur.palha@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Christophe,<div><br></div><div>It works like a charm! Thank you very much for the extremely quick addition. One thing, I need to add a gmsh.model.geo.synchronize() begore the periodic line right? Otherwise the entities are not available (just to be sure I am not missing anything).</div><div><br></div><div>Once again thank you!</div><div><br></div><div>P.S.: I tried both, and yes the SDK is much easier (at least for quick tests).</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 26, 2018 at 9:50 AM, Christophe Geuzaine <span dir="ltr"><<a href="mailto:geuzaine@gmail.com" target="_blank">geuzaine@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><div><br></div>Hi Artur - it's now in the API: give it a try.<div><br></div><div>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/" target="_blank">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.<div><div class="m_2274143490414250130h5"><br><div><br><blockquote type="cite"><div>On 25 Apr 2018, at 22:30, Christophe Geuzaine <<a href="mailto:geuzaine@gmail.com" target="_blank">geuzaine@gmail.com</a>> wrote:</div><br class="m_2274143490414250130m_-3658163148861161611Apple-interchange-newline"><div><div style="word-wrap:break-word;line-break:after-white-space"><div><br></div>Hi Arthur,<div><br></div><div>Indeed it's currently missing from the API - we'll add it soon.</div><div><br></div><div>Christophe</div><div><br><div><blockquote type="cite"><div>On 25 Apr 2018, at 13:12, Artur Palha <<a href="mailto:artur.palha@gmail.com" target="_blank">artur.palha@gmail.com</a>> wrote:</div><br class="m_2274143490414250130m_-3658163148861161611Apple-interchange-newline"><div><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="m_2274143490414250130m_-3658163148861161611h5">> 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>> _______________________________________________<br>
> gmsh mailing list<br>
> <a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br>
> <a href="http://onelab.info/mailman/listinfo/gmsh" rel="noreferrer" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><br>
<span class="m_2274143490414250130m_-3658163148861161611HOEnZb"><font color="#888888"><br>
-- <br>
----------------------------------------------------------------------------------------------------------------------<br>
Dr. sc. techn. Benedikt Oswald - first engineer - LSPR AG - phone +41 43 366 90 74<br>
<a href="https://maps.google.com/?q=Grubenstrasse+9,+CH-8045+Z%C3%BCrich&entry=gmail&source=g" target="_blank">Grubenstrasse 9, CH-8045 Zürich</a>, <a href="mailto:benedikt.oswald@lspr.swiss" target="_blank">benedikt.oswald@lspr.swiss</a><br>
----------------------------------------------------------------------------------------------------------------------<br>
<br>
<br>
</font></span><br>_______________________________________________<br>
gmsh mailing list<br>
<a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br>
<a href="http://onelab.info/mailman/listinfo/gmsh" rel="noreferrer" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><br>
<br></blockquote></div><br></div>
_______________________________________________<br>gmsh mailing list<br><a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br><a href="http://onelab.info/mailman/listinfo/gmsh" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><br></div></blockquote></div><br></div></div>_______________________________________________<br>gmsh mailing list<br><a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br><a href="http://onelab.info/mailman/listinfo/gmsh" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><br></div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>
</blockquote></div>