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.
Computational fluid dynamics, usually abbreviated as CFD, is a branch of fluid mechanics that uses numerical methods and algorithms to solve and analyze problems that involve fluid flows.With the increase in the computing speed and new hardware's CFD has increased its application domain in each and every field like bio-medical,electrical,civil,finance etc. My blog mainly deals with the latest development in CFD as well as CAD software in windows and Open Source softwares.
No comments:
Post a Comment