CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   OpenFOAM cluster (

lordvon November 15, 2011 18:53

OpenFOAM cluster
I am trying to run 1.5-dev ggi in an Ubuntu lan cluster by ethernet switch.
I have been trying to follow these instructions posted on another thread:

1 - In version 1.7.1, put the line . / Opt/openfoam171/etc/bashrc AS FIRST LINE in the files sudo gedit /etc/profile , sudo gedit ~/.Profile and gedit ~/.Bashrc. In all machines in the network you will use.

2- In file machines (which can be created in the tutorial) put the machine name followed by how many processors are used on this machine.


ubuntu2 cpu = 2

3 - Give decomposePar in all machines.

4- Type mpirun --hostfiles machines -np <number of prpcessos> <solver name> - parallel

But I can't get it to work. I replaced the ". /opt/..." with "/usr/lib/OpenFOAM-1.5-dev/etc/bashrc" for 1.5-dev.

The error is:


mpirun was unable to launch the specified application as it could not find an executable:

Executable: --hostfiles
Node: myName-desktop

while attempting to start process rank 0.

Has anybody successfully run openfoam 1.5-dev successfully in a cluster with similar instructions?

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