|
[Sponsors] |
Decomposing a case with redistributePar utility |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 30, 2021, 04:59 |
Decomposing a case with redistributePar utility
|
#1 |
Senior Member
Join Date: Nov 2009
Posts: 111
Rep Power: 16 |
Hello everyone,
I am working on a case where I would like to use redistributePar to decompose and recompose my geometry. Unfortunately, I am encountering several issues. Some of them I could solved. But now I am blocked and would like to sollicitate your support. My case has the following structure : Code:
- 0.orig - constant - system - controlDict - decomposeParDict - ... Code:
mpirun -np 16 redistributePar -decompose -parallel ls -d processor* | xargs -i rm -rf ./{}/0 ls -d processor* | xargs -i cp -r 0.orig ./{}/0 mpirun -np 16 renumberMesh -parallel -overwrite -constant -decomposeParDict system/decomposeParDict mpirun -np 16 patchSummary -parallel -decomposeParDict system/decomposeParDict mpirun -np 16 simpleFoam -parallel Indeed, OpenFOAM was creating the following directories : Code:
processor1 processor 2 ... processor15 Now the issue I have when running the solver (simpleFOAM) is that I get several messages like : Code:
Cannot find patchField entry for procBoundaryXtoY Code:
mpirun -np 16 renumberMesh -parallel -overwrite -constant -decomposeParDict system/decomposeParDict mpirun -np 16 patchSummary -parallel -decomposeParDict system/decomposeParDict Any idea ? Thank you very much for your support ! |
|
March 30, 2021, 12:50 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
redistributePar went through several iterations to get rid of various bugs.
could you please share us what software environment were you using? e.g. version
__________________
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 |
|
March 30, 2021, 12:51 |
|
#3 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
if it would not cause any headache for you, I would simply use "decomposePar" in place of "redistributePar -decompose -parallel" (for now).
__________________
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 |
|
May 6, 2021, 06:14 |
|
#4 |
Member
Piotr Prusinski
Join Date: Oct 2009
Location: Warsaw, Poland
Posts: 67
Rep Power: 17 |
I'm facing similar problem. Described it here: [v1812] redistributePar -decompose -parallel and missing /processor0 folder
So in case of any updates in this matter I would be glad to learn. |
|
August 25, 2021, 02:59 |
|
#5 |
Senior Member
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 6 |
hello!
mmm If I understand correctly you are having trouble running the case in parallel. as another user mentioned before, you can use: Code:
decomposePar -force -copyZero there might be a specific reason why you want to use redistributePar (if thats the case sorry for not having an answer) but if it is not the case, this is my workflow script that runs smoothly whatever the case: I am using the runFucntions https://damogranlabs.com/2020/10/run...ck-cheatsheet/ but it is not necessary obviously, but the great benefit that you have with them is speccially in the runParallel that you dont need to specify the number of domains as with mpirun, it recovers it directly from your decomposeParDict. Code:
#!/bin/bash cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ ./Allclean caseName=$(echo "${PWD##*/}") echo "=================================================================================================================================================" echo "Begining of Meshing of $caseName case ================================================================================================================================================= " cp ./constant/triSurface/modelBackup.stl ./constant/triSurface/model.stl runApplication blockMesh runApplication surfaceFeatureExtract cp -r 0.orig/. 0 decomposePar -force -copyZero runParallel snappyHexMesh -overwrite runParallel renumberMesh -overwrite runParallel checkMesh -allTopology -allGeometry -latestTime touch simulation.foam #------------------------------------------------------------------------------ Code:
runParallel $(getApplication) one short extra info that I had a lot of problems before if you want to reconstruct the case for whatever reason (now paraView can analyse the decomposed case so it is not really important to do it), you should run first reconstructParMesh follow up by recontructPar |
|
Tags |
openfoam, parallel, redistributepar |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is Playstation 3 cluster suitable for CFD work | hsieh | OpenFOAM | 9 | August 16, 2015 15:53 |
Numerical error or case error? Flow in a 3D pipe | fsalvucci | OpenFOAM | 40 | January 30, 2013 08:10 |
Sample utility problems | msrinath80 | OpenFOAM Running, Solving & CFD | 12 | December 21, 2012 06:51 |
About the problem of decomposePar utility | zou_mo | OpenFOAM Running, Solving & CFD | 3 | July 27, 2005 19:18 |
Turbulent Flat Plate Validation Case | Jonas Larsson | Main CFD Forum | 0 | April 2, 2004 11:25 |