CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   rhoCentralFoam tutorial Courant nan (https://www.cfd-online.com/Forums/openfoam-solving/192062-rhocentralfoam-tutorial-courant-nan.html)

gcordobaguerrero August 27, 2017 12:01

rhoCentralFoam tutorial Courant nan
 
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 August 27, 2017 12:16

test with sonicFoam
 
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 August 27, 2017 12:37

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

tomf August 28, 2017 05:11

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


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