[Gmsh] Area/Volume of physical groups
Max Orok
morok at mevex.com
Wed Mar 6 17:46:34 CET 2019
Hello Johannes,
Volume case:
I think you can use the Plugin "MeshVolume" for this, calling it through
the plugin API interface.
Here is a link to the implementation:
https://gitlab.onelab.info/gmsh/gmsh/blob/master/Plugin/MeshVolume.cpp
Surface case:
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)
https://gitlab.onelab.info/gmsh/gmsh/merge_requests/197
I hope this helps!
Max
On Wed, Mar 6, 2019 at 11:23 AM Johannes <joey5938 at protonmail.com> wrote:
> Hello,
>
> is there a way to get the surface area or volume of a physical group via
> the Gmsh API?
>
> Kind Regards
> Johannes
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh
>
--
Max Orok
Contractor
www.mevex.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20190306/04704b17/attachment.html>
More information about the gmsh
mailing list