CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   How can I define the cell centers without using writeCellCenters? (http://www.cfd-online.com/Forums/openfoam-post-processing/87492-how-can-i-define-cell-centers-without-using-writecellcenters.html)

Taylorreihe April 21, 2011 07:34

How can I define the cell centers without using writeCellCenters?
 
Hello,

I want to define the cell centers so I have the coordinates for my Velocity U and my pressure p without using the command writeCellCenters. I have a mesh that do not move. Can somebody help me and know a method to avoid that the coordinates are written in every time directory?

Thank you in advance.

ngj April 21, 2011 08:35

Hi

You can typically write

Code:

writeCellCentres -help
to see the available options. In your case you can use either

Code:

writeCellCentres -latestTime
writeCellCentres -time <VALUE>

depending on the time folder, where you want the values to be written.

Best regards

Niels

Taylorreihe April 23, 2011 17:35

Hi Niels,

thank you very much :-)! It's quite simple :P.

Have a nice weekend.

Best regards,
Kris

sakro May 5, 2011 06:54

Hi, my question is pretty much related to this thread =)
is it possible to get cell centers only for a cellSet? Not for every cell in my mesh?

anishtain4 February 19, 2016 13:46

I have some trouble with this utility.
I used it on the channel395 tutorial case and grid points don't make any sense:
Y is defined from 0 to 2 in blockMeshDict, but values for both block start from zero to 1. Also the second block is upside down.
There is only 15 unique Z values while there should be 30. Also there is no block in the Z direction so one doesn't expects any irregularity in that direction.

I don't expect the values be ordered (since the grid is stored in an unstructured manner), but I would expect the grids to have correct physical positions. Does anyone knows how to achieve this?


All times are GMT -4. The time now is 03:30.