CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

MPIrun Problem with FoamJob Workaround

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 22, 2016, 15:01
Default MPIrun Problem with FoamJob Workaround
  #1
New Member
 
Katherine
Join Date: Feb 2016
Posts: 16
Rep Power: 10
kaszt is on a distinguished road
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!
kaszt is offline   Reply With Quote

Old   August 31, 2018, 10:33
Default
  #2
Member
 
Foad
Join Date: Aug 2017
Posts: 58
Rep Power: 8
foadsf is on a distinguished road
On a side note the

Code:
foamJob -parallel simpleFoam
automatically creates a log file in the case folder. no need for "> log &" part
foadsf is offline   Reply With Quote

Old   September 1, 2018, 04:45
Default error in proccessing, mpirun error
  #3
New Member
 
ceren's Avatar
 
ceren cilavdaroğlu
Join Date: Aug 2018
Location: Turkey
Posts: 6
Rep Power: 7
ceren is on a distinguished road
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



thanks
Ceren.
ceren is offline   Reply With Quote

Old   October 4, 2018, 12:55
Default
  #4
Member
 
Hüseyin Can Önel
Join Date: Sep 2018
Location: Ankara, Turkey
Posts: 46
Rep Power: 7
hconel is on a distinguished road
Quote:
Originally Posted by ceren View Post
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?
hconel is offline   Reply With Quote

Reply

Tags
mpirun


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
what is wrong with the mpirun parameter -mca ? donno OpenFOAM 7 February 2, 2023 21:12
mpirun hangup.. can anyone help how to fix mpirun issues. prameelar OpenFOAM 12 February 16, 2022 16:23
[OpenFOAM.org] mpirun not working in paralleö with OpenMPI zordiack OpenFOAM Installation 15 October 5, 2017 21:45
OF mpirun and parallel problem heksel8i OpenFOAM Running, Solving & CFD 2 September 11, 2013 05:33
MPIRUN fails lfbarcelo OpenFOAM 3 March 29, 2010 07:41


All times are GMT -4. The time now is 03:59.