Author Topic: Encountering token type error with TInF tool  (Read 14168 times)

Jack

  • Newbie
  • *
  • Posts: 8
    • View Profile
Encountering token type error with TInF tool
« on: September 22, 2020, 02:26:20 PM »
Hi all,

I used the TInF tool to modify my pisoFoam inlet files with synthetic eddy case with the default settings. When I try to run my case, I am getting the following token type error at the renumbering step:

[8] --> FOAM FATAL IO ERROR:
[8] wrong token type - expected Scalar, found on line 0 the punctuation token '('[36]


Does anyone know what could cause this problem and how should I debug it?

I have attached the log and inflowProperties File below:

Renumber Logs:
/*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  6
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
Build  : 6
Exec   : renumberMesh -overwrite -parallel
Date   : Sep 22 2020
Time   : 02:11:48
Host   : "nia0890.scinet.local"
PID    : 269435
I/O    : uncollated
Case   : LES/LESexp2
nProcs : 160
Slaves :
159
(
"nia0890.scinet.local.269436"
"nia0890.scinet.local.269437"
"nia0890.scinet.local.269438"
"nia0890.scinet.local.269439"
"nia0890.scinet.local.269440"
"nia0890.scinet.local.269441"
"nia0890.scinet.local.269442"
"nia0890.scinet.local.269443"
"nia0890.scinet.local.269444"
"nia0890.scinet.local.269445"
"nia0890.scinet.local.269446"
"nia0890.scinet.local.269447"
"nia0890.scinet.local.269448"
"nia0890.scinet.local.269450"
"nia0890.scinet.local.269451"
"nia0890.scinet.local.269452"
"nia0890.scinet.local.269453"
"nia0890.scinet.local.269454"
"nia0890.scinet.local.269455"
"nia0890.scinet.local.269456"
"nia0890.scinet.local.269457"
"nia0890.scinet.local.269458"
"nia0890.scinet.local.269459"
"nia0890.scinet.local.269460"
"nia0890.scinet.local.269461"
"nia0890.scinet.local.269462"
"nia0890.scinet.local.269463"
"nia0890.scinet.local.269464"
"nia0890.scinet.local.269465"
"nia0890.scinet.local.269466"
"nia0890.scinet.local.269467"
"nia0890.scinet.local.269468"
"nia0890.scinet.local.269469"
"nia0890.scinet.local.269470"
"nia0890.scinet.local.269471"
"nia0890.scinet.local.269472"
"nia0890.scinet.local.269473"
"nia0890.scinet.local.269474"
"nia0890.scinet.local.269475"
"nia0970.scinet.local.392451"
"nia0970.scinet.local.392452"
"nia0970.scinet.local.392453"
"nia0970.scinet.local.392454"
"nia0970.scinet.local.392455"
"nia0970.scinet.local.392456"
"nia0970.scinet.local.392457"
"nia0970.scinet.local.392458"
"nia0970.scinet.local.392459"
"nia0970.scinet.local.392460"
"nia0970.scinet.local.392461"
"nia0970.scinet.local.392462"
"nia0970.scinet.local.392463"
"nia0970.scinet.local.392464"
"nia0970.scinet.local.392465"
"nia0970.scinet.local.392466"
"nia0970.scinet.local.392467"
"nia0970.scinet.local.392468"
"nia0970.scinet.local.392469"
"nia0970.scinet.local.392470"
"nia0970.scinet.local.392471"
"nia0970.scinet.local.392472"
"nia0970.scinet.local.392473"
"nia0970.scinet.local.392474"
"nia0970.scinet.local.392475"
"nia0970.scinet.local.392476"
"nia0970.scinet.local.392477"
"nia0970.scinet.local.392478"
"nia0970.scinet.local.392479"
"nia0970.scinet.local.392480"
"nia0970.scinet.local.392481"
"nia0970.scinet.local.392482"
"nia0970.scinet.local.392483"
"nia0970.scinet.local.392484"
"nia0970.scinet.local.392485"
"nia0970.scinet.local.392486"
"nia0970.scinet.local.392487"
"nia0970.scinet.local.392488"
"nia0970.scinet.local.392489"
"nia0970.scinet.local.392490"
"nia1021.scinet.local.361108"
"nia1021.scinet.local.361109"
"nia1021.scinet.local.361110"
"nia1021.scinet.local.361111"
"nia1021.scinet.local.361112"
"nia1021.scinet.local.361113"
"nia1021.scinet.local.361114"
"nia1021.scinet.local.361115"
"nia1021.scinet.local.361116"
"nia1021.scinet.local.361117"
"nia1021.scinet.local.361118"
"nia1021.scinet.local.361119"
"nia1021.scinet.local.361120"
"nia1021.scinet.local.361121"
"nia1021.scinet.local.361122"
"nia1021.scinet.local.361123"
"nia1021.scinet.local.361124"
"nia1021.scinet.local.361125"
"nia1021.scinet.local.361126"
"nia1021.scinet.local.361127"
"nia1021.scinet.local.361128"
"nia1021.scinet.local.361129"
"nia1021.scinet.local.361130"
"nia1021.scinet.local.361131"
"nia1021.scinet.local.361132"
"nia1021.scinet.local.361134"
"nia1021.scinet.local.361135"
"nia1021.scinet.local.361136"
"nia1021.scinet.local.361137"
"nia1021.scinet.local.361138"
"nia1021.scinet.local.361139"
"nia1021.scinet.local.361140"
"nia1021.scinet.local.361141"
"nia1021.scinet.local.361142"
"nia1021.scinet.local.361143"
"nia1021.scinet.local.361144"
"nia1021.scinet.local.361145"
"nia1021.scinet.local.361146"
"nia1021.scinet.local.361147"
"nia1021.scinet.local.361148"
"nia1022.scinet.local.112911"
"nia1022.scinet.local.112912"
"nia1022.scinet.local.112913"
"nia1022.scinet.local.112914"
"nia1022.scinet.local.112915"
"nia1022.scinet.local.112916"
"nia1022.scinet.local.112917"
"nia1022.scinet.local.112918"
"nia1022.scinet.local.112919"
"nia1022.scinet.local.112920"
"nia1022.scinet.local.112921"
"nia1022.scinet.local.112922"
"nia1022.scinet.local.112923"
"nia1022.scinet.local.112924"
"nia1022.scinet.local.112925"
"nia1022.scinet.local.112926"
"nia1022.scinet.local.112927"
"nia1022.scinet.local.112928"
"nia1022.scinet.local.112929"
"nia1022.scinet.local.112930"
"nia1022.scinet.local.112931"
"nia1022.scinet.local.112932"
"nia1022.scinet.local.112933"
"nia1022.scinet.local.112934"
"nia1022.scinet.local.112935"
"nia1022.scinet.local.112936"
"nia1022.scinet.local.112937"
"nia1022.scinet.local.112938"
"nia1022.scinet.local.112939"
"nia1022.scinet.local.112940"
"nia1022.scinet.local.112941"
"nia1022.scinet.local.112942"
"nia1022.scinet.local.112943"
"nia1022.scinet.local.112944"
"nia1022.scinet.local.112945"
"nia1022.scinet.local.112946"
"nia1022.scinet.local.112947"
"nia1022.scinet.local.112948"
"nia1022.scinet.local.112949"
"nia1022.scinet.local.112950"
)

Pstream initialized with:
    floatTransfer      : 0
    nProcsSimpleSum    : 0
    commsType          : nonBlocking
    polling iterations : 0
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Mesh size: 5950559
Before renumbering :
    band           : 37556
    profile        : 1.25177e+10

Using default renumberMethod.

Selecting renumberMethod CuthillMcKee

Reading geometric fields

Reading volScalarField p
Reading volScalarField nut
Reading volScalarField k
Reading volScalarField nuSgs
Reading volVectorField U
Turbulent DFSEM patch inlet: calculating field R from "/gpfs/fs0/scratch/p/pjk/wongja33/LES/LESexp2/constant/inflowProperties"
  • [12]
  • [12]
    [12] --> FOAM FATAL IO ERROR:
    [12] wrong token type - expected Scalar, found on line 0 the punctuation token '('
    [12]
    [8]
    [8]
    [8] --> FOAM FATAL IO ERROR:
    [8] wrong token type - expected Scalar, found on line 0 the punctuation token '('[36]

    *more wrong token type erros*





    inflowProperties File:
    /*--------------------------------*- C++ -*----------------------------------*\
      =========                 |
      \      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
       \    /   O peration     | Website: 
https://openfoam.org
    \  /    A nd           | Version:  6
     \/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      inflowProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


Naxis       ( 0 0 0 );
offset      ( 0 0 0 );

// mean velocity

UDict
{
    referenceValue          1;
    profile                 uniform;
}

// Reynolds stress

RDict
{
    referenceValue          (1  0  0  1  0  1);
    profile                 uniform;
}

// integral length scale

LDict
{
    referenceValue          (1  1  1  1  1  1  1  1  1);
    profile                 uniform;
}



// ************************************************************************* //


pmackenz

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Encountering token type error with TInF tool
« Reply #1 on: September 22, 2020, 07:25:47 PM »
Jack,

The files you are sharing do not include the turbulence inflow definitions written by TInF.  Did you copy all the (modified) files in the 0, constant, and system folders?  Could you please verify that?

If the problem persists after making sure all files have been properly copied to your project, please create a simple (smallest project that shows the issue) and email me all files from BEFORE and all files from AFTER running TInF as a .zip or .tar file to pmackenz at uw dot edu.  I could further connect via zoom and look at the issue together with you so I can fully understand what is going on.

Peter