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

wrong token type - expected word

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 4, 2022, 07:44
Default wrong token type - expected word
  #1
Member
 
Mohammad Reza
Join Date: Sep 2015
Posts: 44
Rep Power: 11
Bana is on a distinguished road
Hello All,

I am facing a weird error! I am using OpenFOAM-Extend 4.1 and I have mixed CavitatingFoam with chtMultiRegionFoam. The solver I developed compiled without any error, then I prepared a case based on the multiRegionHeater tutorial.

While running this case, for the fluid region it does not accept the same entries as it is in the cavitatingFoam and it produces the following error:

PHP Code:
wrong token type expected Scalarfound on line 19 the word 'psiv' 
The following is the entry in thermodynamicProperties file:

PHP Code:
psiv                              psiv       [-2 2 0 0]     2.5e-06
After that to solve it I changed the entry to:

PHP Code:
psiv                              2.5e-06
but this time the following error appears:

PHP Code:
wrong token type expected word found on line 19 the doubleScalar 2.5e-06 
So at first it says that it expects double and when I change it to the double it gets an error that it needs a word!


The part of the code that asks for the entry in my solver is:


PHP Code:
psivFluid.set
(
    
i,
    new 
dimensionedScalar
    
(
        
"psiv",
        
dimensionSet(0,-2,2,0,0,0,0),
        
thermodynamicPropertiesFluid[i].lookup("psiv")
    )
); 

If anybody can give me a hint about the source of this error it will be very much appreciated.

Thanks and regards
Bana is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Multiphase euler foam problem with velocity vector enthusiast OpenFOAM Running, Solving & CFD 1 January 20, 2023 04:54
multiphaseEulerFoam/tank discharge ves OpenFOAM Running, Solving & CFD 8 December 31, 2017 15:59
wrong token type - expected Scalar, found on line 0 the word 'nan' anuja OpenFOAM Bugs 1 December 8, 2015 11:04
Divergent temperature in chtMultiRegion(Simple)Foam akrasemann OpenFOAM Running, Solving & CFD 13 March 24, 2014 03:54
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 21:50


All times are GMT -4. The time now is 11:12.