Within decomposeParDict, it is now possible to specify a different decomposition method, methods coefficients or number of subdomains for each region individually. The top-level numberOfSubdomains remains mandatory, since this specifies the number of domains for the entire simulation. The individual regions may use the same number or fewer domains. Any optional method coefficients can be specified in a general "coeffs" entry or a method-specific one, eg "metisCoeffs". For multiLevel, only the method-specific "multiLevelCoeffs" dictionary is used, and is also mandatory. ---- ENH: shortcut specification for multiLevel. In addition to the longer dictionary form, it is also possible to use a shorter notation for multiLevel decomposition when the same decomposition method applies to each level.
49 lines
1.4 KiB
C++
49 lines
1.4 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: plus |
|
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
object decomposeParDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
numberOfSubdomains 4;
|
|
|
|
//- Keep owner and neighbour on same processor for faces in zones:
|
|
// preserveFaceZones (heater solid1 solid3);
|
|
|
|
// method scotch;
|
|
method hierarchical;
|
|
// method simple;
|
|
// method manual;
|
|
|
|
coeffs
|
|
{
|
|
n (2 2 1);
|
|
//delta 0.001; // default=0.001
|
|
//order xyz; // default=xzy
|
|
dataFile "decompositionData";
|
|
}
|
|
|
|
scotchCoeffs
|
|
{
|
|
//processorWeights
|
|
//(
|
|
// 1
|
|
// 1
|
|
// 1
|
|
// 1
|
|
//);
|
|
//writeGraph true;
|
|
//strategy "b";
|
|
}
|
|
|
|
// ************************************************************************* //
|