OpenFOAM can not find (Windows/Microsoft) MPI libraries

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view

OpenFOAM can not find (Windows/Microsoft) MPI libraries

Submitted Questions
I have installed Openfoam with MPI, however everytime I run simulation with Openfoam, the command window would warn that:

"Could not find mpirun or mpiexec, reverting to serial mode. Please install Microsoft MPI to enable parallel simulations.("

I just want to run in parallel but it is beyond me why the parallel would fail? Could you kindly offer some instructions to the problem?
Reply | Threaded
Open this post in threaded view

Re: OpenFOAM can not find (Windows/Microsoft) MPI libraries

Precise Simulation
The external solvers OpenFOAM, SU2, and FEniCS all depend on MPI ( libraries to enable solving problems in parallel.

The interfaces are typically set-up automatically when installing the external solvers. If they are not you must install MPI libraries, which depends on your operating system (OS).

With OpenFOAM it is recommended to use the ESI distribution, which should include MPI libraries. Otherwise, as suggested in the error message Microsoft provides Windows compatible MPI libraries via

You can test if the MPI libraries can be found by running the following commands in Matlab

  if( ispc() )
    [st1,res1] = system('mpiexec /?')
    [st2,res2] = system('mpirun /?"')
    [st1,res1] = system('bash -c "mpiexec -V"')
    [st2,res2] = system('bash -c "mpirun -V"')

if either of "st1" or "st2" return zero (0 = no system call error) MPI libraries could be found.