OpenFOAM and Paraview are currently available for version 12.3 of SuSE.
We have generated RPM packs of OpenFOAM and Paraview for SuSE. The packs are dependent on other software, most of which are also available as standard RPM packs for SuSE. The exception is the scotch library, for which the standard pack is v5.1.6 which is too old to be compatible with OpenFOAM.
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
- Install openmpi by typing the following on the command line:
sudo zypper in openmpi
- It is possible that the system does not identify the version of openmpi to run. If so, the user can first list the version of openmpi available, by typing:
Then the user should set the version. For example, if the listing above returns
openmpi-1.6, the user can set the version by typing:
mpi-selector --set openmpi-1.6
In order for the change to take effect, the user must then log out and log in to the machine.
Note: There is a problem with
mpirunon OpenSUSE 12.3 (
https://svn.open-mpi.org/trac/ompi/ticket/3554) where a default file is not installed correctly. Where this problem exists, it is possible to run
mpirunusing the following flag:
mpirun --default-hostfile none
- The foamyHexMesh utility requires the Computational Geometry Algorithms Library (CGAL) (libcgal10) installed on the system. It can be installed as follows.
zypper addrepo http://download.opensuse.org/repositories/graphics/openSUSE_12.3/graphics.repo zypper install libcgal10
- EITHER, download and install Scotch, Paraview and OpenFOAM for 32 bit
sudo rpm -i https://www.openfoam.org/download/suse/12.3/i586/OpenFOAM-scotch-6.0.0-1.i586.rpm sudo rpm -i https://www.openfoam.org/download/suse/12.3/i586/OpenFOAM-ParaView-4.1.0-1.i586.rpm sudo rpm -i https://www.openfoam.org/download/suse/12.3/i586/OpenFOAM-2.3.0-1.i586.rpm
OR, download and install Scotch, Paraview and OpenFOAM for 64 bit.
sudo rpm -i https://www.openfoam.org/download/suse/12.3/x86_64/OpenFOAM-scotch-6.0.0-1.x86_64.rpm sudo rpm -i https://www.openfoam.org/download/suse/12.3/x86_64/OpenFOAM-ParaView-4.1.0-1.x86_64.rpm sudo rpm -i https://www.openfoam.org/download/suse/12.3/x86_64/OpenFOAM-2.3.0-1.x86_64.rpm
OpenFOAM-2.3.0 and Paraview-4.1.0 are now installed in the /opt directory.
In order to use the installed OpenFOAM package, complete the following
- Open the
.bashrcfile in the user’s home directory in an editor, e.g. by typing in a terminal window (note the dot)
- At the bottom of that file, add the following line (see Note 1) and save the file
- Open a new terminal window (see Note 2) and test that the
simpleFoamapplication, from the OpenFOAM package, is working by typing
- 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):
Create a project directory within the
$HOME/OpenFOAM directory named
chris-2.3.0 for user
chris and OpenFOAM version 2.3.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.