CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

OF 1.7.1 & 1.7.x builds for Fedora 14 x86_64

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 13, 2010, 09:49
Default OF 1.7.1 & 1.7.x builds for Fedora 14 x86_64
  #1
New Member
 
VNPenguin
Join Date: Apr 2010
Posts: 19
Rep Power: 16
vnpenguin is on a distinguished road
Build with Fedora's gcc 4.5.1 + openMPI 1.5 with SGE support.
Download from here
vnpenguin is offline   Reply With Quote

Old   November 14, 2010, 11:10
Default RPM packages for Fedora 14
  #2
New Member
 
VNPenguin
Join Date: Apr 2010
Posts: 19
Rep Power: 16
vnpenguin is on a distinguished road
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.
vnpenguin is offline   Reply With Quote

Old   December 6, 2010, 09:41
Default Instalation of OpenFOAM 1.7.x on Fedora 14 - 64bit
  #3
Senior Member
 
Jon Elvar Wallevik
Join Date: Nov 2010
Location: Reykjavik, ICELAND
Posts: 103
Rep Power: 19
JonW will become famous soon enough
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.
JonW is offline   Reply With Quote

Old   March 29, 2011, 16:29
Default
  #4
New Member
 
ruma
Join Date: Mar 2011
Location: USA
Posts: 22
Rep Power: 15
ruma is on a distinguished road
Thank you so much fr this great info pg. Still I am stuck from the place for foamSystemCheck

Last edited by ruma; March 29, 2011 at 17:04.
ruma is offline   Reply With Quote

Old   March 29, 2011, 17:01
Default
  #5
New Member
 
ruma
Join Date: Mar 2011
Location: USA
Posts: 22
Rep Power: 15
ruma is on a distinguished road
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.
ruma is offline   Reply With Quote

Old   March 31, 2011, 10:10
Default steps for Fedora 14 - 64 bit
  #6
Senior Member
 
Jon Elvar Wallevik
Join Date: Nov 2010
Location: Reykjavik, ICELAND
Posts: 103
Rep Power: 19
JonW will become famous soon enough
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
JonW is offline   Reply With Quote

Old   March 31, 2011, 16:34
Default
  #7
New Member
 
ruma
Join Date: Mar 2011
Location: USA
Posts: 22
Rep Power: 15
ruma is on a distinguished road
Hi John,

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

Last edited by ruma; April 1, 2011 at 00:32.
ruma is offline   Reply With Quote

Old   April 1, 2011, 00:37
Default here is my log file for ./Allwmake and wmake all
  #8
New Member
 
ruma
Join Date: Mar 2011
Location: USA
Posts: 22
Rep Power: 15
ruma is on a distinguished road
Hi John,

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

first file is fr ./Allwmake
2nd one : wmake all
Attached Files
File Type: gz wmake_log.tar.gz (41.3 KB, 1 views)
File Type: gz wmake2_log.tar.gz (4.2 KB, 0 views)
ruma is offline   Reply With Quote

Old   April 2, 2011, 12:32
Default
  #9
Senior Member
 
Jon Elvar Wallevik
Join Date: Nov 2010
Location: Reykjavik, ICELAND
Posts: 103
Rep Power: 19
JonW will become famous soon enough
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.

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
JonW is offline   Reply With Quote

Old   April 5, 2011, 12:54
Default
  #10
New Member
 
ruma
Join Date: Mar 2011
Location: USA
Posts: 22
Rep Power: 15
ruma is on a distinguished road
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
ruma is offline   Reply With Quote

Reply

Tags
fedora


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 17:00.