CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (http://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   how to get the (x,y,z) coordinate of the cells created by blockMesh (http://www.cfd-online.com/Forums/openfoam-meshing/116472-how-get-x-y-z-coordinate-cells-created-blockmesh.html)

sophie_l April 19, 2013 17:35

how to get the (x,y,z) coordinate of the cells created by blockMesh
 
Hi,

When we use blockMesh to create the mesh, the mesh files such as 'boundaries', 'faces', 'neighbours', 'owners', 'points' will be generated. Just wondering how could I determine the coordinates of each cell based on those files?

Many thanks in advance!
Sophie

ngj April 20, 2013 04:20

Hi Sophie,

You can directly use the utility

Code:

writeCellCentres -time 0
which will write the coordinates to the files ccx, ccy and ccz in the 0 time directory.

Kind regards

Niels

sophie_l April 20, 2013 06:19

Hi Niels,

Thank you so much! It's fantastic!

best wishes,
Sophie


All times are GMT -4. The time now is 09:11.