[Gmsh] Periodicity at the boundary of a box
Christophe Geuzaine
cgeuzaine at uliege.be
Tue Jan 21 14:21:47 CET 2020
> On 21 Jan 2020, at 14:14, Rohracker, Maurice <mau.rohracker at fau.de> wrote:
>
> Dear GMSH developer and user,
>
> for a HiWi job at the FAU Erlangen-Nürnberg we're using GMSH in PYTHON for meshing representative elementary volume (RVEs).
>
> Therefore we have a box (2D) with circular inclusions. For the following FE simulation, we need periodicity at the boundary.
>
> I was trying to use: gmsh.model.mesh.setPeriodic(dim=2, [rveLine1], [rveLine3], affineTransform)
> with an affine transform matrix np.array(([1., 0., 0., 0.,
> 0., 1. 0., 0.,
> 0., 0., 1., 0.,
> 0., 0., 0., 1.]), float)
>
> Or is it a good approach setting each point on the boundary to handle the desired number of elements on the boundary by oneself?
>
> Could you help me set up the affine transform matrix (is there an example?) or are there any other and better way to get periodicity at the boundary?
>
See https://gitlab.onelab.info/gmsh/gmsh/blob/master/demos/api/periodic.py
Christophe
> Thanks a lot for your support in advance.
>
> Kind regards,
> Maurice Rohracker
> Master Student Computational Engineering FAU Erlangen-Nürnberg
>
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh
—
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine
More information about the gmsh
mailing list