Re: [Gmsh] Visualising point data imported from MED files

2018-05-17 Thread Tomasz Koziara
Ha, ha:) I tried that, but failed, for the time being:) I only have the examples distributed with MED library to provide inspiration; That was the code: std::vector conn; for (i = 0; i < num; i ++) { conn.push_back(i); } ASSERT (MEDmeshElementConnectivityWr(fid, meshName, MED_NO_DT,

Re: [Gmsh] get mesh volume

2018-05-17 Thread Christophe Geuzaine
Hi Juan - Indeed, Gmsh does not guarantee that the Delaunay criterion is satisfied. Christophe > On 3 May 2018, at 22:00, Juan Sanchez wrote: > > Hello, > > Does anyone know how to get gmsh to output a mesh, where all > tetrahedra meet the Delaunay condition of

Re: [Gmsh] Visualising point data imported from MED files

2018-05-17 Thread Christophe Geuzaine
Gmsh displays all meshes and post-processing data based on elements: so indeed you will need to add "point elements" (1 point for each vertex) in the med file in order to visualize it. Christophe > On 17 May 2018, at 14:56, Tomasz Koziara wrote: > > Dear Christophe, >

Re: [Gmsh] QMorph

2018-05-17 Thread Christophe Geuzaine
> On 17 May 2018, at 18:31, swarsi wrote: > > thank you for your response. what i did was to read and STL file into GMSH > and then i used the Recombine 2D with default option of Blossom but i got a > quad dominant mesh with approximately 15-20% triangles. should this not

Re: [Gmsh] QMorph

2018-05-17 Thread swarsi
thank you for your response. what i did was to read and STL file into GMSH and then i used the Recombine 2D with default option of Blossom but i got a quad dominant mesh with approximately 15-20% triangles. should this not have given the same results as the paper that was linked above? thanks On

Re: [Gmsh] Visualising point data imported from MED files

2018-05-17 Thread Tomasz Koziara
Dear Christophe, Here: https://www.dropbox.com/s/ve8rm3qjyvew1uq/spring_system0rb.med.gz?dl=0 Best regards, Tomek On 17 May 2018 at 08:50, Christophe Geuzaine wrote: > > Can you send a (small) example file? > > On 14 May 2018, at 13:08, Tomasz Koziara

Re: [Gmsh] Point coordinates at python api

2018-05-17 Thread Jeremy Theler
On Thu, 2018-05-17 at 08:46 +0200, Christophe Geuzaine wrote: > How could I get point coordinates at python api? > gmsh.model.getBoundingBox(0, point_tag) Is there any way to get the center of gravity of a volume or surface? -- jeremy www.seamplex.com

Re: [Gmsh] Uniform element size throughout the geometry

2018-05-17 Thread David Colignon
Hi, Just in case, don't forget to check the options... http://gmsh.info/doc/texinfo/gmsh.html#Options ...To reset all options to their default values, use the ‘Restore default options’ button in ‘Tools->Options->General->Advanced’, or erase the General.SessionFileName and

[Gmsh] Strategies to mesh with hexaedra

2018-05-17 Thread cristini paul
Dear all, I am trying to use gmsh to mesh with hexaedra two volumes separated by a smooth non-flat interface. The entire volume is a cube. After many tries, I identified a meshing strategy but the results is not good enough. Is there a preferred strategy for the choice of a 2D and 3D

Re: [Gmsh] [GMSH] Surface mesh for 3D solids

2018-05-17 Thread Anderson Gabriel Santiago
Thank you for your response. But that is quite unexpected, since the normal vectors define the volume. So my question is, how can I make all the normal vectors point outward the volume? I am working with boundary element method and the normal vector orientation is really important to the method.

Re: [Gmsh] Uniform element size throughout the geometry

2018-05-17 Thread Christophe Geuzaine
With the default algorithm evrything looks ok to me (don't use -algo front3d unless you really have to). > On 9 May 2018, at 17:12, Harris FAROOQ > wrote: > > Hello, > > I am trying to get a uniform element size throughout the geometry. I have > tried

Re: [Gmsh] Strange Mesh using ThruSections

2018-05-17 Thread Christophe Geuzaine
Use the latest snapshot: it fixes many small issues with the OpenCASCADE kernel, including setting of mesh sizes. Christophe > On 10 May 2018, at 00:23, Leonardo Roncetti wrote: > > I get a strange result when trying to mesh surfaces created with lines and >

Re: [Gmsh] QMorph

2018-05-17 Thread Christophe Geuzaine
> On 15 May 2018, at 18:22, swarsi wrote: > > is the meshGFaceQuadrilateralize.cpp a complete implementation of the qmorph > algorithm? We currently don't use that implementation: I advise you use our own recombination strategy instead

Re: [Gmsh] Point coordinates at python api

2018-05-17 Thread Christophe Geuzaine
> On 16 May 2018, at 22:26, Roman Butov wrote: > > How could I get point coordinates at python api? gmsh.model.getBoundingBox(0, point_tag) > Best regards, Roman > > ___ > gmsh mailing list > gmsh@onelab.info >