CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OF 1.7.1 & 1.7.x builds for Fedora 14 x86_64 (http://www.cfd-online.com/Forums/openfoam-installation/82014-1-7-1-1-7-x-builds-fedora-14-x86_64-a.html)

vnpenguin November 13, 2010 10:49

OF 1.7.1 & 1.7.x builds for Fedora 14 x86_64
 
Build with Fedora's gcc 4.5.1 + openMPI 1.5 with SGE support.
Download from here

vnpenguin November 14, 2010 12:10

RPM packages for Fedora 14
 
RPM packages for Fedora 14 are available now: click here

For 1.7.1, minimum installation is :
Code:

# rpm -ivh OpenFOAM-1.7.1-1.fc14.x86_64.rpm OpenFOAM-thirdparty-1.7.1-1.fc14.x86_64.rpm
Alias "OF171" was defined automatically to source OpenFOAM 1.7.1 env.

If you need doc, src or tutorials, install more rpm :
Do the same for 1.7.x RPM packages.

JonW December 6, 2010 10:41

Instalation of OpenFOAM 1.7.x on Fedora 14 - 64bit
 
The above is great, I wish this was available when I first started to play with OF. Great contribution!

After painful learning curve through cfd-online and elsewhere on the internet, I do the following today (I have done this on fedora 12, 13 and 14, 64 bit only, on several different computers):
What I severely missed in my search was one single page about all the steps and I hope this section provides that for the Fedora folks.
Again, all of the following is from the internet, much from some Ubuntu super nerd, in which I unfortunately don't remember his name, and again other stuff is from different individuals from cfd-online. The following applies only for openfoam, not parafoam (I use paraview which is included in fedora ["yum install paraview"]):
---------------------------------------------------------
step 0
make sure you have all the libraries

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

(ok, there are some repetitions in the above, but yum won't bother about that)

-----------------------
step 1
mkdir OpenFOAM (in your home dir)
cd OpenFOAM

git clone git://github.com/OpenCFD/OpenFOAM-1.7.x.git

download ThirdParty-1.7.1.gtgz (from http://www.openfoam.com/download/source.php) and put it in ~/OpenFOAM
remember to md5sum (i.e. "md5sum ThirdParty-1.7.1.gtgz" and compare the numbers, to make sure you have a valid download)

tar xzf ThirdParty-1.7.1.gtgz

mv ThirdParty-1.7.1 ThirdParty-1.7.x

cd /home/jonelvar/OpenFOAM/OpenFOAM-1.7.x/wmake/rules/linux64Gcc
edit general

change the stuff in the "PROJECT_LIBS = ... " over to

PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl $(FOAM_MPI_LIBBIN)/libPstream.so

-------------------------------------------------------
edit .bashrc in your home dir
and put the line

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

Open new terminal to activate your new paths
type "echo $PATH" to make sure you have the OpenFOAM stuff ready
-------------------------------------------------------
type
export WM_NCOMPPROCS=$(cat /proc/cpuinfo | grep processor | wc -l)
in your terminal (to activate all your cpus for the compilation)
-------------------------------------------------------
type in your terminal
foamSystemCheck
...and if everything is ok, then
-------------------------------------------------------
cd $WM_PROJECT_DIR
-------------------------------------------------------
./Allwmake | tee wmake_log.txt

Couple of hours of compiling...
... after finishing, type
foamInstallationTest

....to check if things are ok, but note it is a very crude test
(NOTE it will not guarantee everything is ok. My compilation have gone south and still the foamInstallationTest have reported OK).


best check is just to make your first simulation, with

mkdir -p $FOAM_RUN
cp -r $FOAM_TUTORIALS $FOAM_RUN
cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity
blockMesh
icoFoam
foamToVTK
paraview & (and go into the VTK directory and open the case file(s))



Hope this is of help for the Fedora fanatics :)
J.

ruma March 29, 2011 16:29

Thank you so much fr this great info pg. Still I am stuck from the place for foamSystemCheck

ruma March 29, 2011 17:01

Hi,
Thank you very much. I am confused from the line [ur instruction]
/home/ruma/OpenFOAM/OpenFOAM-1.7.x ThirdParty-1.7.1.gtgz ThirdParty-1.7.x

This way I kept OpenFOAM.
Should I git as a root or in my dir?

and I am confused from the instruction line
type foamSystemCheck in the terminal . as user ruma as I type it, it says command nt found.

Pls help.

P.S I could nt install .rpm package since this is fr fedora14.

JonW March 31, 2011 10:10

steps for Fedora 14 - 64 bit
 
Ok first question, are you using 64 bit fedora? I don't know if this works on 32.

Assuming you are on 64 bit,...

cd /home/ruma/OpenFOAM/OpenFOAM-1.7.x

rembember to unpack ThirdParty-1.7.1.gtgz
tar xzf ThirdParty-1.7.1.gtgz

when you are finished with that, then rename (with the mv command),...
mv ThirdParty-1.7.1 ThirdParty-1.7.x

...thereafter follow the steps mentioned above. Look, this is important,... go slowly through the steps above, and make sure you are not skipping anything. It is easy to accidentally skip one of the steps, and if so, things will go bad. p { margin-bottom: 0.21cm; }Patients is very important here. The above steps works well. I have 3 fedora computers in my office (one is F12, the others are F14) and one home (F14), all 64 bits, in which all of them have OpenFOAM 1.7.x installed according to the above steps, with no problems. Now days, I just do copy paste from the above steps without thinking (too much).

To answer your specific quesitons:
(1) during the installation, you newer have to be root,... newer (which is a good thing:))

(2) Before running foamSystemCheck, you have to activate your path.

You do that by edit .bashrc in your home dir
and put the line (remember the dot "." and space before $HOME...)

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

Open new terminal to activate your new paths (for example type xterm or gnome-terminal)
type "echo $PATH" to make sure you have the OpenFOAM stuff ready

Hope this is of help

ruma March 31, 2011 16:34

Hi John,

Will u pls look at my wmake.log file? it has lots error .

ruma April 1, 2011 00:37

here is my log file for ./Allwmake and wmake all
 
2 Attachment(s)
Hi John,

I am lil confused abt wmake libso command in th OF git repository.

first file is fr ./Allwmake
2nd one : wmake all

JonW April 2, 2011 12:32

Hi ruma

Note that the ./Allwmake command in the $WM_PROJECT_DIR directory is the correct choice (not the other command you used)

Given that you have followed the guidelines I posted above to the letter, I am confused why this is not working for you. You system must be missing some libraries. :confused:

Your wmake log file did not give me any answers. :(

I am now shooting in the dark, but try this:

(A) install gfortran (with yum install gfortran). This is what all my computers have in common, i.e. they all have FORTRAN installed. Might do the trick.
(B) Make sure that you have also done all the yum thingi mentioned above.
(C) reboot (should not be necessary, but do it just in case in the space)
(D) do wcleanAll in $WM_PROJECT_DIR (you have to clean up before you start again)
(E) try the above steps again.

J

ruma April 5, 2011 12:54

Can anyone tell me how to delete posts? Sorry, for installation of OpenFOAM-1.7.x with thirdparty on fedora 13 OS (X_86_64 machine), I had trouble and posted randomly.

Again thnk u all for very very helpful thread....whoever is stuck with installation, JUST READ each piece of posts here..that helps a lot


All times are GMT -4. The time now is 20:49.