|
[Sponsors] |
November 8, 2021, 05:57 |
parallel solving in mingw build
|
#1 |
Member
Join Date: Mar 2018
Posts: 33
Rep Power: 8 |
I have installed the OpenFOAM mingw build for windows. And I have been trying to run the PitzDaily case in parallel. It does not work properly
My decomposeParDict is set with 6 cores, scotch, and coeff( 3,2,1). It works fine. So when I run decomposePar, it works However, when I run mpirun -nc 6 simpleFOAM -parallel, I get an error: "bash: mpirun: could not find the command" EDIT: it is mpirun -np 6 simpleFoam -parallel, the previous command is a typo, thx Yann I also tried the foamjob version: foamJob -s -parallel simpleFoam, and I get the error: 'mpirun' not found Idea: I think I don't have openMPI installed. I mean, I installed MSMPI with openFOAM by default, but they are different things... I think, yeah. Idea 2: I ran :mpiexec -n 6 simpleFoam. Because I found in How to ues MSMPI in CONVERGE? that msmpi can be run with mpiexec. But it is slower than running simpleFoam alone. simpleFoam: clocktime = 6 seconds mpiexec- -n 6 simpleFoam: clocktime = 10 seconds Actually, running mpiexec simpleFoam takes 26 seconds. So the problem is that mpiexec is slower than the default openFOAM mpi stuff Idea3: if I run the airfoil2D tutorial case with ./Allrun, it works, with parallel processing included. However, I do not even know in what programming language the Allrun file is writtten. I mean, probably C, but there are lines of code I don't understand Questions: 1-What is the correct command to run solvers in parallel with mingw? 2- Do I have to install openmpi? I think there is no windows version 3- why is it slower when I run mpiexec ? what is the difference between writing simpleFoam and mpiexdc simpleFoam Last edited by ghastbug; November 8, 2021 at 10:48. |
|
November 8, 2021, 07:37 |
|
#2 | |||
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,198
Rep Power: 27 |
Hi,
Quote:
Code:
mpirun -np 6 simpleFoam -parallel Quote:
Code:
mpiexec -n 6 simpleFoam -parallel Quote:
Not sure this will solve your openMPI issues but I hope at least it will give you some hints. Yann |
||||
November 8, 2021, 10:47 |
|
#3 |
Member
Join Date: Mar 2018
Posts: 33
Rep Power: 8 |
1- mpirun -nc 6 simpleFOAM -parallel is a typo, I'm adding a note to the OP
2- mpiexe -n 6 simpleFoam -parallel : oooh, beautiful, it works, thx. 3- shell files with runfunctions: exactly what I asked, thx. Now I can get some introductory knowledge on shell scripts from google and check where the runfunctions are located in openfoam |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with chtMultiregionFoam radiation boundary condition | baran_foam | OpenFOAM Running, Solving & CFD | 10 | December 17, 2019 18:36 |
problem with Min/max rho | tH3f0rC3 | OpenFOAM | 8 | July 31, 2019 10:48 |
conjugate heat transfer in OpenFOAM | skuznet | OpenFOAM Running, Solving & CFD | 99 | March 16, 2017 06:07 |
Micro Scale Pore, icoFoam | gooya_kabir | OpenFOAM Running, Solving & CFD | 2 | November 2, 2013 14:58 |
Differences between serial and parallel runs | carsten | OpenFOAM Bugs | 11 | September 12, 2008 12:16 |