mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
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:
@ -19,10 +19,7 @@ newFromPatch
|
||||
type faceSet;
|
||||
action new;
|
||||
source patchToFace;
|
||||
sourceInfo
|
||||
{
|
||||
patch outer;
|
||||
}
|
||||
patch outer;
|
||||
}
|
||||
|
||||
subsetNormal
|
||||
@ -30,10 +27,7 @@ subsetNormal
|
||||
type faceSet;
|
||||
action subset;
|
||||
source normalToFace;
|
||||
sourceInfo
|
||||
{
|
||||
cos 0.1;
|
||||
}
|
||||
cos 0.1;
|
||||
}
|
||||
|
||||
actions
|
||||
@ -47,10 +41,7 @@ actions
|
||||
{
|
||||
name outerx;
|
||||
$subsetNormal;
|
||||
sourceInfo
|
||||
{
|
||||
normal (-1 0 0);
|
||||
}
|
||||
normal (-1 0 0);
|
||||
}
|
||||
|
||||
// outery
|
||||
@ -62,10 +53,7 @@ actions
|
||||
{
|
||||
name outery;
|
||||
$subsetNormal;
|
||||
sourceInfo
|
||||
{
|
||||
normal (0 -1 0);
|
||||
}
|
||||
normal (0 -1 0);
|
||||
}
|
||||
|
||||
// outerz
|
||||
@ -77,10 +65,7 @@ actions
|
||||
{
|
||||
name outerz;
|
||||
$subsetNormal;
|
||||
sourceInfo
|
||||
{
|
||||
normal (0 0 -1);
|
||||
}
|
||||
normal (0 0 -1);
|
||||
}
|
||||
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user