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/)
-   -   MPIrun Problem with FoamJob Workaround (https://www.cfd-online.com/Forums/openfoam-solving/168462-mpirun-problem-foamjob-workaround.html)

kaszt March 22, 2016 15:01

MPIrun Problem with FoamJob Workaround
 
Hi,

I am having some issues with trying to use mpirun with simpleFoam that I would appreciate some help with. The setup of my problem is flow over a cylinder with a diameter of 1 meter (u_x = 1 m/s), and I am using the simpleFoam solver. My problem is that when I try to run the case in parallel using the command:
Code:

mpirun -np (# of processors) simpleFoam -parallel > log &
OpenFOAM does not run and returns the error:
Code:

mpirun noticed that the job aborted, but has no info as to the process
that caused that situation.

As a work around, I have been able to run the case in parallel by replacing mpirun with foamJob; after executing decomposePar, I run the case using the following command:
Code:

foamJob -parallel simpleFoam > log &
and OpenFOAM has no problem with this.

I am a relatively new user to OpenFOAM, so I am really curious why mpirun is not able to run my case in parallel, but foamJob can. I went through the damBreak tutorial and I had the same problem with mpirun that I am having with my cylinder flow case. I am really curious if anyone else has ran into this problem and used foamJob instead of mpirun to run a case in parallel.

Thank you in advance for your time!

foadsf August 31, 2018 10:33

On a side note the

Code:

foamJob -parallel simpleFoam
automatically creates a log file in the case folder. no need for "> log &" part

ceren September 1, 2018 04:45

error in proccessing, mpirun error
 
hi,


this is my first time. i made weirOwerflow. i made blockmeshDict without errror. i am on the processes part.



I wrote the "decomposePar" and created the processors and
when I write "mpirun -np 4 interFoam -parallel >log&"




Code:

--> FOAM FATAL IO ERROR:
[2] cannot find file
[2]
[2] file: /home/ceren/weirOverflow/processor2/0/p_rgh at line 0.
[2]
[0]
[0]
[0] --> FOAM FATAL IO ERROR:
[0] cannot find file
[0]
[0] file: /home/ceren/weirOverflow/processor0/0/p_rgh at line 0.
[0]
[0]    From function regIOobject::readStream()
[0]    in file db/regIOobject/regIOobjectRead.C at line 72.
[0]
FOAM parallel run exiting


what is the wrong? please help me.
i am the beginner :rolleyes:



thanks
Ceren.

hconel October 4, 2018 12:55

Quote:

Originally Posted by ceren (Post 704930)
Code:

--> FOAM FATAL IO ERROR:
[2] cannot find file
[2]
[2] file: /home/ceren/weirOverflow/processor2/0/p_rgh at line 0.
[2]
[0]
[0]
[0] --> FOAM FATAL IO ERROR:
[0] cannot find file
[0]
[0] file: /home/ceren/weirOverflow/processor0/0/p_rgh at line 0.
[0]
[0]    From function regIOobject::readStream()
[0]    in file db/regIOobject/regIOobjectRead.C at line 72.
[0]
FOAM parallel run exiting


Not sure what kind of a bash script you are using to run the case but a necessary p_rgh file is not found in the decomposed directories. Do you have that file in your case directories before running anything in the first place?


All times are GMT -4. The time now is 15:41.