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 <[email protected]> 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 > [email protected] > http://onelab.info/mailman/listinfo/gmsh > -- Max Orok Contractor www.mevex.com
_______________________________________________ gmsh mailing list [email protected] http://onelab.info/mailman/listinfo/gmsh
