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

OpenFOAM-1.7.0 for CentOS/RHEL/SL 5.x 64bit released

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

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 16, 2010, 13:33
Default
  #41
Member
 
Join Date: Sep 2010
Posts: 36
Rep Power: 15
anfho is on a distinguished road
Hi,
finally, I could also get a hold of the cluster admin. And I have to apologize as I am a new user of this cluster, too. The admin told me that there was CentOS 5.4 installed. Is this the same as CentOS/SL 5.x? I got confused about the Linux versions. Because when I entered "gcc --version" I got the output: "gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46) Copyright (C) 2006 Free Software Foundation, Inc." Therefore I thought RHEL 4.1.2 would be installed.
But still - eventhough CentOS 5.4 is installed it is the old gcc 4.1.2 compiler. So is it possible to use CentFOAM and then do a work around of the "yum" command? Meaning, can I update the gcc compiler on CentOS 5.x eventhough I do not have the root rights?
Also, why does OpenCFD and everyone in this forum recommend to compile OpenFOAM with gcc? gcc is known to produce inefficient codes (at least that's what the cluster admin says). Wouldn't it be better to use icc or pgi? On the cluster there is icc 10.1 installed.
Thanks! Andreas
anfho is offline   Reply With Quote

Old   September 16, 2010, 13:39
Default
  #42
Member
 
Join Date: Sep 2010
Posts: 36
Rep Power: 15
anfho is on a distinguished road
Is there a command to check the linux version?
anfho is offline   Reply With Quote

Old   September 16, 2010, 20:27
Default
  #43
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

I'm just dropping by to say that I've already answered Andreas in the other thread (namely "OpenFoam Installation in Redhat Enterprise linux 5 - post #15"), since the questions are nearly the same

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 17, 2010, 02:58
Default
  #44
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27
linnemann will become famous soon enough
Thx Bruno

Good stuff
__________________
Linnemann

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

Old   September 21, 2010, 20:54
Default OpenFOAM 1.7.1 on CentOS 5.5 x86_64 (CentFOAM)
  #45
New Member
 
Rishya Sringa
Join Date: Sep 2010
Posts: 1
Rep Power: 0
deepu134 is on a distinguished road
I have some basic background in CFD (mainly Fluent) and Linux (RHEL), and would not regard myself as an expert by any means.

I have root privileges on our Centos 5.5 (x 86 architecture, 64 bit) Linux server and want to install the entire openFOAM suite so that it is available to all users. I logged on as 'root' and ran the centFOAMInstall script and it appears that all packages were installed under /opt as desired.

[deepu134@arc1 opt]$ ls -al
total 36
drwxr-xr-x 7 root root 4096 Sep 21 13:45 .
drwxr-xr-x 24 root root 4096 Sep 21 16:40 ..
drwxrwxr-x 3 deepu134 deepu134 4096 Sep 21 13:42 engrid-1.2.0
drwxr-xr-x 4 root root 4096 Sep 21 13:45 gmsh-2.4.2
drwxr-xr-x 6 root root 4096 Sep 21 13:38 netgen-4.9.13
drwxr-xr-x 4 root root 4096 Sep 21 13:18 OpenFOAM
drwxr-xr-x 6 root root 4096 Sep 21 13:38 paraview-3.8.0

When I checked with 'OF17' and 'which gcc' as root, I received the following message, suggesting that it works.

[root@arc1 ~]# OF17
[root@arc1 ~]# which gcc
/opt/OpenFOAM/ThirdParty-1.7.1/platforms/linux64/gcc-4.4.4/bin/gcc

I then logged on as a regular user (deepu134), but was not able to run openFOAM.

[deepu134@arc1 ~]$ OF17
-bash: /opt/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc: Permission denied

I checked the permissions for /opt/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc, and this is what I found:

[deepu134@arc1 etc]$ ls -al
total 116
drwxr-xr-x 4 root root 4096 Sep 21 13:18 .
drwxr-xr-x 10 root root 4096 Sep 21 13:18 ..
-rw-r----- 1 1049 1049 2383 Jun 15 14:53 aliases.csh
-rw-r----- 1 1049 1049 2365 Jun 15 14:53 aliases.sh
drwxr-xr-x 5 root root 4096 Sep 21 13:18 apps
-rw-r----- 1 1049 1049 8337 Sep 21 13:18 bashrc
-rw-r----- 1 1049 1049 7754 Aug 24 08:35 cellModels
-rw-r----- 1 1049 1049 27486 Aug 24 08:52 controlDict
-rw-r----- 1 1049 1049 8686 Aug 24 08:47 cshrc
-rw-r----- 1 1049 1049 1904 Jun 22 07:30 prefs.csh-EXAMPLE
-rw-r----- 1 1049 1049 1891 Jun 22 07:30 prefs.sh-EXAMPLE
-rw-r----- 1 1049 1049 10332 Aug 6 05:52 settings.csh
-rw-r----- 1 1049 1049 10036 Aug 26 23:19 settings.sh
drwxr-xr-x 2 root root 4096 Sep 21 13:18 thermoData

Can somebody please clarify where I went wrong, and the best way to fix it so that the openFOAM suite is available to all users?

-Rishya
deepu134 is offline   Reply With Quote

Old   September 23, 2010, 05:16
Default
  #46
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27
linnemann will become famous soon enough
Hi

You need to set the permissions to let users read/excecute OF stuff.

So go to /opt write

Code:
chmod -R 755 ./OpenFOAM
^

Then users have read/excecute permissions on all OpenFOAM related stuff.

Maybe you need to do this for paraview and other stuff as well.
__________________
Linnemann

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

Old   October 22, 2010, 09:43
Default
  #47
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
Hi,

i too didn't get paraview in Thirdparty. rather i downloded compiled version of paraview.

download the 3.8.0 or modified version of paraview.

create .foam or .OpenFOAM file for ur case.

open paraview by execution of ./paraview in (bin folder contained in paraview).

and you can open your .foam file there.....!!!
__________________
Cheers,

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

Old   October 22, 2010, 10:16
Default
  #48
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27
linnemann will become famous soon enough
Hi

Yes as it says on the centFOAM wiki page

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.
__________________
Linnemann

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

Old   November 5, 2010, 18:28
Question
  #49
New Member
 
VNPenguin
Join Date: Apr 2010
Posts: 19
Rep Power: 15
vnpenguin is on a distinguished road
Hi linnemann,
I use your build 1.7.1 from CentFOAM. Could you tell me openmpi-1.4.1 (in ThirdParty-1.7.1 package) was compiled with option "--with-sge" ?

Thank you for your very good job,

Regards,
vnpenguin is offline   Reply With Quote

Old   November 6, 2010, 12:08
Default
  #50
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27
linnemann will become famous soon enough
Hi

Yes it has support for SGE (its what I use :-) )

Best
__________________
Linnemann

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

Old   November 6, 2010, 15:04
Thumbs up
  #51
New Member
 
VNPenguin
Join Date: Apr 2010
Posts: 19
Rep Power: 15
vnpenguin is on a distinguished road
Quote:
Originally Posted by linnemann View Post
Hi

Yes it has support for SGE (its what I use :-) )

Best
Super! Thank you so much
vnpenguin is offline   Reply With Quote

Old   November 12, 2010, 14:09
Default
  #52
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17
mirko is on a distinguished road
Quote:
Originally Posted by linnemann View Post
Hi

Yes it has support for SGE (its what I use :-) )

Best
Small typo in centFOAMinstall:

One of the echo commands still refers to OF16
mirko is offline   Reply With Quote

Old   November 1, 2011, 15:56
Default
  #53
Member
 
HD
Join Date: Jul 2011
Posts: 56
Rep Power: 14
Rebecca513 is on a distinguished road
Hi Linnemann,

I used your python script to install centFOAM.

Though I got some problems earlier, but OF and engrid seem to work well now. Still I have trouble opening gmsh, netgen, and paraview. I wonder whether I need to go through more compiling for those three or there might be other reasons.

Thank you!

Best,

H
Rebecca513 is offline   Reply With Quote

Old   November 1, 2011, 16:08
Default
  #54
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27
linnemann will become famous soon enough
Hi

Unless you give me some details or terminal output that describes the error I will have a hard time helping you.
__________________
Linnemann

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

Old   November 1, 2011, 16:17
Default
  #55
Member
 
HD
Join Date: Jul 2011
Posts: 56
Rep Power: 14
Rebecca513 is on a distinguished road
Hi Linnemann,

Sure. For instance, when I tried to run 'start_gmsh', it gives

#!/bin/bash

export PATH=/home/hangdeng/centFOAM//gmsh-2.5.0/bin:$PATH

export LD_LIBRARY_PATH=/home/hangdeng/centFOAM//gmsh-2.5.0/lib:$LD_LIBRARY_PATH

/home/hangdeng/centFOAM//gmsh-2.5.0/bin/gmsh


For the other two, no response at all.

Thank you~
Rebecca513 is offline   Reply With Quote

Old   November 1, 2011, 16:28
Default
  #56
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27
linnemann will become famous soon enough
ok.

Can you please verify that "start_gmsh" is executable by running

Code:
ll start_gmsh
This has to be done on the file so you have to cd to the dir where start_gmsh is by using

Code:
which start_gmsh
If its not executable run

Code:
chmod +x start_gmsh
on the file.

Then try again.

Please to the same for the other programs.

If in doubt post the output here.
__________________
Linnemann

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

Old   November 1, 2011, 16:47
Default
  #57
Member
 
HD
Join Date: Jul 2011
Posts: 56
Rep Power: 14
Rebecca513 is on a distinguished road
Hi,

First time, I got

[hangdeng@cee-5dpjzq1 gmsh-2.5.0]$ ll start_gmsh
-rw-rw-r-- 1 hangdeng hangdeng 199 Nov 1 11:08 start_gmsh
[hangdeng@cee-5dpjzq1 gmsh-2.5.0]$ which start_gmsh
/usr/bin/which: no start_gmsh in (/home/hangdeng/centFOAM//OpenFOAM/ThirdParty-2.0.x/platforms/linux64Gcc45/qt-4.6.4/bin:/home/hangdeng/centFOAM//OpenFOAM/ThirdParty-2.0.x/platforms/linux64Gcc45/openmpi-1.5.3/bin:/home/hangdeng/centFOAM//OpenFOAM/ThirdParty-2.0.x/platforms/linux64/gcc-4.5.3/bin:/home/hangdeng/OpenFOAM/hangdeng-2.0.x/platforms/linux64Gcc45DPOpt/bin:/home/hangdeng/centFOAM//OpenFOAM/site/2.0.x/platforms/linux64Gcc45DPOpt/bin:/home/hangdeng/centFOAM//OpenFOAM/OpenFOAM-2.0.x/platforms/linux64Gcc45DPOpt/bin:/home/hangdeng/centFOAM//OpenFOAM/OpenFOAM-2.0.x/bin:/home/hangdeng/centFOAM//OpenFOAM/OpenFOAM-2.0.x/wmake:/platforms//qt-4.6.4/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/hangdeng/bin)

After running chmod
It becomes
[hangdeng@cee-5dpjzq1 gmsh-2.5.0]$ ll start_gmsh
-rwxrwxr-x 1 hangdeng hangdeng 199 Nov 1 11:08 start_gmsh
[hangdeng@cee-5dpjzq1 gmsh-2.5.0]$ which start_gmsh
/usr/bin/which: no start_gmsh in (/home/hangdeng/centFOAM//OpenFOAM/ThirdParty-2.0.x/platforms/linux64Gcc45/qt-4.6.4/bin:/home/hangdeng/centFOAM//OpenFOAM/ThirdParty-2.0.x/platforms/linux64Gcc45/openmpi-1.5.3/bin:/home/hangdeng/centFOAM//OpenFOAM/ThirdParty-2.0.x/platforms/linux64/gcc-4.5.3/bin:/home/hangdeng/OpenFOAM/hangdeng-2.0.x/platforms/linux64Gcc45DPOpt/bin:/home/hangdeng/centFOAM//OpenFOAM/site/2.0.x/platforms/linux64Gcc45DPOpt/bin:/home/hangdeng/centFOAM//OpenFOAM/OpenFOAM-2.0.x/platforms/linux64Gcc45DPOpt/bin:/home/hangdeng/centFOAM//OpenFOAM/OpenFOAM-2.0.x/bin:/home/hangdeng/centFOAM//OpenFOAM/OpenFOAM-2.0.x/wmake:/platforms//qt-4.6.4/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/hangdeng/bin)


And still it is not working:
[hangdeng@cee-5dpjzq1 gmsh-2.5.0]$ ./start_gmsh
/home/hangdeng/centFOAM//gmsh-2.5.0/bin/gmsh: error while loading shared libraries: libfltk_images.so.1.1: cannot open shared object file: No such file or directory


I was just reading your recent posts, and I realized that maybe it is because I used the py script on centOS6.0. I am sorry I should have mentioned this earlier.

start_gmsh was shellscript. But executable files in the folders like 'gmsh' did not respond at all~
Rebecca513 is offline   Reply With Quote

Old   November 1, 2011, 16:54
Default
  #58
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27
linnemann will become famous soon enough
Hi

It complains that libfltk_images.so.1.1 cant be found.

This is a part of the fltk package and must be installed to run gmsh

yum install fltk

If its not in the std yum repos its part of atrpms.

http://atrpms.net/documentation/install/

Best
__________________
Linnemann

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

Old   November 1, 2011, 17:53
Default
  #59
Member
 
HD
Join Date: Jul 2011
Posts: 56
Rep Power: 14
Rebecca513 is on a distinguished road
I see, seems that I got some packages missing. I have fixed gmsh, will work on the other two programs.

Thank you Linnemann!

Best,
Hang
Rebecca513 is offline   Reply With Quote

Old   November 12, 2011, 17:49
Default
  #60
Member
 
HD
Join Date: Jul 2011
Posts: 56
Rep Power: 14
Rebecca513 is on a distinguished road
Hi Linnemann,

I tried to fix all the missing packages. But there is a wired one I can't resolve.

When I try to open paraview in the terminal,

It says that libpython2.4.so.1.o can't be found.

But I have python 2.6.5 installed. And I searched online, there is no installation information of libpython2.4 on centOS available.

Maybe I am missing something else?

Thank you!

Best,

Hang
Rebecca513 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM 1.7.0 Released opencfd OpenFOAM Announcements from ESI-OpenCFD 1 May 26, 2011 04:09
OpenFOAM 1.7.0 on OpenSUSE 11.1 Bufacchi OpenFOAM Installation 8 August 6, 2010 10:57
OpenFOAM Version 1.4.1 Released OpenFOAM discussion board administrator OpenFOAM Announcements from ESI-OpenCFD 0 August 3, 2007 08:31
OpenFOAM Version 1.3 Released OpenFOAM discussion board administrator OpenFOAM Announcements from ESI-OpenCFD 0 March 29, 2006 19:06
OpenFOAM Version 1.1 Released OpenFOAM discussion board administrator OpenFOAM Announcements from ESI-OpenCFD 0 March 11, 2005 06:33


All times are GMT -4. The time now is 10:04.