[Gmsh] question about python api

Christophe Geuzaine cgeuzaine at uliege.be
Thu Nov 28 21:31:12 CET 2019



> On 28 Nov 2019, at 20:06, Frederic Dubois <frederic.dubois at umontpellier.fr> wrote:
> 
> Dear all,
> 
> I am trying to mesh a composite material made of paste and grains.
> Since I have to do some Boolean operation on a 3D volume of composite I tried to use the occ factory.
> At the end of the day I need a continuous mesh where paste elements of the mesh belong to a paste physical group and grains elements belong to an other physical group.
> 
> In the attached script I first create a cylinder and two grains.
> Using a cut I was able to obtain a mesh with all the elements belonging to the  paste.
> Using a fuse I was able to obtain a mesh with all the elements belonging to the grains.
> Unfortunately, it seems that the two meshes are separated.
> 
> I tried to fuse them to obtain a continuous mesh but I am not sure it works fine and that it is the proper method.
> 
> Any advice ?

Simpler to use fragments:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: composite_simpler.py
Type: text/x-python-script
Size: 1281 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20191128/9f453f7d/attachment.py>
-------------- next part --------------


Christophe


> 
> Regards
> 
> -- 
> Fr?d?ric Dubois, PhD, Eng.
> ---
> Directeur adjoint du LMGC.
> Laboratoire de M?canique et G?nie Civil - CNRS/UM
> cc 048, 163 rue Auguste Broussonnet, 34090 Montpellier
> http://www.lmgc.univ-montp2.fr/~dubois
> Tel: 33/0 467144984
> Mobile: 33/0 635490843
> <composite.py>_______________________________________________
> 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