[CIG-SHORT] Cell centroids

Matthew Knepley knepley at mcs.anl.gov
Sat Sep 8 19:33:56 PDT 2012


On Sat, Sep 8, 2012 at 9:29 PM, Birendra jha <bjha7333 at yahoo.com> wrote:

> Hi
>
> Does anyone know if it is possible to compute and output cell centroid
> coordinates from CUBIT?
>
> If not in CUBIT, is there some other tool (c++ code etc.) for this?
>
> I need it for unstructured hexahedral grid. From google I found:
> http://www.cs.berkeley.edu/~jfc/mirtich/massProps.html
> which I tried to use but I don't understand why it does not work for
> general hexahedron.
>

The way that makes sense in PyLith is to take the middle point in the
reference element,
(0.0,0.0,0.0) I believe, and transform it using the FE Jacobian inverse for
that point. We
have these routines since they are used for point location.

   Matt


> Thanks a lot
> Birendra
> _______________________________________________
> CIG-SHORT mailing list
> CIG-SHORT at geodynamics.org
> http://geodynamics.org/cgi-bin/mailman/listinfo/cig-short
>



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://geodynamics.org/pipermail/cig-short/attachments/20120908/da5fd569/attachment.htm 


More information about the CIG-SHORT mailing list