[Gmsh] Transfinite Line & SetSize with API on Python

Michel Cassagnes michelcassagnes11 at gmail.com
Sun May 3 11:04:14 CEST 2020


Ok! Thank you very much Christophe.

Best regards,

Michel Cassagnes

Le dim. 3 mai 2020 à 08:45, Christophe Geuzaine <cgeuzaine at uliege.be> a
écrit :

>
>
> > On 3 May 2020, at 01:55, Michel Cassagnes <michelcassagnes11 at gmail.com>
> wrote:
> >
> > Dear all,
> >
> > I need some help to make a transfinite line and set size at points work
> with the API on Python.
> >
> > I made many tests and many looks in examples and doc but I don't find
> how to handle all this.
> >
> > Please find enclosed an example that doesn't give anything for the line
> entered as transfinite with 10 points (take care to change the working
> folder at the begining of the script).
> >
> > Maybe there is a conflict with other definitions of mesh size (filelds,
> characteristic length at points, etc).
> >
>
> Your last call to gmsh.model.geo.synchronize() resets the meshing
> attributes of the curve. Either remove it (it's useless anyway), or set
> your meshing contraints within the "geo" kernel, with
> "gmsh.model.geo.mesh.setTransfiniteCurve()" instead of
> "gmsh.model.mesh.setTransfiniteCurve()".
>
> Christophe
>
>
>
> > Thank you.
> >
> > Best regards,
> >
> > Michel Cassagnes
> > <test-transfinite.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
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20200503/62ae9381/attachment.html>


More information about the gmsh mailing list