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

OpenFOAM 1.6.x - CentOS 5.3 x86_64

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 15, 2009, 05:37
Default
  #21
Member
 
Petri Sulasalmi
Join Date: Jul 2009
Location: Finland
Posts: 32
Rep Power: 17
PetSul is on a distinguished road
Well it failed again. It started promising but when compiling Thermophysical utility it gave errors.
PetSul is offline   Reply With Quote

Old   September 17, 2009, 03:57
Default
  #22
Member
 
P.A.
Join Date: Mar 2009
Location: Germany
Posts: 83
Rep Power: 17
blaise is on a distinguished road
Hello linnemann,

does your CentOS-Package support Infiniband use? Where would I set this in case I need to compile it in?

Thanks a lot!

blaise
blaise is offline   Reply With Quote

Old   September 17, 2009, 04:33
Default
  #23
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Hi

my package is the same as the standard OpenFOAM release the only difference is that I've included some extra stuff with regards to mesh generation and post processing.

So you should be able to add infiniband as regular procedure. I've never done this as I'm not using infiniband, but I'm sure other people can help you here.

Best regards
Linnemann
linnemann is offline   Reply With Quote

Old   September 21, 2009, 07:02
Default
  #24
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Well I found a stupid error in my way of sourcing the extra stuff.

instead of this
export PATH=$PATH:$WM_THIRD_PARTY_DIR/gmsh-2.3.1/bin
export PATH=$PATH:$WM_THIRD_PARTY_DIR/meshlab-1.2.1
export PATH=$PATH:$WM_THIRD_PARTY_DIR/engrid-1.0.1
export PATH=$PATH:$WM_THIRD_PARTY_DIR/libraries/bin
It should be written like this in the OpenFOAM bashrc file
export PATH=$WM_THIRD_PARTY_DIR/gmsh-2.3.1/bin:$PATH
export PATH=$WM_THIRD_PARTY_DIR/meshlab-1.2.1:$PATH
export PATH=$WM_THIRD_PARTY_DIR/engrid-1.0.1:$PATH
export PATH=$WM_THIRD_PARTY_DIR/libraries/bin:$PATH
linnemann is offline   Reply With Quote

Old   October 5, 2009, 05:50
Default
  #25
Member
 
Petri Sulasalmi
Join Date: Jul 2009
Location: Finland
Posts: 32
Rep Power: 17
PetSul is on a distinguished road
Hi,

more problems with OF. I'm trying to install OF under my own user name. I had it installed in /usr/local/OpenFOAM. I removed all of it with

rm -rf /usr/local/OpenFOAM

Then I installed OF under my user name. For some reason it doesn't update the environment variables and all of OF related variables still point to old directories.

Any idea what is this about? Is there any way to remove everything that is related to the old installation?

Regards,

Petri
PetSul is offline   Reply With Quote

Old   October 5, 2009, 06:32
Default
  #26
Member
 
Petri Sulasalmi
Join Date: Jul 2009
Location: Finland
Posts: 32
Rep Power: 17
PetSul is on a distinguished road
I got it working. Restartin the computer did the trick for the environment variables
PetSul is offline   Reply With Quote

Old   October 5, 2009, 06:33
Default
  #27
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Hi

I have had similar problems and a reboot/logout seemed to solve the problem.

Have no idea why the environment variables aren't updates

Regards
linnemann is offline   Reply With Quote

Old   October 5, 2009, 06:50
Default
  #28
Member
 
Petri Sulasalmi
Join Date: Jul 2009
Location: Finland
Posts: 32
Rep Power: 17
PetSul is on a distinguished road
Well. Now it's working otherwise but paraFoam refuses to run. Gave the following error when I tried to post-process the Cavity tutorial:

/home/petri/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/platforms/linux64Gcc/bin/paraview-real: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory
PetSul is offline   Reply With Quote

Old   October 5, 2009, 07:02
Default
  #29
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Hi

libssl should be a part of your CentOS installation so it seems weird it cant locate the library.


do you have openssl installed?

yum install openssl openssl-devel

regards
linnemann is offline   Reply With Quote

Old   October 5, 2009, 07:17
Default
  #30
Member
 
Petri Sulasalmi
Join Date: Jul 2009
Location: Finland
Posts: 32
Rep Power: 17
PetSul is on a distinguished road
Quote:
Originally Posted by linnemann View Post
Hi

libssl should be a part of your CentOS installation so it seems weird it cant locate the library.


do you have openssl installed?

yum install openssl openssl-devel

regards
Yes I've got openssl installed, indeed. Just updated it with yum.
PetSul is offline   Reply With Quote

Old   October 5, 2009, 15:13
Default
  #31
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Hi

Then I have no idea why paraview complains.
linnemann is offline   Reply With Quote

Old   October 6, 2009, 04:15
Default
  #32
Member
 
Petri Sulasalmi
Join Date: Jul 2009
Location: Finland
Posts: 32
Rep Power: 17
PetSul is on a distinguished road
I got it working. I started from the beginning once again and now everything seems to be just fine.
PetSul is offline   Reply With Quote

Old   October 18, 2009, 13:14
Default
  #33
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
UPDATE

the ThirdParty package now features gmsh 2.4.2 and Engrid svn-version

Netgen has been added to the SF page as an extra stand-alone package.

Install details is in the Netgen package.

Regards
__________________
Linnemann

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

Old   January 16, 2010, 11:16
Default
  #34
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Hi everyone

I have started a wiki page for CentFOAM and created an install script which makes installation of the hosted files very easy.

Go see for yourself and please try the install script and report your findings.
__________________
Linnemann

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

Old   February 2, 2010, 12:00
Lightbulb
  #35
New Member
 
Joaquín J. Correa
Join Date: Jan 2010
Posts: 18
Rep Power: 16
Pytthon is on a distinguished road
Quote:
Originally Posted by PetSul View Post
I probably got it working, it's compiling atm but no errors, yet at least. I guess it takes some time to complete?

Anyway I didn't download ThirdParty-1.6.x just changed the name of ThirdParty-1.6 as someone suggested in another thread, otherwise I did as you instructed and no error messages yet. Quite strange.

Regards,

Petri
PetSul I have the same issue, how can I solve it? (The 3rdparty dir name is ThirdParty-1.6)

http://www.cfd-online.com/Forums/ope...entos-4-x.html

Regards.
Pytthon is offline   Reply With Quote

Old   July 5, 2010, 15:08
Default
  #36
Senior Member
 
Robert Castilla
Join Date: Apr 2009
Location: Spain
Posts: 110
Rep Power: 17
rcastilla is on a distinguished road
Hi, I have to install the last version of OpenFOAM in a Red Hat 32 bits. I have had a lot of problems with compilation and I wonder if there is an easy way to do that with binaries.

Thanks
rcastilla is offline   Reply With Quote

Old   October 7, 2010, 06:59
Default
  #37
Member
 
Vishal Jambhekar
Join Date: Mar 2009
Location: University Stuttgart, Stuttgart Germany
Posts: 90
Blog Entries: 1
Rep Power: 17
vishal is on a distinguished road
Will it be the same procedure for OpenFOAM-1.7.1. Coz when i have downloded i could not find and of the additional tools like gmesh, engrid, meshlab in thirdparty folder.

I gueess we need to put unzipped folder in Third party directory. Though it sounds little silly question need to get it cleared for further process.....
__________________
Cheers,

Vishal Jambhekar...
"Simulate the way ahead......!!!"
vishal is offline   Reply With Quote

Old   April 18, 2011, 01:50
Default
  #38
New Member
 
Manoj L Das
Join Date: Mar 2011
Location: Calcutta, India
Posts: 25
Rep Power: 15
run_cfd is on a distinguished road
Quote:
Originally Posted by linnemann View Post
Hello Foamers

Here is a prepackaged/precompiled version of OpenFOAM-1.6.x and the ThirdParty-1.6.x sources. Some extra mesh related programs have been put in the ThirdParty package.

All built from source, no prepackaged binaries, so optimal speed for CentOS.

This time I have retained the sources in the ThirdParty folder since it is needed for recompilation of the OpenFOAM source. When you have it all installed you should be able to go into the install dir and do:
git pull
./Allwmake
Now you should be updated with all the bugfixes etc.

---------------- Included ----------------

- OpenFOAM 1.6.x (flex, mpfr and gmp built from source)

- Paraview 3.6.1, Mpi support, ffmpeg support (export to avi), and parallezied support for decomposed cases.

- gmsh-2.3.1

- engrid-1.0.1

- meshlab-1.2.1

---------------- Install Instructions for the whole package ----------------

0. Next steps are all done as root

1. First you need to install the gcc and c++ compiler, bison and ncurses-devel (thx wersoe) which is shipped with CentOS 5.3, needed to compile/recompile OpenFOAM solvers/libraries, or your own solvers.
yum install gcc gcc-c++ bison ncurses-devel
2. Create a folder for OpenFOAM, the default in the bashrc is /usr/loal/OpenFOAM
mkdir /usr/local/OpenFOAM
3. unpack the content of OpenFOAM-1.6.x_CentOS-5.3_x86-64.tar.gz and ThirdParty-1.6.x_CentOS-5.3_x86-64.tar.gz, from sourceforge, to the folder
cd /usr/loal/OpenFOAM
tar -xvf /pathtothedownload/OpenFOAM-1.6.x_CentOS-5.3_x86-64.tar.gz
tar -xvf /pathtothedownload/ThirdParty-1.6.x_CentOS-5.3_x86-64.tar.gz

4. Fix any possibly wrong permissions
chmod -R 755 /usr/local/OpenFOAM
5. Next part is done as non-root (user)

6. Put this line in your .bashrc file.
. /usr/local/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc
7. Restart console or source the bashrc.
. ~/.bashrc
there is a space between the dot and the tilde

8. Check that it works by doing
which gcc
this should output the following
/usr/local/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/bin/gcc

------------------Install done-------------------

The Qt-4.5.2.tar.gz and vtk-5.4.2.tar.gz, in the non-essential folder at sourceforge, are extras. Only needed if you consider recompiling paraview, or some other app which depends on Qt/vtk.

It is possible to install to another location other than /usr/local, all you have to do is to modify you own .bashrc file, the bashrc in OpenFOAM (/usr/local/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc) to point to the new location of the install, like in the regular OpenFOAM README.

---------------- Disclaimer ----------------
The package has been verified on a fresh minimal gnome install of CentOS 5.3 64bit (and a recompilation was done)

The package is "as is" and can only be guaranteed to work with a 64bit version of CentOS/RedHat/Scientific 5.3 (yum update is fine). Or if in a cluster environment Rocks 5.2 (based on CentOS 5.3).

If other distributions are used, I can't help you.

---------------- Download ----------------

I have made a sourceforge project for this which can be found at

https://sourceforge.net/projects/centfoam/

You can build your own OpenFOAM by only downloading the ThirdParty package and then doing:
git clone git://repo.or.cz/OpenFOAM-1.6.x.git
In the OpenFOAM-1.6.x/etc folder edit the bashrc file to contain the following at the end:
export PATH=$WM_THIRD_PARTY_DIR/gmsh-2.3.1/bin:$PATH
export PATH=$WM_THIRD_PARTY_DIR/meshlab-1.2.1:$PATH
export PATH=$WM_THIRD_PARTY_DIR/engrid-1.0.1:$PATH
export PATH=$WM_THIRD_PARTY_DIR/libraries/bin:$PATH

export LD_LIBRARY_PATH=$WM_THIRD_PARTY_DIR/paraview-3.6.1/platforms/linux64Gcc/bin:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$WM_THIRD_PARTY_DIR/libraries/lib:$LD_LIBRARY_PATH

after that do this
cd OpenFOAM-1.6.x
./Allwmake

And you should have your own compiled version (don't know why you would do that since I've compiled it already, but you have the possibility )


---------------- BUGS ----------------

1 .User wesoe reported an issue where the geometry is not shown, Takuya proposed putting the following into your .bashrc or run the command before paraFoam is run.
export LC_ALL=C
This is apparently a locale issue when using Qt-4.5 to build paraview.

2. An error related to paraview, if its not installed in /usr/local/OpenFOAM and fails to start because is states a library is missing, do this as root.
mkdir $WM_THIRD_PARTY_DIR/paraview-3.6.1/platforms/linux64Gcc/lib

ln -s $WM_THIRD_PARTY_DIR/paraview-3.6.1/platforms/linux64Gcc/bin $WM_THIRD_PARTY_DIR/paraview-3.6.1/platforms/linux64Gcc/lib/paraview-3.6



Hi Niels Nielsen,In the above method, the links"OpenFOAM-1.6.x_CentOS-5.3_x86-64.tar.gz and ThirdParty-1.6.x_CentOS-5.3_x86-64.tar.gz",in step 3 doesn't contain any file named "OpenFOAM-1.6.x_CentOS-5.3_x86-64.tar.gz" and"ThirdParty-1.6.x_CentOS-5.3_x86-64.tar.gz". Also both the above links directs to the same location where three different folder are there (Non-Essential, 6.x and OpenFOAM). Could you plese guide me which one to download or where I can get the files named "OpenFOAM-1.6.x_CentOS-5.3_x86-64.tar.gz" and"ThirdParty-1.6.x_CentOS-5.3_x86-64.tar.gz".

Also the mechine where I have to compile the CentFOAM is not connected to the internet. And it has RHEL 5.3 with gcc 4.1.x version, and It is not registerd with the RHN. so, yum installer is also not working. In such circumstance could you please suggest any alternative for setting the required environment for CentFOAM install.

On one of the Linux forum, I had seen a procedure to convert RHEL5.x in to CentOS, which does't require RHN registration to use yum installer, but I am not sure, by doing that will serve my purpose, And don't know whether by converting RHEL to CentOS will not affect the other other installations? Please help me out.

With Best Regards,
MLD
run_cfd is offline   Reply With Quote

Old   April 18, 2011, 01:54
Default CenFOAM installion help
  #39
New Member
 
Manoj L Das
Join Date: Mar 2011
Location: Calcutta, India
Posts: 25
Rep Power: 15
run_cfd is on a distinguished road
Hi Niels Nielsen,

In the above method, the links"OpenFOAM-1.6.x_CentOS-5.3_x86-64.tar.gz and ThirdParty-1.6.x_CentOS-5.3_x86-64.tar.gz",in step 3 doesn't contain any file named "OpenFOAM-1.6.x_CentOS-5.3_x86-64.tar.gz" and"ThirdParty-1.6.x_CentOS-5.3_x86-64.tar.gz". Also both the above links directs to the same location where three different folder are there (Non-Essential, 6.x and OpenFOAM). Could you plese guide me which one to download or where I can get the files named "OpenFOAM-1.6.x_CentOS-5.3_x86-64.tar.gz" and"ThirdParty-1.6.x_CentOS-5.3_x86-64.tar.gz".

Also the mechine where I have to compile the CentFOAM is not connected to the internet. And it has RHEL 5.3 with gcc 4.1.x version, and It is not registerd with the RHN. so, yum installer is also not working. In such circumstance could you please suggest any alternative for setting the required environment for CentFOAM install.

On one of the Linux forum, I had seen a procedure to convert RHEL5.x in to CentOS, which does't require RHN registration to use yum installer, but I am not sure, by doing that will serve my purpose, And don't know whether by converting RHEL to CentOS will not affect the other other installations? Please help me out.

With Best Regards,
MLD
run_cfd is offline   Reply With Quote

Old   April 18, 2011, 02:48
Default
  #40
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
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
__________________
Linnemann

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

Reply

Tags
1.6.x, centos, openfoam


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


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 13:46
OpenFOAM 1.5.x package - CentOS 5.3 x86_64 linnemann OpenFOAM Installation 7 July 30, 2009 04:14
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 06: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 14:50


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