CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   OpenFOAM 2.0.x on Fedora 16 64-bit (http://www.cfd-online.com/Forums/openfoam/94671-openfoam-2-0-x-fedora-16-64-bit.html)

JonW November 22, 2011 11:31

OpenFOAM 2.0.x on Fedora 16 64-bit
 
Hi there foamers
just installed OF 2.0.x on Fedora 16 64-bit, without problem:
Here is the procedure (basically the same as for Fedora 14 64-bit):
Note I haven't bothered in compiling paraFoam. Instead I install paraview
and use foamToVTK after each simulation (yum install paraview).

-------------------------------------------------------
Step 1: (some repetitions here, haven't clean this up, but don't worry)
yum install gcc gcc-c++ binutils-devel flex git-core wget cmake qt4-devel python-devel readline-devel bison
yum install gcc gcc-c++ bison ncurses-devel tix.x86_64 glibc-devel flex zlib-devel libXt-devel
yum install binutils-static python-devel qt-devel cmake flex
-------------------------------------------------------
Step 2:
cd
mkdir OpenFOAM
cd OpenFOAM/
git clone git://github.com/OpenFOAM/OpenFOAM-2.0.x.git
-------------------------------------------------------
Step 3:
Download ThirdParty-2.0.1.gtgz from http://www.openfoam.org/git.php
(make sure it is OK with md5sum)

... After successful download, move the file to ~/OpenFOAM
tar xzf ThirdParty-2.0.1.gtgz
mv ThirdParty-2.0.1 ThirdParty-2.0.x
-------------------------------------------------------
Step 4:
edit your .bashrc file in ~/ and activate openfoam paths by adding (NOTE remember the dot,... that is the "." before !!!)

. $HOME/OpenFOAM/OpenFOAM-2.0.x/etc/bashrc

after the "# User specific aliases and functions" text.
-------------------------------------------------------
Step 5:
Open new terminal and make sure that your paths are active
type "echo $PATH" and you should see lot of openfoam stuff
-------------------------------------------------------
Step 6: (this is optional)
export WM_NCOMPPROCS=$(cat /proc/cpuinfo | grep processor | wc -l)
-------------------------------------------------------
Step 7:
cd $WM_PROJECT_DIR
foamSystemCheck
-------------------------------------------------------
Step 8:
./Allwmake | tee wmake_log_file_dxxxxxx.txt
-------------------------------------------------------
Step 9:
mkdir -p $FOAM_SITE_APPBIN
mkdir -p $FOAM_SITE_LIBBIN
foamInstallationTest
-------------------------------------------------------
Step 10: To check if everything is OK

mkdir -p $FOAM_RUN
cp -r $FOAM_TUTORIALS $FOAM_RUN
cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity

blockMesh
icoFoam
foamToVTK
paraview & ... and open the file in the ./VTK to see the cfd result
-------------------------------------------------------

Hope this is of help for the newcomers
Jon


All times are GMT -4. The time now is 18:36.