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 Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By The King

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: 52
Rep Power: 7
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: 36
Rep Power: 7
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: 46
Rep Power: 15
The King is on a distinguished road
Try: postProcess -func writeCellCentres
The King is offline   Reply With Quote

Old   March 15, 2022, 01:49
Default
  #4
Member
 
Mahmoud
Join Date: Nov 2020
Location: United Kingdom
Posts: 43
Rep Power: 5
Mahmoud Abbaszadeh is on a distinguished road
Quote:
Originally Posted by The King View Post
Try: postProcess -func writeCellCentres
This worked for me

Thanks
Mahmoud Abbaszadeh is offline   Reply With Quote

Reply


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 02:40.