[Gmsh] Is it possible to generate 2D uniform mesh with specified number of grid cells?

2017-12-08 Thread li huang
Dear all, I am new to GMSH but have searched around helps for a few hours with no luck to solve my problem. Could you please help? I have a simple surface. I'd like to mesh it with a uniform mesh (structured or unstructured are both fine), but with a specified number of grid cells. Could I d

Re: [Gmsh] Meshing elements nodes numbers

2017-12-08 Thread Christophe Geuzaine
> On 8 Dec 2017, at 20:26, Emad Omar wrote: > > Dear Sire, > > kindly when i export the meshing data in any extension, the elements node > numbering is different from the appeared in the 3D in Gmesh file. For more > illustrating the element number 501, its nodes 60,10,100,45, but in 3D > sh

[Gmsh] Meshing elements nodes numbers

2017-12-08 Thread Emad Omar
Dear Sire, kindly when i export the meshing data in any extension, the elements node numbering is different from the appeared in the 3D in Gmesh file. For more illustrating the element number 501, its nodes 60,10,100,45, but in 3D showing different nodes 1200,300,42,19???. what is the problem. BR

Re: [Gmsh] Ghost Cells

2017-12-08 Thread Christophe Geuzaine
> On 5 Dec 2017, at 21:37, Sudhi P V wrote: > > Hi, > > I am using 'gmsh' to mesh and partition a domain in to number of parts for > easier and faster analysis. > During this process, I encountered with some -ve partition IDs in the MSH > file. Upon referring to gmsh documentation, it was

Re: [Gmsh] Error : Self intersecting surface mesh, computing intersections

2017-12-08 Thread Christophe Geuzaine
Dear Berta, Your surface meshes intersect (see attached picture) because your geometry is incorrect : the end of the cylinders overlap with the rectangular faces. Either define the rectangular faces with circular) holes, or use the new OpenCASCADE kernel to intersect the solids. Christophe >

Re: [Gmsh] (no subject)

2017-12-08 Thread Christophe Geuzaine
> On 8 Dec 2017, at 16:33, Leuteris Ch wrote: > > Hello, I am new to CFD and its computational tools and I would like to ask > you a question about a Gmsh. Is it possible to inport an stl geometry from > Solidwork for instance and make a mesh on it? All the tutorials I found only > explain h

Re: [Gmsh] Multi threading calls to GModel

2017-12-08 Thread Christophe Geuzaine
> On 7 Dec 2017, at 18:41, Pablo Antolin wrote: > > Hello everybody, > > I am using Gmsh inside my own code, through the API, to mesh a lot of very > small geometries that are independent one from the other. My goal is to > produce for every geometry the coarsest mesh possible. > > In order

Re: [Gmsh] opencascade: union, disregard seams

2017-12-08 Thread Christophe Geuzaine
> On 8 Dec 2017, at 16:24, Nico Schlömer wrote: > > Hi everyone, > > When combining two domains using an opencascade union, the seams will still > be respected by the mesher. As an example, check out the geometry of a union > of two overlapping circles: > ``` > SetFactory("OpenCASCADE"); > s

[Gmsh] (no subject)

2017-12-08 Thread Leuteris Ch
Hello, I am new to CFD and its computational tools and I would like to ask you a question about a Gmsh. Is it possible to inport an stl geometry from Solidwork for instance and make a mesh on it? All the tutorials I found only explain how to make a geometry from scratch instead of inporting it. Th

[Gmsh] opencascade: union, disregard seams

2017-12-08 Thread Nico Schlömer
Hi everyone, When combining two domains using an opencascade union, the seams will still be respected by the mesher. As an example, check out the geometry of a union of two overlapping circles: ``` SetFactory("OpenCASCADE"); s0 = news; Disk(s0) = {-5.0, 0.0, 0.0, 10.0}; s1 = news; Disk(s1) = {5.0,