CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   problem with "running in parallel" >> error (https://www.cfd-online.com/Forums/openfoam-solving/133484-problem-running-parallel-error.html)

vitorspadeto April 15, 2014 14:54

problem with "running in parallel" >> error
 
hello! I was trying to run in PARALLEL icoFoam but me the following error occurred: Anyone know what I should do to correct the error? Thank you.

observation: I have a core i7 (8 cores)



s@s-Aspire-V371:~/Dropbox//icoFoam/cavity$
mpirun -np 8 icoFoam -parallel > log &
[1] 17678
s@s-Aspire-V3-571:~/Dropbox/Openfoam_PG/tutorials/incompressible/icoFoam/cavity$ [0]
[0]
[0] --> FOAM FATAL ERROR:
[0] Cannot read "/home/s/Dropbox/Openfoam_PG/tutorials/incompressible/icoFoam/cavity/system/decomposeParDict"
[0]
FOAM parallel run exiting
[0]
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD
with errorcode 1.
NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun has exited due to process rank 0 with PID 17679 on
node s-Aspire-V3-571 exiting without calling "finalize". This may
have caused other processes in the application to be
terminated by signals sent by mpirun (as reported here).
--------------------------------------------------------------------------

wyldckat April 15, 2014 15:48

Greetings Vitor,

What message do you get if you run the following command?
Code:

ls -l /home/s/Dropbox/Openfoam_PG/tutorials/incompressible/icoFoam/cavity/system/decomposeParDict
Best regards,
Bruno

vitorspadeto April 15, 2014 15:59

Code:

ls -l /home/s/Dropbox/Openfoam_PG/tutorials/incompressible/icoFoam/cavity/system/decomposeParDictclear
ls: não é possível acessar /home/s/Dropbox/Openfoam_PG/tutorials/incompressible/icoFoam/cavity/system/decomposeParDictclear: Arquivo ou diretório não encontrado

translating to english:

Quote:

ls -l /home/s/Dropbox/Openfoam_PG/tutorials/incompressible/icoFoam/cavity/system/decomposeParDictclear
ls: can not access /home/s/Dropbox/Openfoam_PG/tutorials/incompressible/icoFoam/cavity/system/decomposeParDictclear: File or directory not found

vitorspadeto April 15, 2014 16:00

I just type blockMesh and then ran icoFoam in parallel like above

alexeym April 16, 2014 03:46

Hi,

before running a case in parallel you have to decompose it with decomposePar utility. This utility reads system/decomposeParDict for the number of domains and decomposition method. You can find an example of the file in (for example ;)) $FOAM_TUTORIALS/multiphase/interFoam/ras/damBreak/system.

And the sequence of commands for your case should be

Code:

$ blockMesh
$ decomposePar
$ mpiexec -np 8 icoFoam -parallel > log 2>&1 &


vitorspadeto April 16, 2014 08:49

thanks bro... I got success!


All times are GMT -4. The time now is 12:20.