[MOAB-dev] Mesh Element Geometry
Iulian Grindeanu
iulian at mcs.anl.gov
Tue Aug 28 19:26:22 CDT 2012
Hello,
There is also tools/measure.cpp that you can use.
It has methods like
double measure( moab::EntityType type,
int num_vertices,
const double* vertex_coordinates )
For 2d entities, it will compute area of decomposition in linear triangles, for 3d it will compute volumes by decomposing in linear tetras
This may not be what you want; FE codes in general compute areas and volumes by gauss integration, depending on the type of FE.
You may want to extend the classes implemented in mbcoupler/ElemUtil.hpp, and add a method like "volume", or "measure".
Iulian
----- Original Message -----
| Hi Stuart,
| In the examples directory see: SurfArea.cpp, it computes the area of
| all surfaces in the mesh file.
| You might need to modify or write something similar as per your needs.
| Rajeev
| | From: Stuart Slattery <sslattery at wisc.edu>
| | To: moab-dev at mcs.anl.gov
| | Sent: Tuesday, August 28, 2012 5:26 PM
| | Subject: [MOAB-dev] Mesh Element Geometry
| | Hi Everyone
| | Does MOAB have functionality to compute quantities like the volume
| | or
| | area of mesh entities?
| | Thanks
| | Stuart
| | -- Stuart Slattery
| | Nuclear Regulatory Commission Fellow
| | Computational Nuclear Engineering Research Group
| | Department of Engineering Physics
| | University of Wisconsin - Madison
| | 434 Engineering Research Building
| | 1500 Engineering Drive
| | Madison, WI 53706
| | email : sslattery at wisc.edu
| | cell : 608.843.5871
| | url : http://cnerg.engr.wisc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/moab-dev/attachments/20120828/02f0c07e/attachment.html>
More information about the moab-dev
mailing list