Excellent reply
That has produced a 205 kb of a file, what is beyond my linux expertise is the error messages produced during compilation (e.g. Error 1 or Error 2 but there are no details of what caused that Error1 or Error 2.
I need to ask you a favor, here I give you the two scripts that I use to download the programme and Install it, I really hope that you could spare some of your time and try to duplicate these error messages and if possible correct them. That would be really a late christmas present to openfoamers on OpenSUSE.
The point that you need to consider is that the use of OpenFOAM requires constant compilation for any simple modification that the user need to introduce.
There are binary files available for downLoad, and they run on my computer, but they have very limited number of cases to solve. so one need to compile the programme.
1- Script to download (and update) OpenFOAM
run from your home directory
#!/bin/bash
echo
echo
echo "Hello "$USER
echo
echo "Your current directory is:- "$PWD
echo
if test -e OpenFOAM
then
echo
echo “There is an old OpenFOAM folder, Updating source files”
echo
cd OpenFOAM
cd OpenFOAM-1.6.x
git pull
else
echo “No OpenFOAM folder found”
echo
Create a new Folder OpenFOAM
DownLoad the latest snapshot from the git repository
echo
echo "Creating a new OpenFOAM folder"
mkdir $HOME/OpenFOAM
cd OpenFOAM
echo
echo "Starting to DownLoad OpenFOAM-1.6.x"
echo
git clone git://repo.or.cz/OpenFOAM-1.6.x.git
echo
echo "DownLoading ThirdParty Files for 64 bits installation"
echo
wget [Download OpenFOAM - The Open Source CFD Toolbox from SourceForge.net](http://sourceforge.net/projects/foam/files/foam/1.6/ThirdParty-1.6.General.gtgz/download)
If you are installing OpenFOAM on 32 bits platform, you need to download the following File and comment the 64 bits file
wget [Download OpenFOAM - The Open Source CFD Toolbox from SourceForge.net](http://sourceforge.net/projects/foam/files/foam/1.6/ThirdParty-1.6.linux64Gcc.gtgz/download)
echo
echo "Unpacking Third Party Ffiles"
echo
tar xvzf ThirdParty-1.6.General.gtgz
If you are installing OpenFOAM on 32 bits platform, you need to uncompress the following File and comment the 64 bits file
tar xvzf ThirdParty-1.6linuxGcc.gtgz
tar xvzf ThirdParty-1.6.linux64Gcc.gtgz
mv ThirdParty-1.6 ThirdParty-1.6.x
echo
cd ..
echo "You need to add the following statement to your .bashrc file"
echo "source $HOME/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc"
echo
emacs .bashrc
echo "Now you have modified your .bashrc file, Do the following"
echo "1- Close this terminal window, then start a new one"
echo "2- Run The InstallOpenFOAM.sh script"
echo
echo " That is all for now folks.........."
fi
2- Script to install OpenFOAM
run from your home directory
#!/bin/bash
echo
echo
echo "Hello "$USER
echo
echo "Your current directory is:- "$PWD
echo
echo “Before compiling OpenFOAM-1.6.x, We first test the installation”
echo
foamSystemCheck
echo
cd OpenFOAM
cd OpenFOAM-1.6.x
#./Allwmake > error.log
nohup ./Allwmake
echo
echo “…That is all folks…”
echo
echo “Enjoy Your OpenFOAM experience”
echo
echo " Be positive and helpful towards the others "
echo
echo " Share your OpenFOAM experience with other Users "
echo
echo
echo " Bye Bye"
echo
Thanks a lot for your prompt reply