CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

writeCellCenter function not available in OF6

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2019, 09:40
Default writeCellCenter function not available in OF6
  #1
Member
 
Ilan
Join Date: Dec 2018
Posts: 32
Rep Power: 3
Magistrane is on a distinguished road
Hello Foamers,

I am trying to get my mesh cell centrer through time (mooving mesh) in post-processing (not using probes).

I searched a lot but didn't find any solution. Anyway, there is a function : writeCellCenters that exist in old versions of openfoam. But in OF6, when I enter writeCellCenters in my terminal, the function isn't recognize. However, this writeCellCenters.C file exists and is supposed to writeCellCenters for a given time.

So I have two questions :

1) How can I use this function ?

2) Do anyone have an idea how to get cellCenter through time ?
Code:
    forAll(timeDirs, timeI)
    {
        runTime.setTime(timeDirs[timeI], timeI);

        Info<< "\nTime = " << runTime.timeName() << endl;
        Info << mesh.cellCentres()[cellI]<<endl;
     }
This is just sending me back the same table of every times.


Thanks guys,

Have a good day!
Magistrane is offline   Reply With Quote

Old   July 4, 2019, 03:45
Default
  #2
Member
 
Adam
Join Date: Nov 2018
Posts: 31
Rep Power: 3
Adam_K is on a distinguished road
Quote:
Originally Posted by Magistrane View Post
Hello Foamers,

I am trying to get my mesh cell centrer through time (mooving mesh) in post-processing (not using probes).

I searched a lot but didn't find any solution. Anyway, there is a function : writeCellCenters that exist in old versions of openfoam. But in OF6, when I enter writeCellCenters in my terminal, the function isn't recognize.
Are you sure you're using the correct spelling of "centre" in your code?

It's apparently writeCellCentres, not writeCellCenters
Adam_K is offline   Reply With Quote

Old   June 15, 2020, 02:02
Default
  #3
Member
 
Arnout
Join Date: Nov 2010
Posts: 44
Rep Power: 11
The King is on a distinguished road
Try: postProcess -func writeCellCentres
The King is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[mesh manipulation] RefineMesh Error and Foam warning jiahui_93 OpenFOAM Meshing & Mesh Conversion 4 March 3, 2018 11:32
compressible flow in turbocharger riesotto OpenFOAM 50 May 26, 2014 01:47
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 09:56
Compilation errors in ThirdPartymallochoard feng_w OpenFOAM Installation 1 January 25, 2009 06:59
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50


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