Personal tools

You are here: Home / foam-extend / Download & Install

Download & Install

Several installation methods are available:



BINARY PACKAGES IN .RPM AND .DEB FORMAT

Binary packages are available for download at sourceforge:
http://sourceforge.net/projects/openfoam-extend/files/foam-extend-3.1/

FEDORA 20

  • Install package:
sudo yum localinstall foam-extend-3.1-3.1-1.fc20.x86_64.rpm
  • Create user directory:
mkdir -p $FOAM_RUN

And you are ready to start.

UBUNTU 14.04

  • Install package:
software-center foam-extend-3.1_amd64.deb
  • Create user directory:
mkdir -p $FOAM_RUN

And you are ready to start.

 

COMPILATION FROM SOURCE CODE REPOSITORY

It is recommended to install foam-extend-3.1 from the source code of the git repository. This enables to obtain the latest updates and bugfixes with a simple command: "git pull".

INSTALL REQUIRED PACKAGES

UBUNTU 14.04

sudo apt-get install git-core build-essential binutils-dev cmake flex \
bison zlib1g-dev qt4-dev-tools libqt4-dev libncurses5-dev libiberty-dev\
libxt-dev rpm mercurial graphviz

Fedora 20

sudo yum groupinstall "Development Tools"
sudo yum install gcc-c++ binutils-devel cmake wget bison flex m4 \
zlib-devel qt-devel qtwebkit-devel mercurial graphviz

MAKE INITIAL COPY OF GIT REPOSITORY

Open a terminal, change to your installation directory and run the command:

git clone git://git.code.sf.net/p/openfoam-extend/foam-extend-3.1

Alternatively, you can download a source snapshot: foam-extend-3.1_f77b480.tgz

NB: For first-time users, the recommended installation directory is $HOME/foam/

SET ENVIRONMENT VARIABLES

In bash (if unsure, which shell you are using, try this command first)

. etc/bashrc

In tcsh/csh:

source etc/cshrc

NB: If your installation directory differs from $HOME/foam/foam-extend-3.1/ please edit and adapt the configuration file.

Optionally, set path to qmake, to enable compilation of ParaView post-processor.

In bash:

export QT_BIN_DIR=/path/to/qmake

In tcsh/csh:

setenv QT_BIN_DIR=/path/to/qmake

START COMPILATION

./Allwmake.firstInstall

If you encounter any issues or errors during the compilation process, please have a look at the forum at cfd-online.com.

CREATE USER RUN DIRECTORY

mkdir -p $FOAM_RUN

And you are ready to start.

 

SPARSE IMAGE INSTALLATION FOR APPLE

mkdir foam
cd foam
ln -s /Volumes/foam-extend-3.1 .
. foam-extend-3.1/etc/bashrc

And you are ready to start.