mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
- 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;
}
52 lines
1.4 KiB
C++
52 lines
1.4 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: v1806 |
|
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
object topoSetDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
actions
|
|
(
|
|
// Load initial cellSet
|
|
{
|
|
name c0;
|
|
type cellSet;
|
|
action new;
|
|
source cylinderToCell;
|
|
|
|
p1 (0.025 1 0.025);
|
|
p2 (0.025 0.049 0.025);
|
|
radius 0.0015;
|
|
}
|
|
|
|
// Get all faces in cellSet and assign to injectorFaces
|
|
{
|
|
name injectorFaces;
|
|
type faceSet;
|
|
action new;
|
|
source cellToFace;
|
|
|
|
set c0;
|
|
option all;
|
|
}
|
|
|
|
// Keep in injectorFaces all faces in boundary faces
|
|
{
|
|
name injectorFaces;
|
|
type faceSet;
|
|
action subset;
|
|
source boundaryToFace;
|
|
}
|
|
);
|
|
|
|
// ************************************************************************* //
|