[Gmsh] API define periodic line

Benedikt Oswald benedikt.oswald at lspr.swiss
Wed Apr 25 12:07:43 CEST 2018


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
> 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
----------------------------------------------------------------------------------------------------------------------


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 882 bytes
Desc: OpenPGP digital signature
URL: <http://onelab.info/pipermail/gmsh/attachments/20180425/fefbb4a1/attachment.asc>


More information about the gmsh mailing list