|
[Sponsors] |
Strange behaviour 1.6 decomposePar vs 1.7 decomposePar |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 4, 2010, 00:48 |
Strange behaviour 1.6 decomposePar vs 1.7 decomposePar
|
#1 |
New Member
Andrew Lowe
Join Date: Mar 2010
Location: Perth, Australia
Posts: 8
Rep Power: 16 |
Hi all,
I'm looking into the performance of our mods to OF and have come across a strange artifact. Running a job under 1.6 with, say, 32 processors, and 5000 particles results in basically results for 5000 particles after decomposePar -> solver -> reconstructPar. When I run the same job under our code ported to 1.7, once again with 32 processors and 5000 particles, I get results for 156982 particles, basically 160K particles. Looking at the results for 1, 2, 4, 8, 16, 32 processors gives me 5K, 10K, 20K, 40K, 80K & 160K particles respectively. It seems that every time I double the number of processors, I double the number of particles I get results for. I'm still a bit green with OF so before I attempt to delve deeper into the internal workings, I just wanted to know if there were any major changes in going from 1.6 -> 1.7 with respect to decomposePar/reconstructPar? I've diff'd the decomposeParDict files under both environments and they are the same. Any thoughts, greatly appreciated Andrew |
|
December 4, 2010, 09:35 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Andrew,
But what I've read in this forum, there have been some changes in simulations with particles, although I don't know the extent of the changes. Also I think I read something in the bug reports about particles. So I have a few questions and a suggestion... Questions:
Best regards and good luck! Bruno
__________________
|
|
December 4, 2010, 23:55 |
|
#3 |
New Member
Andrew Lowe
Join Date: Mar 2010
Location: Perth, Australia
Posts: 8
Rep Power: 16 |
Bruno,
Thanks for the reply. In answer to your questions: Background: I generate model files and job files on my linux box then upload onto a supercomputer, xe, here in Perth where jobs are queued then run. 1) After uploading my model onto xe, I ssh into it and then manually run decomposePar from an ssh shell. I then set up an appropriate job file for the queuing system, place the job in the queue then come back later. Then once again via an ssh shell I run reconstructPar which rebuilds my job. 2) The model is the same in both cases. The only changes I have to make is in the job file which is for the queuing system, therefore not relevant to OF. 3) Haven't tried the tutorials yet. I'm currently in the middle of writing some stuff up so time is tight right at the moment, but I will be able to check things in a day or two. So that I can narrow the search down a bit, decomposePar or solver or reconstructPar, what files should I look at to see if things are the correct size. For example decomposePar in both versions should break the model down so that certain files are the same size etc. If under 1.7 a file is many times bigger than under 1.6, then decomposePar might be the culprit, or similarly what files would point to reconstructPar being the culprit? Andrew |
|
December 5, 2010, 19:06 |
|
#4 | ||||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Andrew,
Quote:
Quote:
Quote:
Quote:
But I think that the size of the files might not increase, depending on how the information of the particle count is stored; if it's stored in a particle count per cell, you will have the same sizes of files. Using diff should prove to be more efficient, once you know which file it is; assuming of course that the mesh is kept identical. The other hypothesis would be to create an utility application that is a stripped version of your solver, that reads the particle lists and outputs the counts. I haven't seen such utility in OpenFOAM, but it should be pretty simple to make. Best regards and good luck! Bruno
__________________
|
|||||
December 5, 2010, 23:11 |
|
#5 | ||||
New Member
Andrew Lowe
Join Date: Mar 2010
Location: Perth, Australia
Posts: 8
Rep Power: 16 |
Further to Bruno's questions:
Quote:
Quote:
Quote:
Quote:
Regards, Andrew |
|||||
January 16, 2011, 13:14 |
|
#6 |
New Member
Andrew Lowe
Join Date: Mar 2010
Location: Perth, Australia
Posts: 8
Rep Power: 16 |
Well, it looks like the cause of the problem was me. Some work I had done with respect to injection of particles was the fault. I didn't have a good handle on when OF broke things up into parallel operation hence I had particles being injected on all cores rather than just the one.
|
|
January 16, 2011, 13:43 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Andrew,
I'm glad you managed to solve the problem! And too bad it wasn't the machine's fault I do hate the sentence "the machine is always right"... although sometimes it can be comforting knowing that it should be unlikely that the machine is simply toying with our minds/feelings By the way, did you end up creating the little utility for counting the number of particles? Or did you implement the feature directly into your solver? Best regards, Bruno
__________________
|
|
January 16, 2011, 19:12 |
|
#8 |
New Member
Andrew Lowe
Join Date: Mar 2010
Location: Perth, Australia
Posts: 8
Rep Power: 16 |
Bruno,
I didn't need to write the utility, I used a much more powerful debugging tool, the good old printf(). Just by placing a few output commands, I managed to work out what happens with respect to the parallelisation and then the penny dropped. Andrew |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Strange behaviour when using LienCubicKE and NonlinearKEShih | hani | OpenFOAM Running, Solving & CFD | 20 | March 6, 2013 11:06 |
BuoyantBoussinesq(Pimple/Piso)Foam, changed equation from OF 1.6 to 1.7 ??? | myself | OpenFOAM | 3 | September 14, 2011 03:03 |
[swak4Foam] OpenFOAM 1.6 and 1.7 with interFoam, groovyBC give different strange results | Arnoldinho | OpenFOAM Community Contributions | 7 | December 9, 2010 17:29 |
Compatibility from OF 1.6 to OF 1.7? | Chrisi1984 | OpenFOAM Installation | 2 | July 7, 2010 04:07 |
strange behaviour of GGI in parallel on axis symmetrical case | A.Devesa | OpenFOAM Running, Solving & CFD | 0 | April 6, 2010 04:58 |