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

How to remove this openFoam error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2017, 01:13
Default How to remove this openFoam error
  #1
New Member
 
Taoyuan
Join Date: Dec 2017
Posts: 2
Rep Power: 0
manojlike225@gmail.com is on a distinguished road
I have run the case using openFoam, but showing scalar error
Capture.PNG
please see this attachment
Please give me your suggestions to rectify this error
manojlike225@gmail.com is offline   Reply With Quote

Old   December 12, 2017, 04:52
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Look at Courant number, your simulation is diverging (and with the information, you have posted it is almost impossible to tell the reason).
alexeym is offline   Reply With Quote

Old   December 14, 2017, 13:13
Default Quick advice
  #3
New Member
 
Dominik Pöltl
Join Date: Jul 2013
Location: Hamburg
Posts: 21
Rep Power: 12
Yeru is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,

Look at Courant number, your simulation is diverging (and with the information, you have posted it is almost impossible to tell the reason).
Alexey's right.

Without deeper knowledge, here's some quick advice (1 or 2 or 3):
  1. Insert
    Code:
    runTimeModifiable yes;
    adjustTimeStep  yes;
    
    maxCo           0.2;
    in your controlDict
    (or choose something different <1)
  2. Decrease your deltaT by multiple orders of magnitude
  3. (if a similar case exists) map the internal field onto your case before starting your computation (check the tutorial "incompressible/icoFoam/cavity" for more infos)
Cheers,
Yeru
Yeru is offline   Reply With Quote

Old   December 14, 2017, 17:23
Default
  #4
New Member
 
Aäron Thijs
Join Date: Oct 2016
Location: Belgium
Posts: 10
Rep Power: 9
pi__sec is on a distinguished road
The useful OpenFoam advice has already been given in the previous two posts. I just wanted to add some more info and an explanation about the error itself.

What seems to be happening, as also stated previously, is that the simulated values explode, due to what seems to be a large time step of 0.005s. This causes the Courant number to be way too large.

The two first points of advice Yeru gives basically do the following:
  1. The code keeps the Courant number below the given value by adjusting the time step automatically. If a time step is too large and Courant number increases, it will automatically be lowered.
  2. Point two basically decreases the Courant number statically by choosing a small time step yourself, which will then be used throughout the whole simulation
Commonly values exploding in a simulation end up throwing a floating point exception, because of illegal mathematical operations like division by zero. The reason you end up with an IO (input/output) error is that in your last time step the calculated pressure ends up being nan (also known as NaN). NaN stands for "Not a Number". Here is the wikipedia page explaining further. The nan word is not interpreted as a scalar by the input stream, and thus the error results.

Last edited by pi__sec; December 14, 2017 at 17:25. Reason: Use of correct word
pi__sec is offline   Reply With Quote

Old   December 14, 2017, 22:24
Default
  #5
New Member
 
Taoyuan
Join Date: Dec 2017
Posts: 2
Rep Power: 0
manojlike225@gmail.com is on a distinguished road
Thank you so much
manojlike225@gmail.com is offline   Reply With Quote

Reply

Tags
openfoam, scalar error


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
Pressure outlet boundary condition rolando OpenFOAM Running, Solving & CFD 62 September 18, 2017 06:45
Mesquite - Adaptive mesh refinement / coarsening? philippose OpenFOAM Running, Solving & CFD 94 January 27, 2016 09:40
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 09:31
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 18:44
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50


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