CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [PyFoam] setting is not correct? or not compatible with 1.6? (https://www.cfd-online.com/Forums/openfoam-community-contributions/74038-setting-not-correct-not-compatible-1-6-a.html)

seasoul March 23, 2010 05:55

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
"
Code:

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

Code:

"--> FOAM FATAL ERROR:
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 07: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 11: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 20:12.