CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   OF in parallel on a server (

samiam1000 August 3, 2012 10:12

OF in parallel on a server
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,

wyldckat August 3, 2012 10:20


foamJob -p buoyantPimpleFoam
This script will take care of the details of using the "machines" file and running in parallel. For more:

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 August 3, 2012 10:28

WoW: it works!

Thanks a lot,

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