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

OpenFOAM 1.6.x - CentOS 5.3 x86_64

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 18, 2011, 06:30
Default
  #41
New Member
 
Manoj L Das
Join Date: Mar 2011
Location: Calcutta, India
Posts: 25
Rep Power: 6
run_cfd is on a distinguished road
Quote:
Originally Posted by linnemann View Post
Hi Manoj

Go here instead. I have changed the install process since that description.

https://sourceforge.net/apps/mediawi...itle=Main_Page

If you need the packages for RHEL you can mix and match from CentOS and SL, they are all built using the same source packages.

So to install manually go here f.ex.

http://ftp.hosteurope.de/mirror/cent...x86_64/CentOS/

Search for the packages you need, download it and install with

rpm -Uvh nameOfPackage.rpm

It might complain that it needs some dependency package to install so search for those as well and install them before the other.

You can also convert to CentOS but for the small number of packages you need for centFOAM I would just download them manually.

Best
Niels


Hi Neils,

The links are amazing and it's a superlink. I got everything I was searching for... thanks.

But still I was not able to install OpenFOAM. After installing following things (gcc gcc-c++ bison ncurses-devel tix.x86_64 glibc-devel flex flex-devel zlib-devel libXt-devel)mannually, I followed the Manual install steps on the page "https://sourceforge.net/apps/mediawi...itle=Main_Page". I got following errors:

1 In step 5:
-------------------------------------------------------------------------
[root@sunserver etc]# chmod -R 755 $HOME/OpenFOAM
chmod: cannot access `/root/OpenFOAM': No such file or directory
-------------------------------------------------------------------------

2 In step 6: I added the line [ alias OF17=". $HOME/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc" ] just before the end-of-file in the bashrc file and when executed the . ~/.bashrc in the terminal, I got no response: see below:
--------------------------------------------------------------------------
[root@sunserver etc]# . ~/.bashrc
[root@sunserver etc]#
--------------------------------------------------------------------------

And when I checked with OF17 following error was shown:
--------------------------------------------------------------------------
[root@sunserver etc]# OF17
bash: /root/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc: No such file or directory
--------------------------------------------------------------------------

And after I checked which gcc, this was displayed
--------------------------------------------------------------------------
[root@sunserver etc]# which gcc
/usr/bin/gcc
[root@sunserver etc]#
----------------------------------------------------------------------------

Obviously, I can guess that the mistake is somewere in the initial step. May be in sourcing the .bashrc file, but couldn't figure out exactly what? I am a beginner in OpenFOAM and Linux. Please help me in finding out the mistake and correcting it.

Thanks & Best regards,
MLD
run_cfd is offline   Reply With Quote

Old   April 18, 2011, 06:32
Default
  #42
New Member
 
Manoj L Das
Join Date: Mar 2011
Location: Calcutta, India
Posts: 25
Rep Power: 6
run_cfd is on a distinguished road
Hi Neils,

The links are amazing and it's a superlink. I got everything I was searching for... thanks.

But still I was not able to install OpenFOAM. After installing following things (gcc gcc-c++ bison ncurses-devel tix.x86_64 glibc-devel flex flex-devel zlib-devel libXt-devel)mannually, I followed the Manual install steps on the page "https://sourceforge.net/apps/mediawi...itle=Main_Page". I got following errors:

1 In step 5:
-------------------------------------------------------------------------
[root@sunserver etc]# chmod -R 755 $HOME/OpenFOAM
chmod: cannot access `/root/OpenFOAM': No such file or directory
-------------------------------------------------------------------------

2 In step 6: I added the line [ alias OF17=". $HOME/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc" ] just before the end-of-file in the bashrc file and when executed the . ~/.bashrc in the terminal, I got no response: see below:
--------------------------------------------------------------------------
[root@sunserver etc]# . ~/.bashrc
[root@sunserver etc]#
--------------------------------------------------------------------------

And when I checked with OF17 following error was shown:
--------------------------------------------------------------------------
[root@sunserver etc]# OF17
bash: /root/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc: No such file or directory
--------------------------------------------------------------------------

And after I checked which gcc, this was displayed
--------------------------------------------------------------------------
[root@sunserver etc]# which gcc
/usr/bin/gcc
[root@sunserver etc]#
----------------------------------------------------------------------------

Obviously, I can guess that the mistake is somewere in the initial step. May be in sourcing the .bashrc file, but couldn't figure out exactly what? I am a beginner in OpenFOAM and Linux. Please help me in finding out the mistake and correcting it.

Thanks & Best regards,
MLD
run_cfd is offline   Reply With Quote

Old   April 18, 2011, 06:37
Default Plese help in finding the mistake
  #43
New Member
 
Manoj L Das
Join Date: Mar 2011
Location: Calcutta, India
Posts: 25
Rep Power: 6
run_cfd is on a distinguished road
Hi Neils,

Greetings!!!

Thanks for your quick response. The links amazing and it's a superlink. I got everything I was searching for.

But the still I was not able to install OpenFOAM. After installing following things (gcc gcc-c++ bison ncurses-devel tix.x86_64 glibc-devel flex flex-devel zlib-devel libXt-devel) mannually, I followed the Manual install steps on the page "https://sourceforge.net/apps/mediawi...itle=Main_Page". I got following errors:

1 In step 5:
-------------------------------------------------------------------------
[root@sunserver etc]# chmod -R 755 $HOME/OpenFOAM
chmod: cannot access `/root/OpenFOAM': No such file or directory
-------------------------------------------------------------------------

2 In step 6: I added the line alias OF17=". $HOME/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc"
just before the end-of-file and when executed the . ~/.bashrc in the terminal, I got no response: see below:
--------------------------------------------------------------------------
[root@sunserver etc]# . ~/.bashrc
[root@sunserver etc]#
--------------------------------------------------------------------------

And when I checked with OF17 following error was shown:
--------------------------------------------------------------------------
[root@sunserver etc]# OF17
bash: /root/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc: No such file or directory
--------------------------------------------------------------------------

And after the I checked which gcc, this was displayed
--------------------------------------------------------------------------
[root@sunserver etc]# which gcc
/usr/bin/gcc
[root@sunserver etc]#
----------------------------------------------------------------------------

Obviously, I can guess that the mistake is somewere in the initial step. May be in sourcing the .bashrc file, but couldn't figure out exactly what. I am a beginner in OPenFOAM and Linux. Please help me in finding out the mistake and correcting it.

Thanks & Best regards,
MLD
run_cfd is offline   Reply With Quote

Old   April 18, 2011, 07:10
Default
  #44
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 451
Rep Power: 15
linnemann will become famous soon enough
Hi

First of all please do not double and triple post.

My bet is that there is no files in $HOME/OpenFOAM but rather in $HOME/centFOAM/OpenFOAM

You can read in the error that

Code:
chmod: cannot access `/root/OpenFOAM': No such file or directory


bash: /root/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc: No such file or directory
So the first thing that should pop up in your head was to check if that directory exists. And if not change it to the correct path.

My manual recipe is not made for "dummies" as it might not be fully updated, I'm busy doing other things. If you want to make it easy use the automatic script instead.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   April 19, 2011, 05:45
Default
  #45
New Member
 
Manoj L Das
Join Date: Mar 2011
Location: Calcutta, India
Posts: 25
Rep Power: 6
run_cfd is on a distinguished road
Hi Neils,

I am sorry for the double posts, it was not deliberate. Now I succeeded to install OpenFoam-1.7.1. I followed the steps on the link http://sourceforge.net/apps/mediawik...itle=Main_Page.

I tried running a case of icoFOAM, it's working. But I was not able to open paraFoam. When I type the command "paraFoam" in case directory terminal. it gives following error.

---------
[root@sunserver cavity]# paraFoam
created temporary 'cavity.OpenFOAM'
/root/OpenFOAM/OpenFOAM-1.7.1/bin/paraFoam: line 139: paraview: command not found
[root@sunserver cavity]#
---------

What may be the problem?

Thanks and Best wishes

MLD
run_cfd is offline   Reply With Quote

Old   April 19, 2011, 06:34
Default
  #46
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 451
Rep Power: 15
linnemann will become famous soon enough
Quote:
Note that from June 2010 Paraview will be a separate program from OpenFOAM and thus paraFoam will no longer work. This was a decision I've made since I feel the performance from the parallel reader found here is superior to the one in OpenFOAM. It also means that you can use Paraview without OpenFOAM and it allows me to keep Paraview more up to date. To use Paraview with the new reader just create an empty file in your case folder "touch casename.foam" and open this file using Paraview.
Please read the wiki.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   April 20, 2011, 04:05
Default
  #47
Member
 
Vishal Jambhekar
Join Date: Mar 2009
Location: University Stuttgart, Stuttgart Germany
Posts: 90
Blog Entries: 1
Rep Power: 8
vishal is on a distinguished road
Hi Manoj,

Actually if you are not able to use parafoam. most porbablly "your paraview is not compiled or you don't have it in Thirdparty" dir.

what you can do is you can download paraview ready to use from paraview official website. and you can directly open ".foam " file using that.

for genrating .foam file you have to replace all ".OpenFOAM" in "OpenFOAM-1.7.1/bin/paraFoam" by ".foam"

go to case directory and execute.

paraFoam -touch (the .foam file will be generated which can be opened using downloaded paraview) I have been doing the same and works very good for decomposed mesh too you dont have to reconstruct them anymore.

I have installed OpenFOAM 1.7.1 successfully on CentOS system. Please let me know if you have problem. May be I can help.
__________________
Cheers,

Vishal Jambhekar...
"Simulate the way ahead......!!!"

Last edited by vishal; April 20, 2011 at 04:28.
vishal is offline   Reply With Quote

Old   July 6, 2011, 08:37
Default Error in new python script
  #48
New Member
 
Thomas Walsh
Join Date: Nov 2010
Posts: 17
Rep Power: 6
thomasnwalshiii is on a distinguished road
Thanks you the CentosFOAM setup. I'm installing it right now with your latest python script but noticed an error (I think at least). When trying to download openfoam 2.0.x I received an error regarding 'OF17'. I searched through your script and found this next to the install command for 'OF20'. I just changed it and everything seems to be working (at least it is downloading OF2.0.x onto my system as I type this).

Tom
thomasnwalshiii is offline   Reply With Quote

Old   July 8, 2011, 02:13
Default
  #49
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 451
Rep Power: 15
linnemann will become famous soon enough
Thanks for the feedback,

Will change it right away.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   July 19, 2011, 23:52
Default
  #50
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
Hi Niels,

thanks for centfoam with 2.0.x! I installed it on our Red Hat 5.3 machines, however I have this error message when it is executed:

[my_hostname:09053] mca: base: component_find: unable to open /local/albertop/OpenFOAM/ThirdParty-2.0.x/platforms/linux64Gcc45/openmpi-1.5.3/lib/openmpi/mca_btl_ofud: librdmacm.so.1: cannot open shared object file: No such file or directory (ignored)
[my_hostname:09053] mca: base: component_find: unable to open /local/albertop/OpenFOAM/ThirdParty-2.0.x/platforms/linux64Gcc45/openmpi-1.5.3/lib/openmpi/mca_btl_openib: librdmacm.so.1: cannot open shared object file: No such file or directory (ignored)
[my_hostname:09053] mca: base: component_find: unable to open /local/albertop/OpenFOAM/ThirdParty-2.0.x/platforms/linux64Gcc45/openmpi-1.5.3/lib/openmpi/mca_mtl_psm: libpsm_infinipath.so.1: cannot open shared object file: No such file or directory (ignored)
[my_hostname:09055] mca: base: component_find: unable to open /local/albertop/OpenFOAM/ThirdParty-2.0.x/platforms/linux64Gcc45/openmpi-1.5.3/lib/openmpi/mca_btl_ofud: librdmacm.so.1: cannot open shared object file: No such file or directory (ignored)
[my_hostname:09055] mca: base: component_find: unable to open /local/albertop/OpenFOAM/ThirdParty-2.0.x/platforms/linux64Gcc45/openmpi-1.5.3/lib/openmpi/mca_btl_openib: librdmacm.so.1: cannot open shared object file: No such file or directory (ignored)
[my_hostname:09055] mca: base: component_find: unable to open /local/albertop/OpenFOAM/ThirdParty-2.0.x/platforms/linux64Gcc45/openmpi-1.5.3/lib/openmpi/mca_mtl_psm: libpsm_infinipath.so.1: cannot open shared object file: No such file or directory (ignored)
[my_hostname:09054] mca: base: component_find: unable to open /local/albertop/OpenFOAM/ThirdParty-2.0.x/platforms/linux64Gcc45/openmpi-1.5.3/lib/openmpi/mca_btl_ofud: librdmacm.so.1: cannot open shared object file: No such file or directory (ignored)
[my_hostname:09054] mca: base: component_find: unable to open /local/albertop/OpenFOAM/ThirdParty-2.0.x/platforms/linux64Gcc45/openmpi-1.5.3/lib/openmpi/mca_btl_openib: librdmacm.so.1: cannot open shared object file: No such file or directory (ignored)
[my_hostname:09054] mca: base: component_find: unable to open /local/albertop/OpenFOAM/ThirdParty-2.0.x/platforms/linux64Gcc45/openmpi-1.5.3/lib/openmpi/mca_mtl_psm: libpsm_infinipath.so.1: cannot open shared object file: No such file or directory (ignored)

This does not seem to be a problem on multicore workstations, but it prevents clusters from running jobs (always RHEL 5.3).

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods

Last edited by alberto; July 19, 2011 at 23:53. Reason: removed actual hostname
alberto is offline   Reply With Quote

Old   July 20, 2011, 01:26
Default
  #51
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 451
Rep Power: 15
linnemann will become famous soon enough
Hi Alberto

Ahh yes, our cluster has infiniband so thats why it complains that it cant find it.

one solution is to change the Allwmake script in the Thirdparty folder.

uncomment line 102 where it says --with-openib.

Delete the platforms/linux64Gcc45/openmpi-1.5.3 folder and run ./Allwmake again.

This should then compile without infiniband.

The other solution that you could try beforehand is to run mpi as described at the very bottom on this page http://pkg-ofed.alioth.debian.org/ho...d-howto-6.html this forces openmpi to use tcp-ip.

I will compile a version without inifiniband and upload if youd like.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   July 20, 2011, 01:51
Default
  #52
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
Thanks for your reply Niels. Actually our cluster has infiniband too, which is what makes me wonder. I'll try to re-compile OpenMPI, and let you know.

P.S. Before I forget, the scripts for csh are not updated:
  • OpenFOAM-2.0.x/etc/cshrc
    • set foamCompiler=ThirdParty
    • setenv WM_COMPILER Gcc45
  • OpenFOAM-2.0.x/etc/config/settings.csh
    • Version of gcc and libs updated
You find the fixed files in the attached tar.gz.

Best,
Attached Files
File Type: gz cshrc.tar.gz (5.6 KB, 4 views)
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   July 20, 2011, 03:33
Default
  #53
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
Little update: It seems the problem in my case is due to ofed, which comes with mpi 1.2.8, naturally built with the obsolete gcc 4.1 (I love Red Hat).

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   July 20, 2011, 05:02
Default
  #54
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 451
Rep Power: 15
linnemann will become famous soon enough
Hi

I will update my install script with the cshrc, funny you are the only one who have noticed this as I have never updated the cshrc file ;-)

are there any benefits from using csh over bash?

We also use OFED but I compile it myself using this fine guide.

https://wiki.rocksclusters.org/wiki/...ks_5.3_cluster
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   July 20, 2011, 07:30
Default
  #55
New Member
 
Manoj L Das
Join Date: Mar 2011
Location: Calcutta, India
Posts: 25
Rep Power: 6
run_cfd is on a distinguished road
Hi Neils

Greetings!!!

Is it possible to install centFoam on RHEL6 x86 ?

Regards,

Manoj
run_cfd is offline   Reply With Quote

Old   July 20, 2011, 07:54
Default
  #56
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 451
Rep Power: 15
linnemann will become famous soon enough
Hi Manoj

I'm still in the process of compiling the different stuff for 6.x. and updating the install script.

netgen, paraview and 1.6-ext is already available on the source-forge page you just have to do the installation manually.

I'm quite swamped at work so do not have much time for the "fun" stuff.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   July 20, 2011, 08:30
Default
  #57
New Member
 
Manoj L Das
Join Date: Mar 2011
Location: Calcutta, India
Posts: 25
Rep Power: 6
run_cfd is on a distinguished road
yes it does!!! I tried and it was successfully done!!!
run_cfd is offline   Reply With Quote

Old   July 20, 2011, 08:44
Default
  #58
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 451
Rep Power: 15
linnemann will become famous soon enough
Hi

Im a little confused.

Did you do the manual install or the scripted version?

I suspect that the scripted would work quite ok on version 6.x since I include the GCC install with the thirdparty.

The reason I want to make separate version for 6.x is that the gcc is much never 4.4.x and thus I do not need to recompile/include gcc for each version. also QT is up to date and paraview can be built with the 6.x dev version of QT which also makes my life easier :-)

Also if you read here http://www.afs.enea.it/funel/CFD/Ope...amcomptest.htm you can see that the precompiled does not scale as well if built on a different system.

Thats why I want to have separate versions for 5.x and 6.x to get optimum speedup.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   July 20, 2011, 10:36
Default
  #59
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by linnemann View Post
Hi

I will update my install script with the cshrc, funny you are the only one who have noticed this as I have never updated the cshrc file ;-)

are there any benefits from using csh over bash?
I personally don't think so . Our machines are managed directly by our IT department, and csh is used by default. I revert this setting on my machine to bash, because I am more comfortable with it, but doing that by hand on all the machines and clusters would be annoying, so I just use csh there.

Quote:
We also use OFED but I compile it myself using this fine guide.

https://wiki.rocksclusters.org/wiki/...ks_5.3_cluster
Thank you! Very helpful.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   July 21, 2011, 00:38
Default
  #60
New Member
 
Manoj L Das
Join Date: Mar 2011
Location: Calcutta, India
Posts: 25
Rep Power: 6
run_cfd is on a distinguished road
Quote:
Originally Posted by linnemann View Post
Hi

Im a little confused.

Did you do the manual install or the scripted version?

I suspect that the scripted would work quite ok on version 6.x since I include the GCC install with the thirdparty.

The reason I want to make separate version for 6.x is that the gcc is much never 4.4.x and thus I do not need to recompile/include gcc for each version. also QT is up to date and paraview can be built with the 6.x dev version of QT which also makes my life easier :-)

Also if you read here http://www.afs.enea.it/funel/CFD/Ope...amcomptest.htm you can see that the precompiled does not scale as well if built on a different system.

Thats why I want to have separate versions for 5.x and 6.x to get optimum speedup.

Hi Neils!!

Greetings!!

I did mannual install and didn't tried scripted install. The mannual install works fine in my case. I just followed the steps after doing rpm install of the prerequisites (bison, flex.... etc). For some of those prerequisites, RHEL 6 already had updated versions.
The openfoam works fine but paraFoam is not working for now even after replacing all .OpenFOAM with .foam in ~/bin/paraFoam file. May be I will have to install paraview separately and with that read the casename.foam file. I am trying that, but any other option from your side will be appreciated.

Thanks in advance,

Manoj
run_cfd is offline   Reply With Quote

Reply

Tags
1.6.x, centos, openfoam

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM 1.6 package - CentOS 5.3 x86_64 linnemann OpenFOAM Installation 36 September 2, 2009 12:46
OpenFOAM 1.5.x package - CentOS 5.3 x86_64 linnemann OpenFOAM Installation 7 July 30, 2009 03:14
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56
OpenFOAM 15 and CentOS 52 installation issues remrich OpenFOAM Bugs 9 March 20, 2009 02:48
OpenFOAM Debian packaging current status problems and TODOs oseen OpenFOAM Installation 9 August 26, 2007 13:50


All times are GMT -4. The time now is 11:23.