12.01.2013 Views

OpenFOAM postprocessing and advanced running options

OpenFOAM postprocessing and advanced running options

OpenFOAM postprocessing and advanced running options

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

POLITECNICO DI MILANO CHALMERS<br />

Running in parallel: execution<br />

An application is run in parallel using the mpirun comm<strong>and</strong>:<br />

mpirun --hostfile -np <br />

-parallel > log<br />

where: is the number of processors; is the executable, e.g.<br />

simpleFoam; <strong>and</strong>, the output is redirected to a file named log.<br />

The file contains the names of the machines listed, one machine per line<br />

The names must correspond to a fully resolved hostname in the /etc/hosts file of the<br />

machine on which the openMPI is run. The file would contain:<br />

hostname1<br />

hostname2 cpu=2<br />

hostname3<br />

In our case it becomes:<br />

mpirun -np 2 simpleFoam . pitzDailyParallel -parallel > log &<br />

Gianluca Montenegro/ <strong>OpenFOAM</strong> <strong>postprocessing</strong> <strong>and</strong> <strong>advanced</strong> <strong>running</strong> <strong>options</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!