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

OpenFOAM in Rocks clusters

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 22, 2004, 08:24
Default First of all, I thanks the pe
  #1
Paulo L. C. Lage (Lage)
Guest
 
Posts: n/a
First of all, I thanks the people that create OpenFOAM to make it free software. I have been looking for a good piece of open software like this for some time. I intend to use OpenFOAM in CFD teaching, thesis development and research projects.

I have just begin to explore the OpenFOAM capabilities and I intent to run it in a Rocks cluster (Makalu, 3.3), which already has MPICH 1.2.6 compiled with gcc 3.2.3 and the Sun Grid Engine sheduler (SGE 5.3). I have already installed OpenFOAM in a personal account and run a tutorial iteratively in the frontend.

Does anyone has any experience in running OpenFOAM in a Rocks cluster? I would like to receive any hints on how to run it in parallel using the existing gcc-MPICH environment and then in batch mode using SGE.

Thanks in advance.
  Reply With Quote

Old   December 22, 2004, 08:28
Default Do you have to use MPICH? We
  #2
Henry Weller (Henry)
Guest
 
Posts: n/a
Do you have to use MPICH? We prefer LAM particularly on Linux where MPICH behaved very badly on large cases. Also gcc-3.4 is much better than gcc-3.2, do you have to use 3.2?
  Reply With Quote

Old   December 22, 2004, 09:27
Default Dear Henry, I do not have
  #3
Paulo L. C. Lage (Lage)
Guest
 
Posts: n/a
Dear Henry,

I do not have to use it but it seems to be a better solution in the long run because MPICH compiled with gcc is standard in the Rocks distribution. New Rocks releases will probably update gcc but they will probably continue to use MPICH and not LAM. Are you familiar with the Rocks distribution?
  Reply With Quote

Old   December 22, 2004, 10:38
Default No I am not familiar with Roc
  #4
Henry Weller (Henry)
Guest
 
Posts: n/a
No I am not familiar with Rocks. We use SuSE 9.1,2 and always use the latest gcc and lam versions. I don't like to be constrained by the compiler version supplied with the operating system, it is rarely optimal for CFD. The last time I tried MPICH I was unable to run my large cases because of the bugs in the linux version so I moved over to lam which ran fine and gave better performance so I have stuck with it.

However OpenFOAM can now be compiled with any version of MPI (or PVM for that matter), it's just a matter of compiling the appropriate Pstream library with the comms library you want to use.
  Reply With Quote

Old   December 22, 2004, 11:01
Default First, I am not an expert in
  #5
Paulo L. C. Lage (Lage)
Guest
 
Posts: n/a
First, I am not an expert in parallel environments. I am basically an user that has to maintain his own clusters running without an IT professional - a third world problem - who considers Rocks a manageable solution.

ROCKS is a cluster distribution made to deploy and manage easily large clusters, having some in the top 500 built with it. I agree that not having the latest compiler may impose some limitations but ROCKS was made to run large problems. Thus, I plan to give its MPICH environment a try.

I have not read the OpenFOAM programmer manual yet for the details of OpenFOAM compilation. I will study it and then I will probably post some questions about its recompilation. I think you could help me a lot at that time. Thanks.
  Reply With Quote

Old   November 15, 2005, 15:14
Default PVM compiled OpenFOAM: Howe
  #6
Senior Member
 
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 18
maka is on a distinguished road
PVM compiled OpenFOAM:

Quote:
However OpenFOAM can now be compiled with any version of MPI (or PVM for that matter), it's just a matter of compiling the appropriate Pstream library with the comms library you want to use.
Can any one please, describe how to compile OpenFOAM with PVM? This has the advantage that PVM is a good friend of OpenMosix load balancing library (in contradictory to MPI). For detail you read:

http://howto.x-tend.be/openMosix-Summer2004/x146.html

Thanks,
Maka
maka is offline   Reply With Quote

Old   November 15, 2005, 16:31
Default Have a look at: /home/hjasa
  #7
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
Have a look at:

/home/hjasak/OpenFOAM/OpenFOAM-1.2/src/Pstream

Here, there is the protocol-dependent part of the Pstream class, currently implementing the dummy, mpi and the long-untouched pvm library.

First, you will need to set tPVM as the communications library in:

OpenFOAM-1.2/.cshrc

Look for the block called


# Communications library
# ~~~~~~~~~~~~~~~~~~~~~~
if ($WM_MPLIB == MPICH) then


and add an "else if" block for PVM

Then, revive the code in the Pstream section above and the rest should just work.

I'd appreciate the working setup for the .cshrc file and updates for the pvm Pstream once you get it working - thanks.

Enjoy,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Reply


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
Script to Run Parallel Jobs in Rocks Cluster asaha OpenFOAM Running, Solving & CFD 12 July 4, 2012 22:51
Micro HOWTO Rocks clusters 50 OpenFoam 15 Linux64 james OpenFOAM Installation 1 August 30, 2008 10:15
MPI on Clusters wak Siemens 0 September 19, 2004 22:03
CFD for flow in fractured rocks S. Yokuda Main CFD Forum 2 February 5, 2001 09:48


All times are GMT -4. The time now is 12:51.