CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

OF+/v1712 incorrect first token

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By luther1990

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 28, 2018, 20:50
Default OF+/v1712 incorrect first token
  #1
Member
 
Robert Ong
Join Date: Aug 2010
Posts: 86
Rep Power: 16
rob3rt 0ng is on a distinguished road
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:perator>>(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
rob3rt 0ng is offline   Reply With Quote

Old   January 29, 2018, 01:28
Default
  #2
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
Please give at least line 8 of 0/U.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   January 29, 2018, 01:34
Default
  #3
Member
 
Robert Ong
Join Date: Aug 2010
Posts: 86
Rep Power: 16
rob3rt 0ng is on a distinguished road
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
rob3rt 0ng is offline   Reply With Quote

Old   January 30, 2018, 01:00
Default
  #4
New Member
 
Yuncheng Xu (Cloud)
Join Date: May 2011
Location: State College, PA
Posts: 20
Rep Power: 15
luther1990 is on a distinguished road
Quote:
Originally Posted by rob3rt 0ng View Post
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
aow likes this.
luther1990 is offline   Reply With Quote

Old   January 30, 2018, 05:16
Default
  #5
Member
 
Robert Ong
Join Date: Aug 2010
Posts: 86
Rep Power: 16
rob3rt 0ng is on a distinguished road
Thanks. The issue is resolved.
rob3rt 0ng 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
Problem About Running Fluent In Linux mitra FLUENT 18 June 20, 2019 03:11
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 3 August 27, 2018 05:18
Field Mapper- Mesh refinment mm.abdollahzadeh OpenFOAM Programming & Development 2 January 24, 2013 10:18
wmake compiling Problem with OF1.5 openTom OpenFOAM Installation 4 May 3, 2009 15:44
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 18:38


All times are GMT -4. The time now is 23:25.