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

"nan" problem

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 10, 2016, 06:53
Default
  #21
Senior Member
 
Asmaa
Join Date: Mar 2016
Posts: 102
Rep Power: 10
foamiste is on a distinguished road
This is my gemoetry, I am setting all boundaries as walls except the liquid level whitch is defined as symmetryPlane. For 0:
p_rgh: fixedFluxPressure ($internaField)
U: fixedValue ($internalField)
T: fixedValue ($internalField)
alpha: zerogradient
Attached Images
File Type: png 5.PNG (73.8 KB, 10 views)
foamiste is offline   Reply With Quote

Old   June 13, 2016, 12:34
Default
  #22
Senior Member
 
rdbisme's Avatar
 
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13
rdbisme is on a distinguished road
Quote:
Originally Posted by foamiste View Post
This is my gemoetry, I am setting all boundaries as walls except the liquid level whitch is defined as symmetryPlane. For 0:
p_rgh: fixedFluxPressure ($internaField)
U: fixedValue ($internalField)
T: fixedValue ($internalField)
alpha: zerogradient
Ok. I'm sorry I'm out of easy ideas since I'm not very expert about MRF and stirred vessels. Hope someone could help more!
foamiste likes this.
rdbisme is offline   Reply With Quote

Old   January 25, 2018, 09:20
Default similar probelem
  #23
Member
 
Foad
Join Date: Aug 2017
Posts: 58
Rep Power: 9
foadsf is on a distinguished road
hello guys, I have also asked this question on reddit and openfoam google group

I kinda have a same issue as the OP so I post here too.
I'm following this tutorial for compressible fluid. except my geometry is little bit different:


But when I try to solve it with sonicFoam I get the error below:

Code:
Time = 0.002

Courant Number mean: 62.7429 max: 120
diagonal:  Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
PIMPLE: iteration 1
smoothSolver:  Solving for Ux, Initial residual = 0.738285, Final residual = 0.357953, No Iterations 1000
smoothSolver:  Solving for Uy, Initial residual = 0.0131426, Final residual = 4.93472e-018, No Iterations 1
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
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 e, 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:/Users/.../20180124/system/data.solverPerformance.e at line 0.

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

FOAM exiting
I would appreciate if you could help me know what is the problem and how I can solve it
Attached Images
File Type: png bitmap.png (6.2 KB, 152 views)
Attached Files
File Type: zip 20180124.zip (12.5 KB, 3 views)
foadsf is offline   Reply With Quote

Old   January 25, 2018, 10:43
Default
  #24
Senior Member
 
rdbisme's Avatar
 
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13
rdbisme is on a distinguished road
Quote:
Originally Posted by foadsf View Post
hello guys, I have also asked this question on reddit and openfoam google group

I kinda have a same issue as the OP so I post here too.
I'm following this tutorial for compressible fluid. except my geometry is little bit different:


But when I try to solve it with sonicFoam I get the error below:

Code:
Time = 0.002

Courant Number mean: 62.7429 max: 120
diagonal:  Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
PIMPLE: iteration 1
smoothSolver:  Solving for Ux, Initial residual = 0.738285, Final residual = 0.357953, No Iterations 1000
smoothSolver:  Solving for Uy, Initial residual = 0.0131426, Final residual = 4.93472e-018, No Iterations 1
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
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 e, 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:/Users/.../20180124/system/data.solverPerformance.e at line 0.

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

FOAM exiting
I would appreciate if you could help me know what is the problem and how I can solve it
I'm sorry, I'm not very familiar with the sonicFoam solver. When NaN are generated it generally it means that something is going deeply wrong.

What I did not get at the beginning is that both of you are using a Windows version of OpenFOAM. Did you try on Linux? Or maybe use a docker image.
rdbisme is offline   Reply With Quote

Old   January 25, 2018, 13:17
Default
  #25
Member
 
Foad
Join Date: Aug 2017
Posts: 58
Rep Power: 9
foadsf is on a distinguished road
I solved the issue and you may see more info here in the OpenFOAM google group. There was actually nothing wrong with my code/model. it was just the model not converging due to the a very high input velocity. At least this was my issue. I'm not sure about the OP though!
foamiste likes this.
foadsf is offline   Reply With Quote

Old   January 25, 2018, 13:28
Default
  #26
Senior Member
 
rdbisme's Avatar
 
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13
rdbisme is on a distinguished road
Quote:
Originally Posted by foadsf View Post
I solved the issue and you may see more info here in the OpenFOAM google group. There was actually nothing wrong with my code/model. it was just the model not converging due to the a very high input velocity. At least this was my issue. I'm not sure about the OP though!
Always check BCs...
rdbisme is offline   Reply With Quote

Old   January 25, 2018, 13:29
Default
  #27
Member
 
Foad
Join Date: Aug 2017
Posts: 58
Rep Power: 9
foadsf is on a distinguished road
Quote:
Originally Posted by tidusuper91 View Post
Always check BCs...
sure. novice here
foadsf 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
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 05:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 06:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 07:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 20:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 15:52


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