CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   OF+/v1712 incorrect first token (https://www.cfd-online.com/Forums/openfoam-solving/198142-v1712-incorrect-first-token.html)

rob3rt 0ng January 28, 2018 19:50

OF+/v1712 incorrect first token
 
Hi,

I am using OF+/v1712, and the error is related with using the timeVaryingMappedFixedValue which looks up for inputs in the constant/boundaryData. When I run decomposePar, I am getting this error:

--> FOAM FATAL IO ERROR:
incorrect first token, expected <int> or '(', found on line 8: word 'FoamFile'

file: /scratch/RDS-FEI-Bushfire-RW/silsoe_validation/komegasstiddes_mesh1/constant/boundaryData/inlet/0/U at line 8.

From function Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::List<T>&) [with T = Foam::Vector<double>]
in file /usr/local/openfoam/v1712/OpenFOAM-v1712/src/OpenFOAM/lnInclude/ListIO.C at line 152.

FOAM exiting

I don't have the same error using the older or other OpenFOAM.org versions. Please help if you know the workaround.

Thanks and regards,
Robert

piu58 January 29, 2018 00:28

Please give at least line 8 of 0/U.

rob3rt 0ng January 29, 2018 00:34

Hi Uwe,

It's a standard FOAM header. Line #8 is the word FoamFile.

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 3.0.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class vectorAverageField;
location "constant/boundaryData/inlet/0.1";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

Thanks
Robert

luther1990 January 30, 2018 00:00

Quote:

Originally Posted by rob3rt 0ng (Post 679706)
Hi Uwe,

It's a standard FOAM header. Line #8 is the word FoamFile.

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 3.0.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class vectorAverageField;
location "constant/boundaryData/inlet/0.1";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

Thanks
Robert

In the latest version, the boundaryData file does not need a foam head.
check this
https://github.com/OpenFOAM/OpenFOAM...Data/inlet/0/U

rob3rt 0ng January 30, 2018 04:16

Thanks. The issue is resolved.


All times are GMT -4. The time now is 05:55.