<div dir="ltr"><div><div>Hello all,<br><br></div>I have been quite successful in integrating gmsh into my application. I was able to mostly isolate the 2D mesher algorithm into a simulator that I am creating. There are still a few rough edges here and there. I am able to take a simple geometry, convert it into a gmsh geometry (in code), define a specific mesh size for the face(s), and create a 2D mesh of the geometry.<br></div><div><br></div><div>I am am currently working on integrating the GMSH Mesh settings into my program so that a user can directly edit the GMSH mesh settings.</div><div><br></div><div>Lately, I have been comparing the meshes that my program creates to the meshes that GMSH GUI creates and I am noticing some odd differences. Mainly, I have been observing mesh elements overlapping each other in my program. The mesh that I create is not as smooth as the mesh in GMSH GUI.</div><div><br></div><div>I feel that this is mainly a setting issue and I was wondering if anyone out there would be able to help me to identify the main cause of this?</div><div><br></div><div>I am attaching 2 PDFs. One being the mesh that my program created (I saved the mesh as a vtk file, opened in visit, and printed as a pdf) and the other being the mesh that the GMSH GUI created. Both are the exact same shape (a simple square) with the exact same end point locations. These were not created with Transfinite geometries.<br></div><div><br></div><div>I also made sure to use the same mesh settings between the two programs:</div><div><br></div><div>Mesh 2D Algorithm: Automatic</div><div><br></div><div>2D Recombination Algorthim: Blossom</div><div><br></div><div>Remeshing Algorithm: No Split</div><div><br></div><div>Remeshing Parameterization: Harmonic</div><div><br></div><div>Smoothing Steps: 1</div><div><br></div><div>min/max element size: 0 / 1e22</div><div><br></div><div>Element size factor: 0.3 (in my program, I am directly setting the mesh size for the face, it to is 0.3. In my program, I have the mesh size factor to be 1)</div><div><br></div><div>Element Order: 1</div><div><br></div><div>Lloyd smoothing steps: 5</div><div><br></div><div>Subdivision algorthim: All Quads</div><div><br></div><div>Recombine all triangular meshes</div><div><br></div><div>-- The settings that I have set in my program are as follows (These maybe different then the settings within GMSH GUI)</div><div><br></div><div>recombinationTestNewStrat = 0</div><div><br></div><div>nProc = 0</div><div><br></div><div>nbProc = 0</div><div><br></div><div>lc = 1</div><div><br></div><div>secondOrderIncomplete = 0</div><div><br></div><div>lcExtendFromBoundary = 0<br></div><div><br></div><div>Any assistance will be greatly appreciated. Thank you all for your time<br></div><div><br></div><div><br></div></div>