|
[Sponsors] |
writeCellCenter function not available in OF6 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 3, 2019, 09:40 |
writeCellCenter function not available in OF6
|
#1 |
Member
Ilan
Join Date: Dec 2018
Posts: 52
Rep Power: 7 |
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; } Thanks guys, Have a good day! |
|
July 4, 2019, 03:45 |
|
#2 | |
Member
Adam
Join Date: Nov 2018
Posts: 36
Rep Power: 7 |
Quote:
It's apparently writeCellCentres, not writeCellCenters |
||
June 15, 2020, 02:02 |
|
#3 |
Member
Arnout
Join Date: Nov 2010
Posts: 46
Rep Power: 15 |
Try: postProcess -func writeCellCentres
|
|
March 15, 2022, 01:49 |
|
#4 |
Member
Mahmoud
Join Date: Nov 2020
Location: United Kingdom
Posts: 43
Rep Power: 5 |
||
|
|
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 |