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

SimpleFoam run in Parallel issue!

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 13, 2016, 11:02
Default SimpleFoam run in Parallel issue!
  #1
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 16
tareqkh is on a distinguished road
Hello Foamers,

I have been running a special case using simpleFoam and came to a question that some of you might have experienced. I am trying to monitor some results including the residual using simpleFoam > log.simpleFoam command, but when I switch to mpirun -np 12 simpleFoam -parallel > log.simpleFoam, some of the output that the simpleFoam provides become 0 instead of the real values. Has anyone had this issue before could tell us the reason of not getting the results in parallel?

Best,
tareqkh is offline   Reply With Quote

Old   October 17, 2016, 13:41
Default
  #2
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12
Saideep is on a distinguished road
Hi,

I generally use "mpiexec -n 12 solverName -parallel > log&".

I am not sure why do you need log.simpleFoam. But I never had a problem with my statement either run on parallel or on a single core(by removing the mpi related part).

Saideep
Saideep is offline   Reply With Quote

Old   October 17, 2016, 14:45
Default
  #3
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 16
tareqkh is on a distinguished road
Quote:
Originally Posted by Saideep View Post
Hi,

I generally use "mpiexec -n 12 solverName -parallel > log&".

I am not sure why do you need log.simpleFoam. But I never had a problem with my statement either run on parallel or on a single core(by removing the mpi related part).

Saideep
Hello Saideep,

Thank you for the answer. However, I am using a modified simpleFoam i.e. something relevant to my project. So now, the modified simpleFoam doesn't provide an output when I run in parallel. Any idea, where to look in the source code to fix the issue about not getting the results in parallel.

Best,

Last edited by tareqkh; October 17, 2016 at 16:37.
tareqkh is offline   Reply With Quote

Old   October 19, 2016, 11:00
Default SimpleFoam in Parallel issue!
  #4
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 16
tareqkh is on a distinguished road
Hello Foamers,

I have been running a special case using a modified simpleFoam and came to a question that some of you might have experienced. I am trying to monitor some results including the residual using simpleFoam > log.simpleFoam command, but when I switch to mpirun -np 12 simpleFoam -parallel > log.simpleFoam, some of the output that the simpleFoam provides become 0 instead of the real values. Has anyone had this issue before could tell us the reason of not getting the results in parallel? Any idea, where to look in the source code to fix the issue about not getting the results in parallel.


Best,
tareqkh is offline   Reply With Quote

Old   October 21, 2016, 09:28
Default
  #5
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12
Saideep is on a distinguished road
Hi,

It is a bit strange. Few things here. From what I understand is that,
1. your modified simpleFOAM is working when not using mpi. Can you check your results. It shall be spurious. I guess the problem comes from the modification part.

2. if results behave as you expect then the culprit is mpi, but I never encountered a problem with mpi on modifications.

Saideep
Saideep is offline   Reply With Quote

Old   October 21, 2016, 13:05
Default
  #6
Member
 
Join Date: Mar 2014
Posts: 39
Rep Power: 12
Traction is on a distinguished road
Hey,

just to be sure: Do you use the specific mpi reduce operations for generating the output in your modification ?
Traction is offline   Reply With Quote

Old   January 1, 2018, 18:07
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: I'm very late to this discussion, but from the description, it seems that this was a bug. But only by knowing the OpenFOAM version and the function objects used, would it be possible to at least know if this is a known bug or not.
__________________
wyldckat is offline   Reply With Quote

Reply


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
problem w/ running simpleFoam in parallel mazdak OpenFOAM Running, Solving & CFD 27 December 8, 2023 03:10
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 91 December 21, 2022 04:50
[Salome] Salome import "Cannot find file "points" in directory..." mismichael OpenFOAM Meshing & Mesh Conversion 5 June 22, 2019 02:56
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
Trying to run a benchmark case with simpleFoam spsb OpenFOAM 3 February 24, 2012 09:07


All times are GMT -4. The time now is 21:04.