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

rhoCentralFoam tutorial Courant nan

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 27, 2017, 12:01
Default rhoCentralFoam tutorial Courant nan
  #1
New Member
 
Gustavo Cordoba
Join Date: Aug 2017
Location: Pasto, Colombia
Posts: 6
Rep Power: 2
gcordobaguerrero is on a distinguished road
Hello,

I installed openFoam 4.0 from Debian repository.
First, the examples did not run properly. Thus, I downloaded the tutorial from the openFoam site repository for the 4.0 version. At least the incompressible cavity example ran ok.

However, when the compressible rhoCentralFoam was tested with shocktube example, it reports inmediatelly:
---------
Mean and max Courant Numbers = nan nan
deltaT = 1.19904e-06
Time = 1.19904e-06
---------
The program then runs each of the time step with nan on each of the variables.

Any idea?
gcordobaguerrero is offline   Reply With Quote

Old   August 27, 2017, 12:16
Default test with sonicFoam
  #2
New Member
 
Gustavo Cordoba
Join Date: Aug 2017
Location: Pasto, Colombia
Posts: 6
Rep Power: 2
gcordobaguerrero is on a distinguished road
Hi, perhaps this helps:

The example "prism" within compressible/sonicFoam/ras works fine.
Whereas the "shocktube" example within compressible/sonicFoam/laminar result in a similar error that the one reported in rhoCantralFoam:
---------------------
Creating turbulence model

Selecting turbulence model type laminar
Creating field kinetic energy K

No MRF models present

No finite volume options present


Starting time loop

Time = 1e-05

Courant Number mean: nan max: nan
----------------------------
gcordobaguerrero is offline   Reply With Quote

Old   August 27, 2017, 12:37
Default
  #3
New Member
 
Gustavo Cordoba
Join Date: Aug 2017
Location: Pasto, Colombia
Posts: 6
Rep Power: 2
gcordobaguerrero is on a distinguished road
Fixed!

I did not know that setFields command must be run before typing rhoCentralFoam

I suggest that tutorials should have at least a minimalistic README
gcordobaguerrero is offline   Reply With Quote

Old   August 28, 2017, 05:11
Default
  #4
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 387
Rep Power: 14
tomf is on a distinguished road
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi,

Most tutorials have a Allrun script that shows the steps. I think those show the general way to run a particular tutorial. If there is no Allrun script it probably is just blockMesh and then the solver.

In OpenFOAM 4.x there is at least a script that shows that setFields is needed for the shocktube tutorial. Not sure if it was missing in OpenFOAM 4.0, but I think it would not need a README in this case.

Regards,
Tom
tomf is offline   Reply With Quote

Reply

Tags
courant number, nan, rhocentralfoam, tutorial

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
cyclicACMI gives Courant number nan Drew1 OpenFOAM 0 July 22, 2014 16:46
SixDoFRigidBodyMotion under OF2.3 ( self oscillating cylinder) Scabbard OpenFOAM Running, Solving & CFD 1 July 22, 2014 04:50
Why simulation results showing "nan" values? Sargam05 OpenFOAM 4 September 10, 2012 12:37
[Virtualization] OpenFOAM oriented tutorial on using VMware Player - support thread wyldckat OpenFOAM Installation 2 July 11, 2012 16:01
pls help fluctuating residuals due to courant no sagar CFX 3 March 28, 2006 01:10


All times are GMT -4. The time now is 15:41.