<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hello Johannes, <br></div><div><br></div><div>Volume case:</div><div>I think you can use the Plugin "MeshVolume" for this, calling it through the plugin API interface. <br></div><div><br></div><div>Here is a link to the implementation: <br></div><div><a href="https://gitlab.onelab.info/gmsh/gmsh/blob/master/Plugin/MeshVolume.cpp" target="_blank">https://gitlab.onelab.info/gmsh/gmsh/blob/master/Plugin/MeshVolume.cpp</a></div><div><br></div><div>Surface case: <br></div><div>Perhaps you could use the Integrate Plugin? I think you would have to first have to make a physical group of just the 2D boundary elements and then use the integrate plugin with a value of 1 (see discussion in link for more info)</div><div><a href="https://gitlab.onelab.info/gmsh/gmsh/merge_requests/197">https://gitlab.onelab.info/gmsh/gmsh/merge_requests/197</a></div><div><br></div><div>I hope this helps!</div><div>Max <br></div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 6, 2019 at 11:23 AM Johannes <<a href="mailto:joey5938@protonmail.com" target="_blank">joey5938@protonmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hello,<br></div><div><br></div><div>is there a way to get the surface area or volume of a physical group via the Gmsh API?<br></div><div><br></div><div>Kind Regards<br></div><div>Johannes<br></div>_______________________________________________<br>
gmsh mailing list<br>
<a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br>
<a href="http://onelab.info/mailman/listinfo/gmsh" rel="noreferrer" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail-m_3587993506648668742gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Max Orok</div><div>Contractor<br></div></div><div dir="ltr"><a href="http://www.mevex.com" target="_blank">www.mevex.com</a><br><br><img src="https://docs.google.com/uc?export=download&id=1fHTIiW4OMUjQr1iOkspQ7wiEsxunoOs0&revid=0B6x5w-5zVaEjSkpwbm5oY29jbG1XMzJoYldXTmJpNGFtb3dVPQ" width="164" height="42"><br></div></div></div></div></div></div>