CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Bugs (
-   -   Any solution to this? (

lakeat July 6, 2009 22:07

Any solution to this?
Dear all,

You know, gradP.raw in channel flow case cannot be reconstructed, not being recognized as "FoamFile", so it complains error all the way, but when 99 errors are accumulated, reconstruct will finally ABORT. So any solution to this? I know this is not a big deal, but can we switch 99 to 9999, because I need to reconstruct more than 1000 times in my study.

Thank you.


mattijs July 7, 2009 04:32

Thanks for reporting. For now I would create a tar file of them:

cd processor0
find . -name 'grawP.raw' > junk.txt
tar czf file.tgz --files-from junk.txt

then delete them (find . -name 'gradP.raw' -exec rm {} \;), run reconstructPar and then unpack the tar file in the reconstructed directory. Note: just typing this, haven't tried it.

lakeat July 7, 2009 04:58

I see, thanks for the help, it works! But isn't there a solution to add FoamFile head?

fs82 September 25, 2009 04:57

Hello i experienced the same problem but there is a really simple solution. If you download the GIT version of Openfoam 1.5 this problem is fixed. To do it by hand you have to go to the source code of your channelOodles solver and open the files:
writeGradP.H and createGradP.H.
Change every time where the gradP.raw file is touched the path to:
This will write the gradP.raw file to the uniform subdirectory in a time directory and no postprocessing tool will further complain about this file :-D

lakeat September 25, 2009 08:44


All times are GMT -4. The time now is 14:58.