49 "\n Usage: faceToCell <faceSet> neighbour|owner|any|all\n\n"
50 " Select cells that are the owner|neighbour|any"
51 " of the faces in the faceSet or where all faces are in the faceSet\n\n"
64 Foam::faceToCell::faceActionNames_;
69 void Foam::faceToCell::combine(
topoSet&
set,
const bool add)
const
79 iter != loadedSet.end();
83 label faceI = iter.key();
85 if ((option_ ==
OWNER) || (option_ ==
ANY))
108 Map<label> facesPerCell(loadedSet.size());
113 iter != loadedSet.end();
117 label faceI = iter.key();
123 if (fndOwn == facesPerCell.end())
125 facesPerCell.insert(own, 1);
138 if (fndNei == facesPerCell.end())
140 facesPerCell.insert(nei, 1);
154 iter != facesPerCell.end();
158 label cellI = iter.key();
193 setName_(dict.
lookup(
"set")),
194 option_(faceActionNames_.read(dict.
lookup(
"option")))
206 setName_(checkIs(is)),
207 option_(faceActionNames_.read(checkIs(is)))
227 Info<<
" Adding cells according to faceSet " << setName_
234 Info<<
" Removing cells according to faceSet " << setName_