[CIG-SHORT] Cell centroids

Brad Aagaard baagaard at usgs.gov
Sat Sep 8 21:10:13 PDT 2012


Birendra,

If you install netCDF4 you can read netcdf (Exodus files) via python and 
it is trivial to compute the cell centroids in a few lines of code. 
There is also a chance you can do this in ParaView either via a filter 
or via a script.

Brad


On 9/8/12 7:29 PM, Birendra jha 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.
>
> Thanks a lot
> Birendra
>



More information about the CIG-SHORT mailing list