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?


All times are GMT -4. The time now is 18:35.