Close

19th December 2011

Download v2.1.0 | SuSE

SuSE Versions

OpenFOAM and Paraview are currently available for version 11.4 of SuSE.

Installation

We have generated RPM packs of OpenFOAM and Paraview for SuSE. The packs are dependent on other software, most of which is also available as standard RPM packs for SuSE. The exceptions are:

  • the openmpi library, which requires a version upgrade;
  • the scotch library, which does not exist as a standard pack, so we provide one here as part of the OpenFOAM installation.

Before installing OpenFOAM, please ensure that your SuSE installation includes all the software in the Development package group in YaST, including gcc, make, etc. In the case of a Gnome only installation, ensure that the the libqt4 library is installed by executing the following at a terminal prompt:

sudo zypper in libqt4 libQtWebKit4
  1. The OpenFOAM binaries will not work with the default 1.2.8 version of openmpi. An updated (1.3.2) version of openmpi can be installed from the ’science’ repository as follows:
    sudo zypper ar http://download.opensuse.org/repositories/science/openSUSE_11.4 science
    sudo zypper in openmpi=1.3.2
    

    Note: In YaST, the user may need to reduce the priority of the science repository (from 99 to 98).

  2. Multiple versions of openmpi can be installed on one system so the user should check that the correct version is being used by typing:
    mpirun --version
    

    Then the user should set the version. For example, if the listing above returns openmpi-1.3.2, the user can set the version by typing:

    mpi-selector --set openmpi-1.3.2
    

    After selecting, the user must log out and log in to the machine for the changes to take effect. Note the user can list the available versions of openmpi by typing:

    mpi-selector --list
  3. EITHER, download and install Scotch, Paraview and OpenFOAM for 32 bit
    sudo rpm -i https://www.openfoam.org/download/suse/11.4/i586/OpenFOAM-scotch-5.1.12-1.i586.rpm
    sudo rpm -i https://www.openfoam.org/download/suse/11.4/i586/OpenFOAM-ParaView-3.12.0-1.i586.rpm
    sudo rpm -i https://www.openfoam.org/download/suse/11.4/i586/OpenFOAM-2.1.0-1.i586.rpm

    OR, download and install Scotch, Paraview and OpenFOAM for 64 bit.

    sudo rpm -i https://www.openfoam.org/download/suse/11.4/x86_64/OpenFOAM-scotch-5.1.12-1.x86_64.rpm
    sudo rpm -i https://www.openfoam.org/download/suse/11.4/x86_64/OpenFOAM-ParaView-3.12.0-1.x86_64.rpm
    sudo rpm -i https://www.openfoam.org/download/suse/11.4/x86_64/OpenFOAM-2.1.0-1.x86_64.rpm

OpenFOAM-2.1.0 and Paraview-3.12.0 are now installed in the /opt directory.

User Configuration

In order to use the installed OpenFOAM package, complete the following

  1. Open the .bashrc file in the user’s home directory in an editor, e.g. by typing in a terminal window (note the dot)
    gedit ~/.bashrc
    
  2. At the bottom of that file, add the following line (see Note 1) and save the file
    source /opt/OpenFOAM-2.1.0/etc/bashrc
    
  3. Open a new terminal window (see Note 2) and test that the simpleFoam application, from the OpenFOAM package, is working by typing
    simpleFoam -help
    
  4. A “Usage” message should appear. Your installation and user configuration is complete.

Note 1: If a similar line has already been added to the user’s .bashrc file, e.g. for a previous version of OpenFOAM, then the line should be deleted or, alternatively, commented out by inserting a # at the beginning of the line.
Note 2: If a user wishes to execute simpleFoam in the same terminal window, they must first register the change to the .bashrc file by typing at the terminal prompt (note the dots): source $HOME/.bashrc

Getting Started

Create a project directory within the $HOME/OpenFOAM directory named <USER>-2.1.0 (e.g. chris-2.1.0 for user chris and OpenFOAM version 2.1.0) and create a directory named run within it, e.g. by typing:

mkdir -p $FOAM_RUN

Copy across the backward facing step example, generate the mesh with blockMesh and run the steady flow, incompressible solver simpleFoam

cd $FOAM_RUN
cp -r $FOAM_TUTORIALS/incompressible/simpleFoam/pitzDaily .
cd pitzDaily
blockMesh
simpleFoam
paraFoam

Refer to the OpenFOAM User Guide to get started.

Reporting Bugs in OpenFOAM

We appreciate that bugs in OpenFOAM are reported so we can fix them. Please refer to the OpenFOAM bugs pages to report bugs.