CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   pyFoam setting is not correct? or not compatible with 1.6? (

seasoul March 23, 2010 06:55

pyFoam setting is not correct? or not compatible with 1.6?
I installed pyfoam following the wiki manual, and passed the testing code stated there. Then I gave a try to the basic functionality of pyfoam by copying cavity tutorial folder to the desktop, and in the terminal, i use

pyFoamRunner --clear icoFoam -case cavity
" to run the case, and problem came out as below:


Cannot find file "points" in directory "constant/polyMesh"

From function Time::findInstance(const fileName&, const word&, const IOobject::readOption)
in file db/Time/findInstance.C at line 148.

FOAM exiting

without the pyFoam, I can successfully run the case in a normal way.

Is that because my setting is not correct? or pyFoam is not compatible with 1.6? or because my openFoam is 64bit version, and i need to state the version explcitly?

Jens March 23, 2010 08:40

At first, you must create a mesh. You can't start a solver without a mesh ;)
Type "blockMesh" in the cavity-case. The Tool "BlockMesh" will create a Mesh from the "blockMeshDict".

regards Jens

seasoul March 23, 2010 12:42

Thank you, Jens.

Oh, I got it. Because there is no finely-made tutorial for pyFoam, i just try it myself. Now I understand pyFoam seperate openFoam functions as applicaitons and utilities, I used to consider pyFoamRunner as a automatic script to do all things for users.

All times are GMT -4. The time now is 08:10.