ENH: support 'transform' specification for geometric decomposition

- can be used for block-like meshes that are not aligned with the global
  coordinate directions. Alternatively, for general testing purposes.

  Example,

    method  simple;
    coeffs
    {
        n       ( 2 2 2 );
        transform
        {
            origin  (-0.15 0.15 0);
            e1      (1 1 0);
            e3      (0 0 1);
        }
    }
This commit is contained in:
Mark Olesen
2021-04-29 13:54:37 +02:00
parent 36266a7e7d
commit 492d5cb645
15 changed files with 477 additions and 140 deletions

View File

@ -0,0 +1,43 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2106 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 8;
method simple;
coeffs
{
n ( 2 2 2 );
// Optional coordinate transformation for sorting
transform
{
origin (-0.15 0.15 0);
rotation
{
type axisAngle;
axis (0 0 1);
angle 44.5;
// Or disabled
//type none;
}
}
}
// ************************************************************************* //