|
[Sponsors] |
[OpenFOAM.org] Installing OpenFOAM 2.1.0 on ROCKS cluster |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 26, 2012, 04:23 |
Installing OpenFOAM 2.1.0 on ROCKS cluster
|
#1 |
Senior Member
|
Hi all,
We are trying to install/compile OpenFOAM 2.1.0 on a ROCKS cluster from sources. I have taken another thread in this forum (which I cannot find again) as a reference, but that thread talks about OpenFOAM 2.0 through installation of CentoFOAM. Besides the newest version of OpenFOAM which I would prefer to install, I am concerned as well with the version of the GCC compiler. This cluster has just 4.1.x installed in it and, with other simulation solvers installed, I would like to avoid updating the "main" gcc installation. My questions are: (a) Can I install CentoFOAM in this cluster and use a newer version of GCC which will be installed in the main OpenFOAM installation tree? (b) Would it be easy to update OpenFOAM 2.0 to 2.1.0 after this installation? (c) If I want to install directly OpenFOAM2.1.0 and related ThirdParty, which issues whould I be concerned about besides GCC version, and how can I make the installation/compilation last the shortest time possible? Thanks! |
|
March 26, 2012, 08:00 |
|
#2 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Just install centFOAM
It will not do anything to your system. It comes with its own GCC version 4.6.x. There are multiple guides/help on how to compile OF on CentOS 5.x releases. This thread has guide for OF-1.7 but the procedure is the same for 2.1 http://www.cfd-online.com/Forums/ope...-released.html
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
March 26, 2012, 08:03 |
|
#3 |
Senior Member
|
Thanks Niels,
We will follow those guidelines this afternoon cheers! |
|
March 27, 2012, 05:50 |
|
#4 |
Member
Franco Marra
Join Date: Mar 2009
Location: Napoli - Italy
Posts: 70
Rep Power: 17 |
I too use Rocks cluster to run OpenFOAM. To get everything working some time ago was not so easy. Essentially I was successful to install OpenFOAM following the suggestion of Niels.
If you like to read more (maybe too) detailed instructions for the installation, you can find them in the forum of the CFDEM third party software for lagrangian particle transport, I prepared some time ago (www.cfdem.com, search form for CentOS, maybe registration is required). Essentially, I decided to install CentFOAM to get a working gcc installation separate form the system gcc. The major effort was to recognize the environment variables to maintain separate the two compilers so to be sure to not break possible dependencies with the Rocks system. Please note that I am not a professional system administrator: maybe better solutions could be available (modules ?). If you have comments or suggestions please let me know. Best regards, Franco |
|
March 27, 2012, 06:28 |
|
#5 |
Senior Member
|
Hi Franco,
I will take a look at the information you mention. We tried yesterday with no luck because of different dependencies needed by OF21 with respect to gcc, mpfr, mpc, gmp, ppl, ... I am visiting some people in another university at the end of this week and they may give me a few more hints from the system they have installed in their cluster. Thank you for your help C. |
|
December 15, 2014, 04:25 |
Installing OpenFOAM 2.3.x (using centFoam) on Rocks Cluster 6.1.1
|
#6 |
New Member
Join Date: Mar 2009
Posts: 15
Rep Power: 17 |
Hi,
I'm trying to install OpenFOAM 2.3.x on a small Rocks 6.1.1 Cluster, and I'm a bit unclear on how to do it. I found centFOAM (thank you Niels Nielsen) and was able to use it to install OF on the head node, in my own home directory, according to the general advice of not installing as root. But what I need is to install it in a location so that all users are able to use it. From what I understand from the Rocks Base Roll Guide, there seem to be to paths that can be taken to put code on the compute nodes: 1) If the code is an RPM package it can be placed in Code:
/export/rocks/install/contrib/6.1.1/arch/RPMS 2) If the code is not an RPM it can be placed in Code:
/share/apps Now given that, I'm not sure how to proceed. The more obvious choice seems to put the code in /share/apps, and I've tried to specify that path when using the centFOAM python installer script, but that location requires root privileges. If I sudo install, the files are placed in the correct location, but then there are other complications: OpenFOAM thinks my home is in /root, the environment variable generally don't get defined correctly, the foam bashrc does't get executed (permission denied). Is there a more correct way of doing this? I don't know anything about the other path: should I try to build an RPM for OpenFOAM? I've never done this before, and have no idea what is involved. I would really appreciate any help or pointers on the correct way of doing this. Cheers! Sharaf |
|
December 15, 2014, 04:35 |
|
#7 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Hello Sharaf
the CentFOAM script only installs as the current user and if that user is root I would advise you to install it under /share/apps If you do not have root access just install under your home dir, that is also NFS shared to all the nodes. The problem I think you are facing is that the script only changes the baschrc of the user running CentFOAM so you might need to open that and apply to your user bashrc. also check the OpenFOAM bashrc to check that the installed path matches the correct dir. so for /share/apps/OpenFOAM install dir OpenFOAM-2.3.x/etc/bashrc would have to say Code:
foamInstall=/share/apps/$WM_PROJECT
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Installing OpenFOAm 3.0 on Rocks cluster | Hillie | OpenFOAM Installation | 0 | July 25, 2016 21:05 |
Suggestion for a new sub-forum at OpenFOAM's Forum | wyldckat | Site Help, Feedback & Discussions | 20 | October 28, 2014 10:04 |
OpenFOAM 2.2.0 and 2.1.0 side by side errors | Neraste | OpenFOAM Installation | 2 | June 12, 2013 05:55 |
OpenFoam 2.0.0 installation + ICC + Rocks Cluster | chinper | OpenFOAM Installation | 5 | July 13, 2011 17:00 |
Parallel cluster solving with OpenFoam? P2P Cluster? | hornig | OpenFOAM Programming & Development | 8 | December 5, 2010 17:06 |