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

rhoPimpleFoam hangs for collated I/O

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 10, 2020, 10:56
Question rhoPimpleFoam hangs for collated I/O
  #1
New Member
 
Miguel Castellano
Join Date: Jun 2020
Posts: 4
Rep Power: 2
michu5696 is on a distinguished road
Hi!
So just what it's written on the title, when trying to run rhoPimpleFoam with the collated filaHandler it just hangs. It remains blocked forever.
After many many trials and lots of time spent tying to spot the problem I've come to realize it is nothing related to the OpenFOAM version, nor the MPI backend or threading capabilities of the latter. It must merely be a question of how the case is built, since I've run it on other tutorial cases under the same circumstances and it worked smoothly.


The workflow is the ordinary:

>> blockMesh
>> decomposePar -fileHandler collated
>> mpirun -np 4 rhoPimpleFoam -parallel -fileHandler collated

and BINGO!

Build : _f3950763fe-20191219 OPENFOAM=1912
Arch : "LSB;label=32;scalar=64"
Exec : rhoPimpleFoam -parallel -fileHandler collated
Date : Jun 10 2020
Time : 16:31:01
Host : michu-laptop
PID : 279801
I/O : collated (maxThreadFileBufferSize 0)
Threading not activated since maxThreadFileBufferSize = 0.
Writing may run slowly for large file sizes.

--- HANGS IN HERE FOREVER ----

* Note that I set maxThreadFileBufferSize to 0 in $FOAM_ETC/controlDict so you don't tell it is because my MPI implementation doesn't support threading. I've tested both Gcc and Icc compilations with impi and openmpi.

Here's the simplified case on github so you can clone it, run it and see it for yourselves.

git clone git@github.com:michu5696/ashee.git

Since I'm no OpenFOAM expert, could you explain to me what is wrong with this case?

Thanks a lot in advance!!
michu5696 is offline   Reply With Quote

Old   July 7, 2020, 08:59
Default Solved!
  #2
New Member
 
Miguel Castellano
Join Date: Jun 2020
Posts: 4
Rep Power: 2
michu5696 is on a distinguished road
Ok. For anybody experiencing the same problem. I just figured out. It took me some time and honestly it's the stupidest thing ever. This must be a bug in the implementation of collated output.
For some reason, if you set your dictionary variables from a personal dictionary by adding

"#include mydict"

the collated fileHandler hangs forever.
End of story.
michu5696 is offline   Reply With Quote

Old   July 20, 2020, 10:13
Default
  #3
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 583
Rep Power: 16
jherb is on a distinguished road
Have you filed a bug at https://bugs.openfoam.org/rules.php ?
jherb is offline   Reply With Quote

Old   July 21, 2020, 08:18
Default
  #4
New Member
 
Miguel Castellano
Join Date: Jun 2020
Posts: 4
Rep Power: 2
michu5696 is on a distinguished road
Yes!
https://develop.openfoam.com/Develop.../-/issues/1765
michu5696 is offline   Reply With Quote

Reply

Tags
collated, i/o, rhopimplefoam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
pimpleFoam runs slower than rhoPimpleFoam Kosuke Seto OpenFOAM Running, Solving & CFD 2 February 6, 2020 02:14
rhoPimpleFoam gives stranger result ... and doesn't work kin3062 OpenFOAM Running, Solving & CFD 16 April 12, 2019 07:46
rhoPimpleFoam Boundary Condition Problem dancfd OpenFOAM Pre-Processing 17 January 27, 2019 17:44
Pressure stair-step behaviour using rhopimplefoam joegi.geo OpenFOAM Running, Solving & CFD 3 December 12, 2014 12:10
rhoPimpleFoam floating point error dancfd OpenFOAM Running, Solving & CFD 6 January 5, 2014 20:57


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