CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Bugs (
-   -   Bug caused by CrankNicholson scheme (

cbeck September 3, 2008 17:56

Using the Crank-Nicholson Sche
Using the Crank-Nicholson Scheme in compressible transient solvers causes a unit problem in the pressure correction.

I can reproduce the problem with the coodles tutorial. Can anybody else confim this?

/openfoam-extend/branches/OpenCFD_Release/OpenFOAM-1.5_patch/ (a couple of weeks old)

kind regards,
Christian Beck

henry September 4, 2008 03:41

Thanks for the bug report. I
Thanks for the bug report. I have fixed the problem and running the coodles tutorial at the moment. If all is well I will upload the patch to our 1.5.x git repository (see for download details) later today.


carsten September 12, 2008 09:41

I observed the same problem wi
I observed the same problem with lesInterFoam: If I switch to Crank-Nicholson, a dimension error appears.



henry September 12, 2008 11:07

Even when using the version I
Even when using the version I fixed and uploaded to our git repository?


carsten September 15, 2008 05:32

Uhhhh. Difficult to say, sorry
Uhhhh. Difficult to say, sorry. I can't reconstruct exactly when I did check-out and I fear to check it out again, because I don't want to loose my settings/changes, which were necessary for compilation on our machine.

Anyhow, I will try to recompile in another directory and will report my findings.



carsten September 15, 2008 11:02

O.k., problem still exists. I
O.k., problem still exists. I checked out a new tree this morning and still have the problem.

You can recreate it with the lesInterFoam-tutorial, simply switch to CrankNicholson and it will die.



henry September 15, 2008 11:48

OK I will look into it... H
OK I will look into it...


virginie_e March 27, 2009 05:43


I also have a bug when trying to use the crankNicholson scheme with interTrackFoam. However, it is not a dimension problem. The error message is rather:

attempt to read beyond EOF
file: /users/V1117324/OpenFOAM/v1117324-1.5-dev/run/tutorials/interTrackFoam/hydrofoil/system/fvSchemes::ddt(rho,U) at line 21.
From function ITstream::read(token& t)
in file db/IOstreams/Tstreams/ITread.C at line 64.
FOAM exiting

Do you know what this means? Thank you.


alberto March 28, 2009 02:48

Hi Virginie_e,
that's not a bug but a typo or an error in the specification of the scheme. Did you specify a number between 0 (Euler) and 1 (pure Crank Nicholson) after the scheme name?
If this is not the case, please post your fvScheme file in the appropriate forum. This one is specific for bugs :D


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