Installation/Linux/OpenFOAM-2.1.1/openSUSE

1 Introduction

If you do not yet feel comfortable using Linux, then perhaps you better first read the page Working with the Shell and train a bit with the shell/terminal environments, so you can have a better perception of the steps shown below.

Now, since we're trying to minimize the number of packages to be built, the Open-MPI package that is available with openSUSE is going to be chosen. The downside is that this requires that you logout and log back in, for the system to update the environment settings.
Nonetheless, we can postpone logging out by running:

source /etc/profile.d/mpi-selector.sh

Note: But keep in mind that until you logout, use this command line on every new terminal window/tab!

Note: This last line means that whenever you start a new terminal window or tab, you should run the alias command associated to the OpenFOAM 2.1.1 shell environment. In other words, whenever you start a new terminal, you should run:

Now let's build OpenFOAM:
(Warning: this may take somewhere from 30 minutes to 6 hours, depending on your machine.)

#Go into OpenFOAM's main source foldercd OpenFOAM-2.1.1# This next command will take a while... somewhere between 30 minutes to 3-6 hours.
./Allwmake > make.log 2>&1#Run it a second time for getting a summary of the installation
./Allwmake > make.log 2>&1

To check if everything went well:

Check if icoFoam is working, by running this command:

icoFoam -help

If it tells you how to use it, then the installation should be working as intended.

If the previous command failed to work properly, then edit the file make.log and check if there are any error messages. A few examples on how you can edit this file:

By using kwrite:

kwrite make.log

By using gedit:

gedit make.log

By using nano:

nano make.log

You can then exit by using the key combination Ctrl+X and following any instructions it gives you.

Note: It's the first error message that matters.

If you don't understand the output, then please compress the file make.log and attach the file make.log.tar.gz to a post in the designated thread.
If you do not know how to create a compressed file, then try one of the following examples:

You can compress the file with gzip by running this command:

gzip < make.log > make.log.gz

Then attach the resulting package file named make.log.gz to a post in the designated thread.

Or you can compress one or more files into a tarball package file, by running this command:

tar -czf make.log.tar.gz make.log

Then attach the resulting package file named make.log.tar.gz to a post in the designated thread.

Reminder: Whenever you start a new terminal window or tab, you should run the alias command associated to the OpenFOAM 2.1.1 shell environment. In other words, run the following command whenever you start a new terminal: