pythonFlu solvers

Generic Installation Procedure

All pythonFlu based solvers follow the same installation rules and can be installed in a simultaneous way.


  • Make sure that "python-setuptools package is installed
# For OpenSUSE
sudo zypper install python-setuptools

# For Ubuntu
sudo apt-get install python-setuptools
  • Make sure that pythonFlu is installed
    You can choose whether to install it from binaries or sources


Run the following command

sudo easy_install <flux solver name>

# For example
sudo easy_install icoFlux

Getting Started

Create a working directory dedicated to the installed version of OpenFOAM:

mkdir -p ${FOAM_RUN}

Copy the tutorial examples directory from the OpenFOAM distribution to your working directory :

Prepare corresponding solver case
# For OpenFOAM-1.4.1-dev
blockMesh ${FOAM_RUN}/tutorials/icoFoam cavity

# For OpenFOAM-1.6 and higher
blockMesh -case ${FOAM_RUN}/tutorials/incompressible/icoFoam/cavity

Run the installed pythonFlu solver the given OpenFOAM case

# For OpenFOAM-1.4.1-dev
icoFlux ${FOAM_RUN}/tutorials/icoFoam cavity

# For OpenFOAM-1.6 and higher
icoFlux -case ${FOAM_RUN}/tutorials/incompressible/icoFoam/cavity

Note : pythonFlu based solvers accept exactly the same command line options as the referenced OpenFOAM C++ ones