<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div>You can run this script, e.g. compute_volume.geo :<div class=""><br class=""></div><div class=""><div class="">Merge "3dblock.msh";</div><div class="">Plugin(NewView).Run;</div><div class="">Plugin(ModifyComponents).Expression0 = "1";</div><div class="">Plugin(ModifyComponents).Run;</div><div class="">Plugin(Integrate).Dimension = 3;</div><div class="">Plugin(Integrate).Run;</div><div class=""><br class=""></div><div class="">You'll get </div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Info    : Running '/Applications/Gmsh.app/Contents/MacOS/gmsh vol.geo -' [Gmsh 3.0.7, 1 node, max. 1 thread]</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Info    : Started on Tue May  1 09:00:57 2018</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Info    : Reading 'vol.geo'...</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Info    : Reading '3dblock.msh'...</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Info    : 6790 vertices</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Info    : 32825 elements</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Info    : Done reading '3dblock.msh'</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Info    : Running Plugin(NewView)...</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Info    : Done running Plugin(NewView)</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Info    : Running Plugin(ModifyComponents)...</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Info    : Done running Plugin(ModifyComponents)</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Info    : Running Plugin(Integrate)...</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Info    : Step 0: integral = 1.000000000000803e-15</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Info    : Done running Plugin(Integrate)</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Info    : Done reading 'vol.geo'</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Info    : Stopped on Tue May  1 09:00:57 2018</span></div></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">On 30 Apr 2018, at 22:58, Juan E. Sanchez <<a href="mailto:juan.e.sanchez@gmail.com" class="">juan.e.sanchez@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hello,<br class=""><br class="">Is there a way to get the mesh volume calculated by gmsh?<br class=""><br class="">My simulator is calculating a volume of 1.09e-15 for the attached structure, but it should be 1e-15.<br class=""><br class="">Before I added these flags<br class="">Mesh.OptimizeNetgen=1;<br class="">Mesh.OptimizeThreshold=1;<br class=""><br class="">I was getting 1.17e-15.<br class=""><br class="">I am summing the volume for each tetrahedron sub volume from the edge center, to the element center, to the centers of each triangle face of the edge.<br class=""><br class="">If my calculation is correct, are there flags I can use to improve the situation?<br class=""><br class="">I am running version 3.06.<br class=""><br class="">gmsh -3 3dblock.geo<br class=""><br class=""><br class="">Regards,<br class=""><br class="">Juan<br class=""><span id="cid:C30DF2D3-0B6C-4347-AF51-77465C94EC17@home"><3dblock.geo></span>_______________________________________________<br class="">gmsh mailing list<br class=""><a href="mailto:gmsh@onelab.info" class="">gmsh@onelab.info</a><br class="">http://onelab.info/mailman/listinfo/gmsh<br class=""></div></div></blockquote></div><br class=""></div></body></html>