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

OF in parallel on a server

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

Like Tree3Likes
  • 3 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   August 3, 2012, 10:12
Default OF in parallel on a server
  #1
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
samiam1000 is on a distinguished road
Dear All,

I am running OF in parallel on a server.

I would like to know how I can put the jobs in background.

Let me show you the steps I do:

1. I write my decomposeParDict and i give the command decomposePar.
2. I create the file machine which contains the file of the server-machine
3. I give the command mpirun --hostfile machines -np 4 buoyantPimpleFoam -parallel > case.log

Now I would like to put the job in BG in order to be able to shut down my laptop. I press Ctrl-z and then bg, but if I digit disown and I shutdown my laptop, the process ends.

What should I do?

Thanks for help,
Samuele
samiam1000 is offline   Reply With Quote

Old   August 3, 2012, 10:20
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Try:
Code:
foamJob -p buoyantPimpleFoam
This script will take care of the details of using the "machines" file and running in parallel. For more:
Code:
foamJob -help
edit: er... well, now I remembered that it keeps a pipe open between the machines... so I'm not sure if it'll continue running...

edit2: I think the only way to be 100% remote, you will have to launch the job from one of the remote machines. This is why there are Job Schedulers for clusters
samiam1000, Mojtaba.a and y_jiang like this.

Last edited by wyldckat; August 3, 2012 at 10:29. Reason: see "edit:" and "edit2:"
wyldckat is offline   Reply With Quote

Old   August 3, 2012, 10:28
Default
  #3
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
samiam1000 is on a distinguished road
WoW: it works!

Thanks a lot,
Samuele!
samiam1000 is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parallel run on remote server OpenFOAM_user87 OpenFOAM Running, Solving & CFD 2 February 8, 2012 04:43
parallel performance on BX900 uzawa OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 3 September 5, 2011 15:52
CFD Online Back on Main Server pete Site News & Announcements 0 March 31, 2011 18:14
CFD Online Server Load Jonas Larsson Main CFD Forum 0 March 13, 2001 15:29
Parallel Computing Classes at San Diego Supercomputer Center Jan. 20-22 Amitava Majumdar Main CFD Forum 0 January 5, 1999 13:00


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