[Gmsh] Transfinite 3D meshing

2020-10-06 Thread Bruno
Dear Gmsh community, I have a 3 dimensional square duct here attached that I wish to mesh using the transfinite option in Gmsh, which seems very powerful. I wish to have on each side of the inlet and outlet square of the duct 20 meshing points To this end I wrote the script below, but it

Re: [Gmsh] Transfinite 3D meshing

2020-10-06 Thread Christophe Geuzaine
Hi Bruno and Max, There is nothing mysterious about the "gmsh.model.geo.synchronize()" and "gmsh.model.occ.synchronize()" calls :-) They serve a single purpose: to synchronize the topological Gmsh model (the model manipulated by the "gmsh.model" functions) with the internal CAD

Re: [Gmsh] How are set up U and V vectors for elements ?

2020-10-06 Thread Christophe Geuzaine
> On 5 Oct 2020, at 07:05, bi...@netc.it wrote: > > Hello. I'm trying to parse a mesh.msh generated by gmsh. > > I work with 9-quad elements. I see in documentation that inside of the > elements, nodes are ordered like this : > >v >^ >| >

Re: [Gmsh] Transfinite 3D meshing

2020-10-06 Thread Max Orok
Hi Bruno, At a quick glance, it's possible you require some more synchronize calls between the different API calls. It's good practice to call synchronize when you move from one part of the API to another (e.g. from gmsh.model.geo to gmsh.model.geo.mesh). This is a somewhat common issue (see e.g.

Re: [Gmsh] Transfinite 3D meshing

2020-10-06 Thread Bruno
Dear Christophe and Max, Thank you very much for your fast answer. Yes indeed Christophe's advice works perfectly and this is clearly explained in the provided link. Sorry for bringing up such a trivial issue! Best regards Bruno On 06.10.20 19:39, Christophe Geuzaine wrote: Hi Bruno