[Gmsh] API define periodic line
Christophe Geuzaine
geuzaine at gmail.com
Wed Apr 25 22:30:07 CEST 2018
Hi Arthur,
Indeed it's currently missing from the API - we'll add it soon.
Christophe
> On 25 Apr 2018, at 13:12, Artur Palha <artur.palha at gmail.com> wrote:
>
> Dear Benedikt,
>
> 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.
>
> To make it clearer: What is the equivalent code using the API of gmsh that implements:
>
> Periodic Line{mySlaveLine} = {myMasterLine};
>
> Once again thank you for your help.
>
> -artur palha
>
>
> On Wed, Apr 25, 2018 at 12:07 PM, Benedikt Oswald <benedikt.oswald at lspr.swiss <mailto:benedikt.oswald at lspr.swiss>> wrote:
> Dear Artur, what you can do is something along these lines:
>
> // constrain the boundary surfaces to conformal discretization
>
> // x
> Periodic Surface {2} = {1} Translate {400,0,0}; // ex
>
> // y
> Periodic Surface {4} = {3} Translate {0,300,0}; // ey
>
> // z - floor and roof
> Periodic Surface {6} = {5} Translate {0,0,150}; // ez
>
> in fact, you need to know the id of the geometrical entity (surface)
>
> and transfer it by the requested amount.
>
> Greeetings, Benedikt
>
>
>
>
> Am 25.04.18 um 12:02 schrieb Artur Palha:
> > Dear All,
> >
> > I am trying to use gmsh's API. I can successfully use it to setup my
> > geometry and generate the mesh. The only issue I am having is that I
> > cannot find the function (both in Python and C++) to define Periodic
> > Lines (or Periodic Surfaces). Does anyone know this?
> >
> > Thank you.
> >
> > -artur palha
> >
> >
> > _______________________________________________
> > gmsh mailing list
> > gmsh at onelab.info <mailto:gmsh at onelab.info>
> > http://onelab.info/mailman/listinfo/gmsh <http://onelab.info/mailman/listinfo/gmsh>
>
> --
> ----------------------------------------------------------------------------------------------------------------------
> Dr. sc. techn. Benedikt Oswald - first engineer - LSPR AG - phone +41 43 366 90 74
> Grubenstrasse 9, CH-8045 Zürich, benedikt.oswald at lspr.swiss
> ----------------------------------------------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info <mailto:gmsh at onelab.info>
> http://onelab.info/mailman/listinfo/gmsh <http://onelab.info/mailman/listinfo/gmsh>
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20180425/3da5f75d/attachment.html>
More information about the gmsh
mailing list