diff --git a/doc/buildInstructions/Centos/5.5/Compilation_Centos_5.5_64bit.txt b/doc/buildInstructions/Centos/5.5/Compilation_Centos_5.5_64bit.txt new file mode 100644 index 000000000..fdedd1e44 --- /dev/null +++ b/doc/buildInstructions/Centos/5.5/Compilation_Centos_5.5_64bit.txt @@ -0,0 +1,164 @@ +Installation of OpenFOAM-1.6-ext on Centos 5.5 64-bit +-------------------------------------------------------------------------------- + +Network download and installation from: +ftp://mirrors.usc.edu/pub/linux/distributions/centos/5.5/os/x86_64/ + +Basic configuration: + Desktop - Gnome + Packages from CentOS Extras: unchecked + + Complete installation log: /root/install.log + +Run Package updater to update your installation + +-------------------------------------------------------------------------------- + +Add your user as a valid user for the command 'sudo'. + +You will need to use the command 'visudo' as the user root for this. + +I won't go into the details for this, there is a lot of info all over the Net +for doing this relatively minor adjustment. + +In doubt, simply ask your local Unix guru. + +-------------------------------------------------------------------------------- + +# Add the EPEL package repository: +sudo rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm + +-------------------------------------------------------------------------------- + +# Installation of additional system packages: + +sudo yum install git-1.7.4.1-1.el5.x86_64 +sudo yum install gcc.x86_64 gcc-c++.x86_64 +sudo yum install bison.x86_64 +sudo yum install flex.x86_64 +sudo yum install rpm-build-4.4.2.3-22.el5.x86_64 +sudo yum install zlib-devel-1.2.3-3.x86_64 +sudo yum install libX11-devel.x86_64 +sudo yum install libXext-devel.x86_64 +sudo yum install libXrender-devel.x86_64 +sudo yum install libXt-devel-1.0.2-3.2.el5.x86_64 + +# You can also install everything at once: + +sudo yum install \ + git-1.7.4.1-1.el5.x86_64 \ + gcc.x86_64 gcc-c++.x86_64 \ + bison.x86_64 \ + flex.x86_64 \ + rpm-build-4.4.2.3-22.el5.x86_64 \ + zlib-devel-1.2.3-3.x86_64 \ + libX11-devel.x86_64 \ + libXext-devel.x86_64 \ + libXrender-devel.x86_64 \ + libXt-devel-1.0.2-3.2.el5.x86_64 + +-------------------------------------------------------------------------------- + +# Download OpenFOAM-1.6-ext + +mkdir ~/OpenFOAM +cd ~/OpenFOAM +git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/OpenFOAM-1.6-ext + + +-------------------------------------------------------------------------------- + +# We need to tweak our OpenFOAM setup using the prefs.sh file + +cp ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh-EXAMPLE \ + ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh + +-------------------------------------------------------------------------------- + +# We are going to use version 4.4.5 of gcc, provided by the ThirdParty packages +# +# The versions provided by Centos 5.5 are either too old, or a just a preview +# version of gcc 4.4.0, which is a bit 'green'. +# +# So the system installed compiler will only serve to compile gcc 4.4.5. + +# Modify the etc/prefs.sh file to switch to gcc 4.4.5 +sed -i s/"compilerInstall=System"/"compilerInstall=OpenFOAM\nWM_COMPILER=Gcc44"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh + +# Activate the compilation of gcc 4.4.5 in the ThirdParty/AllMake.stage1 file +sed -i 0,/"#( rpm_make -p gmp-5.0.1"/s//"( rpm_make -p gmp-5.0.1"/ ~/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/AllMake.stage1 +sed -i 0,/"#( rpm_make -p mpfr-3.0.1"/s//"( rpm_make -p mpfr-3.0.1"/ ~/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/AllMake.stage1 +sed -i 0,/"#( rpm_make -p gcc-4.4.5"/s//"( rpm_make -p gcc-4.4.5"/ ~/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/AllMake.stage1 + +# Add the wmake rules set for Gcc44 +ln -s ~/OpenFOAM/OpenFOAM-1.6-ext/wmake/rules/linux64Gcc ~/OpenFOAM/OpenFOAM-1.6-ext/wmake/rules/linux64Gcc44 + +-------------------------------------------------------------------------------- + + +# We are going to use the version of QT4 provided by the ThirdParty packages + +# Uncomment and modify the initialization of the variables QT_THIRD_PARTY in the +# file prefs.sh + +sed -i s/"#export QT_THIRD_PARTY=1"/"export QT_THIRD_PARTY=1"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh + +# This section of the prefs.sh file should now look like this: + +export QT_THIRD_PARTY=1 +#export QT_DIR=path_to_system_installed_qt +#export QT_BIN_DIR=$QT_DIR/bin + + +-------------------------------------------------------------------------------- + +# Source this initial OpenFOAM environment to get the basic configuration for +# compilation +. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc + +# You will get some warnings about missing file for gcc-4.4.5, and problem with +# your compiler installation. +# This is quite normal, your gcc-4.4.5 compiler is not even compiled and +# installed yet. Patience patience... + +# Compile the ThirdParty packages, including the gcc 4.4.5 compiler + +cd $WM_PROJECT_DIR/ThirdParty +./AllMake >& log.AllMake & +tail -f log.AllMake # To keep an eye on the compilation process + +-------------------------------------------------------------------------------- + +# Update your OpenFOAM environment to get the basic configuration from the newly +# compiled ThirdParty packages + +. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc + +# Compile OpenFOAM-1.6-ext + +cd $WM_PROJECT_DIR +./Allwmake >& log.Allwmake & +tail -f log.Allwmake # To keep an eye on the compilation process + +-------------------------------------------------------------------------------- + +# Execute Allwmake a second time because of a bad library building sequence for +# the library -lfaceDecompositionMotionSolver + +./Allwmake >& log.Allwmake2 & +tail -f log.Allwmake2 # To keep an eye on the compilation process + +-------------------------------------------------------------------------------- + +# Run a tutorial to check the basic functionality + +cd $FOAM_TUTORIAL/incompressible/simpleFoam/pitzDaily +blockMesh >& log.blockMesh +simpleFoam >& log.simpleFoam +paraFoam + +# You are done! + +-------------------------------------------------------------------------------- +Martin Beaudoin +August 2011 diff --git a/doc/buildInstructions/Ubuntu/10.04/Compilation_Ubuntu_10.04.3_32-bit.txt b/doc/buildInstructions/Ubuntu/10.04/Compilation_Ubuntu_10.04.3_32-bit.txt new file mode 100644 index 000000000..80bd0542d --- /dev/null +++ b/doc/buildInstructions/Ubuntu/10.04/Compilation_Ubuntu_10.04.3_32-bit.txt @@ -0,0 +1,112 @@ +Installation of OpenFOAM-1.6-ext on Ubuntu 10.04.3 32-bit + +- Proceed with the installation of the OS +- Update your OS installation using "Update Manager". +- If asked to reboot your system, please do so. + +-------------------------------------------------------------------------------- + +# Installation of additional system packages: +git: sudo apt-get install git-core +flex: sudo apt-get install flex +bison: sudo apt-get install bison +rpm: sudo apt-get install rpm +g++: sudo apt-get install g++ +libz: sudo apt-get install zlib1g-dev +binutils-dev : sudo apt-get install binutils-dev +qt4: sudo apt-get install libqt4-dev qt4-dev-tools + +libxext: sudo apt-get install libxext-dev +libxt : sudo apt-get install libxt-dev + +# You can also install everything at once: +sudo apt-get install git-core flex bison rpm g++ zlib1g-dev binutils-dev \ + libqt4-dev qt4-dev-tools libxext-dev libxt-dev + +-------------------------------------------------------------------------------- + +# Minor correction for make/gmake +sudo ln -s /usr/bin/make /usr/bin/gmake + +-------------------------------------------------------------------------------- + +# Installation of libstdc++.so.5: + +For Ubuntu 32bit: +----------------- +Grab the package libstdc++5_3.3.6-24_i386.deb from one of the sites listed here: +http://packages.debian.org/lenny/i386/libstdc++5/download + +wget http://ftp.us.debian.org/debian/pool/main/g/gcc-3.3/libstdc++5_3.3.6-24_i386.deb +dpkg-deb -x ./libstdc++5_3.3.6-24_i386.deb /tmp/tmp_dir + +sudo cp /tmp/tmp_dir/usr/lib/libstdc++.so.5.0.7 /usr/lib/ +sudo ln -s /usr/lib/libstdc++.so.5.0.7 /usr/lib/libstdc++.so.5 +rm -rf /tmp/tmp_dir + +-------------------------------------------------------------------------------- + +# Download OpenFOAM-1.6-ext +mkdir ~/OpenFOAM +cd ~/OpenFOAM +git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/OpenFOAM-1.6-ext + +-------------------------------------------------------------------------------- + +# We are going to use the system installed version of QT4 +cp ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh-EXAMPLE ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh + +#Uncomment and modify the initialization of the variables QT_DIR and QT_BIN_DIR in the file prefs.sh + +sed -i s/"#export QT_DIR=path_to_system_installed_qt"/"export QT_DIR=\/usr"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh +sed -i s/"#export QT_BIN_DIR=\$QT_DIR\/bin"/"export QT_BIN_DIR=\$QT_DIR\/bin"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh + +# This section of the prefs.sh file should now look like this: + +#export QT_THIRD_PARTY=1 +export QT_DIR=/usr +export QT_BIN_DIR=$QT_DIR/bin + +-------------------------------------------------------------------------------- + +# Source your OpenFOAM environment to get the basic configuration for +# compilation +. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc + +# Compile the ThirdParty packages +cd $WM_PROJECT_DIR/ThirdParty +./AllMake >& log.AllMake & +tail -f log.AllMake # To keep an eye on the compilation process + +-------------------------------------------------------------------------------- + +# Update your OpenFOAM environment to get the basic configuration from the newly +# compiled ThirdParty packages +. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc + +# Compile OpenFOAM-1.6-ext +cd $WM_PROJECT_DIR +./Allwmake >& log.Allwmake & +tail -f log.Allwmake # To keep an eye on the compilation process + +-------------------------------------------------------------------------------- + +# Execute Allwmake a second time because of a bad library building sequence for +# the library -lfaceDecompositionMotionSolver + +./Allwmake >& log.Allwmake2 & +tail -f log.Allwmake2 # To keep an eye on the compilation process + +-------------------------------------------------------------------------------- + +# Run a tutorial to check the basic functionality +cd $FOAM_TUTORIAL/incompressible/simpleFoam/pitzDaily +blockMesh >& log.blockMesh +simpleFoam >& log.simpleFoam +paraFoam + +# You are done! + +-------------------------------------------------------------------------------- +Martin Beaudoin +August 2011 diff --git a/doc/buildInstructions/Ubuntu/10.04/Compilation_Ubuntu_10.04.3_64-bit.txt b/doc/buildInstructions/Ubuntu/10.04/Compilation_Ubuntu_10.04.3_64-bit.txt new file mode 100644 index 000000000..037946396 --- /dev/null +++ b/doc/buildInstructions/Ubuntu/10.04/Compilation_Ubuntu_10.04.3_64-bit.txt @@ -0,0 +1,112 @@ +Installation of OpenFOAM-1.6-ext on Ubuntu 10.04.3 64-bit + +- Proceed with the installation of the OS +- Update your OS installation using "Update Manager". +- If asked to reboot your system, please do so. + +-------------------------------------------------------------------------------- + +# Installation of additional system packages: +git: sudo apt-get install git-core +flex: sudo apt-get install flex +bison: sudo apt-get install bison +rpm: sudo apt-get install rpm +g++: sudo apt-get install g++ +libz: sudo apt-get install zlib1g-dev +binutils-dev : sudo apt-get install binutils-dev +qt4: sudo apt-get install libqt4-dev qt4-dev-tools + +libxext: sudo apt-get install libxext-dev +libxt : sudo apt-get install libxt-dev + +# You can also install everything at once: +sudo apt-get install git-core flex bison rpm g++ zlib1g-dev binutils-dev \ + libqt4-dev qt4-dev-tools libxext-dev libxt-dev + +-------------------------------------------------------------------------------- + +# Minor correction for make/gmake +sudo ln -s /usr/bin/make /usr/bin/gmake + +-------------------------------------------------------------------------------- + +# Installation of libstdc++.so.5: + +For Ubuntu 64bit: +----------------- +Grab the package libstdc++5_3.3.6-24_amd64.deb from one of the sites listed here: +http://packages.debian.org/lenny/amd64/Libstdc++5/download + +wget http://ftp.us.debian.org/debian/pool/main/g/gcc-3.3/libstdc++5_3.3.6-24_amd64.deb +dpkg-deb -x ./libstdc++5_3.3.6-24_amd64.deb /tmp/tmp_dir + +sudo cp /tmp/tmp_dir/usr/lib/libstdc++.so.5.0.7 /usr/lib/ +sudo ln -s /usr/lib/libstdc++.so.5.0.7 /usr/lib/libstdc++.so.5 +rm -rf /tmp/tmp_dir + +-------------------------------------------------------------------------------- + +# Download OpenFOAM-1.6-ext +mkdir ~/OpenFOAM +cd ~/OpenFOAM +git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/OpenFOAM-1.6-ext + +-------------------------------------------------------------------------------- + +# We are going to use the system installed version of QT4 +cp ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh-EXAMPLE ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh + +#Uncomment and modify the initialization of the variables QT_DIR and QT_BIN_DIR in the file prefs.sh + +sed -i s/"#export QT_DIR=path_to_system_installed_qt"/"export QT_DIR=\/usr"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh +sed -i s/"#export QT_BIN_DIR=\$QT_DIR\/bin"/"export QT_BIN_DIR=\$QT_DIR\/bin"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh + +# This section of the prefs.sh file should now look like this: + +#export QT_THIRD_PARTY=1 +export QT_DIR=/usr +export QT_BIN_DIR=$QT_DIR/bin + +-------------------------------------------------------------------------------- + +# Source your OpenFOAM environment to get the basic configuration for +# compilation +. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc + +# Compile the ThirdParty packages +cd $WM_PROJECT_DIR/ThirdParty +./AllMake >& log.AllMake & +tail -f log.AllMake # To keep an eye on the compilation process + +-------------------------------------------------------------------------------- + +# Update your OpenFOAM environment to get the basic configuration from the newly +# compiled ThirdParty packages +. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc + +# Compile OpenFOAM-1.6-ext +cd $WM_PROJECT_DIR +./Allwmake >& log.Allwmake & +tail -f log.Allwmake # To keep an eye on the compilation process + +-------------------------------------------------------------------------------- + +# Execute Allwmake a second time because of a bad library building sequence for +# the library -lfaceDecompositionMotionSolver + +./Allwmake >& log.Allwmake2 & +tail -f log.Allwmake2 # To keep an eye on the compilation process + +-------------------------------------------------------------------------------- + +# Run a tutorial to check the basic functionality +cd $FOAM_TUTORIAL/incompressible/simpleFoam/pitzDaily +blockMesh >& log.blockMesh +simpleFoam >& log.simpleFoam +paraFoam + +# You are done! + +-------------------------------------------------------------------------------- +Martin Beaudoin +August 2011 diff --git a/doc/buildInstructions/Ubuntu/12.04/Compilation_Ubuntu_12.04_64-bit.txt b/doc/buildInstructions/Ubuntu/12.04/Compilation_Ubuntu_12.04_64-bit.txt new file mode 100644 index 000000000..f63910903 --- /dev/null +++ b/doc/buildInstructions/Ubuntu/12.04/Compilation_Ubuntu_12.04_64-bit.txt @@ -0,0 +1,117 @@ +Installation of OpenFOAM-1.6-ext on Ubuntu 12.04 64-bit + +- Proceed with the installation of the OS +- Update your OS installation using "Update Manager". +- If asked to reboot your system, please do so. + +-------------------------------------------------------------------------------- + +# Installation of additional system packages: +git: sudo apt-get install git +flex: sudo apt-get install flex +bison: sudo apt-get install bison +rpm: sudo apt-get install rpm +g++: sudo apt-get install g++ +libz: sudo apt-get install zlib1g-dev +binutils-dev : sudo apt-get install binutils-dev +openmpi: sudo apt-get install openmpi-bin libopenmpi-dev +libxext: sudo apt-get install libxext-dev +libxt : sudo apt-get install libxt-dev +libXrender: sudo apt-get install libxrender-dev + +# You can also install everything at once: +sudo apt-get install git flex bison rpm g++ zlib1g-dev binutils-dev \ + openmpi-bin libopenmpi-dev libxext-dev libxt-dev libxrender-dev + +-------------------------------------------------------------------------------- + +# If you need to compile swak4Foam, it is a good idea to install Mercurial (hg) +# sudo apt-get install mercurial + +-------------------------------------------------------------------------------- + +# Minor correction for make/gmake +sudo ln -s /usr/bin/make /usr/bin/gmake + +-------------------------------------------------------------------------------- + +# Download OpenFOAM-1.6-ext +mkdir ~/OpenFOAM +cd ~/OpenFOAM +git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/OpenFOAM-1.6-ext + +-------------------------------------------------------------------------------- + +# Create the file etc/prefs.sh +cp ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh-EXAMPLE ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh + +-------------------------------------------------------------------------------- + +# Use the system compiler +sed -i s/"compilerInstall=System"/"compilerInstall=System\nWM_COMPILER=Gcc46"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh + +-------------------------------------------------------------------------------- + +# Use the system installation of OpenMPI +sed -i s/"#export WM_MPLIB=SYSTEMOPENMPI"/"export WM_MPLIB=SYSTEMOPENMPI"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh +sed -i s/"#export OPENMPI_DIR=path_to_system_installed_openmpi"/"export OPENMPI_DIR=\/usr"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh +sed -i s/"#export OPENMPI_BIN_DIR=\$OPENMPI_DIR\/bin"/"export OPENMPI_BIN_DIR=\$OPENMPI_DIR\/bin"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh + +-------------------------------------------------------------------------------- + +# About QT4 +# +# Ubuntu 12.04 comes with QT4 version 4.8.1 +# Even thoug ParaView will compile with this version of QT, ParaView will also generate a bunch of +# warnings on the console at runtime. So we will be using the version of QT4 supplied with the +# ThirdParty packages. + +#Uncomment the variable QT_THIRD_PARTY in the file prefs.sh + +sed -i s/"#export QT_THIRD_PARTY=1"/"export QT_THIRD_PARTY=1"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh + +# This section of the prefs.sh file should now look like this: + +export QT_THIRD_PARTY=1 +#export QT_DIR=/usr +#export QT_BIN_DIR=$QT_DIR/bin + +-------------------------------------------------------------------------------- + +# Source your OpenFOAM environment to get the basic configuration for +# compilation +. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc + +-------------------------------------------------------------------------------- + +# Compile the ThirdParty packages +cd $WM_PROJECT_DIR/ThirdParty +./AllMake.stage1 >& log.AllMake.stage1 +#./AllMake.stage2 >& log.AllMake.stage2 # No need for this one +./AllMake.stage3 >& log.AllMake.stage3 +./AllMake.stage4 >& log.AllMake.stage4 + +-------------------------------------------------------------------------------- + +# Update your OpenFOAM environment to get the basic configuration from the newly +# compiled ThirdParty packages +. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc + +# Compile OpenFOAM-1.6-ext +cd $WM_PROJECT_DIR +./Allwmake >& log.Allwmake & +tail -f log.Allwmake # To keep an eye on the compilation process + +-------------------------------------------------------------------------------- + +# Run a tutorial to check the basic functionality +cd $FOAM_TUTORIAL/incompressible/simpleFoam/pitzDaily +blockMesh >& log.blockMesh +simpleFoam >& log.simpleFoam +paraFoam + +# You are done! + +-------------------------------------------------------------------------------- +Martin Beaudoin +May 2012 diff --git a/doc/buildInstructions/openSUSE/12.1/Compilation_openSUSE_12.1_64bit.txt b/doc/buildInstructions/openSUSE/12.1/Compilation_openSUSE_12.1_64bit.txt new file mode 100644 index 000000000..02dff6758 --- /dev/null +++ b/doc/buildInstructions/openSUSE/12.1/Compilation_openSUSE_12.1_64bit.txt @@ -0,0 +1,124 @@ +Installation of OpenFOAM-1.6-ext on openSUSE 12.1 64-bit +-------------------------------------------------------------------------------- + +We assume you have a fresh installation of openSUSE 12.1 64-bit, with all the +necessary updates already applied + +-------------------------------------------------------------------------------- + +# Installation of additional system packages: + +sudo zypper install git +sudo zypper install openmpi-devel +sudo zypper install gnuplot +sudo zypper install -t pattern devel_qt4 + +-------------------------------------------------------------------------------- + +# Download OpenFOAM-1.6-ext + +mkdir ~/OpenFOAM +cd ~/OpenFOAM +git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/OpenFOAM-1.6-ext + + +-------------------------------------------------------------------------------- + +# We need to tweak our OpenFOAM setup using the prefs.sh file + +cp ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh-EXAMPLE \ + ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh + +-------------------------------------------------------------------------------- + +# We are going to use version system installed version of gcc 4.6.2 + +# Modify the etc/prefs.sh file to switch to gcc 4.6.2 +sed -i s/"compilerInstall=System"/"compilerInstall=System\nWM_COMPILER=Gcc46"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh + +-------------------------------------------------------------------------------- + +# We are going to use the system installed version of openmpi-1.4.3 +# +# No need to run AllMake.stage2 +sed -i s/"#export WM_MPLIB=SYSTEMOPENMPI"/"export WM_MPLIB=SYSTEMOPENMPI"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh +sed -i s/"#export OPENMPI_DIR=path_to_system_installed_openmpi"/"export OPENMPI_DIR=\/usr\/lib64\/mpi\/gcc\/openmpi"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh +sed -i s/"#export OPENMPI_BIN_DIR=\$OPENMPI_DIR\/bin"/"export OPENMPI_BIN_DIR=\$OPENMPI_DIR\/bin"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh + + +-------------------------------------------------------------------------------- + +# We are going to use the system installed development version of Qt (Version: 4.7.4-19.6.1) + +# Uncomment and modify the initialization of the variables QT_DIR and QT_BIN_DIR in the +# file prefs.sh + +sed -i s/"#export QT_DIR=path_to_system_installed_qt"/"export QT_DIR=\/usr"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh +sed -i s/"#export QT_BIN_DIR=\$QT_DIR\/bin"/"export QT_BIN_DIR=\$QT_DIR\/bin"/g ~/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh + +# This section of the prefs.sh file should now look like this: + +#export QT_THIRD_PARTY=1 +export QT_DIR=/usr +export QT_BIN_DIR=$QT_DIR/bin + +-------------------------------------------------------------------------------- + +# ParaView: +# +# Version 3.8.1 of ParaView does not compile with gcc 4.6.2 on openSUSE 12.1 +# +# I suggest you switch to ParaView 12.1 +# +-------------------------------------------------------------------------------- + +# Source this initial OpenFOAM environment to get the basic configuration for +# compilation +. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc + +# Compile the ThirdParty packages + +cd $WM_PROJECT_DIR/ThirdParty +./AllMake.stage1 >& log.AllMake.stage1 +./AllMake.stage3 >& log.AllMake.stage3 +./AllMake.stage4 >& log.AllMake.stage4 + +# You can keep an eye on the compilation process with the command tail e.g: +# tail -f log.AllMake.stage1 + +-------------------------------------------------------------------------------- + +# Update your OpenFOAM environment to get the basic configuration from the newly +# compiled ThirdParty packages + +. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc + +# Compile OpenFOAM-1.6-ext + +cd $WM_PROJECT_DIR +./Allwmake >& log.Allwmake & +tail -f log.Allwmake # To keep an eye on the compilation process + +-------------------------------------------------------------------------------- + +# Execute Allwmake a second time because of a bad library building sequence for +# the library -lfaceDecompositionMotionSolver +# Warning: Not sure if this is still necessary... MB 05/2012 + +./Allwmake >& log.Allwmake2 & +tail -f log.Allwmake2 # To keep an eye on the compilation process + +-------------------------------------------------------------------------------- + +# Run a tutorial to check the basic functionality + +cd $FOAM_TUTORIAL/incompressible/simpleFoam/pitzDaily +blockMesh >& log.blockMesh +simpleFoam >& log.simpleFoam +paraFoam + +# You are done! + +-------------------------------------------------------------------------------- +Martin Beaudoin +May 2012