extract the cell center coordinates if the CELLID is know
If I know the cell ID, how can I know the cell centroid coordinates in paraview? Thank you very much.
There are probably a few ways you can do this.
I suggest using the following steps:
Another way to obtain the cell center coordinates is to run the standard utility writeCellCentres. It creates fields ccx, ccy and ccz with the x, y and z components of the cell center coordinates, which can be loaded in Paraview.
The users interested in writeCellCentres may want to know that there is also the cellCenters utility created by @opedrofunk, which is "similar to the writeCellCentres utility[...], except that it outputs a single file with the vector coordinates of the cell center positions".
|All times are GMT -4. The time now is 17:16.|