CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   ParaFoam error with raw (http://www.cfd-online.com/Forums/openfoam-bugs/62421-parafoam-error-raw.html)

chegdan September 10, 2008 17:29

I ran channelOoodles in OF-1.5
 
I ran channelOoodles in OF-1.5 and have results. However, when I view the results in paraview i receive the following error at each timestep containing written data. Thoughts? How can I change writeGradP.H to include a foamFile header?

--> FOAM Serious Error :
From function IOobject::readHeader(Istream&)
in file db/IOobject/IOobjectReadHeader.C at line 93
Reading "/home/dcombest/OpenFOAM/dcombest-1.5/run/tutorials/channelOodles/channel395/2.6 /gradP.raw" at line 1
First token could not be read or is not the keyword 'FoamFile'

Check header is of the form:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.5 |
| \ / A nd | Web: http://www.OpenFOAM.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class IOobject;
location "2.6";
object gradP.raw;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

henry September 11, 2008 04:22

Thanks for the problem report.
 
Thanks for the problem report. I will change the code to write the gradP.raw file into the "uniform" sub-directory where it should really be and upload the change to our git repository.

H

zebu83 July 18, 2009 14:47

I have a similar problem:

Quote:

--> FOAM Serious Error :
From function IOobject::readHeader(Istream&)
in file db/IOobject/IOobjectReadHeader.C at line 93
Reading "/home/cfd/OpenFOAM/simulation/tutorials/channelOodles/channel395/520/w.xy" at line 1
First token could not be read or is not the keyword 'FoamFile'

Check header is of the form:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class IOobject;
location "520";
object w.xy;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
If I try to visualize the result it works without problem. Then I run "postChannel" to produce other statistics of the Channel, but I can't visualize these because I have the quote problem.

Thank you.

Best regard

MT


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