Installation Ubuntu Binaries
  • Identify the following installation parameters :
    • OpenFOAM version you have ( OpenCFD 2.1.1 - 2.0.0 or Extended 1.6 )
    • Linux distribution you use ( Ubuntu Lucid, Maverick, Natty or Oneiric )
    • CPU type you posses ( i386 or amd64 )
  • Add new reference to your local package repository :
sudo apt-add-repository ppa:flu-team/`dpkg --print-architecture`
sudo apt-get update
  • Choose a suffix that corresponds to the one of the target OpenFOAM version / fork you are going to use
    (currently available values are - "211", "210", "201", "200" or "-1.6-ext")
    and run the following installation command :
sudo apt-get install pythonflu<suffix>

Environment

Before using pythonFlu do not forget to load corresponding OpenFOAM environment, for example

source /usr/lib/OpenFOAM-1.6-ext/etc/bashrc

Installation check

Import installed pythonFlu kernel library

python -c "from Foam import finiteVolume; print 'ok'"

Important : It is possible to have different pythonFlu installations for different OpenFOAM forks / versions at the same time.

Note : Corresponding Python solvers, that demonstrate the pythonFlu capabilities are distributed separately.