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

wrong token type - expected Scalar, found on line 0 the word 'nan'

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 11, 2015, 09:22
Default wrong token type - expected Scalar, found on line 0 the word 'nan'
  #1
New Member
 
as
Join Date: Jul 2015
Posts: 19
Rep Power: 11
anuja is on a distinguished road
Hi I am getting this error

wrong token type - expected Scalar, found on line 0 the word 'nan'

file: C:/OpenFOAM/cygwin64/home/mahaanu/OpenFOAM/mahaanu-2.3.x/run/trial_plate2/system/data.solverPerformance.p_rgh at line 0.

From function operator>>(Istream&, Scalar&)
in file lnInclude/Scalar.C at line 93.


I am trying to solve a porousInterFoam problem with the following boundary conditions for resin as the fluid. Can you please tell me where I am going wrong?

Thanks in advance!

P_rgh
boundaryField
{
FrontAndBack
{
type empty;
}

atmosphere
{
type totalPressure;
p0 uniform 0;
U U;
phi phi;
rho rho;
psi none;
gamma 1;
value uniform 0;
}

lowerWall
{
type fixedFluxPressure;
value uniform 0;
}

leftWall
{
type fixedFluxPressure;
value uniform 0;
}

rightWall
{
type fixedFluxPressure;
value uniform 0;
}

porosityWall
{
type fixedFluxPressure;
value uniform 0;
}


}

U
boundaryField
{
FrontAndBack
{
type empty;
}

atmosphere
{
type pressureInletOutletVelocity;
value uniform (0 0 0);
}

lowerWall
{
type fixedValue;
value uniform (0. 0. 0.);
}

leftWall
{
type fixedValue;
value uniform (0. 0. 0.);
}

rightWall
{
type fixedValue;
value uniform (0. 0. 0.);
}

porosityWall
{
type slip;
value uniform (0 0 0);
}


}

alpha.resin
boundaryField
{
leftWall
{
type zeroGradient;
}

rightWall
{
type zeroGradient;
}

lowerWall
{
type zeroGradient;
}

porosityWall
{
type zeroGradient;
}

atmosphere
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
}

FrontAndBack
{
type empty;

}


Regards.
anuja is offline   Reply With Quote

Old   August 12, 2015, 10:26
Default
  #2
Member
 
Nicole Andrew
Join Date: Sep 2014
Location: Pretoria, South Africa
Posts: 58
Rep Power: 12
Nicole is on a distinguished road
Hi,

I am no expert, but looking at your error message and trying to decode it:

1) "nan" is usually "Not a number" and is not a good thing
2) I have never seen a case structure with "system/data.solverPerformance.p_rgh" (but this may be due to my inexperience)

You did not give very much info, some follow up questions:
1) When do you get this error? As you run the case? After some iterations?
2) What files do you have in your "system" folder in your case setup?
Nicole 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
wrong token type - expected Scalar, found on line 0 the word 'nan' CrisMoreira OpenFOAM Running, Solving & CFD 0 July 9, 2015 10:15
Error during initialization of "rhoSimpleFoam" kornickel OpenFOAM Running, Solving & CFD 8 September 17, 2013 06:37
Pressure instability with rhoSimpleFoam daniel_mills OpenFOAM Running, Solving & CFD 44 February 17, 2011 18:08
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 05:26
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51


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