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

Need Help Here! nan value error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 19, 2016, 03:06
Unhappy Need Help Here! nan value error
  #1
New Member
 
Mingi Park
Join Date: Jan 2016
Posts: 1
Rep Power: 0
mgkid3310 is on a distinguished road
$ sonicFoam
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
/* Windows port by CFD support (www.cfdsupport.com) [based on Symscape] *\
\*---------------------------------------------------------------------------*/
Build : 2.3.x-819030ed51bd
Exec : C:\OpenFOAM\cygwin64\opt\OpenFOAM\OpenFOAM-2.3.x\platforms\cygwin64mingw-w64DPOpt\bin\sonicFoam.exe
Date : Jan 19 2016
Time : 07:54:39
Host : "MSDN-SPECIAL"
PID : 6776
Case : C:/OpenFOAM/cygwin64/home/Administrator/OpenFOAM_cases/case-compressible-sonic
nProcs : 1
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

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

Create mesh for time = 0

Reading thermophysical properties

Selecting thermodynamics package
{
type hePsiThermo;
mixture pureMixture;
transport const;
thermo hConst;
equationOfState perfectGas;
specie specie;
energy sensibleInternalEnergy;
}

Reading field U

Reading/calculating face flux field phi

Creating turbulence model

Selecting turbulence model type laminar
Creating field kinetic energy K

No finite volume options present


PIMPLE: no residual control data found. Calculations will employ 2 corrector loops


Starting time loop

Time = 0.001

Courant Number mean: 0 max: 0
diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
PIMPLE: iteration 1
smoothSolver: Solving for Ux, Initial residual = 1, Final residual = 1.65843e-017, No Iterations 1
smoothSolver: Solving for Uy, Initial residual = 1, Final residual = 1.36774e-017, No Iterations 1
smoothSolver: Solving for Uz, Initial residual = 1, Final residual = 1.70257e-017, No Iterations 1
smoothSolver: Solving for e, Initial residual = 0.000411005, Final residual = 2.93986e-006, No Iterations 1
smoothSolver: Solving for p, Initial residual = 1, Final residual = 0.00273701, No Iterations 1000
diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
time step continuity errors : sum local = 0.069875, global = 0.069875, cumulative = 0.069875
PIMPLE: iteration 2
smoothSolver: Solving for Ux, Initial residual = 0.993202, Final residual = 7.8103e-006, No Iterations 36
smoothSolver: Solving for Uy, Initial residual = 0.965719, Final residual = 8.64959e-006, No Iterations 40
smoothSolver: Solving for Uz, Initial residual = 0.993176, Final residual = 9.24674e-006, No Iterations 37
smoothSolver: Solving for e, Initial residual = 1, Final residual = nan, No Iterations 1000
smoothSolver: Solving for p, Initial residual = nan, Final residual = nan, No Iterations 1000
diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
time step continuity errors : sum local = nan, global = nan, cumulative = nan
ExecutionTime = 97.533 s ClockTime = 98 s

Time = 0.002

Courant Number mean: nan max: nan
diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
PIMPLE: iteration 1
smoothSolver: Solving for Ux, Initial residual = nan, Final residual = nan, No Iterations 1000
smoothSolver: Solving for Uy, Initial residual = nan, Final residual = nan, No Iterations 1000
smoothSolver: Solving for Uz, Initial residual = nan, Final residual = nan, No Iterations 1000
smoothSolver: Solving for e, Initial residual = nan, Final residual = nan, No Iterations 1000
smoothSolver: Solving for p, Initial residual = nan, Final residual = nan, No Iterations 1000
diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
time step continuity errors : sum local = nan, global = nan, cumulative = nan
PIMPLE: iteration 2
smoothSolver: Solving for Ux, Initial residual = nan, Final residual = nan, No Iterations 1000
smoothSolver: Solving for Uy, Initial residual = nan, Final residual = nan, No Iterations 1000
smoothSolver: Solving for Uz, Initial residual = nan, Final residual = nan, No Iterations 1000


--> FOAM FATAL IO ERROR:
wrong token type - expected Scalar, found on line 0 the word 'nan'

file: C:/OpenFOAM/cygwin64/home/Administrator/OpenFOAM_cases/case-compressible-sonic/system/data.solverPerformance.U at line 0.

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

FOAM exiting




i'm running a simulation of a rocket nozzle using openFoam since the Fluent license expired. I'm very new to openFoam, so i have almost no idea why this error happens. The simulation was based on sonicFoam laminar tutorial.

Here's the case file: https://www.dropbox.com/s/lzgbwv7yce...sonic.zip?dl=0
mgkid3310 is offline   Reply With Quote

Old   October 6, 2016, 00:59
Default
  #2
New Member
 
Teja
Join Date: Jul 2016
Posts: 6
Rep Power: 9
gtpunnamarajuaju@gmail.co is on a distinguished road
Hi,
Is your problem solved? I got a similar error in my code. If your problem is solved, could you please help me.

Thank you
gtpunnamarajuaju@gmail.co 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
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 13:21
Undeclared Identifier Errof UDF SteveGoat Fluent UDF and Scheme Programming 7 October 15, 2014 07:11
Errors in UDF shashank312 Fluent UDF and Scheme Programming 6 May 30, 2013 20:30
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07


All times are GMT -4. The time now is 06:19.