CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Running OpenFOAM from Platform LSF

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 22, 2010, 12:54
Question Running OpenFOAM from Platform LSF
  #1
New Member
 
Join Date: Jul 2010
Posts: 11
Rep Power: 16
phinallydone is on a distinguished road
Does anyone have any experience running OF from LSF? If so, could you share an example shell script to submit the job to bsub?

Many Thanks!
phinallydone is offline   Reply With Quote

Old   June 27, 2011, 14:25
Default
  #2
New Member
 
Join Date: Jan 2010
Posts: 23
Rep Power: 16
jdiorio is on a distinguished road
Posting this in response to a PM from member Linse. Sorry if this info is posted elsewhere but maybe others will find it helpful.

The key is the LSF environment variable $LSB_HOSTS which is the lists of machines assigned for your job. Create two files e.g. "parjobscript" and the "runparjob"

#script parjobscript
rm machineFile
for i in $LSB_HOSTS
do echo $i >> machineFile
done
mpirun -n 20 --hostfile machineFile simpleFoam -parallel > foam.log

#script runparjob
bsub -q limit150 -n 20 -e error.%J.log -o output.%J.log < parjobscript

The -n option in each of these files should be followed by the number of processors you want. In "runparjob" I'm submitting to the LSF scheduler using bsub, followed by the queue name (in this case limit150) and again the number of processors. The -e and -o options specify the error and log files respectively (using %J gives you the current job number).

Executing "runparjob" should assign the assigned LSF machines to OpenFOAM.

Hope this helps.

James
jdiorio is offline   Reply With Quote

Old   June 28, 2011, 10:30
Default
  #3
Senior Member
 
Bernhard Linseisen
Join Date: May 2010
Location: Heilbronn
Posts: 183
Blog Entries: 1
Rep Power: 16
Linse is on a distinguished road
James, thank you very much for that information!
At the very least it points to ways how to solve the problems I have!
Linse is offline   Reply With Quote

Old   June 3, 2013, 16:10
Default
  #4
Member
 
ehk
Join Date: Sep 2012
Posts: 30
Rep Power: 14
ehsankf is on a distinguished road
Does anyone have any experience running OF from LSF with mpirun.lsf?
ehsankf is offline   Reply With Quote

Old   June 3, 2013, 16:52
Default
  #5
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
Hi
what is LSF?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   June 8, 2013, 17:22
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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!

Quote:
Originally Posted by ehsankf View Post
Does anyone have any experience running OF from LSF with mpirun.lsf?
If you make a more specific question as to what problem you're having with LSF, it'll be easier for anyone to answer you.

Quote:
Originally Posted by immortality View Post
Hi
what is LSF?
I'm not 100% certain, but I think it's this: http://en.wikipedia.org/wiki/Load_Sharing_Facility

Best regards,
Bruno
immortality likes this.
__________________
wyldckat is offline   Reply With Quote

Old   July 21, 2017, 04:39
Default
  #7
Member
 
Dominic
Join Date: Jan 2017
Posts: 41
Rep Power: 9
DominicTNC is on a distinguished road
Hi all,

I am now facing the same problem. Would anyone give me some help?

With reference to James comment, I write the following script

<<<<<<<<<<<<<snappyHexMesh.sh>>>>>>>>>>>>>>
rm machineFile
for i in $LSB_HOSTS
do echo $i >> machineFile
done
mpirun -n 264 --hostfile machineFile snappyHexMesh -overwrite -parallel > foam.log

<<<<<<<<<<<<<run_snappyHexMesh.sh>>>>>>>>>>>>>>
bsub -q model_queue_high -n 264 -e error.%J.log -o output.%J.log < snappyHexMesh.sh


But it turns out that it fails to run.

Any comments are appreciated! Many Thanks!

Regards,
Dominic
DominicTNC 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
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 15:43
Problem installing OpenFOAM 1.5 installation on RHEL 4. vwsj84 OpenFOAM Installation 4 April 23, 2009 05:48
OpenFOAM Training in Europe and USA hjasak OpenFOAM 0 August 8, 2008 06:33
Kubuntu uses dash breaks All scripts in tutorials platopus OpenFOAM Bugs 8 April 15, 2008 08:52


All times are GMT -4. The time now is 17:25.