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
> [email protected]
> 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, [email protected]
----------------------------------------------------------------------------------------------------------------------


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
gmsh mailing list
[email protected]
http://onelab.info/mailman/listinfo/gmsh

Reply via email to