49 "\n Usage: cellToCell <cellSet>\n\n"
50 " Select all cells in the cellSet\n\n"
56 Foam::cellToCell::cellToCell
62 topoSetCellSource(
mesh),
63 names_(one(), setName)
67 Foam::cellToCell::cellToCell
70 const dictionary&
dict
73 topoSetCellSource(
mesh),
77 if (!
dict.readIfPresent(
"sets", names_))
80 dict.readEntry(
"set", names_.first());
85 Foam::cellToCell::cellToCell
91 topoSetCellSource(
mesh),
92 names_(one(), word(checkIs(is)))
98 void Foam::cellToCell::applyToSet
108 Info<<
" Adding all elements of cellSet "
112 for (
const word& setName : names_)
114 cellSet loadedSet(mesh_, setName);
116 set.addSet(loadedSet);
123 Info<<
" Removing all elements of cellSet "
127 for (
const word& setName : names_)
129 cellSet loadedSet(mesh_, setName);
131 set.subtractSet(loadedSet);