CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Tutorial Cases (Help) (

Rophys January 30, 2012 11:42

Tutorial Cases (Help)
Hi Everybody,

I've seen that some tutorial cases is not running correctly in the OpenFoam, so this new thread open a space for the CDF online members discuss and learn how to solve this problems.

Let's start:

* I am using the solver rhoCentralFoam to solve the biconic25-55Run35 case and I followed the this steps:
1-blockMesh (ok)
2-checkMesh (ok)
Gave me the following error:
Cannot find file "points" in directory "polyMesh" in times 0 down to constant

From function Time::findInstance(const fileName&, const word&, const IOobject::readOption)
in file db/Time/findInstance.C at line 175.
The same output of the step 3

So, anybody know how to run this case ?

Thanks a lot

akidess January 31, 2012 03:40

Look at the Allrun file in the parent directory (tutorials/compressible/rhoCentralFoam/Allrun). There's quite a few extra steps to take for this tutorial to work.

Rophys January 31, 2012 07:58

Thanks for this Akidess, but for me is not so clear how to do this.

In the Allrun file we have:

if [ "$case" = "biconic25-55Run35" ] ; then
cd $case

wmake datToFoam
runApplication datToFoam grid256.dat

cat $CONST/pointsHeader $CONST/points.tmp > $CONST/polyMesh/points
runApplication collapseEdges "2e-07" 5

echo "Changing patch type to wedge type in boundary file"
mv $CONST/polyMesh/boundary $CONST/polyMesh/boundary.bak
sed -f $CONST/wedgeScr $CONST/polyMesh/boundary.bak > $CONST/polyMesh/boundary
rm $CONST/polyMesh/boundary.bak

For me is not clear how to do this steps...if you explain me...I will really appreciate. Many thanks

akidess January 31, 2012 10:03

If you just want to look at the results, just execute ./Allrun and the script will do everything for you automatically.

All the steps are done because the mesh is specified as a .dat file in this case instead of a standard blockMeshDict, and that's why the additional steps are required.

Rophys January 31, 2012 10:44

That's perfect. Thanks again.

One more question. The command ./Allrun run all the cases in the folder right ?

If I want to run only the biconic case, how can I procedure for this ?

akidess January 31, 2012 13:09

That's right. In the top part of the Allrun file you can find a list of the cases to run. Just make a copy of the Allrun file, and shorten that list to only contain the biconic case, and then run the modified Allrun file. Possibly you will have to make it executable by running "chmod +x AllrunCopy" once before you attempt to run the script.

Rophys February 1, 2012 14:28

Hi Anton,

Thanks for the tips.

I already ran the biconic case using the script Allrun and everything looks ok and another question arose for me. I want to do by my own the same tutorial case as a manner to understand, step by step, how it works. Using the script Allrun is not clear enough for me the sequence of commands that I should use to run my biconic case. Could you explain me ?


All times are GMT -4. The time now is 17:44.