|
[Sponsors] |
redistributePar does not create 0 folder in new processor folders |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
Ruggiero Guida
Join Date: Apr 2013
Location: World
Posts: 46
Rep Power: 13 ![]() |
Hi,
I am trying to use redistributePar to change the number of processors after snappyHexMesh. I am using OF6.0 (www.openfoam.org) on ubuntu 18.04. I have meshed my case with Code:
mpirun -np NP snappyHexMesh -overwrite -parallel I then update decomposeParDict with the new number of processors (NNP) - I am using scotch. I finally run Code:
mpirun -np NNP redistributePar -constant -overwrite -parallel I then try to run simpleFoam with Code:
mpirun -np NNP simpleFoam -parallel I have also tried using renumberMesh Code:
mpirun -np NNP renumberMesh -overwrite -parallel Finally I tried to copy the original 0 folder to the various processors and run renumberMesh again (I knew it was wrong, but I didn't know what else to try!) and of course I had an error about inconsistent number of cells. Any idea on how to use redistributePar correctly? I have searched the forum and it seems the changeDictionary could be one possible solution. I tried, but I could not figure it out how to use it. Thanks! Last edited by Rojj; June 1, 2019 at 02:43. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
Thomas Sprich
Join Date: Mar 2015
Posts: 76
Rep Power: 11 ![]() |
Hi Ruggiero,
What happens if you reconstruct the mesh after snappyHexMesh with Code:
reconstructParMesh -constant Then edit your decomposeParDict file for the new number of processors and then run: Code:
decomposePar -force Regards, Thomas |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Ruggiero Guida
Join Date: Apr 2013
Location: World
Posts: 46
Rep Power: 13 ![]() |
Hi Thomas,
That is the typical workflow I use as well and it works fine (except that I do not need to use the -force option). However I would like to avoid running reconstructParMesh and reconstructPar. Unfortunately I cannot guarantee that the number of cores used for meshing is the same used for running the case. This is why I started to look into redistributePar. Cheers |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Member
Thomas Sprich
Join Date: Mar 2015
Posts: 76
Rep Power: 11 ![]() |
Hi Ruggiero,
When you decompose your mesh before running snappyHexMesh, try running decomposePar with the copyZero flag, so: Code:
decomposePar -copyZero mpirun np NP snappyHexMesh -overwrite -parallel Regards, Thomas |
|
![]() |
![]() |
![]() |
![]() |
#5 |
Member
Ruggiero Guida
Join Date: Apr 2013
Location: World
Posts: 46
Rep Power: 13 ![]() |
Hi Thomas,
unfortunately I get the same problem: 0 folders are not copied to the new processors. It seems that the option -copyZero is missing from redistributePar? Interestingly if I use just decomposePar I get Code:
..... ..... Number of processor faces = 506 Max number of cells = 8800 (0% above average 8800) Max number of processor patches = 1 (0% above average 1) Max number of faces between processors = 506 (0% above average 506) Time = 0 Processor 0: field transfer Processor 1: field transfer End Code:
Number of processor faces = 506 Max number of cells = 8800 (0% above average 8800) Max number of processor patches = 1 (0% above average 1) Max number of faces between processors = 506 (0% above average 506) Processor 0: copying "/home/ubuntu/OpenFOAM/ubuntu-6/run/redistribute_New-Area_Baseline/N/0" to "/home/ubuntu/OpenFOAM/ubuntu-6/run/redistribute_New-Area_Baseline/N/processor0/0" Processor 1: copying "/home/ubuntu/OpenFOAM/ubuntu-6/run/redistribute_New-Area_Baseline/N/0" to "/home/ubuntu/OpenFOAM/ubuntu-6/run/redistribute_New-Area_Baseline/N/processor1/0" End |
|
![]() |
![]() |
![]() |
![]() |
#6 |
New Member
Vincent
Join Date: Aug 2019
Location: Germany
Posts: 14
Rep Power: 7 ![]() |
Hello Rojj,
I have a similar problem: the 0 folder isn't copied when using decomposePar. For now I have just copied the important files (like U, p, T, epsilon ...) to the respective place for the 0 and the constant folder. I got the computation to work this way, but I still think it is weird to have to copy all of that by hand. Have you been able to solve your problem? Greetings |
|
![]() |
![]() |
![]() |
![]() |
#7 |
Member
Ruggiero Guida
Join Date: Apr 2013
Location: World
Posts: 46
Rep Power: 13 ![]() |
Hello Vincent,
I actually abandoned that test. I will definitely try your approach. I do everything programmatically so it should be quite easy to implement. I will let you know how it goes. It will take a while though as I am quite busy with other tasks. Cheers Ruggiero |
|
![]() |
![]() |
![]() |
![]() |
#8 |
Senior Member
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14 ![]() |
Hi!
What happens if you leave the -constant switch? I have used it many times without any problems. And I don't remember if the -constant was needed. |
|
![]() |
![]() |
![]() |
![]() |
#9 | ||||
Senior Member
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 6 ![]() |
Quote:
did you find a work around this? in the OF esi vr there is Quote:
also i assume that Quote:
Quote:
hope to know if you find a solution. best regards |
|||||
![]() |
![]() |
![]() |
![]() |
#10 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 12 ![]() |
Hi,
- "runParallel Y" is a bash script with which "mpirun -np X Y -parallel >& log.Y" is computed, where "X" the number of processors defined in "decomposeParDict" and "Y" is the OpenFOAM application which should be parallel executable.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
![]() |
![]() |
![]() |
![]() |
#11 |
New Member
Shahab
Join Date: Nov 2014
Posts: 1
Rep Power: 0 ![]() |
Hi,
The main reason is that your simulation does not start from time 0. Correct this in your controlDict and 0 folders will appear on all the processors when you perform decomposePar |
|
![]() |
![]() |
![]() |
![]() |
#12 |
New Member
F
Join Date: Oct 2021
Posts: 10
Rep Power: 4 ![]() |
I had the same problem.
The issue for me was that my 0 folder missed one of the required input files for the specific solver detailed in controlDict. I added the missing file in 0 and then decomposePar worked fine. |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
postProcess -func sampleDict does not create output folder | tmr2044 | OpenFOAM Post-Processing | 7 | April 27, 2021 14:33 |
[OpenFOAM.com] v1612+ Windows: cannot create new folder | calmdown911 | OpenFOAM Installation | 1 | March 25, 2017 14:07 |
[OpenFOAM.com] v1606+ Run Folder | JSMOKA | OpenFOAM Installation | 5 | December 18, 2016 19:47 |
Cht tutorial in 15 | braennstroem | OpenFOAM Running, Solving & CFD | 197 | June 10, 2015 03:02 |
[ICEM] how to create a 2d tri mesh with quad mesh in the boundary layer | seal2013 | ANSYS Meshing & Geometry | 3 | October 6, 2013 16:09 |