<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000'>Hello,<br>There is also tools/measure.cpp that you can use.<br>It has methods like <br>double measure( moab::EntityType type,<br>                int num_vertices,<br>                const double* vertex_coordinates )<br><br>For 2d entities, it will compute area of decomposition in linear triangles, for 3d it will compute volumes by decomposing in linear tetras<br>This may not be what you want; FE codes in general compute areas and volumes by gauss integration, depending on the type of FE.<br>You may want to extend the classes implemented in mbcoupler/ElemUtil.hpp, and add a method like "volume", or "measure".<br><br>Iulian<br><br><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;"><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span><div><span>Hi Stuart,</span></div><div style="background-color: transparent; "><br></div><div style="background-color: transparent; "><span>In the examples directory see: SurfArea.cpp, it computes the area of all surfaces in the mesh file.</span></div><div>You might need to modify or write something similar as per your needs. </div></span></div><div> </div><div><font style="font-family: arial, helvetica, sans-serif; " size="2">Rajeev</font><br><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Stuart Slattery <sslattery@wisc.edu><br> <b><strong>To:</strong></b> moab-dev@mcs.anl.gov <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, August 28, 2012 5:26 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> [MOAB-dev] Mesh Element Geometry<br> </font> </div> <br>
Hi Everyone<br><br>Does MOAB have functionality to compute quantities like the volume or area of mesh entities?<br><br>Thanks<br><br>Stuart<br><br>-- Stuart Slattery<br>Nuclear Regulatory Commission Fellow<br>Computational Nuclear Engineering Research Group<br>Department of Engineering Physics<br>University of Wisconsin - Madison<br><br>434 Engineering Research Building<br>1500 Engineering Drive<br>Madison, WI 53706<br><br>email : <a href="mailto:sslattery@wisc.edu" target="_blank">sslattery@wisc.edu</a><br>cell  : 608.843.5871<br>url   : http://cnerg.engr.wisc.edu<br><br><br><br> </div> </div> </blockquote></div>   </div></blockquote><br></div></body></html>