Monday, September 10, 2012

Installing pyFoam for OPENFOAM

PyFoam is a scripting language for OpenFOAM.Being similar to python the script can be used to make changes in FOAM case directories.

Below given are the steps for imstalling PyFoam on your linux machines:

STEP 1)

Downaload the latest version of "PyFoam" from the link given below:

http://openfoamwiki.net/index.php/Contrib_PyFoam

STEP 2 )

It will be a tar file. Untar the tar file in the folder of your choice

STEP 3)

Open the command terminal and go to the folder in which you have untared the pyFoam file.

STEP 4)

Using Synaptic Package manager install these two library files which are needed for pyFoam

libboost -dev

libboost -doc

STEP 5 )

In pyfoam folder you will see a set up file named "setup.py"

In the terminal window type the command :

python setup.py install

STEP 6 )

You are done with installation.

To check your installation in the terminal type "python"

Now type :

import PyFoam

import PyFoam.FoamInformation

print PyFoam.FoamInstallation.foamTutorials()

This command should produce a output showing the openfoam tutorials directory.

No comments:

Post a Comment