When using 'simple' or 'hierarchical' decomposition it is useful to slightly rotate a coordinate-aligned block-mesh to improve the processor boundaries by avoiding irregular cell distribution at those boundaries. The degree of slight rotation is controlled by the 'delta' coefficient and a value of 0.001 is generally suitable so to avoid unnecessary clutter in 'decomposeParDict' 'delta' now defaults to this value.
45 lines
998 B
C++
45 lines
998 B
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
format ascii;
|
|
class dictionary;
|
|
location "system";
|
|
object decomposeParDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
numberOfSubdomains 2;
|
|
|
|
method scotch;
|
|
//method ptscotch;
|
|
// method hierarchical;
|
|
|
|
simpleCoeffs
|
|
{
|
|
n (2 2 1);
|
|
}
|
|
|
|
hierarchicalCoeffs
|
|
{
|
|
n (2 1 1);
|
|
order xyz;
|
|
}
|
|
|
|
manualCoeffs
|
|
{
|
|
dataFile "";
|
|
}
|
|
|
|
distributed no;
|
|
|
|
roots ( );
|
|
|
|
|
|
// ************************************************************************* //
|