[Gmsh] get mesh volume

2018-04-30 Thread Juan E. Sanchez
Hello, Is there a way to get the mesh volume calculated by gmsh? My simulator is calculating a volume of 1.09e-15 for the attached structure, but it should be 1e-15. Before I added these flags Mesh.OptimizeNetgen=1; Mesh.OptimizeThreshold=1; I was getting 1.17e-15. I am summing the volume f

Re: [Gmsh] get mesh volume

2018-05-01 Thread Christophe Geuzaine
You can run this script, e.g. compute_volume.geo : Merge "3dblock.msh"; Plugin(NewView).Run; Plugin(ModifyComponents).Expression0 = "1"; Plugin(ModifyComponents).Run; Plugin(Integrate).Dimension = 3; Plugin(Integrate).Run; You'll get Info: Running '/Applications/Gmsh.app/Contents/MacOS/gms

Re: [Gmsh] get mesh volume

2018-05-01 Thread Juan E. Sanchez
Hello, Thanks for the check, and the useful script. Upon further analysis, the circumcenter of many of the tetrahedron are outside their respective volumes. This is where the additional volume is coming from in my calculations. This is affecting the results of the control volume method I am

Re: [Gmsh] get mesh volume

2018-05-03 Thread Juan Sanchez
Hello, Does anyone know how to get gmsh to output a mesh, where all tetrahedra meet the Delaunay condition of having their circumcenter inside their volume? For my example, it seems like this condition is not being met, even though I have tried these options: Mesh.OptimizeNetgen=1; Mesh.OptimizeT

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 having their circumcenter > i