ENH: make sourceInfo sub-dictionary optional for topoSet (#1060)

- helps reduce clutter in the topoSetDict files.

  Caveats when using this.

  The older specification styles using "name" will conflict with the
  set name. Eg,

    {
        name    f0
        type    faceSet;
        action  add;
        source  patchToFace;
        sourceInfo
        {
            name   inlet;
        }
    }

    would flattened to the following
    {
        name    f0
        type    faceSet;
        action  add;
        source  patchToFace;
        name   inlet;
    }
    which overwrites the "name" used for the faceSet.

    The solution is to use the updated syntax:

    {
        name    f0
        type    faceSet;
        action  add;
        source  patchToFace;
        patch   inlet;
    }
This commit is contained in:
Mark Olesen
2018-11-07 10:33:36 +01:00
parent 6090faedef
commit 5f556ffb4a
120 changed files with 612 additions and 1851 deletions

View File

@ -22,10 +22,7 @@ actions
type cellSet;
action new;
source boxToCell;
sourceInfo
{
box (-100 -100 -0.2)(100 100 100);
}
box (-100 -100 -0.2)(100 100 100);
}
{
@ -33,11 +30,8 @@ actions
type faceSet;
action new;
source cellToFace;
sourceInfo
{
set z;
option all;
}
set z;
option all;
}
{
@ -51,11 +45,8 @@ actions
type faceSet;
action subset;
source cellToFace;
sourceInfo
{
set z;
option all;
}
set z;
option all;
}
// ~~~~~~~~~~~~~~~~ //
@ -65,10 +56,7 @@ actions
type cellSet;
action new;
source boxToCell;
sourceInfo
{
box (-0.32 -100 -100)(100 100 100);
}
box (-0.32 -100 -100)(100 100 100);
}
{
@ -76,11 +64,8 @@ actions
type faceSet;
action new;
source cellToFace;
sourceInfo
{
set x;
option all;
}
set x;
option all;
}
{
@ -94,11 +79,8 @@ actions
type faceSet;
action subset;
source cellToFace;
sourceInfo
{
set x;
option all;
}
set x;
option all;
}
// ~~~~~~~~~~~~~~~~ //
@ -108,11 +90,8 @@ actions
type cellSet;
action new;
source sphereToCell;
sourceInfo
{
origin (-0.3 -0.3 -0.3);
radius 0.4;
}
origin (-0.3 -0.3 -0.3);
radius 0.4;
}
{
@ -120,11 +99,8 @@ actions
type faceSet;
action new;
source cellToFace;
sourceInfo
{
set sp;
option all;
}
set sp;
option all;
}
{
@ -138,11 +114,8 @@ actions
type faceSet;
action subset;
source cellToFace;
sourceInfo
{
set sp;
option all;
}
set sp;
option all;
}
);