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 faceSet;
action new;
source boxToFace;
sourceInfo
{
box (0.099 -0.006 0.004)(0.101 0.006 0.016);
}
box (0.099 -0.006 0.004)(0.101 0.006 0.016);
}
{
@ -33,10 +30,7 @@ actions
type cellSet;
action new;
source boxToCell;
sourceInfo
{
box (-10 -10 -10)(0.1 10 10);
}
box (-10 -10 -10)(0.1 10 10);
}
{
@ -44,11 +38,8 @@ actions
type faceZoneSet;
action new;
source setsToFaceZone;
sourceInfo
{
faceSet cyclicFacesFaceSet;
cellSet cyclicFacesSlaveCells;
}
faceSet cyclicFacesFaceSet;
cellSet cyclicFacesSlaveCells;
}
{
@ -56,10 +47,7 @@ actions
type faceSet;
action new;
source boxToFace;
sourceInfo
{
box (0.099 -10 -10)(0.101 10 10);
}
box (0.099 -10 -10)(0.101 10 10);
}
{
@ -67,10 +55,7 @@ actions
type faceSet;
action subtract;
source boxToFace;
sourceInfo
{
box (0.099 -0.006 0.004)(0.101 0.006 0.016);
}
box (0.099 -0.006 0.004)(0.101 0.006 0.016);
}
{
@ -78,10 +63,7 @@ actions
type faceZoneSet;
action new;
source setToFaceZone;
sourceInfo
{
faceSet baffleFaceSet;
}
faceSet baffleFaceSet;
}
);

View File

@ -22,10 +22,7 @@ actions
type faceSet;
action new;
source boxToFace;
sourceInfo
{
box (-0.84 -0.31 -0.01)(-0.82 0.31 0.06);
}
box (-0.84 -0.31 -0.01)(-0.82 0.31 0.06);
}
);

View File

@ -25,20 +25,14 @@ actions
type faceSet;
action new;
source patchToFace;
sourceInfo
{
patch couple1;
}
patch couple1;
}
{
name couple1Faces;
type faceZoneSet;
action new;
source setToFaceZone;
sourceInfo
{
faceSet couple1FaceSet;
}
faceSet couple1FaceSet;
}
// Create faceZone for patch couple2
@ -47,20 +41,14 @@ actions
type faceSet;
action new;
source patchToFace;
sourceInfo
{
patch couple2;
}
patch couple2;
}
{
name couple2Faces;
type faceZoneSet;
action new;
source setToFaceZone;
sourceInfo
{
faceSet couple2FaceSet;
}
faceSet couple2FaceSet;
}
// Create cellZone for moving cells in inlet channel
@ -69,20 +57,14 @@ actions
type cellSet;
action new;
source boxToCell;
sourceInfo
{
box (-100 -100 -100) (1.0001 100 100);
}
box (-100 -100 -100) (1.0001 100 100);
}
{
name inletChannel;
type cellZoneSet;
action new;
source setToCellZone;
sourceInfo
{
set inletChannelCellSet;
}
set inletChannelCellSet;
}
);

View File

@ -22,10 +22,7 @@ actions
type faceSet;
action new;
source patchToFace;
sourceInfo
{
patch outerCylinder;
}
patch outerCylinder;
}
{
@ -33,10 +30,7 @@ actions
type faceSet;
action new;
source faceToFace;
sourceInfo
{
set boundaryFaces;
}
set boundaryFaces;
}
{
@ -44,10 +38,7 @@ actions
type faceSet;
action new;
source faceToFace;
sourceInfo
{
set boundaryFaces;
}
set boundaryFaces;
}
{
@ -55,11 +46,8 @@ actions
type faceSet;
action subset;
source normalToFace;
sourceInfo
{
normal (0 -1 0); // Vector
cos 0.3; // Tolerance (max cos of angle)
}
normal (0 -1 0);
cos 0.3; // Tolerance (max cos of angle)
}
{
@ -67,11 +55,8 @@ actions
type faceSet;
action subset;
source normalToFace;
sourceInfo
{
normal (0 1 0); // Vector
cos 0.3; // Tolerance (max cos of angle)
}
normal (0 1 0);
cos 0.3; // Tolerance (max cos of angle)
}
);

View File

@ -25,10 +25,7 @@ actions
type faceSet;
action new;
source patchToFace;
sourceInfo
{
patch "AMI.*";
}
patch "AMI.*";
}
);