|
[Sponsors] |
January 21, 2013, 08:27 |
Running in parallel
|
#1 |
Senior Member
Julien
Join Date: Jun 2012
Location: France
Posts: 152
Rep Power: 14 |
hi dear foamers,
I am dealing with running a large case in parallel. Previously, I was doing different steps in this order : Code:
blockmesh snappyHexMesh snappyHexMesh decomposePar mpirun -n 14 pimpleFoam -parallel And it worked quite well. Nevertheless, I think it was not 100% correct, because for example paraView is not able to read the decomposed case. I have to reconstruct it before to plot it. Note: I am using twice sHM because I want to snap the mesh over one object, but not over another one. Thus, I use two STL and two different sHMDict. By the way, I want to use renumberMesh, and to use sHM in parallel mode. Thus, my new steps are: Code:
blockMesh decomposePar mpirun -n 14 snappyHexMesh -parallel -overwrite mpirun -n 14 snappyHexMesh -parallel -overwrite mpirun -n 14 renumberMesh -parallel -overwrite mpirun -n 14 pimpleFoam -parallel Code:
find . -type f -iname "*level*" -exec rm {} \; Second question: When I run paraView on the case, using "decomposed case", I can see the separations between the 14 different processors. Is it normal? When I try reconstructPar -zeroTime, it crashes: Code:
--> FOAM FATAL ERROR: Size of maps does not correspond to size of mesh for processor 0 faceProcAddressing : 1023858 nFaces : 1028376 cellProcAddressing : 335957 nCell : 337705 boundaryProcAddressing : 10 nFaces : 11 Can anyone explain me all this process ? Why working on constant or zerotime ? Do you need anything more to help me? Last edited by Djub; January 21, 2013 at 09:41. Reason: Stupid question has been erased (I solved it on my own) |
|
January 23, 2013, 18:43 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Julien,
I don't have much time to go into details, so I'll be succinct:
Best regards, Bruno
__________________
|
|
January 24, 2013, 06:07 |
|
#3 |
Senior Member
Julien
Join Date: Jun 2012
Location: France
Posts: 152
Rep Power: 14 |
Thanks Bruno,
I think I've catched some more about how it works. In the BlueCFD tuto, you reconstruct the Mesh (only the mesh), and then decompose again. It forces the basic case to correspond with the decomposed case. Nice! So I suppose I can copy my boundary condition just before to run the ultimate decomposition? Only once, instead of each processor? Saying: Code:
cp -r 0.org/* 0/ Code:
ls -d processor* | xargs -i cp -r 0.org/* ./{}/0/ Thanks for this tuto! |
|
January 24, 2013, 17:01 |
|
#4 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Julien,
Quote:
Bruno
__________________
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
error while running in parallel using openmpi on local mc 6 processors | suryawanshi_nitin | OpenFOAM | 10 | February 22, 2017 22:33 |
Running mapFields with Parallel Source and Parallel Target | RDanks | OpenFOAM Pre-Processing | 4 | August 2, 2016 06:24 |
running OpenFoam in parallel | vishwa | OpenFOAM Running, Solving & CFD | 22 | August 2, 2015 09:53 |
Problems running in parallel - missing controlDict | Argen | OpenFOAM Running, Solving & CFD | 4 | June 7, 2012 04:50 |
Running in parallel crashed | zhajingjing | OpenFOAM | 4 | September 15, 2010 08:12 |