mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +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:
@ -22,10 +22,7 @@ actions
|
||||
type cellSet;
|
||||
action new;
|
||||
source boxToCell;
|
||||
sourceInfo
|
||||
{
|
||||
box (0.1 0.8 -100) (0.4 100 100);
|
||||
}
|
||||
box (0.1 0.8 -100) (0.4 100 100);
|
||||
}
|
||||
|
||||
{
|
||||
@ -39,10 +36,7 @@ actions
|
||||
type faceSet;
|
||||
action new;
|
||||
source patchToFace;
|
||||
sourceInfo
|
||||
{
|
||||
patch freeSurface;
|
||||
}
|
||||
patch freeSurface;
|
||||
}
|
||||
|
||||
{
|
||||
@ -50,10 +44,7 @@ actions
|
||||
type faceSet;
|
||||
action subset;
|
||||
source boxToFace;
|
||||
sourceInfo
|
||||
{
|
||||
box (-100 0.9 -100) (0.2 100 100);
|
||||
}
|
||||
box (-100 0.9 -100) (0.2 100 100);
|
||||
}
|
||||
|
||||
{
|
||||
@ -61,10 +52,7 @@ actions
|
||||
type faceZoneSet;
|
||||
action new;
|
||||
source setToFaceZone;
|
||||
sourceInfo
|
||||
{
|
||||
faceSet f0FaceSet;
|
||||
}
|
||||
faceSet f0FaceSet;
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user