50 "\n Usage: cellToFace <cellSet> all|both\n\n"
51 " Select -all : all faces of cells in the cellSet\n"
52 " -both: faces where both neighbours are in the cellSet\n\n"
63 Foam::cellToFace::cellActionNames_;
68 void Foam::cellToFace::combine(
topoSet&
set,
const bool add)
const
77 cellSet loadedSet(
mesh_, setName_);
85 iter != loadedSet.end();
89 label cellI = iter.key();
99 else if (option_ ==
BOTH)
110 for (label faceI = 0; faceI < nInt; faceI++)
112 if (loadedSet.found(own[faceI]) && loadedSet.found(nei[faceI]))
124 const polyPatch& pp = patches[patchI];
128 label faceI = pp.start();
131 neiInSet[faceI-nInt] = loadedSet.found(own[faceI]);
142 const polyPatch& pp = patches[patchI];
146 label faceI = pp.start();
149 if (loadedSet.found(own[faceI]) && neiInSet[faceI-nInt])
185 setName_(dict.
lookup(
"set")),
186 option_(cellActionNames_.read(dict.
lookup(
"option")))
198 setName_(checkIs(is)),
199 option_(cellActionNames_.read(checkIs(is)))
219 Info<<
" Adding faces according to cellSet " << setName_
226 Info<<
" Removing faces according to cellSet " << setName_