|
[Sponsors] |
August 16, 2005, 21:37 |
I am going to run a curved sli
|
#1 |
New Member
Ho Hsing
Join Date: Mar 2009
Posts: 13
Rep Power: 17 |
I am going to run a curved slim pipe flow in cluster. The idea decompose method would be evenly cutting the whole domain along the length direction.
How to set the "manualCoeffs" if I am going to try manual method? Thanks! |
|
August 16, 2005, 21:44 |
Manual requires you to prepare
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
Manual requires you to prepare a file giving a processor number for each cell in the mesh, (starting from 0). Once you do that, choose the
method manual; in system/decomposeParDict and under manualCoeffs { dataFile "HERE!!!"; } give the name of the file you have prepared. However, I am pretty certain that automatic methods (say, metis) will give you a decent decomposition as well. Enjoy, Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
August 16, 2005, 22:17 |
Thanks Hrv,
I have tried the
|
#3 |
New Member
Ho Hsing
Join Date: Mar 2009
Posts: 13
Rep Power: 17 |
Thanks Hrv,
I have tried the metis method, but the result is not good. Metis method assigns number of grid to each cluster node with regard to the weight value I setted, but it decomposed the domain in both width and length directions which resulted in a huge number of grid in the shared face. Can I control it to decompose the curved domain in length direction only? |
|
November 24, 2009, 14:30 |
|
#4 |
New Member
Attila Schwarczkopf
Join Date: Mar 2009
Location: Edinburgh / London / Budapest
Posts: 12
Rep Power: 17 |
Hi Hrv,
I understand how to force the manual decomposition in system/decomposeParDict, but unfortunatelly I could not manage to prepare the "cellDecomposition" file, although I read carefully what you wrote in your last post. A simple example of this file's structure would be very-very useful, indeed. Thanks, Schwarczi |
|
December 3, 2009, 05:38 |
|
#5 |
Member
Join Date: Sep 2009
Posts: 45
Rep Power: 17 |
Hi all,
I'm not sure but is that right if we use decomposePar before using mapFields? or do we need to do the reverse order ? Thanks! |
|
December 7, 2009, 05:54 |
|
#6 |
Senior Member
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23 |
The cellDecomposition file is basically a labelIOList, so you create an object in whatever utility you are using to write the file. An example might be:
Code:
labelIOList flameMeshManualCoeffs ( IOobject ( "flameMeshManualCoeffs", runTime.time().constant(), mesh, IOobject::NO_READ, IOobject::NO_WRITE ), cellToProcessorList ); flameMeshManualCoeffs.write();
__________________
Laurence R. McGlashan :: Website |
|
December 10, 2009, 05:54 |
|
#7 |
Member
Join Date: Sep 2009
Posts: 45
Rep Power: 17 |
Dear FOAMers,
What is the main reason to use decomposePar unlike to use pisoFoam (for instance) within a cluster using the same numer of processors as decomposePar ? I know the main difference is that decomposePar breaks up the domain to solve each domain "separately", but why the choice toward this latter seems to be considered as the best solution? I've seen in the User Guide that is a "fairly economic solution" but I'd like to know why it is so. Thanks for your help! |
|
November 18, 2012, 05:50 |
|
#8 |
Senior Member
Ralph Moolenaar
Join Date: Aug 2010
Location: 's-Hertogenbosch, the Netherlands
Posts: 120
Rep Power: 16 |
Hello all,
I'm heavily interested on how to use a manual decomposition. However, the workout of Laurence isn't clear enough for me yet. Could someone give more tips on how to get a manual decomposition? FYI: I want to preserve a group of cells on a certain distance form my object of interest. The object is allowed to move and right now it seems that at the decomposition patches some errors occur because my move object is right on such a patch. So I want to prevent that my object is in two decompositions. Thanks for your help! Update: with "decomposePar -cellDist" it's possible to create the file for manual input...now I have to find a way to create this field! Ralph
__________________
CFD for marine applications? Go to http://www.marinecfd.com/ and join the OF Ship Hydromechanics Group: http://www.cfd-online.com/Forums/gro...mechanics.html Last edited by Ralph M; November 18, 2012 at 12:29. |
|
November 18, 2012, 16:32 |
|
#9 |
Senior Member
Vieri Abolaffio
Join Date: Jul 2010
Location: Always on the move.
Posts: 308
Rep Power: 17 |
Hi Ralph. Sorry to have missed you at mets. To do what you want thwre ia an option in the decomposepardict to preserve thw patches in a subdomain. If it might be viable i'll sig in my notes to find how to do so.
Sorry for the typos, replyong from mobile |
|
November 19, 2012, 06:23 |
|
#10 | |
Senior Member
Ralph Moolenaar
Join Date: Aug 2010
Location: 's-Hertogenbosch, the Netherlands
Posts: 120
Rep Power: 16 |
Quote:
Next time we should have each others phone number Did you liked the METS? I guess that you're working with OF20 since there's a bug in OF21? I got the warning message that preservePatches only works for cyclic patches? Cheers, Ralph
__________________
CFD for marine applications? Go to http://www.marinecfd.com/ and join the OF Ship Hydromechanics Group: http://www.cfd-online.com/Forums/gro...mechanics.html |
||
October 22, 2014, 14:35 |
How to specify the order of decompose
|
#11 |
Member
Charlie
Join Date: Dec 2010
Location: USA
Posts: 85
Rep Power: 16 |
Hi All,
Sorry to dig into this again, but I have a problem specifying the master processor to certain subdomain. In automatic decompose manner, the processor0 is by default the master processor, and the other (processor1, processor2, ...) are slave processors. This would be fine if I can directly decompose certain subdomain into processor0. However, I found that if I decompose the domain in vertical direction (y direction), by using 'simple' decomposePar, the domain is always decomposed from the bottom to the top. how could I decompose the domain from the top to the bottom? Here is the decomposePar file: numberOfSubdomains 8; method simple; simpleCoeffs { n ( 1 8 1 ); delta 0.0001; } hierarchicalCoeffs { n ( 1 1 1 ); delta 0.001; order xyz; } metisCoeffs { processorWeights ( 1 1 1 1 ); } manualCoeffs { dataFile ""; } distributed no; roots ( ); //************************************************** *********// |
|
January 19, 2015, 05:09 |
|
#12 |
New Member
Jason
Join Date: Dec 2014
Location: Shanghai, China
Posts: 10
Rep Power: 11 |
Hey, Charlie, I've just got a same problem as you said. Have you tackled this issue? I wanna distribute the processors in a reversed order as well. Thanks!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
DecomposePar | jadavis1 | OpenFOAM Running, Solving & CFD | 0 | January 28, 2009 16:07 |
decomposePar hierarchicalCoeffs | maka | OpenFOAM Running, Solving & CFD | 1 | August 14, 2008 18:39 |
DecomposePar and sets | jhierroa | OpenFOAM Pre-Processing | 7 | January 25, 2008 10:48 |
About the problem of decomposePar utility | zou_mo | OpenFOAM Running, Solving & CFD | 3 | July 27, 2005 19:18 |